-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
145 lines (144 loc) · 3.83 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<title>Quiz app</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
</head>
<body>
<nav>
<h1>Test your JavaScript Knowledge</h1>
</nav>
<div id="search">
<input
id="search-input"
type="text"
placeholder="Search with text & enter"
/>
</div>
<div id="details">
<input type="text" id="player1" placeholder="Enter 1st player" />
<input type="text" id="player2" placeholder="Enter 2nd player" />
<button type="button" id="start">Start Quiz</button>
<div id="sort">
<button type="button" class="drop-btn">Sort the questions</button>
<div class="drop-down">
<a href="#" id="alpha">Alphabetical order</a>
<a href="#" id="random">Random order</a>
</div>
</div>
</div>
<form id="form">
<div id="question">
<h2>Submit your quiz question here</h2>
<hr />
<label for="question-input"></label>
<input
id="question-input"
type="text"
name="question-input"
required
placeholder="Enter your question"
/>
</div>
<div id="answers">
<div class="answer-option">
<label for="option1"></label>
<input
id="option1"
type="text"
name="option1"
required
placeholder="option1"
/>
<label
><input
type="radio"
name="correct"
value="0"
required
/>Correct</label
><br />
</div>
<div class="answer-option">
<label for="option2"></label>
<input
id="option2"
type="text"
name="option2"
required
placeholder="option2"
/>
<label
><input
type="radio"
name="correct"
value="1"
required
/>Correct</label
><br />
</div>
<div class="answer-option">
<label for="option3"></label>
<input
id="option3"
type="text"
name="option3"
required
placeholder="option3"
/>
<label
><input
type="radio"
name="correct"
value="2"
required
/>Correct</label
><br />
</div>
<div class="answer-option">
<label for="option4"></label>
<input
id="option4"
type="text"
name="option4"
required
placeholder="option4"
/>
<label
><input
type="radio"
name="correct"
value="3"
required
/>Correct</label
><br />
</div>
</div>
<div>
<label for="explanation"></label>
<input
id="explanation"
type="text"
name="explanation"
required
placeholder="Provide the explanation for the correct answer"
/>
</div>
<div id="buttons">
<button type="button" id="shuffle">Shuffle</button>
<button type="submit" id="submit">Submit</button><br />
<button type="button" id="show">Show all questions</button>
</div>
</form>
<div id="player-details"></div>
<section id="quiz-questions"></section>
<button id="submit-quiz" hidden>Submit Quiz</button>
<script src="quizApp.js"></script>
</body>
</html>