-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
144 lines (132 loc) · 5.7 KB
/
index.html
File metadata and controls
144 lines (132 loc) · 5.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Math Adventure!</title>
<link href="https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;700;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/theme.css">
<link rel="stylesheet" href="css/animations.css">
<link rel="stylesheet" href="css/screens.css">
</head>
<body>
<!-- Decorative background animals -->
<img class="corner-animal top-left" src="Assets/Images/koala.jpg" alt="">
<img class="corner-animal bottom-right" src="Assets/Images/panda.jpg" alt="">
<!-- Paint splatters & confetti -->
<div class="splatters" id="splatters"></div>
<div class="confetti-container" id="confettiContainer"></div>
<!-- ========== WELCOME SCREEN ========== -->
<div class="welcome-screen" id="welcomeScreen">
<div class="welcome-box">
<img class="welcome-animal" src="Assets/Images/giraffe.jpg" alt="Welcome animal">
<div class="welcome-title">Math Adventure!</div>
<div class="welcome-subtitle" id="welcomeSubtitle">Enter your name to start playing!</div>
<input class="welcome-input" id="welcomeNameInput" type="text" placeholder="Your name..." maxlength="20" autocomplete="off">
<button class="welcome-start-btn" id="welcomeStartBtn" disabled>Start</button>
</div>
</div>
<!-- ========== VIDEO OVERLAY ========== -->
<div class="video-overlay" id="videoOverlay">
<div class="congrats-title">Congratulations!</div>
<div class="video-wrapper">
<video id="rewardVideo" playsinline></video>
<button class="play-again-btn" id="videoPlayAgainBtn" onclick="closeVideoAndPlayAgain()">Play Again!</button>
</div>
</div>
<!-- ========== CELEBRATION OVERLAY ========== -->
<div class="celebration" id="celebrationOverlay">
<div class="celebration-box">
<img class="celeb-animal" id="celebAnimal" src="Assets/Images/giraffe.jpg" alt="Celebration animal">
<div class="celeb-title" id="celebTitle">Amazing!</div>
<div class="celeb-sub" id="celebSub">You finished the round!</div>
<div class="celeb-score" id="celebScore"></div>
<div class="celeb-points" id="celebPoints"></div>
<button class="play-again-btn" onclick="playAgain()">Play Again!</button>
</div>
</div>
<!-- ========== HIGH SCORE SCREEN ========== -->
<div class="highscore-screen" id="highscoreScreen">
<div class="highscore-box">
<div class="highscore-title">High Scores</div>
<table class="highscore-table">
<thead>
<tr>
<th class="rank-col">#</th>
<th>Name</th>
<th>Score</th>
<th>Rounds</th>
</tr>
</thead>
<tbody id="highscoreBody"></tbody>
</table>
<button class="play-again-btn" onclick="dismissHighScoresAndPlay()">Play Again!</button>
</div>
</div>
<!-- ========== GAME CONTAINER ========== -->
<div class="container" id="gameContainer">
<div class="title" id="gameTitle">Math Adventure!</div>
<!-- Level selector -->
<div class="level-panel">
<div class="level-label">Choose your level:</div>
<div class="level-buttons">
<button class="level-btn l1 selected" id="btnL1" onclick="setLevel(1)">
<img src="Assets/Images/fawn.jpg" alt="Fawn">
<span>Level 1<br><small style="font-family:Nunito;font-size:0.7rem;font-weight:700">Numbers 1-10</small></span>
</button>
<button class="level-btn l2" id="btnL2" onclick="setLevel(2)">
<img src="Assets/Images/giraffe.jpg" alt="Giraffe">
<span>Level 2<br><small style="font-family:Nunito;font-size:0.7rem;font-weight:700">Numbers 1-20</small></span>
</button>
<button class="level-btn l3" id="btnL3" onclick="setLevel(3)">
<img src="Assets/Images/koala.jpg" alt="Koala">
<span>Level 3<br><small style="font-family:Nunito;font-size:0.7rem;font-weight:700">Word Problems</small></span>
</button>
</div>
</div>
<!-- Scores -->
<div class="score-panel">
<div class="score-card">
<div class="score-label">Correct</div>
<div class="score-value" id="scoreCorrect">0</div>
</div>
<div class="score-card streak">
<div class="score-label">Streak</div>
<div class="score-value" id="scoreStreak">0</div>
</div>
<div class="score-card total">
<div class="score-label">Question</div>
<div class="score-value" id="scoreQuestion">1/5</div>
</div>
<div class="score-card grand-total">
<div class="score-label">Total</div>
<div class="score-value" id="scoreGrandTotal">0</div>
</div>
</div>
<!-- Progress -->
<div style="width:100%">
<div class="progress-wrap">
<div class="progress-bar" id="progressBar" style="width:0%"></div>
</div>
<div class="progress-label" id="progressLabel">Question 1 of 5</div>
</div>
<!-- Question card -->
<div class="question-card" id="questionCard">
<div class="question-top">
<img class="animal-buddy" id="animalBuddy" src="Assets/Images/elephant.jpg" alt="Animal buddy">
</div>
<div class="problem" id="problemDisplay"></div>
<div class="choices" id="choicesGrid"></div>
<div class="feedback" id="feedbackMsg"></div>
</div>
</div>
<!-- JS modules (order matters: utilities first, then modules, then app) -->
<script src="js/ui.js"></script>
<script src="js/audio.js"></script>
<script src="js/questions.js"></script>
<script src="js/scores.js"></script>
<script src="js/player.js"></script>
<script src="js/rewards.js"></script>
<script src="js/app.js"></script>
</body>
</html>