-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (48 loc) · 1.52 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8"/>
<title>Trivia game in 60 Secs</title>
<script src="index.js"></script>
<link rel="stylesheet" href="index.css"/>
</head>
<body>
<h2>Trivia Game in 60 secs</h2>
<div>
<form id="playername">
<label for="player_name">Player's Name</label>
<input type="text" id="player_name" placeholder="Enter your name" required/>
<input type="submit" value="Submit"/>
</form>
<div id="greetings">Welcome <span id="name">name</span>. Click START to begin <button id="start">START</button></div>
<div id="goodluck">Good Luck <span id="name">name</span>!</div>
<div id ="timer">
<p>Timer: <span id="countdown">60</span></p>
</div>
<div id ="question">
<h3>Example question</h3>
<ul class="choices" id="a">a</ul>
<ul class="choices" id ="b">b</ul>
<ul class="choices" id ="c">c</ul>
<ul class ="choices" id ="d">d</ul>
<div id ="scoring">
<p><span id="numcorrect">0</span> correct out of <span id="totalquestions">0</span> questions.</p>
<p id="display"></p>
</div>
<div id ="endbox">
<p></p>
<button id ="yes">Yes</button>
<button id="no">No</button>
</div>
</div>
<div id="top-scorers">
<h4>Top Scorers of All Time</h4>
<table>
<tr>
<th>Player's Name</th>
<th> Number of correct answers</th>
</tr>
</table>
</div>
</body>
</html>