-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo.html
68 lines (53 loc) · 2.26 KB
/
video.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Don't touch your face</title>
<meta name="description" content="Don't touch your face">
<meta name="author" content="Atharva Patil">
<link rel="shortcut icon" href="./assets/favico.png">
<!-- <link rel="shortcut icon" href="./img/favicon.png"> -->
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/addons/p5.sound.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/[email protected]/dist/teachablemachine-pose.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./src/video.css">
</head>
<body>
<div class="top-intro" id="top-intro">
<div class="top-text">
<h1>Don’t touch your face!</h1>
<p>A tool reminds you when you are touching your
face. This webpage gives you a peek behind the curtain on how the classification works.</p>
</div>
<div class="top-animation">
<lottie-player src="./assets/face-touch.json" background="transparent" speed="0.4" style="width: 420px; height: 420px;" loop autoplay>
</lottie-player>
</div>
</div>
<div class="cta-wrapper" id="cta-wrapper">
<button type="button" name="button" onclick="init()">Start alerting me!</button>
</div>
<div class="loading-wrapper" id="loading-wrapper">
<div class="loading">
<div></div>
<div></div>
<div></div><br>
<p style="margin-left: 8px;">Preparing the machine.</p>
</div>
</div>
<div class="width-wrapper">
<div class="status-wrapper" id="status-wrapper">
<div><canvas id="canvas"></canvas></div>
<div id="label-container"></div>
<div class="results-wrapper">
<p><span id="result-good">I see you are not touching your face</span></p><br>
<p><span id="result-bad">I see you are touching your face</span></p>
</div>
</div>
</div>
<script src="./src/video.js"></script>
</body>
</html>