-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
62 lines (58 loc) · 1.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<script defer type="module" src="main.js"></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<main>
<div id="game_overlay">
<div id="start_button_wrapper">
<button id="start_game_button">Start Game</button>
<div class="space">
<span style="--i: 31" class="star"></span>
<span style="--i: 12" class="star"></span>
<span style="--i: 57" class="star"></span>
<span style="--i: 93" class="star"></span>
<span style="--i: 23" class="star"></span>
<span style="--i: 70" class="star"></span>
<span style="--i: 6" class="star"></span>
</div>
</div>
<div id="output_container">
<video id="webcam" autoplay playsinline></video>
<canvas class="output_canvas" id="output_canvas"></canvas>
</div>
<div id="score_container">
<p>Score: <span id="score_count">0</span></p>
</div>
<footer>
<section id="instructions">
Wave your hand infront of your webcam to play!
</section>
<section id="debug_toggle_container">
<label for="debugMode">Debug mode</label>
<input type="checkbox" id="debugMode" name="debugMode" />
<div id="info-box">
<button>Info</button>
<div>
<p>Video from your webcam will not be stored✌🏽</p>
<a
target="_blank"
href="https://github.com/Saintpreston/web-handtracking"
>
Github
</a>
</div>
</div>
</section>
</footer>
</div>
<canvas id="game_canvas"></canvas>
</main>
</body>
</html>