-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (83 loc) · 3.32 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<html>
<head>
<meta charset="UTF-8">
<title>KNN Classification on Webcam Images with mobileNet. Built with p5.js</title>
<link rel="stylesheet" type="text/css" href="https://gitcdn.link/repo/RebeccaZhou666/Week2HW-Trans-Learning/master/StyleSheet.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" type="text/javascript"></script>
<script type="text/javascript"> /* hide instrcution */
$(document).ready(
function(){
$('#intro').delay(4000).hide(2);
});
</script>
<script type="text/javascript">
$(function() {
$('.startGame').on('click', function() {
window.scrollTo({top: 800, behavior: "smooth"})
});
});
</script>
<style></style>
</head>
<body>
<div class="styleTitle" id="frontTitle">
<h2>Crazy Flappy Birds</h2>
<br />
<div id = "intro" class = "vanish">
<p> Define your own way to control flappy bird UP/DOWN. </p>
<p> Keep consistant gestures when adding examples to control the bird.</p>
<p> More than 20 examples are welcomed in each category. </p>
</div>
</div>
<div class="container">
<div class="left">
<h2 class="AddH2">Let Bird Up</h2>
<button class="upButtonA" id="addGestureUp">Add Examples</button>
<br /><br />
<button class="upButtonB" id="resetUp">Reset Examples</button>
<br />
<p ><span class="exampleStyle" id="exampleUp">0</span> Up examples</p>
</div>
<!-- <p>| Confidence in Up is: <span id="confidenceUp">0</span></p> -->
<div class="right">
<h2 class="AddH2">Let Bird Down</h2>
<button class="downButtonA" id="addGestureDown">Add Examples</button>
<br /><br />
<button class="downButtonB"id="resetDown">Reset Examples</button>
<br />
<p><span id="exampleDown">0</span> Down examples</p>
<!-- <button id="addPlay">play</button>-->
</div>
<div class="main">
<br /><br /><br /><br /><br />
<p class="hideSlow" id="status">Loading Model...</p>
<div id="videoContainer" class = "main"></div>
<button class="buttonPredict" id="buttonPredict">Control Bird in Your Way!</button>
<button class="startGame" id="startGame">Ready to Play!</button>
<p>
We think you control bird to fly: <span class="predict" id="result">...</span>
</p>
</div>
</div>
<!-- Flappy bird Interface-->
<br /><br /><br /><br /><br /><br /><br />
<canvas id="canvas" width="288" height="512" ></canvas>
<p>
Control bird to <span class="predict" id="result2">...</span>
</p>
<button class="play" id="addPlay">Play</button>
<button class="replay" id="addRestart">Replay</button>
<br /><br /><br /><br /><br /><br /><br />
<p> Mixer: Rebecca Zhou.</p>
<p> -- Special Thanks to -- <br /><span class="predict">Vibert Thio, Someone on Youtube, Yining! of course!</span> </p>
<br /><br /><br />
<a href=""> View My Code</a>
<br /><br /><br />
<script src="sketch.js"></script>
<!--<script src="flappyBird.js"></script>
-->
</body>
</html>