-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
320 lines (319 loc) · 15.8 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
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="src/css/style.css" />
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="icon" href="images/icon.png">
<title>Drop The Code - CS 386</title>
</head>
<body>
<div class="main-container">
<div id="back" class="back-button center-align" onclick="changePage('back')">
<i class="fa fa-arrow-left" aria-hidden="true"></i>
</div>
<div data-page="home" class="page">
<div class="menu-block">
<div class="title"><img src="images/icon.png" width="35" height="35" /> Drop The Code</div>
</div>
<div class="menu-block">
<button onclick="changePage('user-login')">User Login</button>
</div>
<div class="menu-block">
<button onclick="changePage('guest-login')">Guest Login</button>
</div>
<div class="menu-block">
<button onclick="changePage('teacher-login')">Teacher Login</button>
</div>
</div>
<div data-page="user-login" class="page">
<div class="menu-block">
<input placeholder="Username" type="text" id="user-username" />
</div>
<div class="menu-block">
<input placeholder="Password" type="password" id="user-password" />
</div>
<div class="menu-block">
<button onclick="tryLogin('main')">Login</button>
</div>
</div>
<div data-page="guest-login" class="page">
<div class="menu-block">
<div class="title">Logged in as a Guest</div>
</div>
<div class="menu-block">
<button onclick="changePage('main')">Continue</button>
</div>
</div>
<div data-page="teacher-login" class="page">
<div class="menu-block">
<div class="title">Teacher Options</div>
</div>
<div class="menu-block">
<button onclick="changePage('view-students')">View Students</button>
</div>
<div class="menu-block">
<button onclick="changePage('assign-students')">Assign Students</button>
</div>
<div class="menu-block">
<button onclick="changePage('remind-students')">Send Reminders</button>
</div>
</div>
<div data-page="view-students" class="page">
<div class="menu-block">
<div class="title">All Students</div>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Aeron Benjy</button>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Dominik Zuriel</button>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Matthias Iosif</button>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Geghard Alin</button>
</div>
</div>
<div data-page="game" class="page">
<div class="game-container">
</div>
</div>
<div data-page="completed" class="page">
<div class="menu-block">
<div class="title">Completed!</div>
</div>
</div>
<div data-page="not-completed" class="page">
<div class="menu-block">
<div class="title">Not Completed!</div>
</div>
</div>
<div data-page="assign-students" class="page">
<div class="menu-block">
<div class="title">Choose Student</div>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Aeron Benjy</button>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Dominik Zuriel</button>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Matthias Iosif</button>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Geghard Alin</button>
</div>
</div>
<div data-page="main" class="page">
<div class="menu-block">
<div class="title"><img src="images/icon.png" width="35" height="35" /> Drop The Code</div>
</div>
<div class="menu-block">
<button onclick="changePage('levels')">Play Game</button>
</div>
<div class="menu-block">
<button onclick="changePage('instructions')">Instructions</button>
</div>
<hr>
<div class="menu-block">
<button onclick="changePage('settings')">Settings</button>
</div>
<hr>
<div class="menu-block">
<button onclick="changePage('home')">Logout</button>
</div>
</div>
<div data-page="instructions" class="page">
<div class="menu-block">
<div class="title">Instructions</div>
</div>
<hr>
<div class="menu-block">
<div class="instruction"><img src="images/moveinstruction.png" /><div><p>Help robot friend recharge his battery</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/draginstruction.png" /><div><p>Drag and drop instructions onto his instruction track and click to remove the instruction from the track</p></div></div>
</div>
<hr>
<div class="menu-block">
<div class="instruction"><img src="images/left.png" /><div><p><b>Move</b> the robot <b>left</b></p></p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/right.png" /><div><p><b>Move</b> the robot <b>right</b></p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/up.png" /><div><p><b>Move</b> the robot <b>up</b></p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/down.png" /><div><p><b>Move</b> the robot <b>down</b></p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/loop2.png" /><div><p><b>Loop</b> back <b>2 instructions</b> on the same track</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/loop3.png" /><div><p><b>Loop</b> back <b>3 instructions</b> on the same track</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/loop4.png" /><div><p><b>Loop</b> back <b>4 instructions</b> on the same track</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/trackup.png" /><div><p><b>Switch</b> to the <b>track above</b> the current track</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/trackdown.png" /><div><p><b>Switch</b> to the <b>track below</b> the current track</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/trackswitch.png" /><div><p><b>Cycle down</b> a <b>track</b>, wrapping around the last</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/testwallleft.png" /><div><p><b>If</b> there is a <b>wall</b> to the <b>left of the robot</b>, execute the next instruction, otherwise, skip it</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/testwallleft.png" /><div><p><b>If</b> there is a <b>wall</b> to the <b>right of the robot</b>, execute the next instruction, otherwise, skip it</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/testwallup.png" /><div><p><b>If</b> there is a <b>wall above the robot</b>, execute the next instruction, otherwise, skip it</p></div></div>
</div>
<div class="menu-block">
<div class="instruction"><img src="images/testwalldown.png" /><div><p><b>If</b> there is a <b>wall below the robot</b>, execute the next instruction, otherwise, skip it</p></div></div>
</div>
</div>
<div data-page="settings" class="page">
<div class="menu-block">
<div class="title">Choose a Setting</div>
</div>
<div class="menu-block">
<button onclick="changePage('difficulty')">Change Difficulty</button>
</div>
</div>
<div data-page="difficulty" class="page">
<div class="menu-block">
<div class="title">Choose a Difficulty</div>
</div>
<div class="menu-block">
<button onclick="changePage('chosen')">Beginner</button>
</div>
<div class="menu-block">
<button onclick="changePage('chosen')">Intermediate</button>
</div>
<div class="menu-block">
<button onclick="changePage('chosen')">Expert</button>
</div>
</div>
<div id="levelmenu" data-page="levels" class="page">
<div class="menu-block">
<div class="title">Choose A Level</div>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'basics')">Basics</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'basicsII')">Basics II</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'spikes')">Spikes!</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'spikesII')">Spikes II</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'multiplegoals')">Several Goals</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'multiplerobots')">Everything's Better With Robots</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'spikesIII')">Spikes III</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'loops')">A Bit Loopy</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'loopsII')">More Loops</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'tracks')">Multiple Tracks?</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'conditionsI')">Conditioning</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'conditionsII')">But What If?</button>
</div>
<div class="menu-block">
<button onclick="changePage('game', 'TestI')">Mondo-Hard Level I</button>
</div>
</div>
<div data-page="chosen" class="page">
<div class="menu-block">
<div class="title">Difficulty Level Chosen!</div>
</div>
<div class="menu-block">
<button onclick="changePage('back')">Return</button>
</div>
</div>
<div data-page="nothing" class="page">
<div class="menu-block">
<div class="title">Nothing</div>
</div>
</div>
<div data-page="remind-students" class="page">
<div class="menu-block">
<div class="title">Which Student?</div>
</div>
<div class="menu-block">
<button onclick="changePage('reminder-format')">Aeron Benjy</button>
</div>
<div class="menu-block">
<button onclick="changePage('reminder-format')">Dominik Zuriel</button>
</div>
<div class="menu-block">
<button onclick="changePage('reminder-format')">Matthias Iosif</button>
</div>
<div class="menu-block">
<button onclick="changePage('reminder-format')">Geghard Alin</button>
</div>
</div>
<div data-page="reminder-format" class="page">
<div class="menu-block">
<div class="title">Choose Format</div>
</div>
<div class="menu-block">
<button onclick="changePage('emailpage')">Send E-mail</button>
</div>
<div class="menu-block">
<button onclick="changePage('pushnotification')">Send Push Notification</button>
</div>
</div>
<div data-page="emailpage" class="page">
<div class="menu-block">
<input placeholder="Student E-mail" />
</div>
<div class="menu-block">
<button onclick="changePage('email-sent-page')">Send</button>
</div>
</div>
<div data-page="email-sent-page" class="page">
<div class="menu-block">
<div class="title">E-mail Sent!</div>
</div>
</div>
<div data-page="pushnotification" class="page">
<div class="menu-block">
<div class="title">Student Notified</div>
</div>
</div>
</div>
<script type="text/javascript" src="libs/jquery-3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="src/js/DragDropTouch.js"></script>
<script type="text/javascript" src="src/js/classes.js"></script>
<script type="text/javascript" src="src/js/cookies.js"></script>
<script type="text/javascript" src="src/js/menus.js"></script>
<script type="text/javascript" src="src/js/main.js"></script>
<script type="text/javascript" src="src/js/game.js"></script>
</body>
</html>