-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·77 lines (69 loc) · 2.77 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>fly vs human</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<!-- Copyright 2023 The MediaPipe Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<script src="https://unpkg.com/roughjs@latest/bundled/rough.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/p5.min.js"></script>
<section id="demos" class="invisible">
<div id="liveView" class="videoView">
<button id="webcamButton" class="mdc-button mdc-button--raised">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__label">ENABLE WEBCAM</span>
</button>
<div id="container">
<div class="score_div">
<h4>🪰</h4>
<h2 id="fly_lives" class="lives_container">3</h2>
<h5 id="fly_status" class="status_container">STATUS OK</h5>
</div>
<div id="canvasContainer" style="position: relative;">
<video id="webcam" autoplay playsinline></video>
<canvas class="output_canvas" id="output_canvas" width="960" height="720" style="position: absolute; left: 0px; top: 0px;"></canvas>
<p id='gesture_output' class="output">
</div>
<div class="score_div">
<h4>🖐</h4>
<h2 id="human_lives" class="lives_container">3</h2>
<h5 id="human_status" class="status_container">STATUS OK</h5>
</div>
<h3 id="result">
draw
</h3>
</div>
<div class="full-width">
<h2>Time: <span id="timer_val">90</span></h2>
<button id="restartButton">
Restart
</button>
</div>
<!-- <h4>score: <span id="score_val"></span></h4> -->
</div>
</section>
<!-- partial -->
<script src="./lib/perlin.js"></script>
<script src="./js/global.js"></script>
<script src="./js/Path.js"></script>
<script src="./js/Candy.js"></script>
<script src="./js/Meter.js"></script>
<script src="./js/Fly.js"></script>
<script src="./js/Catchmark.js"></script>
<script type="module" src="./js/script.js"></script>
</body>
</html>