-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (89 loc) · 3.94 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Code Quiz</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!--QUIZ CONTAINER -->
<header>
<div class="highScore">View Highscores</div>
<div class="timer">Time: 60</div>
</header>
<div class="container" id="quizContainer">
<!--FIRST ROW -->
<div class="row">
<!--GAME INFO -->
<div class="col-lg-12">
<!--START BUTTON -->
<div class="card" style="width: 100%">
<div class="card-body">
<h1 class="card-title"><span>Codi</span>ng Qu<span2>iz</span2> <span3>Chal</span3><span4>lenge</span4></h1>
<hr id="win" />
<p class="card-text"><span>This test will review your knowledge of basic
JavaScript with 5 multiple choice questions.
Click the "Start" button to begin the quiz.
You will have 1 minute to complete the assessment.
Each incorrect answer will cost you 10 seconds of clock time.
Your score will your be your time remaining.</span>
<br>
<br>
<strong>Let's Go 🔥</strong>
</p>
<hr id="win" />
</div>
<div>
<div>
<button type="button" class="btn btn-dark" id="start">Start 👍</button>
</div>
</div>
</div>
</div>
<!-- SECOND COLUMN IN THE ROW -->
<div class="col-lg-12" id="removePadding">
<br>
<!-- DISPLAYS THE CURRENT QUESTION -->
<div class="question-display"></div>
<br>
<!-- DISPLAYS THE BUTTON ARRAY -->
<ul id="button-display"></ul>
<!-- DISPLAYS WHETHER USER IS RIGHT OR WRONG -->
<div class="areYouRight">
<div class="timeout"></div>
</div>
<!-- DISPLAYS THE LAST PAGE WITH STATS AND GETS INITIALS FOR HIGH SCORE -->
<div class="final-page" style="display: none">
<div id="message"></div>
<div id="score"></div>
<div id="correct"></div>
<div id="incorrect"></div>
<br>
<div id="initials">
<form>
Enter initials:<input type="text" placeholder="Enter initials here" id="userInput"
name="initials">
<input type="button" id="submitInitials" style="color:white;" value="Submit">
</form>
</div>
</div>
<div class="highScorePage" style="display:none">
<h1 id="hsTitle">Highscores</h1>
<hr id="win" />
<ul id="hsArray"></ul>
<!-- <hr id = "win"/> -->
<div>
<button type="button" id="goBack">⏮ Back</button>
<button type="button" id="resetScores">Reset Highscores</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- LINK TO JAVASCRIPT FILE -->
<script src="assets/js/script.js"></script>
</body>