-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
216 lines (213 loc) · 9.15 KB
/
Copy pathindex.html
File metadata and controls
216 lines (213 loc) · 9.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GameQuiz!</title>
<link rel="shortcut icon" href="./assets/logo_noBackground.png" type="image/x-icon">
<script src="https://kit.fontawesome.com/c569a510c1.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./style/normalize.css">
<link rel="stylesheet" href="./style/style.css">
<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@100;400;700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script defer src="./js/Quiz.js"></script>
</head>
<body>
<header class="header">
<nav class="header__nav">
<div class="nav__brand">
<img src="./assets/logo.png" alt="GameQuiz logo">
<h1 class="nav__item">Game<span>Quiz</span></h1>
</div>
<div class="nav__items">
<button class="nav__link" id="btn-play"><span><i class="fa-solid fa-play"></i></span><span>Play</span></button>
<button class="nav__link" id="btn-Leaderboard"><span><i class="fa-solid fa-ranking-star"></i></span><span>Leaderboard</span></button>
</div>
</nav>
</header>
<main class="main flexcenter">
<div class="main__wellcome flexcenter" id="wellcome-page">
<img src="./assets/logo.png" alt="Logo">
<h2 class="textcenter">Wellcome to GameQuiz</h2>
<p class="textcenter">Are you ready to put your gaming knowledge to the test?</p>
<button id="btn-wellcome">Start</button>
</div>
<div class="main__start flexcenter d-none" id="start-page">
<form class="start__form" id="start-form">
<div class="form__name">
<label id='name-label' class="name__label" for="userName-input">Write your name:</label>
<input type="text" id="userName-input">
</div>
<button type="submit" id="submit-btn"><span>Start</span><span><i class="fa-solid fa-circle-right"></i></span></button>
</form>
</div>
<div class="main__question d-none" id="question-page">
<div class="question__hero flexcenter">
<p id="hero-count">/<span>10</span></p>
</div>
<h2 id="question-title">1. Sakjhfldsj kjla fdslkjdsahljd sahlfjhadsljkhflsa djklsafll ashlfas?</h2>
<form id="question-form">
<fieldset>
<div class="question__option flexcenter" id="option-1">
<div class="option__deco flexcenter">
<p>✓</p>
</div>
<input type="radio" name="options" id="option1" value="opcion1">
<label for="option1" id="option01">Opcion1</label>
</div>
<div class="question__option flexcenter" id="option-2">
<div class="option__deco flexcenter">
<p>✓</p>
</div>
<input type="radio" name="options" id="option2" value="opcion2">
<label for="option2" id="option02">Opcion2</label>
</div>
<div class="question__option flexcenter" id="option-3">
<div class="option__deco flexcenter">
<p>✓</p>
</div>
<input type="radio" name="options" id="option3" value="opcion3">
<label for="option3" id="option03">Opcion3</label>
</div>
<div class="question__option flexcenter" id="option-4">
<div class="option__deco flexcenter">
<p>✓</p>
</div>
<input type="radio" name="options" id="option4" value="opcion4">
<label for="option4" id="option04">Opcion4</label>
</div>
</fieldset>
<div class="form__submit">
<h1 id="countDown">15</h3>
<button type="submit"><span>Next</span><span><i class="fa-solid fa-circle-right"></i></span></span></button>
</div>
</form>
<div class="form__timer">
<div id="timerbar" class="timer__complete"></div>
</div>
</div>
<div class="main__stats d-none" id="stats-page">
<div class="stats__score">
<h2>Score:</h2>
<div class="score__graph">
<figure>
<p id="endScore"></p>
<canvas id="endGraph"></canvas>
</figure>
</div>
</div>
<div class="stats__position">
<h2>Your position in the ranking is:</h2>
<div class="position__medal flexcenter">
<h3 id="position-score">#5</h3>
</div>
</div>
<nav class="stats__nav w-100">
<input type="button" value="Play again" id="play-again-btn">
<input type="button" value="Leadboard" id="leaderboard-btn">
</nav>
</div>
<div class="main__leaderboard d-none" id="leaderboard-page">
<h2>-Leader<span>board</span>-</h2>
<table class="leaderboard__table">
<tr>
<th>Position</th>
<th>Username</th>
<th>Score</th>
</tr>
<tr>
<td class="table__position table__position--first">
<i class="fa-solid fa-trophy"></i>
<p>#1</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position table__position--second">
<i class="fa-solid fa-trophy"></i>
<p>#2</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position table__position--third">
<i class="fa-solid fa-trophy"></i>
<p>#3</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position">
<p>#4</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position">
<p>#5</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position">
<p>#6</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position">
<p>#7</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position">
<p>#8</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position">
<p>#9</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
<tr>
<td class="table__position">
<p>#10</p>
</td>
<td class="table__name">---</td>
<td class="table__score">---</td>
</tr>
</table>
</div>
</main>
<footer class="footer flexcenter">
<div class="footer__item">
<a href="">
<i class="fa-brands fa-github"></i>
<p>Shan</p>
</a>
</div>
<div class="footer__item">
<a href="">
<i class="fa-brands fa-github"></i>
<p>Michael</p>
</a>
</div>
</footer>
</body>
</html>