-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (61 loc) · 2.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quiz App</title>
<link rel="stylesheet" href="style.css" />
<script type="module" src="quizz.js" defer></script>
</head>
<body>
<div class="quizzes">
<div class="quizzes-header">
<h1 id="title">Quiz title</h1>
</div>
<div class="quizzes-body">
<div>
<h3>Questions: <span id="nb_questions">0</span></h3>
</div>
<div>
<h3>Score: <span id="quiz_score">0</span></h3>
</div>
</div>
<button id="open_quiz">Try this quiz</button>
</div>
<div class="modal" id="modal">
<div class="quiz-container" id="quiz">
<span class="closeBtn" id="close">×</span>
<div class="quiz-title">
<h1 id="quiz-title">Header</h1>
</div>
<div class="quiz-header" id="quiz-content">
<h2 id="question">Question text</h2>
<ul>
<li>
<input type="radio" id="a" name="answer" class="answer" />
<label id="a_text" for="a">Answer A</label>
</li>
<li>
<input type="radio" id="b" name="answer" class="answer" />
<label id="b_text" for="b">Answer B</label>
</li>
<li>
<input type="radio" id="c" name="answer" class="answer" />
<label id="c_text" for="c">Answer C</label>
</li>
<li>
<input type="radio" id="d" name="answer" class="answer" />
<label id="d_text" for="d">Answer D</label>
</li>
</ul>
</div>
<div id="quiz-content-alternative">
</div>
<div class="text-center">
<p id="date" class="text-hint">Date:</p>
</div>
<button id="submit">Submit</button>
</div>
</div>
</body>
</html>