-
Notifications
You must be signed in to change notification settings - Fork 1
/
puzzle.html
193 lines (174 loc) · 8.22 KB
/
puzzle.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!--Website theme based on Derek Reimer's MakeyMakeyAccessyAccessy, so these pages can be accessible and easily merged-->
<!DOCTYPE html>
<html lang="en">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Bootstrap -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="flocking/flocking-all.js"></script>
<script src="myStuffA.js"></script>
<script src="myStuffB.js"></script>
<script src="myStuffC.js"></script>
<script src="myStuffD.js"></script>
<script src="myStuffF.js"></script>
<script src="myStuffG.js"></script>
<script src="myStuffH.js"></script>
<script src="myStuffI.js"></script>
<script src="myStuffJ.js"></script>
<script src="myStuffK.js"></script>
<script src="myStuffM.js"></script>
<script src="myStuffN.js"></script>
<script src="myStuffS.js"></script>
<script src="myStuffV.js"></script>
<script src="myStuffX.js"></script>
<script src="myStuffZ.js"></script>
</head>
<body>
<div class="container">
<nav>
<ul class="nav nav-pills nav-justified">
<li role="presentation" class="active"><a href="/teamgadgeteers/index.html">Home</a></li>
<li role="presentation" class="active"><a href="/teamgadgeteers/puzzle.html">Puzzle</a></li>
<li role="presentation" class="active"><a href="/teamgadgeteers/storyboard.html">Story Board</a></li>
</ul>
</nav>
<div tabindex="0" role="main" id="mainContents" class="jumbotron">
<div id="puzzle">
<h1 class="focused" tabindex="-1"> Puzzle Challenge</h1>
<body>
<p> <b>How to make the puzzle give correct feedback: </b></p>
<p> How to make the puzzle give correct feedback: </p>
<p> 1) Take the puzzle piece Z and place it in upper left corner. If you have placed it correctly you should be able to hear the letter Z.</p>
<p> 2) Take the puzzle piece X and place it to the right of Z. If you have placed it correctly you should be able to hear the letter X. </p>
<p> 3) Take the puzzle piece C and place it to the right of X. If you have placed it correctly you should be able to hear the letter C. </p>
<p> 4) Take the puzzle piece V and place it to the right of C. If you have placed it correctly you should be able to hear the letter V. </p>
<p> You are done with the first row. Now let us move on to the next row. </p>
<p> 5) Take the puzzle piece H and place it in below Z which is on the left of the board. If you have placed it correctly you should be able to hear the letter H. </p>
<p> 6) Take the puzzle piece K and place it to the right of H. If you have placed it correctly you should be able to hear the letter K. </p>
<p> 7) Take the puzzle piece I and place it to the right of K. If you have placed it correctly you should be able to hear the letter I. </p>
<p> 8) Take the puzzle piece B and place it to the right of I. If you have placed it correctly you should be able to hear the letter B.</p>
<p> You are done with the second row. Now let us move on to the next row. </p>
<p> 9) Take the puzzle piece A and place it in below H which is on the left of the board. If you have placed it correctly you should be able to hear the letter A. </p>
<p> 10) Take the puzzle piece M and place it to the right of A. If you have placed it correctly you should be able to hear the letter M. </p>
<p> 11) Take the puzzle piece J and place it to the right of M. If you have placed it correctly you should be able to hear the letter J. </p>
<p> 12) Take the puzzle piece N and place it to the right of J. If you have placed it correctly you should be able to hear the letter N. </p>
<p>You are done with the third row. Now let us move on to the last row. </p>
<p> 13) Take the puzzle piece S and place it in below A which is on the left of the board. If you have placed it correctly you should be able to hear the letter S.</p>
<p> 14) Take the puzzle piece D and place it to the right of S. If you have placed it correctly you should be able to hear the letter D. </p>
<p> 15) Take the puzzle piece F and place it to the right of D. If you have placed it correctly you should be able to hear the letter F. </p>
<p> 16) Take the puzzle piece G and place it to the right of F. If you have placed it correctly you should be able to hear the letter G.
<p> Awesome you have completed the puzzle. Good job.</p>
</body>
<!-- Enter your code here -->
</div>
</div>
</div>
<!-- All JS -->
<script>
window.addEventListener("keydown", checkKeyPressed, false);
function checkKeyPressed(e) {
if (e.keyCode == "90") {//Z
myStuffZ.play();
setTimeout(function() { // will call the end function after 1 second
myStuffZ.end();
}, 1000000);
}
else if (e.keyCode == "72") {//H
myStuffH.play();
setTimeout(function() { // will call the end function after 1 second
myStuffH.end();
}, 1000000);
}
else if (e.keyCode == "65") {//A
myStuffA.play();
setTimeout(function() { // will call the end function after 1 second
myStuffA.end();
}, 1000000);
}
else if (e.keyCode == "83") {//S
myStuffS.play();
setTimeout(function() { // will call the end function after 1 second
myStuffS.end();
}, 1000000);
}
else if (e.keyCode == "86") {//V
myStuffV.play();
setTimeout(function() { // will call the end function after 1 second
myStuffV.end();
}, 1000000);
}
else if (e.keyCode == "66") {//B
myStuffB.play();
setTimeout(function() { // will call the end function after 1 second
myStuffB.end();
}, 1000000);
}
else if (e.keyCode == "78") {//N
myStuffN.play();
setTimeout(function() { // will call the end function after 1 second
myStuffN.end();
}, 1000000);
}
else if (e.keyCode == "71") {//G
myStuffG.play();
setTimeout(function() { // will call the end function after 1 second
myStuffG.end();
}, 1000000);
}
else if (e.keyCode == "88") {//X
myStuffX.play();
setTimeout(function() { // will call the end function after 1 second
myStuffX.end();
}, 1000000);
}
else if (e.keyCode == "67") {//C
myStuffC.play();
setTimeout(function() { // will call the end function after 1 second
myStuffC.end();
}, 1000000);
}
else if (e.keyCode == "68") {//D
myStuffD.play();
setTimeout(function() { // will call the end function after 1 second
myStuffD.end();
}, 1000000);
}
else if (e.keyCode == "70") {//F
myStuffF.play();
setTimeout(function() { // will call the end function after 1 second
myStuffF.end();
}, 1000000);
}
else if (e.keyCode == "75") {//K
myStuffK.play();
setTimeout(function() { // will call the end function after 1 second
myStuffK.end();
}, 1000000);
}
else if (e.keyCode == "73") {//I
myStuffI.play();
setTimeout(function() { // will call the end function after 1 second
myStuffI.end();
}, 1000000);
}
else if (e.keyCode == "74") {//J
myStuffJ.play();
setTimeout(function() { // will call the end function after 1 second
myStuffJ.end();
}, 1000000);
}
else if (e.keyCode == "77") {//M
myStuffM.play();
setTimeout(function() { // will call the end function after 1 second
myStuffM.end();
}, 1000000);
}
}
</script>
</body>
</html>