-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (102 loc) · 3.69 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
<!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 Spring Game</h1>
</div>
<!-- Spalsh Page -->
<div class="card" id="splash-page">
<form id="start-form">
<div class="selection-container">
<!-- 10 question -->
<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>
</div>
<div class="selection-container">
<!-- 25 question -->
<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>
</div>
<div class="selection-container">
<!-- 50 question -->
<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>
</div>
<div class="selection-container">
<!-- 99 question -->
<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 type="submit" class="start">Start Round</button>
</div>
</form>
</div>
<!-- Countdown Page -->
<div class="card" id="countdown-page" hidden>
<h1 class="countdown"></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 -->
<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>