-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
67 lines (59 loc) · 2.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Kviz: A quiz app</title>
<link rel="stylesheet" href="style.css" />
<link rel="icon" type="image/x-icon" href="assets/favicon.png" />
<link rel="icon" href="assets/logo-kviz.jpg" />
<style>
/* Add some basic styling for the score history */
#score-history {
display: none;
}
</style>
</head>
<body>
<div class="container">
<div id="home" class="flex-center flex-column">
<h1>Kviz</h1>
<div class="flex-row">
<a class="btn" href="/Dark/index.html">Dark Theme</a>
<a class="btn" href="/Light/index.html">Light Theme</a>
<a class="btn" href="score.html">Score History</a>
</div>
</div>
</div>
<!-- Score History Section -->
<div id="score-history"></div>
<!-- Spinner Loader -->
<div id="spinner" class="spinner"></div>
<script src="index.js"></script>
<script src="music.js"></script>
<script>
// Function to toggle the visibility of the score history
function toggleScoreHistory() {
var scoreHistory = document.getElementById("score-history");
scoreHistory.style.display =
scoreHistory.style.display === "block" ? "none" : "block";
// Call the function to display score history when showing it
if (scoreHistory.style.display === "block") {
displayScoreHistory();
}
}
</script>
<!-- Uncomment the script if you want to use it -->
<!-- <script src="toggle.js"></script> -->
<script src="SPINNER.js"></script>
<script>
// Function to toggle the visibility of the score history
function toggleScoreHistory() {
var scoreHistory = document.getElementById("score-history");
scoreHistory.style.display =
scoreHistory.style.display === "block" ? "none" : "block";
}
</script>
</body>
</html>