-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·60 lines (49 loc) · 2.08 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PINGPONG TEST</title>
<link rel="stylesheet" type="text/css" href="pingpong.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<meta charset="utf-8">
<link rel="stylesheet" href="assets/demo.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="./build/tracking-min.js"></script>
<script src="./node_modules/dat.gui/build/dat.gui.min.js"></script>
<script src="./../dat-gui/build/dat.gui.min.js"></script>
<script src="assets/stats.min.js"></script>
<script src="assets/color_camera_gui.js"></script>
</head>
<body>
<p id="winner"></p> <p style="background-color:#333;color:white" id="status"></p>
<div style="float:left"><p>Score Board</p><p id="scoreA"></p><p id="scoreB"></p>
<div class="demo-container">
<video id="video" is="video-color-tracking" target="magenta blue yellow" width="600" height="450" preload autoplay loop muted controls></video>
<canvas id="canvas" width="600" height="450"></canvas>
</div>
<audio id="bounceLeft" autobuffer>
<source src="./sounds/ping.wav" type="audio/x-wav" />
<source src="./sounds/ping.ogg" type="audio/ogg" />
</audio>
<audio id="bounceRight" autobuffer>
<source src="./sounds/pong.wav" type="audio/x-wav" />
<source src="./sounds/pong.ogg" type="audio/ogg" />
</audio>
<audio id="bounceWall" autobuffer>
<source src="./sounds/bom.wav" type="audio/x-wav" />
<source src="./sounds/bom.ogg" type="audio/ogg" />
</audio>
</div>
<div id="game">
<div id="paddleA" class="paddle"></div>
<div id="paddleB" class="paddle"></div>
<div id="ball"></div>
</div>
<canvas style="display:none" id="canvas"></canvas>
<script src="pingpong.js" type="text/javascript"></script>
<script>
</script>
</body>
</html>