-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (92 loc) · 3.33 KB
/
Copy pathindex.html
File metadata and controls
100 lines (92 loc) · 3.33 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
<!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>JS Code Quiz</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Akronim&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Scada&display=swap"
rel="stylesheet"
/>
<!-- Style Sheets -->
<link rel="stylesheet" href="./assets/css/style.css" />
</head>
<body>
<header>
<div class="sizeContainer">
<div class="logo">JS Quiz</div>
<div class="timer"></div>
</div>
</header>
<main>
<!-- opening panel section - displays when screen load -->
<section class="opening panel">
<h1>Welcome to the Javascript Code quiz!!!</h1>
<h2>Where the computer will test your JS knowledge!</h2>
<p>Click, "Start", when you are ready to begin the quiz!</p>
<p>
<strong>Note:</strong> Each wrong answer will cost you
<span id="timePenalty"></span> seconds!
</p>
<div class="start button" id="openingStart">Start</div>
<div class="button viewHighScores" id="openingHighScore">
View High Scores
</div>
</section>
<!-- quiz panel - displays after the start button is pressed - holds the questions and answers -->
<section class="quiz panel">
<div class="question">
<p id="questionNum"></p>
<p id="questionText"></p>
</div>
<ul class="answers"></ul>
</section>
<!-- endGame panel - displays when the timer runs out or all questions are answered -->
<section class="endGame panel">
<div class="fire">
<h1 class="Blazing">Game Over</h1>
</div>
<p class="score">You got <span id="scoreValue"></span></p>
<p>
<!-- You answered <span id="qAnswered"></span> out of -->
<span id="totalQs"></span> <span id="timeRemaining"></span>
</p>
<section class="gotHighScore">
<p>Congratulations! You got a highscore.</p>
<form>
<label for="initials">
Please enter your initials (3 letters):
</label>
<input type="text" id="initials" max="3" />
</form>
<div class="submit button">Submit</div>
</section>
<div class="keepHere">
<div class="button start" id="gameOverStart">Play again</div>
<div class="button viewHighScores" id="gameOverHighScore">
View High Scores
</div>
</div>
<!-- this is the list of answers, it is a collection of divs that are generated by JS -->
<!-- <div class="answers solved"></div> -->
</section>
<!-- highscore -->
<section class="highScore panel">
<div class="fire">
<h1 class="Blazing">High Scores</h1>
</div>
<!-- adding some default values in case there are no high scores -->
<table id="tblHighScoreList"></table>
<div class="button start" id="highScoreStart">Play again</div>
</section>
</main>
<script src="./assets/js/script.js"></script>
</body>
</html>