-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (97 loc) · 4.12 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
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coding Quiz Extraordinaire</title>
<link rel= "stylesheet" href = "assets/css/style.css">
<link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet">
</head>
<body>
<header id="header">
<a href="https://jwilferd10.github.io/Coding-Quiz-Extraordinaire/" id="headerText">
<h1><span class="headerEmoji">🤯🤯</span> Coding Quiz Extraordinaire <span class="headerEmoji">🤯🤯</span></h1>
</a>
</header>
<!-- nav -->
<section id="topBox" class="backGround">
<!-- Timer -->
<div class="counter" id="timer">Starting Time: 60 seconds</div>
</section>
<!-- Main Page -->
<section class="intro container" id="intro">
<!-- Instructions Container -->
<div class="introWrapper">
<h1 class="letsAddSpace">Before You Start:</h1>
<ol>
<li>You have a full minute to answer all the questions</li>
<li>For every incorrect answer you lose ten seconds on the clock</li>
<li>Upon finishing the quiz the time you have left is your final score</li>
<li>Good luck and have fun!</li>
</ol>
</div>
<!-- User Options Container-->
<div class="userOptions">
<!-- Start Quiz -->
<h3 class="letsAddSpace optionsText">Are You Ready?</h3>
<button id="start-btn" class="btn"><span>Start! </span></button>
<!-- View High Score -->
<h3 class="letsAddSpace optionsText"> Or </h2>
<button id="highscore" class="highscore btn">View High Scores!</button>
</div>
</section>
<!-- Quiz Section -->
<main class="start-quiz container hidden" id="quiz">
<!-- Questions -->
<h2 id="question">Questions</h2>
<!-- Answers -->
<p id="potentialAnswers"></p>
<!-- Correct or Incorrect Messages-->
<p class="progress"></p>
</main>
<!-- Results -->
<section class= "container hidden" id="finalResults"></section>
<!-- User Scores -->
<section id="enterScore" class="enterScore hidden">
<form method="POST">
<div class="initialContainer">
<!-- Enter Initials -->
<label for="initials" class="initialsHeader">Enter Initials:</label>
<input
type="text"
id="initials"
class="initialsBox"
name="initials"
placeholder="Must be 2-5 Characters"
required minlength="2"
maxlength="5"
/>
<button id="save" class="submitbtn">Submit</button>
</div>
<div id="msg"></div>
</form>
</section>
<!-- Present Entered Initials and Time -->
<section id="savedScore" class="container hidden">
<h2>🎉🥳 Great Job! 🥳🎉</h2>
<h3>Your saved score:</h3>
</section>
<!-- High Scores -->
<section id="scoreSectionID"class="scoreSection hidden container">
<h2 id="scoreHeader">High Scores</h2>
<ul id="highScoresList"></ul>
<btn id="homebtn" class="btn">Go Home</btn>
</section>
<!-- Project GitHub Link -->
<section class="footerSection">
<a href="https://github.com/jwilferd10/Code-Quiz" target="_blank">
<img src="./assets/img/GitHub.png" alt="GitHub Logo and Link" id="footerImg">
</a>
</section>
<!-- Footer -->
<footer class="footerWrapper">
<p class="footerText">©2023 by Jonathan Wilferd</p>
</footer>
<script src="./assets/js/script.js"></script>
</body>
</html>