-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (92 loc) · 4.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simpel quiz app</title>
<link rel="stylesheet" href="style.css">
<script type="module" src="./controller.js" defer></script>
</head>
<body>
<nav class="nav">
<h1 class="page_heading">Welcom to the Simpel Quiz</h1>
</nav>
<header class="header">
<!-- get information for quiz questions -->
<form action="" class="quiz_info form ">
<h2 class="heading">About Quiz</h2>
<label for="question_amount">Number of Question: </label>
<input type="number" name="question_amount" class="form-control" max="40" min="1" value="10">
<label for="question_amount">Select Category: </label>
<select name="question_category" class="form-control">
<option value="any">Any Category</option>
<option value="9">General Knowledge</option>
<option value="10">Entertainment: Books</option>
<option value="11">Entertainment: Film</option>
<option value="12">Entertainment: Music</option>
<option value="13">Entertainment: Musicals & Theatres</option>
<option value="14">Entertainment: Television</option>
<option value="15">Entertainment: Video Games</option>
<option value="16">Entertainment: Board Games</option>
<option value="17">Science & Nature</option>
<option value="18">Science: Computers</option>
<option value="19">Science: Mathematics</option>
<option value="20">Mythology</option>
<option value="21">Sports</option>
<option value="22">Geography</option>
<option value="23">History</option>
<option value="24">Politics</option>
<option value="25">Art</option>
<option value="26">Celebrities</option>
<option value="27">Animals</option>
<option value="28">Vehicles</option>
<option value="29">Entertainment: Comics</option>
<option value="30">Science: Gadgets</option>
<option value="31">Entertainment: Japanese Anime & Manga</option>
<option value="32">Entertainment: Cartoon & Animations</option>
</select>
<label for="question_amount">Select Difficulty: </label>
<select name="question_difficulty" class="form-control">
<option value="any">Any Difficulty</option>
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
<label for="question_type">Select Type: </label>
<select name="trivia_type" class="form-control">>
<option value="any">Any Type</option>
<option value="multiple">Multiple Choice</option>
<option value="boolean">True / False</option>
</select>
<button type="submit" class="btn btn_hover submit-quiz_info">Submit</button>
</form>
<!-- displaying the question -->
<form class="quiz_question form hidden">
<h2 class="heading">Simpel Quiz</h2>
<input type="text" class="userAns" hidden>
<div class="question_cont">
<label class="quiz_question">1. Which is the largest animal in the world</label>
<button class="btn_hover user_click form-control">Answer 1</button>
<button class="btn_hover form-control">Answer 2</button>
<button class="btn_hover form-control">Answer 3</button>
<button class="btn_hover form-control">Answer 4</button>
</div>
<div class="quiz_question-btns">
<button class="btn btn_hover submit-quiz_question">Submit</button>
<!-- <button class="btn btn_hover page_btn submit-quiz_question">Pre</button>
<button class="btn btn_hover page_btn submit-quiz_question">Next</button> -->
</div>
</form>
<div class="user_point hidden">
<p class="conclution">Out of 10 question your 2 right</p>
<button class="btn" onclick="window.location.reload()">Go to Home</button>
</div>
<div class="overlay hidden">
<div class="erro_cont">
<button class="close_btn">X</button>
<p>Error: <span class="erro_msg">This is a error :)</span></p>
</div>
</div>
</header>
</body>
</html>