-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (96 loc) · 3.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Math Sprint Game</title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="game-container">
<!-- Header -->
<div class="header">
<h1>Math Sprint Game</h1>
</div>
<!-- Splash Page -->
<div class="card" id="splash-page">
<form id="start-form">
<div class="selection-container">
<!-- 10 Questions Radio Input -->
<div class="radio-container">
<label for="value-10">10 Questions</label>
<input type="radio" name="questions" value="10" id="value-10">
<span class="best-score">
<span>Best Score</span>
<span class="best-score-value"></span>
</span>
</div>
<!-- 25 Questions Radio Input -->
<div class="radio-container">
<label for="value-25">25 Questions</label>
<input type="radio" name="questions" value="25" id="value-25">
<span class="best-score">
<span>Best Score</span>
<span class="best-score-value"></span>
</span>
</div>
<!-- 50 Questions Radio Input -->
<div class="radio-container">
<label for="value-50">50 Questions</label>
<input type="radio" name="questions" value="50" id="value-50">
<span class="best-score">
<span>Best Score</span>
<span class="best-score-value"></span>
</span>
</div>
<!-- 99 Questions Radio Input -->
<div class="radio-container">
<label for="value-99">99 Questions</label>
<input type="radio" name="questions" value="99" id="value-99">
<span class="best-score">
<span>Best Score</span>
<span class="best-score-value"></span>
</span>
</div>
</div>
<!-- Start Button -->
<div class="selection-footer">
<button class="start" type="submit">Start Round</button>
</div>
</form>
</div>
<!-- Countdown Page -->
<div class="card" id="countdown-page" hidden>
<h1 class="countdown">3</h1>
</div>
<!-- Game Page -->
<div class="card" id="game-page" hidden>
<!-- Item Container -->
<div class="item-container"></div>
<!-- Right/Wrong Buttons -->
<div class="item-footer">
<button class="wrong" onclick="select(false)">Wrong</button>
<button class="right" onclick="select(true)">Right</button>
</div>
</div>
<!-- Score Page -->
<div class="card" id="score-page" hidden>
<!-- Score Container -->
<div class="score-container">
<h1 class="title">Your Time</h1>
<h1 class="final-time"></h1>
<h1 class="base-time"></h1>
<h1 class="penalty-time"></h1>
</div>
<!-- Play Again Button -->
<div class="score-footer">
<button class="play-again" onclick="playAgain()" hidden>Play Again</button>
</div>
</div>
</div>
<!-- Script -->
<script src="shuffle.js"></script>
<script src="script.js"></script>
</body>
</html>