-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (55 loc) · 2.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Quiz App</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script defer src="/app.js"></script>
</head>
<body>
<div class="begin-quiz text-center">
<h1>Take a Quiz!</h1>
<p class="lead">Choose a Category:</p>
<select class="form-select my-3" id="select-category"></select>
<button class="btn btn-primary begin-btn">Begin</button>
</div>
<div class="m-4 quiz-area hidden">
<div class="question-area">
<h5 class=" text-success mt-3 question-heading text-center">Question <span class="question-number"></span> of <span class="total-questions"></span></h5>
<p class="question lead"></p>
</div>
<div class="option-area text-center">
<div class="form-check">
<input class="form-check-input btn-check" type="radio" id="option-1" name="options">
<label class="form-check-label btn btn-outline-secondary w-50" for="option-1"></label>
</div>
<div class="form-check">
<input class="form-check-input btn-check" type="radio" id="option-2" name="options">
<label class="form-check-label btn btn-outline-secondary w-50" for="option-2"></label>
</div>
<div class="form-check">
<input class="form-check-input btn-check" type="radio" id="option-3" name="options">
<label class="form-check-label btn btn-outline-secondary w-50" for="option-3"></label>
</div>
<div class="form-check">
<input class="form-check-input btn-check" type="radio" id="option-4" name="options">
<label class="form-check-label btn btn-outline-secondary w-50" for="option-4"></label>
</div>
<div class="error-msg hidden">Please select an option</div>
<div class="display-answer hidden"></div>
<div class="buttons my-4">
<button class="btn btn-primary previous-btn">Previous</button>
<button class="btn btn-primary next-btn">Next</button>
</div>
</div>
</div>
<div class="end-area hidden text-center">
<h1 class="total-score"></h1>
<p class="total-score">End of Quiz!</p>
<button class="restart-btn btn btn-primary">Try again!</button>
</div>
</body>
</html>