/
index.html
460 lines (445 loc) · 30.5 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
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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Let's Play</title>
<meta name="title" content="Let's Play">
<meta name="description" content=" A collection of classic games to kill time ">
<meta name="keywords" content="tic tac toe, progressive web app, pwa, online game, javascript, browser, web app" />
<meta name="author" content="Eduard Ursu" />
<link rel="manifest" href="manifest.json" />
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="apple-mobile-web-app-title" content="Let's Play!">
<meta name="application-name" content="Let's Play!">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#14191f">
<script async src="https://d3-umami.up.railway.app/script.js" data-website-id="fed0aedc-771f-4909-b815-95ac4942ee3d"></script>
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div class="modal" id="mdl0">
<div>
<header>
<h3>Modal Header</h3>
<button class="close-modal">Close</button>
</header>
<hr>
<div>
<div id="notification">A new version of this app is available. <br>Click <button>here</button> to
update.</div>
</div>
<hr>
<footer>
<button class="close-modal mw-100">
Ok
</button>
</footer>
</div>
</div>
<!-- Install button, hidden by default -->
<div id="installContainer" class="hidden">
<button id="butInstall" type="button">
Install
</button>
</div>
<header class="fixed">
<nav>
<div>
<div id="typewriter"></div>
</div>
<ul>
<li>
<a topage="#home">
<svg class="_icon" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z">
</path>
</svg>
Home
</a>
</li>
<li><a href="https://d3ward.github.io/" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1.4rem" viewbox="0 0 70 50">
<path
d="M3 41.924V38.32h60v1.79c0 .983-.018 1.96-.04 2.17-.088.864-.412 1.57-.986 2.149-.581.587-1.155.901-1.912 1.046-.236.046-4.44.053-28.669.053H3zm12.559-5.266c-3.43-.305-6.551-1.848-8.91-4.405-2.053-2.225-3.275-4.976-3.577-8.046-.061-.632-.051-2.067.02-2.72.494-4.568 3.055-8.405 7.134-10.691 1.076-.603 2.738-1.188 4.031-1.42 1.077-.191 1.156-.197 3.34-.215 2.366-.02 2.401-.016 2.96.263.239.12.38.226.613.46.355.36.524.632.656 1.053l.095.307.013 2.331.014 2.33H19.47c-1.384 0-2.638.017-2.842.038-1.14.118-1.529.194-2.157.422-2.503.91-4.218 3.036-4.584 5.683-.24 1.753.248 3.58 1.366 5.098.273.371.967 1.063 1.341 1.338a7.25 7.25 0 003.254 1.351c.428.063 1.527.062 1.924-.002 2.4-.385 4.318-1.808 5.322-3.947.31-.658.46-1.141.609-1.943.06-.334.067-1.048.087-10.49l.021-10.132.084-.272c.332-1.072 1.096-1.902 2.098-2.277.506-.189.605-.197 2.657-.215L30.585.54l-.012 11.786-.01 11.786-.083.567c-.337 2.316-1.047 4.193-2.26 5.975-2.365 3.472-6.028 5.624-10.221 6.006-.472.042-1.95.042-2.441-.002zm24.46.017a13.293 13.293 0 01-1.976-.34c-2.6-.659-4.819-2.14-6.55-4.368-.22-.285-.757-1.097-.757-1.146 0-.024 4.935-2.899 5.057-2.946.016-.006.091.09.167.215.714 1.176 2.102 2.174 3.546 2.55 1.698.44 3.402.138 4.916-.874.862-.576 1.51-1.335 1.993-2.332.265-.549.393-.915.515-1.472.122-.556.123-1.716.003-2.283-.27-1.284-.928-2.47-1.826-3.292a6.316 6.316 0 00-2.986-1.509c-.603-.12-1.638-.12-2.226.001a6.5 6.5 0 00-1.494.501c-.215.101-.404.177-.419.168-.05-.03-3.944-4.21-3.956-4.244-.006-.019 2.099-2.007 4.679-4.419 3.401-3.179 4.69-4.407 4.69-4.465v-.08l-4.707-.01-4.708-.01.01-2.915L34 .49l7.773-.01c8.49-.01 8.034-.022 8.586.203.81.329 1.465 1.081 1.703 1.959.078.284.083.4.098 2.001l.016 1.7-3.73 3.486c-2.452 2.292-3.733 3.515-3.741 3.57-.01.073.021.094.245.168.66.216 1.612.666 2.266 1.07 2.928 1.81 4.933 4.755 5.515 8.099.136.778.17 1.176.17 2.037 0 .87-.039 1.352-.17 2.113-.55 3.179-2.408 6.018-5.128 7.83-1.488.993-3.032 1.585-4.886 1.875-.386.06-.714.079-1.529.088a26.12 26.12 0 01-1.17-.004zm15.735-18.09V.472h2.015c2.172 0 2.291.009 2.85.204.827.29 1.596.984 2.017 1.822.147.294.28.794.324 1.222.026.258.04 5.672.04 16.68v16.298h-7.246z" />
</svg> My Website</a></li>
<li>
<a rel="noreferrer" target="_blank" href="https://www.buymeacoffee.com/dOWS9cU">
<svg role="img" class="_icon" id="bmac-icon" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24">
<title>Buy Me A Coffee icon</title>
<path
d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z" />
</svg></a>
<a rel="noreferrer" href="https://github.com/d3ward/letsplay" target="_blank">
<svg class="_icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<title>Github</title>
<path
d="M256,32C132.3,32,32,134.9,32,261.7c0,101.5,64.2,187.5,153.2,217.9a17.56,17.56,0,0,0,3.8.4c8.3,0,11.5-6.1,11.5-11.4,0-5.5-.2-19.9-.3-39.1a102.4,102.4,0,0,1-22.6,2.7c-43.1,0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1,1.4-14.1h.1c22.5,2,34.3,23.8,34.3,23.8,11.2,19.6,26.2,25.1,39.6,25.1a63,63,0,0,0,25.6-6c2-14.8,7.8-24.9,14.2-30.7-49.7-5.8-102-25.5-102-113.5,0-25.1,8.7-45.6,23-61.6-2.3-5.8-10-29.2,2.2-60.8a18.64,18.64,0,0,1,5-.5c8.1,0,26.4,3.1,56.6,24.1a208.21,208.21,0,0,1,112.2,0c30.2-21,48.5-24.1,56.6-24.1a18.64,18.64,0,0,1,5,.5c12.2,31.6,4.5,55,2.2,60.8,14.3,16.1,23,36.6,23,61.6,0,88.2-52.4,107.6-102.3,113.3,8,7.1,15.2,21.1,15.2,42.5,0,30.7-.3,55.5-.3,63,0,5.4,3.1,11.5,11.4,11.5a19.35,19.35,0,0,0,4-.4C415.9,449.2,480,363.1,480,261.7,480,134.9,379.7,32,256,32Z" />
</svg>
</a>
</li>
<li>
<div class="nav-item theme-toggle">
<span class="light-icon theme-icon">
<svg class="_icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path>
</svg>
</span>
<span class="dark-icon theme-icon">
<svg class="_icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"
clip-rule="evenodd"></path>
</svg>
</span>
Switch Theme
</div>
</li>
</ul>
<button aria-label="Navbar Menu">
<svg aria-hidden="true" version="1.1" viewBox="0 0 24 24">
<line x1="2" y1="4" x2="22" y2="4" id="top" />
<line x1="2" y1="12" x2="22" y2="12" id="middle-down" />
<line x1="2" y1="12" x2="22" y2="12" id="middle-up" />
<line x1="2" y1="20" x2="22" y2="20" id="bottom" />
</svg>
</button>
</nav>
</header>
<main>
<div class="pages">
<section id="home" class="page-active _aos-top">
<div class="hero">
<svg id="letsplay_logo" width="100%" height="100%" viewBox="0 0 340 200"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="prefix__a">
<stop offset="0" stop-color="#2336fb" stop-opacity=".753"></stop>
<stop offset="1" stop-color="#23f9fb" stop-opacity=".533"></stop>
</linearGradient>
<linearGradient xlink:href="#prefix__a" id="prefix__b" x1="79.66" y1="124.455" x2="166.612"
y2="276.877" gradientUnits="userSpaceOnUse" gradientTransform="translate(-65 48.5)">
</linearGradient>
</defs>
<g paint-order="stroke markers fill" transform="translate(65 -48.5)">
<rect width="100" height="178.829" x="55" y="59.085" rx="10" ry="10" fill="url(#prefix__b)"
stroke="#000" stroke-width="5.292" stroke-linecap="round" stroke-linejoin="round"
stroke-opacity=".993" class="svg-elem-1"></rect>
<path style="font-variation-settings: normal;"
d="M99.026 177.689c-3.667-.012-7.47.906-10.071 2.623l-15.408 10.17c-2.81 1.857-3.096 1.201-2.924 7.113-.038 7.481-.11 9.066 3.653 11.095l31.023 11.838c4.646 1.413 7.442 1.662 11.696-.529l19.086-11.335c3.36-2.77 3.282-3.76 3.27-8.765.026-5.19.833-7.566-3.999-9.442l-30.164-11.716c-1.812-.704-3.962-1.045-6.162-1.052z"
fill="#303333" fill-rule="evenodd" class="svg-elem-2"></path>
<rect style="font-variation-settings: normal;" width="9.675" height="39.295" x="100.162"
y="153.282" rx="8" ry="2" fill="#b3b3b3" fill-rule="evenodd" class="svg-elem-3"></rect>
<circle cx="105" cy="141.543" r="15" fill="red" class="svg-elem-4"></circle>
<rect style="font-variation-settings: normal;" width="29.475" height="8.78" x="90.262"
y="56.691" rx="2" ry="2" fill="#030000" fill-rule="evenodd" class="svg-elem-5"></rect>
<path
d="M103.225 156.543l-.436 35.975s24.311 7.497 24.338 8.226c.012.316-14.802 7.813-14.802 7.813-1.054.762-.578 11.21-.576 12.972 0 0-2.916.643-8.188-1.432-5.271-2.075-29.3-11.387-29.3-11.387-.359-.15-3.482-1.166-3.673-5.877-.186-4.605.137-9.59.137-9.59l41.147 15.443s.204-.492.045-.591c-1.093-.684-41.371-15.235-41.352-15.815 0 0 5.808-3.545 5.505-3.548-.303-.003 24.023 2.103 24.023 2.103l.187-35.15z"
fill="#fffbfe" fill-opacity=".303" class="svg-elem-6"></path>
<path
d="M103.225 156.543c-6.016-1.534-10.582-3.815-12.856-11.734-1.462-9.95 3.073-12.334 8.244-11.21 5.703 1.32 4.806 13.822 4.612 22.944z"
fill="#fffbfe" fill-opacity=".488" class="svg-elem-7"></path>
<path
d="M118.729 147.66s-3.138 6.666-9.229 8.088l-.002 24.54 24.195 9.34c4.664 1.8 4.585 2.788 5.393 3.788-.434-.004-7.045 5.293-7.511 5.183l-24.738-5.865c-.823-.647.599-36.473.599-36.473 10.932-11.532 1.702-25.786 1.283-29.237 11.853 3.941 12.335 14.07 10.01 20.637z"
fill="#00000e" fill-opacity=".279" class="svg-elem-8"></path>
</g>
</svg>
</div>
<div class="grid">
<div class="col-6">
<div class="card" topage="#tris">
<div class="badges">
<div>
<svg class="_icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd">
</path>
</svg>
vs
<svg class="_icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path d="M13 7H7v6h6V7z"></path>
<path fill-rule="evenodd"
d="M7 2a1 1 0 012 0v1h2V2a1 1 0 112 0v1h2a2 2 0 012 2v2h1a1 1 0 110 2h-1v2h1a1 1 0 110 2h-1v2a2 2 0 01-2 2h-2v1a1 1 0 11-2 0v-1H9v1a1 1 0 11-2 0v-1H5a2 2 0 01-2-2v-2H2a1 1 0 110-2h1V9H2a1 1 0 010-2h1V5a2 2 0 012-2h2V2zM5 5h10v10H5V5z"
clip-rule="evenodd"></path>
</svg>
</div>
</div>
<img src="./svg/tris_p.svg" alt="" class="full">
<h3>Tic Tac Toe</h3>
</div>
</div>
<div class="col-6">
<div class="card" topage="#connect4">
<div class="badges">
<div>
<svg class="_icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd">
</path>
</svg>
vs
<svg class="_icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd">
</path>
</svg>
</div>
</div>
<img src="./svg/c4_p.svg" alt="" class="full">
<h3>Forza 4</h3>
</div>
</div>
<div class="col-6">
<div class="card" topage="#memory">
<div class="badges">
<div>
<svg class="_icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd">
</path>
</svg>
</div>
</div>
<img src="./svg/memory_p.svg" alt="" class="full">
<h3>Memory Tiles</h3>
</div>
</div>
</div>
</section>
<section id="tris" class="_aos-top">
<div class="_2-col score">
<div>
<div class="cross active _pu"></div>
<p class="player1_score"></p>
</div>
<div>
<div class="circle active _pu"></div>
<p class="player2_score"></p>
</div>
</div>
<hr>
<div class="flip-card">
<div class="tris_grid">
<p id="tris_turn">Player 1 Turn</p>
<div style="position: relative;">
<div class="tris_table">
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
<div>
<div class="cross"></div>
<div class="circle"></div>
</div>
</div>
<div class="strike"></div>
</div>
</div>
<div class="winner">
<p>Winner!</p>
<div class="shape _pu"></div>
<button class="again">Play again</button>
</div>
</div>
<hr>
<div>
<button topage="#home">
<svg class="_icon _180deg" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M3 3a1 1 0 00-1 1v12a1 1 0 102 0V4a1 1 0 00-1-1zm10.293 9.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L14.586 9H7a1 1 0 100 2h7.586l-1.293 1.293z"
clip-rule="evenodd"></path>
</svg> Back to home</button>
<button class="clear"><svg class="_icon" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M6.707 4.879A3 3 0 018.828 4H15a3 3 0 013 3v6a3 3 0 01-3 3H8.828a3 3 0 01-2.12-.879l-4.415-4.414a1 1 0 010-1.414l4.414-4.414zm4 2.414a1 1 0 00-1.414 1.414L10.586 10l-1.293 1.293a1 1 0 101.414 1.414L12 11.414l1.293 1.293a1 1 0 001.414-1.414L13.414 10l1.293-1.293a1 1 0 00-1.414-1.414L12 8.586l-1.293-1.293z"
clip-rule="evenodd"></path>
</svg> Clear</button>
<button class="reset">Reset Score</button>
</div>
</section>
<section id="connect4" class="_aos-top">
<div class="_2-col score">
<div>
<div class="p1-disc"></div>
<p class="player1_score"></p>
</div>
<div>
<div class="p2-disc"></div>
<p class="player2_score"></p>
</div>
</div>
<hr>
<div class="flip-card">
<div class="c4-grid">
<p id="c4_turn">Player 1 Turn</p>
<div style="position: relative;">
<div id="c4_table">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div id="c4_columns">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
<div class="winner">
<p>Winner!</p>
<div id="c4_winner"></div>
<div class="shape _pu"></div>
<button class="again">Play again</button>
</div>
</div>
<hr>
<div>
<button topage="#home">
<svg class="_icon _180deg" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M3 3a1 1 0 00-1 1v12a1 1 0 102 0V4a1 1 0 00-1-1zm10.293 9.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L14.586 9H7a1 1 0 100 2h7.586l-1.293 1.293z"
clip-rule="evenodd"></path>
</svg> Back to home</button>
<button class="clear"><svg class="_icon" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M6.707 4.879A3 3 0 018.828 4H15a3 3 0 013 3v6a3 3 0 01-3 3H8.828a3 3 0 01-2.12-.879l-4.415-4.414a1 1 0 010-1.414l4.414-4.414zm4 2.414a1 1 0 00-1.414 1.414L10.586 10l-1.293 1.293a1 1 0 101.414 1.414L12 11.414l1.293 1.293a1 1 0 001.414-1.414L13.414 10l1.293-1.293a1 1 0 00-1.414-1.414L12 8.586l-1.293-1.293z"
clip-rule="evenodd"></path>
</svg> Clear</button>
<button class="reset">Reset Score</button>
</div>
</section>
<section id="memory" class="_aos-top">
<div class="flip-card">
<div class="memory-grid">
<p id="memory_bar"></p>
<div class="memory_table">
</div>
</div>
<div class="winner">
<p>Winner!</p>
<div class="score"></div>
<button class="again">Play again</button>
</div>
</div>
<hr>
<div>
<button topage="#home">
<svg class="_icon _180deg" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M3 3a1 1 0 00-1 1v12a1 1 0 102 0V4a1 1 0 00-1-1zm10.293 9.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L14.586 9H7a1 1 0 100 2h7.586l-1.293 1.293z"
clip-rule="evenodd"></path>
</svg> Back to home</button>
<button class="reset"><svg fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z"
clip-rule="evenodd"></path>
</svg> Restart</button>
</div>
</section>
</div>
</main>
<script src="./js/confetti.browser.min.js"></script>
<script src="./js/main.js"></script>
<script>
// Register the service worker
if ('serviceWorker' in navigator) {
// Wait for the 'load' event to not block other work
window.addEventListener('load', async () => {
// Try to register the service worker.
try {
const reg = await navigator.serviceWorker.register('./sw.js');
console.log('Service worker registered! 😎', reg);
} catch (err) {
console.log('😥 Service worker registration failed: ', err);
}
});
}
</script>
</body>
</html>