-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (75 loc) · 1.74 KB
/
index.html
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<title>BodyPix - With a Webcam Demo</title>
<style>
body {
margin: 0;
width: 100%;
}
.sk-spinner-pulse {
width: 20px;
height: 20px;
margin: auto 10px;
float: left;
background-color: #333;
border-radius: 100%;
-webkit-animation: sk-pulseScaleOut 1s infinite ease-in-out;
animation: sk-pulseScaleOut 1s infinite ease-in-out;
}
#output{
background-image: url("bg.jpg");
background-repeat: no-repeat;
}
@-webkit-keyframes sk-pulseScaleOut {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
opacity: 0;
}
}
@keyframes sk-pulseScaleOut {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
opacity: 0;
}
}
.spinner-text {
float: left;
}
/* mobile */
@media only screen and (max-width: 850px) {
#main {
width: 100%;
height: 100%;
overflow: hidden;
}
}
</style>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
</head>
<body>
<div id="loading" style='display:flex'>
<div class="spinner-text">
Loading BodyPix model...
</div>
<div class="sk-spinner sk-spinner-pulse"></div>
</div>
<div id="main">
<video id="video" playsinline></video>
<canvas id="output">
</div>
<script src="index.js"></script>
</body>
</html>