-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (91 loc) · 3.35 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
<!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>Code Quiz</title>
<link rel="icon" href="./assets/images/question-mark-favicon.png" />
<link rel="stylesheet" href="assets/css/style.css" />
</head>
<body>
<header>
<h1 class="title" onclick="pageLoad()">Michael's Code Quiz</h1>
<div class="subtitle">
<h2 class="hoverable-text" onclick="renderHighScores()">
View High Scores
</h2>
<h2 id="timer-el"></h2>
</div>
</header>
<main>
<section id="intro" class="intro">
<h3>Hello World!</h3>
<p>Welcome to my timed programming quiz. Here are the rules:</p>
<ul>
<li>You will have 300 seconds to complete the quiz.</li>
<li>You may skip as many questions as you like.</li>
<li>Answers can not be changed once selected.</li>
<li>30 seconds will be deducted for incorrect answers.</li>
<li>Correct answers will increase your score by 10 points.</li>
<li>
Every second of time remaining at quiz completion will increase your
score by 1 points.
</li>
</ul>
<button class="hoverable-button" onclick="beginQuiz()">Start Quiz!</button>
</section>
<section id="question-card" class="question-card">
<h3 id="question-text-el"></h3>
<div id="answers-container-el"></div>
<div id="question-notification-el"></div>
<button
id="next-question-button"
class="question-submit hoverable-button"
onclick="nextQuestion()"
>
Skip
</button>
</section>
<section id="results" class="results">
<p>Number of questions answered correctly:</p>
<p id="correct-questions-el"></p>
<p>Time Remaining:</p>
<p id="time-remaining-el"></p>
<p>Final score:</p>
<p id="final-score-el"></p>
<input
type="text"
name="initials"
id="initials"
placeholder="Enter initials"
maxlength="3"
/>
<p id="invalid-initials-message">Field must contain 3 letters.</p>
<button class="hoverable-button" onclick="saveScore()">Save Score</button>
<button class="hoverable-button" onclick="pageLoad()">Retake Quiz</button>
</section>
<section id="high-scores" class="high-scores">
<h3>High Scores</h3>
<p id="empty-storage-message">
There are no scores currently saved to local storage.
</p>
<ol id="high-scores-ol"></ol>
<button class="hoverable-button" onclick="pageLoad()">Return to Quiz</button>
<button class="hoverable-button" id="clear-scores-button" onclick="clearScores()">Clear Saved Scores</button>
</section>
</main>
<footer>
<a
class="hoverable-text"
href="https://github.com/mikeyrod22/WEB-API-CHALLENGE-code-quiz"
target="_blank"
>
<h4>Github Repository</h4>
<img class="github-icon" src="assets/images/github-icon.png" />
</a>
</footer>
<script type="text/Javascript" src="assets/js/questions.js"></script>
<script type="text/Javascript" src="assets/js/quiz.js"></script>
</body>
</html>