forked from silvia0619/2021HackHealth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstretches.html
60 lines (48 loc) · 1.97 KB
/
stretches.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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>STRETCH TIME</title>
<link rel="stylesheet" href="./style.css">
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
$( window ).on( "load", function() {
init();
});
</script>
</head>
<body>
<!-- popup -->
<div class="popup" id="popup1">
<p>Welcome!</p>
<p>Make sure to fit your full upper body in the webcam.
<br />The timer will begin when you <b>EXACTLY</b> follow the given pose.</p>
<a href="#" onclick="okButton()">Ok!</a>
</div>
<!-- count down -->
<div class="poseImg">
<div class="timer" id="timerId"> </div>
<div>
<img id="poseImg" src="images/0-1.jpg" width="400" height="400"/>
</div>
</div>
<!-- current pose image & self camera -->
<div><canvas class="livePose" id="canvas"></canvas></div>
<div id="label-container"></div>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.3.1/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/pose@0.8/dist/teachablemachine-pose.min.js"></script>
<a href="#" onclick="next()"><p><i class="arrow right"></i></p></a>
<!-- pose images on the bottom -->
<div class='alignPoseImg'>
<div>
<img id="pose0img" src="images/0-1.jpg" width="7%" height="7%"/>
<img id="pose1img" src="images/1.jpg" width="7%" height="7%"/>
<img id="pose2img" src="images/2-1.jpg" width="7%" height="7%"/>
<img id="pose3img" src="images/3.jpg" width="7%" height="7%"/>
<img id="pose4img" src="images/4-1.jpg" width="7%" height="7%"/>
<img id="pose5img" src="images/5.jpg" width="7%" height="7%"/>
</div>
</div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.16/d3.min.js'></script><script src="script.js"></script>
</body>
</html>