-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (60 loc) · 2.59 KB
/
index.html
File metadata and controls
60 lines (60 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<link rel="stylesheet" href="style/main.css">
<link rel="stylesheet" href="style/sweetalert.css">
</head>
<body>
<div id="app">
<div class="container-fluid">
<div class="d-flex text-white">
<div class="d-flex flex-column">
<mark-attendance id="markAttendance"></mark-attendance>
<registration></registration>
</div>
<video-container></video-container>
<div class="p-1" clearfix>
<p class="mt-3 h6">Registered</p>
<div v-for="person in persons" class="p-2">
<span class="badge badge-pill badge-warning positionAbsolute">{{person.status}}</span>
<img v-if="person.status==='enter'" class="border border-success p-1 rounded-circle border-3"
height="60" width="60" v-bind:alt="person.name" v-bind:src="person.image" />
<img v-else class="border border-danger p-1 rounded-circle border-3" height="60" width="60"
v-bind:alt="person.name" v-bind:src="person.image" />
</div>
</div>
</div>
</div>
</div>
</body>
<!-- <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script defer src="face-api.min.js"></script>
<script defer src="main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="components/newRegister.js"></script>
<script src="components/markAttendance.js"></script>
<script src="components/videoComponent.js"></script>
<script src="components/registeredPersons.js"></script>
<script>
var trainModels = () => { TrainModels() };
const app = new Vue({
el: '#app',
data: {
persons: [],
},
created() {
fetch('https://my-json-server.typicode.com/anandmt/jsondb/users')
.then(response => response.json())
.then(json => {
this.persons = json
})
},
})
</script>