-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (47 loc) · 1.67 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">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" />
<title>Timed Quiz</title>
</head>
<header >
<a href="highScore.html">View Scoreboard</a>
<!-- Quiz timer -->
<div id="time" ></div>
</header>
<body>
<div id="main">
<div id="start">
<h2>Dog trivia</h2>
<p>Each question is worth 20 points. This quiz is timed, but choose carefully- every wrong
answer will subtract 15 seconds from the clock!!
</p>
<button id="startButton">Start</button>
</div>
<!-- Quiz Content -->
<div id="questionContainer">
<header>
<div class="title" style="text-align: center">Dog quiz</div>
</header>
<div id="questionContainer">
<div id="questionTitle"></div>
<ul id="answerChoices"></ul>
<p id="correctAnswer" style="display: none" class="answerResponse">CORRECT!</p>
<p id="wrongAnswer" style="display: none" class="answerResponse">Wrong answer :(</p>
</div>
</div>
<div id="postQuizDiv">
<!-- user enters initials -->
<label for="initials" placeholder="ABC">Your initials: </label>
<input type="text" id="initials" placeholder="ABC" onfocus="this.value=''"/>
<button id="saveInitials">Save</button>
<button id="playAgain">Play again!</button>
<button id="view-scoreboard">View Scoreboard</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>