-
Notifications
You must be signed in to change notification settings - Fork 1
/
gamify.html
635 lines (535 loc) · 25.1 KB
/
gamify.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
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
<!DOCTYPE html>
<html lang="en">
<head >
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />
<title>Gamify</title>
</head>
<style>
body {
margin: 0;
padding: 0;
font-family: sans-serif;
/* background: #d0b0bf;
color: rgb(18, 113, 196); */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
/* a(32, 204, 204, 1) 35%, rgba(118, 100, 220, 1) 68%, rgba(255, 0, 236, 1) 100%); */
}
.background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffdcb5; /* Light grey background */
overflow: hidden;
text-align: center;
}
.circle {
position: absolute;
border-radius: 50%;
background-color: #26aac8; /* Green */
opacity: 0.6;
animation: animate 5s linear infinite;
}
@keyframes animate {
0% {
transform: scale(1);
opacity: 0.6;
}
50% {
transform: scale(2);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 0.6;
}
}
#heading-1 {
font-family: cursive;
font-size: 40px;
padding: 0;
margin: 0;
color: #000000;
}
#heading-2 {
font-family: cursive;
font-size: 28px;
padding: 0;
margin-bottom: 10px;
color: #000000;
}
.card {
position: relative;
background-color: rgb(228, 248, 228);
width: 400px;
height: 500px;
margin: 0 auto;
}
.card .content {
widows: 400px;
padding: 30px;
box-sizing: border-box;
}
.card .sliderText {
background-color: #5ace5e;
position: relative;
width: 400px;
height: 250px;
display: flex;
justify-content: center;
align-items: center;
}
.card .content a {
display: inline-block;
margin: 1px 0 0;
padding: 10px 20px;
text-decoration: none;
border: 2px solid #262626;
color: #262626;
font-weight: 900;
border-radius: 5px;
}
.card .content a:hover {
display: inline-block;
margin: 10px 0 0;
padding: 10px 20px;
text-decoration: none;
border: 2px solid #f1eaea;
color: #f3e6e6;
font-weight: 900;
border-radius: 5px;
background-color: #000000;
}
.card .content p {
font-size: 12px;
color: #584e4e;
}
.swiper {
width: 400px;
height: 500px;
}
.swiper-slide {
display: flex;
align-items: center;
justify-content: center;
border-radius: 18px;
font-size: 16px;
/* font-weight: bold; */
color: #000000;
}
#froggy {
background-image: url("https://www.giantbomb.com/a/uploads/scale_medium/87/878890/3318923-flexbox-froggy.png");
/* background-position: center;
*/
background-size: cover;
transition: transform 0.5s;
}
#scattegories {
background-image: url("https://www.sayvillelibrary.org/sites/default/files/2020-11/kindness_3.jpg");
background-size: cover;
transition: transform 0.5s;
}
#scribble {
background-image: url("https://athletesforkids.org/wp-content/uploads/2020/04/Skribble-image2.png");
background-size: cover;
transition: transform 0.5s;
}
#typingclub {
background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRf-3DK0iDLeP9WVS7_nARNKq49RbGZjI6oS72XgELQe5BHs4tgFJFFZ1k0h6wXn7jyeHg&usqp=CAU");
background-size: cover;
transition: transform 0.5s;
}
#prodigygame {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACoCAMAAABt9SM9AAAAk1BMVEX/XAv/////VgD/WgD/SwD/UQD/nnz//vv/zLr/Zx3/VwD/TgD/SgD/pon/WwT/tJz/iF7/9fH/7eb/rZL/4NX/yLb/mnf/18n/kmz/8+7/v6v/e0n/cjr/28//xLH/ay3/0cL/jmb/sJX/wK3/Yhf/nHv/d0L/5dz/gVP/iWP/Zij/ooP/hlr/bzT/ekf/kGn/PgDfh6aXAAAINUlEQVR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TVn9lxJLEOrQDdJX0csnSKtgozu0XXE4rFRVAbXbjhwBbFYZExB9gKa1EFcLBbX5rreTahaXSpWIlbmyT3tcM+ovkgsLri1wqRaD2IxiJMLxJJq5ViM8xauVt8VizMlMsfBbNVxoA/CT0qKxfPCRwgVjxsOpfJ4Ze6aDotyYvG3Rb/RrBWcJVnp8IB9MCorFiveip8zD/307pJiPdgSfd0WZkEIuJpYnVmIHSzMtcRKdeAuuOM6YtWi8M0quo5Ykzf7yKMguVys2r1IdbFYnZTfjVSXibVpjnWQExNFfFOsdneYSXVvLygqWe68TIfNbTbi+i7fFFa2kN69a0CGfhxwEdeaN7wLSKwSkFglILFKQGKVgMQqAYlVAhKrBCRWCUisEpBYJSCxSkBilQCKBXfpwuNLSawDUCy4uhEevEZiHYBidb7e4oSOoCaxDqCdrI9CfG4NEHpRIbFsYrT7qzpNGzlNfDQGiXXAfFGfiwDOV7sOhbu/AK93NolTiPmqPgd+v0HnqqiTYnn7woDrI9JTYt3VpPMJ4hMhPszdcN+E4zcTmgS7Eed7yKJDXkkrB1IWHuTwQFqZJGo0d/hiu8kpXjmQgq2fG5D0eSwEPQcL4MyA8naCIAiCIAiCIAiCIAiCIAiCIIhT/Af4z2oJNNzZHQAAAABJRU5ErkJggg==");
background-size: cover;
transition: transform 0.5s;
}
#blindfolded {
background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQFi_KeYM0q9DpHBzxWU5Vaba3vj-9ZUwWCnkk_NQancw&s");
background-size: contain;
transition: transform 0.5s;
}
#audiogame {
background-image: url("https://audiogamehub.com/press/images/logo.png");
background-size: cover;
transition: transform 0.5s;
}
#gridgarden {
background-image: url("https://codepip.com/wp-content/plugins/codepip/images/thumbnails/grid-garden.png");
background-size: cover;
transition: transform 0.5s;
}
#flappycode {
background-image: url("https://www.codetheirdreams.com/wp-content/uploads/2016/09/Flappy-Game_coding-games.jpg");
background-size: cover;
transition: transform 0.5s;
}
#flappycode:hover {
transform: scale(1.1);
}
#gridgarden:hover {
transform: scale(1.1);
}
#audiogame:hover {
transform: scale(1.1);
}
#blindfolded:hover {
transform: scale(1.1);
}
#prodigygame:hover {
transform: scale(1.1);
}
#typingclub:hover {
transform: scale(1.1);
}
#scribble:hover {
transform: scale(1.1);
}
#scattegories:hover {
transform: scale(1.1);
}
#froggy:hover {
transform: scale(1.1);
}
.screen-reader-enabled .hover-speak:hover {
border: 2px solid #e26111;
border-radius: 5px;
padding: 5px;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.accessibility-button {
position: fixed;
bottom: 35px;
right: 35px;
width: 60px;
height: 60px;
/* background-color: #007bff; */
background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR6O-gPv_x4ilQWYp-pyPaM-SkUUp32Kny_NIEqKZsWCw&s");
background-size: cover;
color: white;
border-radius: 50%;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.accessibility-menu {
position: fixed;
bottom: 85px;
right: 40px;
background-color: #f1f1f1;
border-radius: 5px;
padding: 10px;
display: none;
z-index: 999;
}
.accessibility-menu.active {
display: block;
}
.accessibility-menu ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.accessibility-menu li {
margin-bottom: 10px;
}
.accessibility-menu button {
background: none;
border: none;
padding: 0;
font: inherit;
color: #007bff;
cursor: pointer;
text-decoration: underline;
}
.accessibility-menu button:hover {
color: #0056b3;
}
</style>
<body>
<div class="background">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<h2 id="heading-1" class="hover-speak" onmouseover="speakText('Gamify')" onmouseleave="stopSpeaking()">Gamify 🎉
</h2>
<h1 id="heading-2" class="hover-speak" onmouseover="speakText('play and learn')" onmouseleave="stopSpeaking()">
😃 lets
play and
learn 😃</h1>
<!-- Accessibility Mode Button -->
<div class="accessibility-button hover-speak" onclick="toggleAccessibilityMenu()"
onmouseover="speakText('click here to select accessibility mode')" onmouseleave="stopSpeaking()">
<div class="accessibility-icon">
</div>
</div>
<!-- Accessibility Menu -->
<div class="accessibility-menu" id="accessibilityMenu">
<ul>
<li><button class="hover-speak" onclick="toggleScreenReader()" id="screenReaderButton"
onmouseover="speakText('click here to change the screen reader mode')"
onmouseleave="stopSpeaking()">Enable Screen Reader</button></li>
<li><button onclick="toggleKeyboardNavigation()">Enable Voice Recognition</button></li>
</ul>
</div>
<!-- Swiper -->
<div class="swiper mySwiper">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="card">
<div class="sliderText" id="froggy">
<!-- <img src="https://www.giantbomb.com/a/uploads/scale_medium/87/878890/3318923-flexbox-froggy.png" alt="Flex Froggy"> -->
</div>
<div class="content">
<h2 class="hover-speak" onmouseover="speakText('flexbox froggy')" onmouseleave="stopSpeaking()">
Flexbox
Froggy😊 </h2>
<p class="hover-speak" onmouseover="speakText('Flexbox'+
'Froggy is a fun and interactive game designed to help you learn and practice CSS'+
'Flexbox layout. In this game, you are presented with a series of challenges where you need'+
'to arrange a group of frogs on lily pads using Flexbox properties'
)" onmouseleave="stopSpeaking()">Flexbox
Froggy is a fun and interactive game designed to help you learn and practice CSS
Flexbox layout. In this game, you are presented with a series of challenges where you need
to arrange a group of frogs on lily pads using Flexbox properties.</p>
<a href="https://flexboxfroggy.com/" target="_blank" class="hover-speak"
onmouseover="speakText('click here to play flexboxfroggy')"
onmouseleave="stopSpeaking()">Click Here</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText" id="scattegories">
</div>
<div class="content">
<h2 class="hover-speak" onmouseover="speakText('ScatterGories')" onmouseleave="stopSpeaking()">
ScatterGories😃</h2>
<p class="hover-speak" onmouseover="speakText('Online'+
'version of the Categories game. The game variants are also known as Guggenheim or'+
'Scattergories. Play with friends and improve your vocabulary in any of the 40 supported'+
'languages')" onmouseleave="stopSpeaking()">Online
version of the Categories game. The game variants are also known as Guggenheim or
Scattergories. Play with friends and improve your vocabulary in any of the 40 supported
languages.</p>
<a href="https://scattergoriesonline.net/" target="_blank" class="hover-speak"
onmouseover="speakText('click here to play Scattergories')"
onmouseleave="stopSpeaking()">Click Here </a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText" id="scribble">
</div>
<div class="content">
<h2 class="hover-speak" onmouseover="speakText('Skribbl.io')" onmouseleave="stopSpeaking()">
Skribbl.io😄
</h2>
<p class="hover-speak" onmouseover="speakText('skribbl.io is'+
'a free online multiplayer drawing and guessing pictionary game. A normal game'+
'consists of a few rounds, where every round a player has to draw their chosen word and'
+ 'others have to guess it to gain points')" onmouseleave="stopSpeaking()">skribbl.io is
a free online multiplayer drawing and guessing pictionary game. A normal game
consists of a few rounds, where every round a player has to draw their chosen word and
others have to guess it to gain points!</p>
<a href="https://skribblio.online/skribbl-games-io" target="_blank" class="hover-speak"
onmouseover="speakText('click here to play skribbl.io')" onmouseleave="stopSpeaking()">Click
Here</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText" id="typingclub">
</div>
<div class="content">
<h2 class="hover-speak" onmouseover="speakText('Typing'+
'Club')" onmouseleave="stopSpeaking()">Typing
Club😁</h2>
<p class="hover-speak" onmouseover="speakText('Typing Club'+
' is an online program that teaches students how to type on a QWERTY keyboard.'+
' Students learn where each letter is located on the keyboard and which finger they +should use'+
+' to type each letter')" onmouseleave="stopSpeaking()">Typing Club
is an online program that teaches students how to type on a QWERTY keyboard.
Students learn where each letter is located on the keyboard and which finger they should use
to type each letter.</p>
<a href="https://www.typingclub.com/" target="_blank" class="hover-speak"
onmouseover="speakText('click here to play typingclub')" onmouseleave="stopSpeaking()">Click
Here </a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText" id="blindfolded">
</div>
<div class="content">
<h2 class="hover-speak" onmouseover="speakText('blind fold games')"
onmouseleave="stopSpeaking()">Blind Fold
Games🤩</h2>
<p class="hover-speak" onmouseover="speakText('Nominate'+
' someone to be blindfolded. The blind man counts to five, while the other players'+
'spread out. The blind man must feel their way around the room, finding the other +players' +
' identifying them')" onmouseleave="stopSpeaking()">Nominate
someone to be blindfolded. The "blind man" counts to five, while the other players
spread out. The blind man must feel their way around the room, finding the other players and
identifying them</p>
<a href="https://gamesfortheblind.org/" target="_blank" class="hover-speak"
onmouseover="speakText('click here to play blindfold games')"
onmouseleave="stopSpeaking()">Click Here </a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText" id="audiogame">
</div>
<div class="content">
<h2 class="hover-speak" onmouseover="speakText('audio game hub')" onmouseleave="stopSpeaking()">
Audio Game
Hub😎</h2>
<p class="hover-speak" onmouseover="speakText('Audio Game'+
' Hub is a set of experimental arcade audiogames that use audio as their primary'+
' interface – making them accessible for both sighted and non-sighted users')"
onmouseleave="stopSpeaking()">Audio Game
Hub is a set of experimental arcade audiogames that use audio as their primary
interface – making them accessible for both sighted and non-sighted users.</p>
<a href="https://audiogamehub.com/games/" target="_blank" class="hover-speak"
onmouseover="speakText('click here to play audiogamehub')"
onmouseleave="stopSpeaking()">Click Here</span></a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText" id="gridgarden">
</div>
<div class="content">
<h2 class="hover-speak" onmouseover="speakText('grid garden')" onmouseleave="stopSpeaking()">
Grid
Garden🤑</h2>
<p class="hover-speak" onmouseover="speakText('How well can'+
'you tend to your carrot garden using CSS grid? In this game, you must water your'+
' carrot crops and poison the weeds by mastering CSS grid, a powerful new module that +makes'+
' 2-dimensional grid layouts a piece of cake.')" onmouseleave="stopSpeaking()">How well can
you tend to your carrot garden using CSS grid? In this game, you must water your
carrot crops and poison the weeds by mastering CSS grid, a powerful new module that makes
2-dimensional grid layouts a piece of cake.</p>
<a href="https://cssgridgarden.com/" target="_blank" class="hover-speak"
onmouseover="speakText('click here to play grid-garden')"
onmouseleave="stopSpeaking()">Click Here </a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText" id="flappycode">
</div>
<div class="content">
<h2 class="hover-speak" onmouseover="speakText('flappy code')" onmouseleave="stopSpeaking()">
Flappy
Code😛</h2>
<p class="hover-speak" onmouseover="speakText('If you want'+
' the bird to FLAP when you CLICK the mouse, you can do that by attaching the'+
' FLAP block to the appropriate event handler, and now in your game ')"
onmouseleave="stopSpeaking()">If you want
the bird to FLAP when you CLICK the mouse, you can do that by attaching the
"FLAP" block to the appropriate event handler, and now in your game ...
</p>
<a href="https://studio.code.org/flappy/1" target="_blank" class="hover-speak"
onmouseover="speakText('click here to play flappycode')" onmouseleave="stopSpeaking()">Click
Here</a>
</div>
</div>
</div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
<!-- Swiper JS -->
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
<!-- Initialize Swiper -->
<script>
var swiper = new Swiper(".mySwiper", {
effect: "cards",
grabCursor: true,
});
</script>
<!-- screen reader js -->
<script>
var screenReaderEnabled = false;
function toggleAccessibilityMenu() {
var menu = document.getElementById("accessibilityMenu");
menu.classList.toggle("active");
}
function toggleScreenReader() {
screenReaderEnabled = !screenReaderEnabled;
var menuButton = document.getElementById("screenReaderButton");
if (screenReaderEnabled) {
speakText("Screen reader enabled");
menuButton.innerText = "Disable Screen Reader";
document.body.classList.add("screen-reader-enabled");
setTimeout(toggleAccessibilityMenu, 5000);
} else {
speakText("Screen reader disabled");
menuButton.innerText = "Enable Screen Reader";
document.body.classList.remove("screen-reader-enabled");
toggleAccessibilityMenu();
}
// toggleAccessibilityMenu();
}
function speakText(text) {
if (screenReaderEnabled) {
var utterance = new SpeechSynthesisUtterance(text);
window.speechSynthesis.speak(utterance);
}
}
function stopSpeaking() {
window.speechSynthesis.cancel();
}
</script>
<!-- bg change scripts -->
<script>
const background = document.querySelector('.background');
function createCircle() {
const circle = document.createElement('div');
circle.classList.add('circle');
const size = Math.random() * 60 + 20; // Random size between 20 and 80
circle.style.width = `${size}px`;
circle.style.height = `${size}px`;
const { innerWidth, innerHeight } = window;
const x = Math.random() * innerWidth;
const y = Math.random() * innerHeight;
circle.style.left = `${x}px`;
circle.style.top = `${y}px`;
background.appendChild(circle);
setTimeout(() => {
circle.remove();
}, 5000); // Remove circle after 5 seconds
}
setInterval(createCircle, 300); // Create a new circle every 300 milliseconds
</script>
</body>
</html>
<!-- 513 519 -->