-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
347 lines (258 loc) · 12.9 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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Joswig, Michael">
<meta name="author" content="Loho, Georg">
<meta name="author" content="Lorenz, Benjamin">
<meta name="author" content="Raber, Rico">
<meta name="author" content="The polymake team">
<title>MatchTheNet</title>
<link rel="stylesheet" href="styles/mainStyle.css">
<link rel="stylesheet" href="styles/settings.css">
<link rel="stylesheet" href="styles/animate.css">
<script src="js/three.polymake.js"></script>
<script src="js/translation.js"></script>
<script src="js/interact.js"></script>
</head>
<body>
<!-- ::::::::::::::::::::::: STARTSCREEN ::::::::::::::::::::::::::::: -->
<div id=startScreen>
<img id=startImgFolded1 class='startScreenImg notDraggable' src='img/truncoct_fold3.svg'>
<img id=startImgFolded2 class='startScreenImg notDraggable' src='img/truncoct_fold3.svg'>
<img id=startImgNearlyFolded1 class='startScreenImg notDraggable' src='img/truncoct_fold2.svg'>
<img id=startImgNearlyFolded2 class='startScreenImg notDraggable' src='img/truncoct_fold2.svg'>
<img id=startImgHalfFolded1 class='startScreenImg notDraggable' src='img/truncoct_fold1.svg'>
<img id=startImgHalfFolded2 class='startScreenImg notDraggable' src='img/truncoct_fold1.svg'>
<img id=startImgNet1 class='startScreenImg notDraggable' src='img/truncoct_net.svg'>
<img id=startImgNet2 class='startScreenImg notDraggable' src='img/truncoct_net.svg'>
<div id='startLogo' class='logo notDraggable'><span class=Match>Match</span><span class=The>The</span><span class=Net>Net</span></div>
<p id=intro>
</p>
<div id='startSelectLanguage'>
<div id='startSelectLanguageText'>Please select a language</div>
</div>
<div id='startDifficultyDiv'>
<div id='difficultyText'>Level of difficulty</div>
<span id='startDifficultyTextEasy'></span>
<span id='startDifficulty1' alt=1 class='startDifficulty difficulty'>‌</span>
<span id='startDifficulty2' alt=2 class='startDifficulty difficulty'>‌</span>
<span id='startDifficulty3' alt=3 class='startDifficulty difficulty'>‌</span>
<span id='startDifficulty4' alt=4 class='startDifficulty difficulty'>‌</span>
<span id='startDifficulty5' alt=5 class='startDifficulty difficulty'>‌</span>
<span id='startDifficulty6' alt=6 class='startDifficulty difficulty'>‌</span>
<span id='startDifficulty7' alt=7 class='startDifficulty difficulty'>‌</span>
<span id='startDifficultyTextDifficult'></span>
</div>
<div id='startNumOfPolysDiv'>
<div id='startNumOfPolysText'>Number of polytopes</div>
<span id='numOfPolys2' alt=2 class='numOfPolys'>2</span>
<span id='numOfPolys3' alt=3 class='numOfPolys'>3</span>
<span id='numOfPolys4' alt=4 class='numOfPolys'>4</span>
<span id='numOfPolys5' alt=5 class='numOfPolys'>5</span>
</div>
<div class='buttonType1 bordered' id='more'></div>
<div class='buttonType1 bordered' id='startGame'></div>
<footer id=copyright>© 2016 Joswig, Loho, Lorenz, Raber & the polymake team; license GPLv3 / CC BY-NC-SA 3.0</footer>
<div id=moreScreen style='display: none;' class='animated bounceIn'>
© 2016 <a href="http://www.math.tu-berlin.de/~joswig/" target="_blank">Michael Joswig</a>, Georg Loho, Benjamin Lorenz, Rico Raber & the <a href="http://www.polymake.org/doku.php/team" target="_blank">polymake team</a><br>
license source: <a href="http://www.gnu.org/licenses/gpl-3.0.txt" title="GPLv3" target="_blank">GPLv3</a>; data and images: <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="Creative Commons BY-NC-SA 3.0" target="_blank">CC BY-NC-SA 3.0</a> <br><br>
<div>Stopwatch icon <img src="img/watch.svg" style="border: 0px solid; height: 1.0rem"> made by <a href="http://www.flaticon.com/authors/dario-ferrando" title="Dario Ferrando">Dario Ferrando</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a><br> license <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC BY 3.0</a></div><br>
<div>Checkered icon <img src="img/checkered.svg" style="border: 0px solid; height: 1.0rem"> and Drag Flick icon <img src="img/drag.svg" style="border: 0px solid; height: 1.0rem"> made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a><br> license <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC BY 3.0</a></div><br/>
<div>JavaScript 3D library <a href="http://threejs.org" target="_blank">three.js</a> made by three.js authors<br/><a href="https://github.com/mrdoob/three.js/blob/master/LICENSE" target="_blank">MIT license </a></div><br/>
<div>JavaScript drag and drop library <a href="http://interactjs.io"
target="_blank">interact.js</a>
made by Taye Adeyemi
<[email protected]><br/><a href="https://github.com/taye/interact.js/blob/master/LICENSE"
target="_blank">MIT license</a></div></br>
<div><a href="https://github.com/polymake/matchthenet"
title="github">Download from github</a></div>
<div class='buttonType1 bordered' id='closeMoreButton'></div>
</div>
</div><!-- end of start screen -->
<!-- :::::::::::::::::::::::: GAME SCREEN ::::::::::::::::::::::::::::::::::::::::::::: -->
<div id='game' style='display:none'>
<header>
<div id='logo' class='logo notDraggable'><span class=Match>Match</span><span class=The>The</span><span class=Net>Net</span></div>
<div id='points'>
<div id='scoreWord'></div>
<div class='bordered' id='numPoints'>
<span id=pointsNumber>0</span>
<span id='addPointsDiv' style='display:none'></span>
</div>
</div>
<div id='bestScore'>
<div id='bestScoreWord'></div>
<div class='bordered' id='numBestScore'></div>
</div>
<div id='roundDiv'><img id='checkered' class='notDraggable' src=img/checkered.svg><div class='bordered' id='roundNumber'></div></div>
<div id='timeDiv'><img id='watch' class='watch notDraggable' src='img/watch.svg'><div class='bordered' id='timeNumber'>0</div></div>
</header>
<!-- ___________________ANIMATIONS________________________ -->
<table id=gameTable>
<tr id=polytopesRow class='gameTableRow'>
<td class='polytope animation' id='poly0'></td>
<td>
</td>
<td class='polytope animation' id='poly1'></td>
<td>
</td>
<td class='polytope animation' id='poly2'></td>
<td>
</td>
<td class='polytope animation' id='poly3' style='display:none'></td>
<td>
</td>
<td class='polytope animation' id='poly4' style='display:none'></td>
</tr>
<tr id=equalsRow class='gameTableRow'>
<td>
<img class='equal notDraggable' src='img/equal.svg'>
<span id='addPoints0' class='addPoints'></span>
</td>
<td>
</td>
<td>
<img class='equal notDraggable' src='img/equal.svg'>
<span id='addPoints1' class='addPoints'></span>
</td>
<td>
</td>
<td>
<img class='equal notDraggable' src='img/equal.svg'>
<span id='addPoints2' class='addPoints'></span>
</td>
<td>
</td>
<td>
<img class='equal notDraggable' src='img/equal.svg' style='display:none'>
<span id='addPoints3' class='addPoints'></span>
</td>
<td>
</td>
<td>
<img class='equal notDraggable' src='img/equal.svg' style='display:none'>
<span id='addPoints4' class='addPoints'></span>
</td>
</tr>
<tr id=netsRow class='gameTableRow'>
<td>
<div class='animation container dropzone' id='netbox0'><img class='net draggable drag-drop notDraggable' id='net0'></img></div>
<div id='dragHint'>
<div id='dragText'></div><br>
<img id='dragIcon' src='img/drag.svg' class='notDraggable'>
</div>
<div id='folding0' class='animation folding' style='display:none'></div>
</td>
<td>
<img name=0 class='arrow notDraggable' src='img/doublearrow.svg'>
</td>
<td>
<div class='animation container dropzone' id='netbox1'><img class='net draggable drag-drop notDraggable' id='net1'></img></div>
<div id='folding1' class='animation folding' style='display:none'></div>
</td>
<td>
<img name=1 class='arrow notDraggable' src='img/doublearrow.svg'>
</td>
<td>
<div class='animation container dropzone' id='netbox2'><img class='net draggable drag-drop notDraggable' id='net2'></img></div>
<div id='folding2' class='animation folding' style='display:none'></div>
</td>
<td>
<img name=2 class='arrow notDraggable' src='img/doublearrow.svg' style='display:none'>
</td>
<td>
<div class='animation container dropzone' id='netbox3'><img class='net draggable drag-drop notDraggable' id='net3'></img></div>
<div id='folding3' class='animation folding' style='display:none'></div>
</td>
<td>
<img name=3 class='arrow notDraggable' src='img/doublearrow.svg' style='display:none'>
</td>
<td>
<div class='animation container dropzone' id='netbox4'><img class='net draggable drag-drop notDraggable' id='net4'></img></div>
<div id='folding4' class='animation folding' style='display:none'></div>
</td>
</tr>
</table>
<!-- ___________________ END OF ANIMATIONS________________________ -->
<footer id='buttons'>
<div class='buttonType1 bordered' id='reset'>
</div>
<div id='restartHint' style='display:none'>Test test test test test</div>
<div id='difficultyDiv'>
<span id='difficultyTextEasy'></span>
<span id='gameDifficulty1' alt=1 class='gameDifficulty difficulty'>‌</span>
<span id='gameDifficulty2' alt=2 class='gameDifficulty difficulty'>‌</span>
<span id='gameDifficulty3' alt=3 class='gameDifficulty difficulty'>‌</span>
<span id='gameDifficulty4' alt=4 class='gameDifficulty difficulty'>‌</span>
<span id='gameDifficulty5' alt=5 class='gameDifficulty difficulty'>‌</span>
<span id='gameDifficulty6' alt=6 class='gameDifficulty difficulty'>‌</span>
<span id='gameDifficulty7' alt=7 class='gameDifficulty difficulty'>‌</span>
<span id='difficultyTextDifficult'></span>
</div>
<div class='buttonType1 bordered' id='ok'>
</div>
<div class='buttonType1 bordered' id='solution' style='display:none'>
</div>
<div class='buttonType1 bordered' id='next' style='display:none'>
</div>
</footer>
</div> <!-- end of 'game' div -->
<img id='settingsButton' class='notDraggable' src="img/settings.svg">
<div id=settingsScreen style='display:none' class='animated bounceIn'>
<strong id=controlsText>Controls</strong><br>
<table>
<tr>
<td id=rotationSpeedText></td>
<td><input id=controlsRotationSpeed type='range' min=1 max=10 value=5 step=0.5></td>
</tr>
<tr>
<td id=zoomEnabledText></td>
<td><input id=controlsZoomEnabled type='checkbox' checked></td>
</tr>
<tr>
<td id=zoomSpeedText></td>
<td><input id=controlsZoomSpeed type='range' min=0 max=6 value=1 step=0.5></td>
</tr>
<tr style='display:none'>
<td>Controls pan enabled:</td>
<td><input id=controlsPanEnabled type='checkbox'></td>
</tr>
</table>
<div class='bordered' id='closeSettingsButton'></div>
</div>
<div id='gameOver' class='animated bounceIn' style='display: none;'>
<p id='congrats'>Congratulations!</p>
<p id='completedGame'>You have successfully completed the game.</p>
<table id='gameOverTable'>
<tr class='row2'>
<td id="youText" class='endpointsWords col1'></td>
<td id='numOfYourPoints' class='endpoints bordered col2'>0</td>
<td id="highscoreText" class='endpointsWords col3'></td>
<td id='numOfHighscore' class='endpoints bordered col4'>0</td>
</tr>
<tr class='row3'>
<td><img class="watch col1 notDraggable endWatch" src='img/watch.svg'></td>
<td id='numOfYourTime' class='endpoints bordered col2'>0</td>
<td><img class="watch col3 notDraggable endWatch" src='img/watch.svg'></td>
<td id='numOfHighscoreTime' class='endpoints bordered col4'>0</td>
</tr>
</table>
<div class='buttonType1 bordered' id='newGame'></div>
</div>
<div id='polyScripts'></div>
<div id='foldingScripts'></div>
<script src="js/variables.js"></script>
<script src="js/design.js"></script>
<script src="js/writeTranslatedText.js"></script>
<script src="js/eventListeners.js"></script>
<script src="js/basicFunctions.js"></script>
<script src="js/getTuples.js"></script>
<script src="data/datatuples.js"></script>
<script src="js/mainScript.js"></script>
<script src="js/dragndrop2.js"></script>
<script src="js/folding.js"></script>
<script src="js/startGame.js"></script>
</body>
</html>