-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (67 loc) · 2.93 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
<!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">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Balsamiq+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>JS Code Quiz</title>
</head>
<body>
<header>
<strong><a href="highscores.html">High Scores</a></strong>
<span class="timer">Time remaining: <span id="timer">0</span></span>
</header>
<!-- Home -->
<main>
<div class="container" id="home">
<div class="home-container">
<h1 style="text-align: center">JAVASCRIPT QUIZ!</h1>
<h5>Try to answer these questions about Javascript in 120 seconds or less!</h5>
<b><i>NOTE:</i></b> <br>
<ul>
<li>If you answer incorrectly the background will turn red and you will lose 20 seconds off of the timer.</li>
<li>If answered correctly the background will change to green and you get 10 points!</li>
<li>Hit "next" button for next question.</li>
<li>At end of quiz, submit your score to the high scores!</li>
</ul>
<br>
<button type="button" id="start-btn" class="btn start-btn">START QUIZ</button>
</div>
</div>
<!-- Question & Answer -->
<div class="container hide" id="quiz">
<div id="question-container">
<div id="question">Question</div>
<div id="answer-buttons" class="btn-grid">
<button type="button" class="btn">Answer 1</button>
<button type="button" class="btn">Answer 2</button>
<button type="button" class="btn">Answer 3</button>
<button type="button" class="btn">Answer 4</button>
</div>
</div>
<div class="controls">
<button type="button" id="next-btn" class="next-btn btn hide">Next</button>
</div>
</div>
<!-- Finished Screen -->
<div class="container hide" id="submit-score">
<div>
<h2>Finished!</h2>
<span class="score">You're final score is: <span id="right-answers">0</span></span>
<br>
<br>
<form class="form-group">
<label for="new-score">Enter your name: </label>
<input type="text" id="userName">
<button type="button" class="btn submitBtn" id="submitBtn">Submit Score</button>
</form>
</div>
</div>
</main>
<script src="questions.js"></script>
<script src="main.js"></script>
</body>
</html>