-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (59 loc) · 3.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript Coding-Quiz</title>
<!-- Required meta tags -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css " rel="stylesheet " integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We " crossorigin="anonymous ">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets\css\style.css" />
</head>
<body>
<nav class="navbar navbar-light">
<header id="highscore-history" class="highscores">
<a href="./highscore.html" class="high-scores">View Highscores</a>
</header>
<span class="countdown" id="timer">TIME: 90 </span>
</nav>
<main>
<section id="start-container" class="start-page section-container ">
<h1 id="title">Coding Quiz Challenge</h1>
<p id="instructions">
<strong>Instructions:</strong> Try to answer the following code-related questions within the time limit. Keep in mind that incorrect answers will penalize your score/time by ten seconds!
</p>
<button id="start-button" class="button">Start Quiz</button>
</section>
<div id="question-container">
<div id="question-title" class="quiz"></div>
<div id="answers"></div>
</div>
<div id="feedback"></div>
<section id="end" class="quiz-section hidden">
<h1 id="end-title">Quiz completed</h1>
<p id="score-text">You scored: <span id="score">0</span></p>
<form id="submit-score">
<label id="enter-initials">Enter initials:</label>
<input type="text" id="input-initials">
<button id="submit-btn" type="submit" class=" btn btn-danger">Submit</button>
<p id="error-message"></p>
</form>
<button type="button" onclick="window.location='index.html' ; " class="back-button btn btn-danger ">Back to
quiz</button>
</section>
<div>
<p id="correct" class="choice-status hidden"><i class="fas fa-check-circle " aria-hidden="true "></i>Correct!</p>
<p id="wrong" class="choice-status hidden"><i class="fas fa-times-circle " aria-hidden="true "></i>Wrong!
</p>
</div>
</main>
</main>
<script src="https://code.jquery.com/jquery-3.4.1.js " integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin=" anonymous "></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js " integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM " crossorigin="anonymous "></script>
<script src="./assets/js/script.js "></script>
</body>
</html>