-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (72 loc) · 3.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Quiz</title>
</head>
<body>
<div class="container py-2" id="start">
<!-- WELCOME SECTION -->
<div class="card my-5" id="welcome-wrapper" style="text-align: center">
<div class="card-body text-light">
<h3 class="py-4">WELCOME TO TECH QUIZ</h3>
<p>By : Phary Phal</p>
<hr>
<select class="form-select mx-auto my-4" id="select">
<option value="9" selected>--Please select question type--</option>
<option value="27">Animals</option>
<option value="11">Entertainment: Film</option>
<option value="12">Entertainment: Music</option>
<option value="9">General Knowledge</option>
<option value="18">Science: Computers</option>
<option value="19">Science: Mathematics</option>
<option value="17">Science & Nature</option>
</select>
<label for="numQ" class="d-block pb-1"> Please enter number of questions in the box below <br> Note: Minimum number of question is 10 and Maximum is 50.</label>
<input type="number" min="10" max="50" name="numQ" class="py-1 text-center text-dark bg-light btn-outline-secondary" >
<h5 class="card-title mt-2 fs-6 fst-italic fw-lighter py-3">Please choose your level to begin the quiz</h5>
<div>
<a class="btn btn-light btn-sm fs-6 mb-4 text-primary fw-bolder shadow-lg level" onclick = "fetchData(this)">EASY</a>
<a class="btn btn-light btn-sm fs-6 mb-4 text-primary fw-bolder shadow-lg level" onclick = "fetchData(this)">MEDIUM</a>
<a class="btn btn-light btn-sm fs-6 mb-4 text-primary fw-bolder shadow-lg level" onclick = "fetchData(this)">HARD</a>
</div>
<!-- <a class="btn btn-light btn-lg fs-5 px-4 mb-4 text-primary fw-bolder shadow-lg" onclick = "fetchData()">START</a> -->
<hr>
<h5 class="card-text py-4">All the best !</h5>
</div>
</div>
</div>
<!-- (B) QUIZ CONTAINER -->
<div class="container text-light py-4" id="quizBlock" style="display: none">
<div class="mb-5 text-center">
<h2 class="my-2">Test your knowledge</h2>
<h6 class="text-info"></h6>
<hr>
<!-- <div>Time remaining :
<meter max="60" min="0" low="20" value="60" high="35" optimum="45" id="time" style="vertical-align: middle;"></meter>
<span id="digitTime"> 01:00 </span>
</div> -->
</div>
<div id="quizWrap"></div>
<div class="my-2 text-center">
<h4 class="my-4"><span id="score" class="text-light"></span></h4>
<hr>
<button type="button" class="btn btn-primary mx-3 my-3" id="btnSubmit">
Submit Quiz
</button>
<button type="button" class="btn btn-primary mx-3 my-3" id="btnReset">
Reset Quiz
</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>