-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
471 lines (419 loc) · 20.5 KB
/
Copy pathindex.html
File metadata and controls
471 lines (419 loc) · 20.5 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="description"
content="Numo - Educational app for children to learn numbers 10-20 and the alphabet with dinosaurs and monster trucks. Developed by AppFlow Solution.">
<link rel="canonical" href="https://numo-educational-app.web.app/">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://numo-educational-app.web.app/">
<meta property="og:title" content="Numo - Learn Numbers 10-20">
<meta property="og:description" content="Fun educational game for kids with dinosaurs and monster trucks!">
<meta property="og:image" content="https://numo-educational-app.web.app/icons/icon-512.png">
<title>Numo - Learn Numbers 10-20</title>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600&display=swap"
rel="stylesheet">
<!-- Material Symbols -->
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/modal.css">
<link rel="stylesheet" href="css/mode-toggle.css">
<link rel="stylesheet" href="css/alphabet-learning.css">
<link rel="stylesheet" href="css/catch-game.css">
<!-- PWA Manifest -->
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#4c99e6">
</head>
<body>
<!-- App Container -->
<div id="app" class="app-container">
<!-- HOME VIEW - Number Selection -->
<div id="homeView" class="view active">
<!-- Top Bar -->
<header class="top-bar">
<h1 class="app-title" id="mainAppTitle">Learn Numbers</h1>
<button class="icon-btn" id="settingsBtn" aria-label="Settings">
<span class="material-symbols-outlined">settings</span>
</button>
</header>
<!-- Headline -->
<div class="headline-section">
<h2 class="headline">Pick a number to start</h2>
<p class="subheadline">Let's count together!</p>
</div>
<!-- Mode Toggle -->
<div class="mode-toggle">
<button class="mode-btn active" data-mode="numbers">
<span class="material-symbols-outlined">tag</span>
Numbers
</button>
<button class="mode-btn" data-mode="letters">
<span class="material-symbols-outlined">abc</span>
Letters
</button>
</div>
<!-- Number Grid (Dynamic) -->
<div class="number-grid" id="dynamicGrid">
<!-- Grid will be populated by JavaScript -->
</div>
<!-- Practice Mode Button (Prominent) -->
<div class="practice-mode-section">
<button class="practice-mode-btn" id="practiceModeBtn">
<span class="material-symbols-outlined">quiz</span>
<div class="practice-mode-text">
<span class="practice-mode-title">Practice Mode</span>
<span class="practice-mode-subtitle">Test your knowledge!</span>
</div>
<span class="material-symbols-outlined">arrow_forward</span>
</button>
</div>
<!-- Game Mode Button (Prominent) -->
<div class="practice-mode-section">
<button class="practice-mode-btn" id="gameModeBtn"
style="background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);">
<span class="material-symbols-outlined">sports_esports</span>
<div class="practice-mode-text">
<span class="practice-mode-title">Game Mode</span>
<span class="practice-mode-subtitle">Catch the falling items!</span>
</div>
<span class="material-symbols-outlined">arrow_forward</span>
</button>
</div>
<!-- Bottom Navigation -->
<nav class="bottom-nav">
<button class="nav-btn active" data-nav="home">
<span class="material-symbols-outlined">home</span>
</button>
<button class="nav-btn" data-nav="awards">
<span class="material-symbols-outlined">award_star</span>
</button>
<button class="nav-btn" data-nav="profile">
<span class="material-symbols-outlined">person</span>
</button>
</nav>
</div>
<!-- LEARNING VIEW -->
<div id="learningView" class="view">
<!-- Top Bar -->
<header class="top-bar">
<button class="icon-btn" id="backFromLearning" aria-label="Back">
<span class="material-symbols-outlined">arrow_back</span>
</button>
<h1 class="app-title">Numbers 10-20</h1>
<button class="icon-btn" id="infoBtn" aria-label="Info">
<span class="material-symbols-outlined">info</span>
</button>
</header>
<!-- Learning Content -->
<main class="learning-content number-learning-main">
<!-- Number Display with Side Navigation -->
<div class="number-display-container">
<!-- Left Arrow -->
<button class="side-nav-arrow left" id="prevNumber" aria-label="Previous number">
<span class="material-symbols-outlined">chevron_left</span>
</button>
<!-- Number Circle (Larger) -->
<div class="number-display-section-centered">
<div class="number-circle-large" id="numberCircle">
<span class="big-number-large" id="bigNumber">12</span>
<button class="speaker-btn glass" id="speakerBtn" aria-label="Hear number">
<span class="material-symbols-outlined">volume_up</span>
</button>
</div>
<p class="number-label" id="numberWord">Twelve</p>
</div>
<!-- Right Arrow -->
<button class="side-nav-arrow right" id="nextNumber" aria-label="Next number">
<span class="material-symbols-outlined">chevron_right</span>
</button>
</div>
<!-- Objects Grid Section -->
<div class="objects-section">
<div class="objects-grid" id="objectsGrid">
<!-- Objects will be generated dynamically -->
</div>
</div>
<!-- Page Indicators -->
<div class="page-indicators-center" id="pageIndicators">
<!-- Indicators will be generated dynamically -->
</div>
</main>
<!-- Bottom Navigation -->
<nav class="bottom-nav">
<button class="nav-btn" data-nav="home">
<span class="material-symbols-outlined">home</span>
</button>
<button class="nav-btn active" data-nav="learn">
<span class="material-symbols-outlined">menu_book</span>
</button>
<button class="nav-btn" data-nav="settings">
<span class="material-symbols-outlined">settings</span>
</button>
</nav>
</div>
<!-- ALPHABET LEARNING VIEW -->
<div id="alphabetLearningView" class="view">
<!-- Top Bar -->
<header class="top-bar">
<button class="icon-btn" id="backFromAlphabetLearning" aria-label="Back">
<span class="material-symbols-outlined">arrow_back</span>
</button>
<h1 class="app-title">Learn Letters</h1>
<button class="icon-btn" id="letterInfoBtn" aria-label="Info">
<span class="material-symbols-outlined">info</span>
</button>
</header>
<!-- Learning Content -->
<main class="learning-content alphabet-learning-main">
<!-- Letter Display with Side Navigation -->
<div class="alphabet-display-container">
<!-- Left Arrow -->
<button class="side-nav-arrow left" id="prevLetter" aria-label="Previous letter">
<span class="material-symbols-outlined">chevron_left</span>
</button>
<!-- Letter Circle (Larger) -->
<div class="letter-display-section">
<div class="letter-circle-large" id="letterCircle">
<span class="big-letter" id="currentLetter">A</span>
<button class="speaker-btn glass" id="letterSpeakerBtn" aria-label="Hear letter">
<span class="material-symbols-outlined">volume_up</span>
</button>
</div>
<p class="letter-label" id="letterLabel">Letter A</p>
</div>
<!-- Right Arrow -->
<button class="side-nav-arrow right" id="nextLetter" aria-label="Next letter">
<span class="material-symbols-outlined">chevron_right</span>
</button>
</div>
<!-- Page Indicators -->
<div class="page-indicators-center" id="letterPageIndicators">
<!-- Indicators will be generated dynamically -->
</div>
</main>
<!-- Bottom Navigation -->
<nav class="bottom-nav">
<button class="nav-btn" data-nav="home">
<span class="material-symbols-outlined">home</span>
</button>
<button class="nav-btn active" data-nav="learn">
<span class="material-symbols-outlined">menu_book</span>
</button>
<button class="nav-btn" data-nav="settings">
<span class="material-symbols-outlined">settings</span>
</button>
</nav>
</div>
<!-- PRACTICE VIEW - Quiz Mode -->
<div id="practiceView" class="view">
<!-- Top Bar -->
<header class="top-bar">
<button class="icon-btn" id="backFromPractice" aria-label="Back">
<span class="material-symbols-outlined">arrow_back</span>
</button>
<h1 class="app-title">Practice Mode</h1>
<div class="icon-btn-placeholder"></div>
</header>
<!-- Progress Section -->
<div class="progress-section">
<div class="progress-header">
<p class="progress-label" id="practiceRangeLabel">Numbers 10-20</p>
<p class="progress-score" id="progressScore">0 / 10</p>
</div>
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
</div>
<!-- Question Section -->
<main class="quiz-content">
<h2 class="quiz-question" id="quizQuestion">
Where is the <span id="itemType">number</span> <span class="highlight-number"
id="targetNumber">12</span>?
</h2>
<!-- Answer Options -->
<div class="quiz-options" id="quizOptions">
<!-- Options will be generated dynamically -->
</div>
</main>
<!-- Confetti Canvas -->
<canvas id="confettiCanvas" class="confetti-canvas"></canvas>
<!-- Bottom Navigation -->
<nav class="bottom-nav">
<button class="nav-btn" data-nav="home">
<span class="material-symbols-outlined">home</span>
</button>
<button class="nav-btn active" data-nav="practice">
<span class="material-symbols-outlined">quiz</span>
</button>
<button class="nav-btn" data-nav="profile">
<span class="material-symbols-outlined">person</span>
</button>
</nav>
</div>
<!-- CATCH GAME VIEW -->
<div id="gameView" class="view game-view">
<!-- Top Bar -->
<header class="top-bar">
<button class="icon-btn" id="backFromGame" aria-label="Back">
<span class="material-symbols-outlined">arrow_back</span>
</button>
<h1 class="app-title">Catch Game</h1>
<div class="icon-btn-placeholder"></div>
</header>
<!-- Game HUD -->
<div class="game-hud">
<div class="lives-container">
<span class="life-heart" id="life1">❤️</span>
<span class="life-heart" id="life2">❤️</span>
<span class="life-heart" id="life3">❤️</span>
</div>
<div class="target-prompt" id="targetPrompt">
Get Ready!
</div>
<div class="game-controls">
<button class="game-control-btn" id="pauseBtn" title="Pause">
<span class="material-symbols-outlined">pause</span>
</button>
<button class="game-control-btn stop-btn" id="stopBtn" title="Stop">
<span class="material-symbols-outlined">stop</span>
</button>
</div>
<div class="score-container">
<div class="score-label">Score</div>
<div class="score-value" id="gameScore">0</div>
</div>
</div>
<!-- Game Container (where objects fall) -->
<div class="game-container" id="gameContainer">
<!-- Falling objects will be added here dynamically -->
</div>
<!-- High Score Bar -->
<div class="high-score-bar">
<span class="high-score-label">🏆 High Score:</span>
<span class="high-score-value" id="highScoreValue">0</span>
<span class="high-score-player" id="highScorePlayer"></span>
</div>
<!-- Start Screen Overlay -->
<div class="game-overlay" id="startOverlay">
<div class="start-screen">
<h2>🎯 Catch Game!</h2>
<p>Click the correct number or letter as it falls!</p>
<button class="start-game-btn" id="startGameBtn">
Let's Play!
</button>
</div>
</div>
<!-- High Score Modal -->
<div class="game-overlay hidden" id="highScoreModal">
<div class="high-score-modal">
<div class="high-score-modal-header">
<span class="high-score-trophy">🏆</span>
<h2>NEW HIGH SCORE!</h2>
<p class="new-score-value" id="newScoreValue">0</p>
</div>
<div class="high-score-modal-body">
<label for="playerNameInput">Enter your name:</label>
<input type="text" id="playerNameInput" class="player-name-input" maxlength="20"
placeholder="Your name...">
</div>
<div class="high-score-modal-footer">
<button class="high-score-btn" id="saveHighScoreBtn">Save</button>
</div>
</div>
</div>
<!-- Game Over Overlay -->
<div class="game-overlay hidden" id="gameOverOverlay">
<div class="game-over-screen">
<h2>🎉 Game Over!</h2>
<div class="final-score" id="finalScore">0</div>
<p>Great job!</p>
<button class="play-again-btn" id="playAgainBtn">
Play Again
</button>
</div>
</div>
</div>
</div>
<!-- Settings Modal -->
<div class="modal-overlay" id="settingsModal">
<div class="modal">
<div class="modal-header">
<h2 class="modal-title">Settings</h2>
<button class="modal-close" id="closeModal" aria-label="Close">
<span class="material-symbols-outlined">close</span>
</button>
</div>
<div class="modal-body">
<!-- Number Range Setting -->
<div class="setting-group">
<label class="setting-label">Number Range (11 numbers)</label>
<div class="range-inputs">
<div class="range-input">
<label for="numberStart">Start (max 90)</label>
<input type="number" id="numberStart" min="1" max="90" value="10">
</div>
<div class="range-input">
<label for="numberEnd">End (auto)</label>
<input type="number" id="numberEnd" value="20" readonly>
</div>
</div>
<div class="range-preview" id="numberPreview">Range: 10-20 (11 numbers)</div>
</div>
<!-- Letter Range Setting -->
<div class="setting-group">
<label class="setting-label">Letter Range (12 letters)</label>
<div class="range-inputs">
<div class="range-input">
<label for="letterStart">Start (max O)</label>
<select id="letterStart">
<!-- Will be populated by JavaScript -->
</select>
</div>
<div class="range-input">
<label for="letterEnd">End (auto)</label>
<select id="letterEnd" disabled>
<!-- Will be populated by JavaScript -->
</select>
</div>
</div>
<div class="range-preview" id="letterPreview">Range: A-L (12 letters)</div>
</div>
</div>
<div class="modal-footer">
<button class="modal-btn modal-btn-danger" id="resetHighScores">Reset High Scores</button>
<div style="flex: 1;"></div>
<button class="modal-btn modal-btn-secondary" id="cancelSettings">Cancel</button>
<button class="modal-btn modal-btn-primary" id="applySettings">Apply</button>
</div>
</div>
</div>
<!-- JavaScript -->
<script src="js/settings.js"></script>
<script src="js/app.js"></script>
<script src="js/learning.js"></script>
<script src="js/alphabet-learning.js"></script>
<script src="js/practice.js"></script>
<script src="js/alphabet-practice.js"></script>
<script src="js/catch-game.js"></script>
<!-- Service Worker Registration -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
.then(reg => console.log('🚀 Service Worker registered!', reg))
.catch(err => console.log('❌ Service Worker failed:', err));
});
}
</script>
</body>
</html>