This repository was archived by the owner on Mar 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquizintro.html
87 lines (83 loc) · 4.08 KB
/
quizintro.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
<!DOCTYPE html>
<meta charset="UTF-8">
<html>
<head>
<title>CodeArchive2.0 - HTML5 Quiz</title>
<link rel="stylesheet" href="./styling/maintheme.css">
<script>
function setTheme(themeName) {
localStorage.setItem('theme', themeName);
document.documentElement.className = themeName;
document.cookie = `theme=${themeName}; path=/; SameSite=None; Secure`;
}
function toggleTheme() {
if (localStorage.getItem('theme') === 'theme-dark') {
setTheme('theme-light');
} else {
setTheme('theme-dark');
}
}
let gets = decodeURIComponent(document.cookie).split('; ');
console.log(gets);
if (gets.length == 2) {
getc = gets[1];
} else {
getc = gets[0];
}
let gettheme = getc.split('=');
if (gettheme[0] === 'theme' && gettheme[1] === 'theme-light') {
setTheme('theme-light');
} else {
setTheme('theme-dark');
}
</script>
</head>
<body bgcolor="#161618" style='overflow-x:hidden;'>
<div>
<div class="topnav">
<img align="left" src="./media/images/codearchive.gif">
<div>
<a href="./index.html" target="_self">🔑Logout</a>
<a href="./feedback.html" target="_self">💬Feedback</a>
<a href="./contact.html">🖥️Contact</a>
<a class="active" href="./tutorial.html" target="_self">🏠Home</a>
<label id="switch" class="switch">
<input type="checkbox" onchange="toggleTheme()" id="slider">
<span class="slider round"></span>
</label>
</div>
</div>
<div class="sidenav">
<br><br><br>
<a href='./tutorial.html'><p>Main page</p></a>
<a href='./videos.html'><p>Videos</p></a>
<a href='./quizintro.html'><p><span>Quizzes</span></p></a>
<a href='./quizzes/quizlv0.html'><p> Level 0</p></a>
<a href='./quizzes/quizlv1.html'><p> Level 1</p></a>
<a href='./quizzes/quizlv2.html'><p> Level 2</p></a>
<a href='./suggestion.html'><p>Suggestions</p></a>
</div>
<div class="gtranslate_wrapper"></div>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
<script>window.gtranslateSettings = {"default_language":"en","languages":["en","zh-TW","el","es","ru","de","tl","fr","it"],"wrapper_selector":".gtranslate_wrapper"}</script>
</div>
<div class='main'>
<div>
<p><a class='previous round' onclick='window.history.back();'>‹ Back to previous</a></p>
<h1>HTML Quizzes</h1>
<h2>Wanna test the knowledge you have? Test yourself with the quizzes!</h2>
<hr>
<p>Levels:</p>
<input class="squarebutton" type="button" value="0" onClick="window.open('./quizzes/quizlv0.html', target='_self');">
<input class="squarebutton" type="button" value="1" onClick="window.open('./quizzes/quizlv1.html', target='_self');">
<input class="squarebutton" type="button" value="2" onClick="window.open('./quizzes/quizlv2.html', target='_self');">
</div>
<h3>Source: <a href='https://w3schools.com' target='_blank'>W3Schools</a></h3>
<p><a class='previous round' onclick='window.history.back();'>‹ Back to previous</a></p>
</div>
</div>
</body>
<footer>
<p class="p" align="right" style="padding-right:10px;">Last updated: 4 July 2023</p>
</footer>
</html>