-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
442 lines (440 loc) · 26.9 KB
/
index.html
File metadata and controls
442 lines (440 loc) · 26.9 KB
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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<!DOCTYPE html>
<!--
* grrd's Memo
* Copyright (c) 2020 Gerard Tyedmers, grrd@gmx.net
* Licensed under the MPL 2.0 License
-->
<html lang="en">
<head>
<title>grrd's Memo</title>
<link rel="icon" href="images/favicon.ico">
<link rel="manifest" href="manifest/appmanifest.json">
<link rel="apple-touch-icon" href="images/icon_ios.png">
<link rel="apple-touch-startup-image" href="images/icon_512.png">
<meta name="description" content="grrd's Memo is a HTML5 Game that works offline"/>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#444"/>
<meta name="apple-mobile-web-app-title" content="Memo">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black" >
<link rel="stylesheet" href="styles/app.css">
</head>
<body>
<audio id="woosh_sound" preload="auto">
<source src="sounds/woosh.mp3" type="audio/mp3"/>
<source src="sounds/woosh.mp3" type="audio/mpeg"/>
<source src="sounds/woosh.ogg" type="audio/ogg"/>
</audio>
<audio id="ding_sound" preload="auto">
<source src="sounds/ding.mp3" type="audio/mp3"/>
<source src="sounds/ding.mp3" type="audio/mpeg"/>
<source src="sounds/ding.ogg" type="audio/ogg"/>
</audio>
<main class="page" id="iTitle">
<fieldset id="iTitleFieldset" class="content">
<header>
<div class="title1">
<svg class="shadow" viewBox="0 0 170 90">
<path class="fil0" d="M32.56 36.08c0,2.92 -1,2.24 -5.51,2.24 4.26,4.27 2.81,16.63 -9.65,16.63 -2,0 -4.66,-0.53 -6.11,-1.71 -2.06,2.16 -2.1,5.81 2.7,5.99 3.03,0.12 9.38,0.17 12.03,0.96 8.99,2.67 8.29,14.1 -1.97,17.14 -6.76,1.99 -22.74,1.15 -19.96,-9.5 0.61,-2.32 2.24,-4.02 4.13,-5.49 -4.85,-2.49 -3.63,-8 -0.33,-11.47 -5.2,-6.25 -1.78,-19.43 12.1,-17.51 0.8,0.13 1.55,0.28 2.24,0.47l9.18 0c1.01,0 1.15,1.26 1.15,2.25l0 0zm-8.7 7.96c0,-7.68 -8.56,-7.86 -11.35,-4.54 -2.63,3.14 -2.58,11.17 4.92,11.17 4.14,0 6.43,-2.75 6.43,-6.63zm2.76 24.02c0,-3.07 -3.04,-4.06 -5.92,-4.15l-7.84 -0.26c-0.65,0.21 -3.57,2.81 -3.57,5.78 0,5.45 11.85,5.41 15.37,2.66 1.34,-1.05 1.96,-2.4 1.96,-4.03l0 0zm30.83 -31.43c0,6.99 -3.61,-3.14 -9.99,5.27 -0.64,0.87 -1.37,1.92 -2.16,3.16 -0.21,0.73 0.29,19.88 -0.13,20.43 -0.55,0.73 -5.46,1.08 -5.46,-0.47l0.1 -30.81c0.41,-0.75 4.96,-1.13 4.96,0.46l0 4.42c2.95,-4.36 6.28,-7.3 11.52,-5.41 1.32,0.47 1.16,1.1 1.16,2.95l0 0zm24.08 0c0,6.99 -3.62,-3.13 -10,5.27 -0.64,0.87 -1.37,1.92 -2.15,3.16 -0.23,0.8 0.3,19.84 -0.14,20.43 -0.55,0.74 -5.46,1.08 -5.46,-0.47l0.11 -30.81c0.45,-0.76 4.95,-1.13 4.95,0.46l0 4.42c2.93,-4.33 6.32,-7.32 11.53,-5.41 1.31,0.47 1.16,1.1 1.16,2.95l0 0zm31.35 28.39c0,1.52 -4.96,1.46 -4.96,0l0 -4.03c-2.95,3.21 -6.3,5.5 -10.61,5.5 -14.88,0 -14.23,-21.67 -9,-28.74 3.36,-4.52 9.93,-5.91 14.61,-3.45 1.47,0.78 2.92,1.92 4.36,3.42l0.12 -18.05c0.42,-0.77 5.48,-1.11 5.48,0.46l0 44.89zm-5.6 -21.36c-2.33,-2.92 -5.21,-5.77 -8.73,-5.77 -9.56,0 -9.81,18.57 -3.87,22.8 3.41,2.43 7.44,0.47 10.12,-2.13 0.78,-0.74 1.61,-1.66 2.48,-2.76l0 -12.14zm20.51 -8.22c0,1.49 -4.28,1.54 -4.31,0 -0.05,-1.83 -1.08,-15.53 -0.62,-16.05 0.71,-0.8 5.82,-1.09 5.66,0.47l-0.73 15.58zm29.69 21.3c0,13.19 -20.19,10.42 -21.31,6.38 -0.1,-0.36 -0.99,-5.31 1.87,-3.5 5.76,3.66 13.92,3.45 13.92,-2.45 0,-6.79 -15.19,-4.2 -15.19,-15.04 0,-11.86 18.26,-9.7 19.04,-5.99 0.19,0.89 0.69,4.77 -1.61,3.31 -4.66,-2.96 -12.11,-2.86 -12.11,2.38 0,6.94 15.39,4.38 15.39,14.91l0 0z"/>
</svg>
</div>
<div class="title2">
<div class="flip-container title2card cardM">
<div class="flipper">
<svg viewBox="0 0 80 85" width="100%" class="front">
<g transform="translate(2,12) rotate(-4)">
<rect width="70" height="70" rx="5" fill="url(#grad)"/>
<g clip-path="url(#clip1)">
<text transform="translate(-10,0) rotate(-45) scale(0.7)" font-size="12" font-family="sans-serif" font-weight="bold" stroke="none">
<tspan x="0" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
<tspan x="-100" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-100" dy="15"></tspan>
<tspan x="-50" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
</text>
</g>
</g>
</svg>
<svg viewBox="0 0 80 85" width="100%" class="back">
<g transform="translate(2,12) rotate(-4)">
<rect width="70" height="70" rx="5" fill="url(#grad)"/>
<text x="6" y="60">M</text>
</g>
</svg>
</div>
</div>
<div class="flip-container title2card cardE">
<div class="flipper">
<svg viewBox="0 0 80 87" width="100%" class="front">
<g transform="translate(5,12) rotate(2)">
<rect width="70" height="70" rx="5" fill="url(#grad)"/>
<g clip-path="url(#clip1)">
<text transform="translate(-10,0) rotate(-45) scale(0.7)" font-size="12" font-family="sans-serif" font-weight="bold" stroke="none">
<tspan x="0" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
<tspan x="-100" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-100" dy="15"></tspan>
<tspan x="-50" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
</text>
</g>
</g>
</svg>
<svg viewBox="0 0 80 87" width="100%" class="back">
<g transform="translate(5,12) rotate(2)">
<rect width="70" height="70" rx="5" fill="url(#grad3)"/>
<text x="10" y="60">E</text>
</g>
</svg>
</div>
</div>
<div class="flip-container title2card cardM2">
<div class="flipper">
<svg viewBox="-1 0 80 85" width="100%" class="front">
<g transform="translate(2,10) rotate(-1)">
<rect width="70" height="70" rx="5" fill="url(#grad)"/>
<g clip-path="url(#clip1)">
<text transform="translate(-10,0) rotate(-45) scale(0.7)" font-size="12" font-family="sans-serif" font-weight="bold" stroke="none">
<tspan x="0" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
<tspan x="-100" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-100" dy="15"></tspan>
<tspan x="-50" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
</text>
</g>
</g>
</svg>
<svg viewBox="-1 0 80 85" width="100%" class="back">
<g transform="translate(2,10) rotate(-1)">
<rect width="70" height="70" rx="5" fill="url(#grad)"/>
<text x="6" y="60">M</text>
</g>
</svg>
</div>
</div>
<div class="flip-container title2card cardO">
<div class="flipper">
<svg viewBox="0 0 80 85" width="100%" class="front">
<g transform="translate(6,5) rotate(3)">
<rect width="70" height="70" rx="5" fill="url(#grad)"/>
<g clip-path="url(#clip1)">
<text transform="translate(-10,0) rotate(-45) scale(0.7)" font-size="12" font-family="sans-serif" font-weight="bold" stroke="none">
<tspan x="0" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
<tspan x="-100" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-100" dy="15"></tspan>
<tspan x="-50" dy="15"></tspan>
<tspan x="-80" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
<tspan x="-40" dy="15"></tspan>
</text>
</g>
</g>
</svg>
<svg viewBox="0 0 80 85" width="100%" class="back">
<g transform="translate(6,5) rotate(3)">
<rect width="70" height="70" rx="5" fill="url(#grad2)"/>
<text x="8" y="60">O</text>
</g>
</svg>
</div>
</div>
</div>
<div class="flex-right">
<div class="mini-buttonlist">
<button id="iInfo" class="mini-button">
<img class="mini-img shadow" src="images/info.svg" alt="Info">
</button>
<button id="iSettings" class="mini-button">
<img class="mini-img shadow" src="images/settings.svg" alt="Settings">
</button>
<button id="iFullscreen" class="mini-button">
<img id="img_fullscreen" class="mini-img shadow" src="images/fullscreen.svg" alt="Fullscreen">
</button>
</div>
</div>
</header>
<div class="controlgroup">
<div class="control">
<div id="iTheme" class="control-icon">
<img src="images/photo.svg" class="shadow" alt="Own images">
<img src="images/animals.svg" class="shadow active" alt="Animals">
<img src="images/flowers.svg" class="shadow" alt="Flowers">
<img src="images/fruits.svg" class="shadow" alt="Fruits">
<img src="images/mascha.svg" class="shadow" alt="Mascha">
</div>
<div class="grow1">
<div id="lTheme"></div>
</div>
<div class="grow1">
<div class="mini-buttonlist" >
<button id="iNextTheme" class="mini-button" data-step="-1">
<img class="mini-img shadow" src="images/prev.svg" alt="previous">
</button>
<button id="iPrevTheme" class="mini-button" data-step="1">
<img class="mini-img shadow" src="images/next.svg" alt="next">
</button>
</div>
</div>
</div>
<div class="control">
<div id="iCards" class="control-icon">
<img src="images/cards6.svg" class="shadow" alt="6 Cards">
<img src="images/cards12.svg" class="shadow" alt="12 Cards">
<img src="images/cards24.svg" class="shadow active" alt="24 Cards">
<img src="images/cards32.svg" class="shadow" alt="32 Cards">
<img src="images/cards48.svg" class="shadow" alt="48 Cards">
</div>
<div class="grow1">
<div id="lCards"></div>
</div>
<div class="grow1">
<div class="mini-buttonlist">
<button id="iCardsDown" class="mini-button" data-step="-1">
<img class="mini-img shadow" src="images/prev.svg" alt="minus">
</button>
<button id="iCardsUp" class="mini-button" data-step="1">
<img class="mini-img shadow" src="images/next.svg" alt="plus">
</button>
</div>
</div>
</div>
<div class="control">
<div id="iPlayers" class="control-icon">
<img src="images/player1.svg" class="shadow" alt="1 Player">
<img src="images/player2.svg" class="shadow active" alt="2 Player">
<img src="images/player3.svg" class="shadow" alt="3 Player">
<img src="images/player4.svg" class="shadow" alt="4 Player">
<img src="images/player5.svg" class="shadow" alt="5 Player">
</div>
<div class="grow1">
<div id="lPlayers"></div>
</div>
<div class="grow1">
<div class="mini-buttonlist">
<button id="iPlayersDown" class="mini-button" data-step="-1">
<img class="mini-img shadow" src="images/prev.svg" alt="minus">
</button>
<button id="iPlayersUp" class="mini-button" data-step="1">
<img class="mini-img shadow" src="images/next.svg" alt="plus">
</button>
</div>
</div>
</div>
</div>
<div class="footer">
<button id="iStart" class="button">
<span class="button-span"><img class="w25 shadow" src="images/next.svg" alt="Start"> <span id="lStart">Play</span></span>
</button>
</div>
</fieldset>
<div id="iPopupInfo" class="overflow popup-init">
<div class="popup">
<div class="popup-head"></div>
<div id="iInfoBody" class="popup-body">
<p id="lInstr" class="popup-content"></p>
<p id="lDev" class="popup-content"></p>
<p id="lLook"></p>
<table id="tLinks">
<tr>
<td><a href="https://grrd01.github.io/Puzzle" target="_blank" rel="noopener" tabindex="-1"><img src="images/puzzle.svg" alt="Puzzle" class="w60 shadow"></a></td>
<td><span id="iPuzzle"></span> <a href="https://grrd01.github.io/Puzzle" target="_blank" rel="noopener">grrd's Puzzle</a></td>
</tr>
<tr>
<td><a href="https://grrd01.github.io/Dice/" target="_blank" rel="noopener" tabindex="-1"><img src="images/dice.svg" alt="Puzzle" class="w60 shadow"></a></td>
<td><span id="iDice"></span> <a href="https://grrd01.github.io/Dice/" target="_blank" rel="noopener">grrd's Dice</a></td>
</tr>
<tr>
<td><a href="https://grrd01.github.io/4inaRow/" target="_blank" rel="noopener" tabindex="-1"><img src="images/4inarow.svg" alt="4 in a Row" class="w60 shadow"></a></td>
<td><span id="iRow"></span> <a href="https://grrd01.github.io/4inaRow/" target="_blank" rel="noopener">grrd's 4 in a Row</a></td>
</tr>
<tr>
<td><a href="https://grrd01.github.io/TicTacToe/" target="_blank" rel="noopener" tabindex="-1"><img src="images/tictactoe.svg" alt="TicTacToe" class="w60 shadow"></a></td>
<td><span id="iTicTacToe"></span> <a href="https://grrd01.github.io/TicTacToe/" target="_blank" rel="noopener">grrd's Tic Tac Toe</a></td>
</tr>
<tr>
<td><a href="https://grrd01.github.io/Reversi/" target="_blank" rel="noopener" tabindex="-1"><img src="images/reversi.svg" alt="Reversi" class="w60 shadow"></a></td>
<td><span id="iReversi"></span> <a href="https://grrd01.github.io/Reversi/" target="_blank" rel="noopener">grrd's Reversi</a></td>
</tr>
<tr>
<td><a href="mailto:grrd@gmx.net" tabindex="-1"><img src="images/mail.svg" alt="Mail" class="w60 shadow"></a></td>
<td>E-mail: <a href="mailto:grrd@gmx.net">grrd@gmx.net</a></td>
</tr>
</table>
</div>
<div class="popup-footer">
<button id="iInfoClose" class="button">
<span class="button-span"><img class="w25 shadow" src="images/ok.svg" alt="OK"> OK</span>
</button>
</div>
</div>
<div class="buffer"></div>
</div>
<div id="iPopupSettings" class="overflow popup-init">
<div class="popup">
<div class="popup-head"></div>
<div class="popup-body">
<div class="settings-control settings">
<img src="images/language.svg" class="shadow settings-icon" alt="Language">
<div id="lLang" class="settings-label"></div>
<div class="mini-buttonlist">
<button id="iNextLang" class="mini-button" data-step="-1">
<img class="mini-img shadow" src="images/prev.svg" alt="previous">
</button>
<button id="iPrevLang" class="mini-button" data-step="1">
<img class="mini-img shadow" src="images/next.svg" alt="next">
</button>
</div>
</div>
<div class="settings-control settings">
<img src="images/bulp.svg" class="shadow settings-icon" alt="Style">
<div id="lStyle" class="settings-label"></div>
<div class="mini-buttonlist">
<button id="iNextStyle" class="mini-button" data-step="-1">
<img class="mini-img shadow" src="images/prev.svg" alt="previous">
</button>
<button id="iPrevStyle" class="mini-button" data-step="1">
<img class="mini-img shadow" src="images/next.svg" alt="next">
</button>
</div>
</div>
<div class="settings-control settings">
<img id="iSound" src="images/sound_on.svg" class="shadow settings-icon" alt="Sound">
<div id="lSound" class="settings-label"></div>
<div class="mini-buttonlist">
<button id="iNextSound" class="mini-button">
<img class="mini-img shadow" src="images/prev.svg" alt="previous">
</button>
<button id="iPrevSound" class="mini-button">
<img class="mini-img shadow" src="images/next.svg" alt="next">
</button>
</div>
</div>
<div class="settings-control settings">
<img id="iOwnImg2" src="images/photo.svg" class="shadow settings-icon" alt="Own Images">
<div id="lOwnImg2" class="settings-label"></div>
<div class="mini-buttonlist">
<button id="iShowOwnImg" class="mini-button">
<img id="iDown" class="mini-img shadow" src="images/down.svg" alt="collapse">
</button>
</div>
</div>
<fieldset id="iCollapsable" disabled="disabled">
<div id="lOwnImg" class="popup-content">Click on a Card to choose an image.</div>
<p id="lOwnImgAnz" class="popup-content playownimg">4 more images needed to start the game.</p>
<div id="settingsgrid">
<button class="ownimg">
<img src="images/back.svg" class="shadow w100" alt="Click to choose your image">
</button>
</div>
</fieldset>
</div>
<div class="popup-footer playownimg">
<button id="iSettingsPlay" class="button" disabled="disabled">
<span class="button-span"><img class="w25 shadow" src="images/next.svg" alt="Play"> Play</span>
</button>
<button id="iSettingsCancel" class="button">
<span class="button-span"><img class="w25 shadow" src="images/x.svg" alt="Cancel"> Cancel</span>
</button>
</div>
<div class="popup-footer settings">
<button id="iSettingsClose" class="button">
<span class="button-span"><img class="w25 shadow" src="images/ok.svg" alt="OK"> OK</span>
</button>
</div>
</div>
<div class="buffer"></div>
</div>
</main>
<div class="page" id="iGame">
<fieldset id="iGameFieldset" class="content">
<div class="buffer">
<div id="iMessage">Player 1 begins</div>
<button id="iClose" class="close-button">
<img src="images/x.svg" alt="close">
</button>
</div>
<div id="grid"></div>
</fieldset>
<div id="iPopupScore" class="overflow popup-init">
<div class="popup">
<div class="popup-head"></div>
<div class="popup-body">
<div class="popup-content">
<p id="lWinner"></p>
</div>
<div class="popup-content">
<table id="tScore" class="w100">
<thead>
<tr>
<th id="thRank"></th>
<th id="thPlayer"></th>
<th id="thPairs"></th>
<th id="thTries"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="popup-footer">
<button id="iOK" class="button">
<span class="button-span"><img class="w25 shadow" src="images/ok.svg" alt="OK"> OK</span>
</button>
</div>
</div>
</div>
</div>
<div id="iDummy" class="hidden">
<div class="flip-container" tabindex=0>
<div class="flipper">
<div class="front">
<img src="images/back.svg" alt="back" class="shadow">
</div>
<div class="back">
<img class="image shadow" src="images/back.svg" alt="front">
</div>
</div>
</div>
<input type="file" id="b_image_input" accept="image/*">
</div>
<svg width="0" height="0" viewBox="0 0 0 0">
<defs>
<linearGradient id="grad" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:#26C6DA;stop-opacity:1" />
<stop offset="100%" style="stop-color:#00838F;stop-opacity:1" />
</linearGradient>
<linearGradient id="grad2" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:#D1C4E9;stop-opacity:1" />
<stop offset="100%" style="stop-color:#7E57C2;stop-opacity:1" />
</linearGradient>
<linearGradient id="grad3" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:#4FC3F7;stop-opacity:1" />
<stop offset="100%" style="stop-color:#0277BD;stop-opacity:1" />
</linearGradient>
<clipPath id="clip1">
<rect width="70" height="70" rx="5" fill="url(#grad)"/>
</clipPath>
</defs>
</svg>
<script src="scripts/app.js"></script>
</body>
</html>