-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (45 loc) · 1.63 KB
/
index.html
File metadata and controls
52 lines (45 loc) · 1.63 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./assets/logo.svg" type="image/x-icon">
<title>Simple Quiz</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="upload-container">
<h1>Upload Your Quiz JSON</h1>
<label for="json-upload" class="upload-label">
<span>📂 Choose a JSON file</span>
<input type="file" id="json-upload" accept=".json" multiple>
</label>
<p>
Don't have a JSON file? Download a sample:
<a href="./questions.json" download>questions.json</a>
</p>
<p class="error-message" style="display: none;"></p>
</div>
<div class="quiz-stored">
<ul class="quiz-list"></ul>
<p class="list-empty">Quiz list is empty!</p>
</div>
<div class="quiz-container hidden">
<button class="btn-close" onclick="closeQuiz()">X</button>
<div id="quiz-content"></div>
<div class="quiz-buttons">
<button class="btn-next" onclick="nextQuestion()">Next</button>
<button class="btn-done" onclick="closeQuiz()">Done</button>
</div>
<div class="sound-control">
<button id="sound-toggle" onclick="handleSoundEffects()">🔊 Sound: ON</button>
</div>
</div>
<!-- Copyright section -->
<footer class="footer">
<p>© 2025 Nguyen Phuc Vinh. All rights reserved.</p>
</footer>
<script src="script.js"></script>
<script src="shortcuts.js"></script>
</body>
</html>