Skip to content
Snippets Groups Projects
Commit ec5fd04e authored by Philip Kaluđerčić's avatar Philip Kaluđerčić :u7121:
Browse files

Remove explicit quiz.js initialisation

parent 76919ddd
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<title>Fragen aus der Systemprogrammung</title> <title>Fragen aus der Systemprogrammung</title>
<link rel="stylesheet" href="./quiz.css" /> <link rel="stylesheet" href="./quiz.css" />
<script src="./quiz.js"></script>
</head> </head>
<body> <body>
<main class="info-box"> <main class="info-box">
...@@ -76,7 +77,7 @@ ...@@ -76,7 +77,7 @@
</p> </p>
<footer> <footer>
<code>$Id: quiz.html,v 1.29 2024/02/14 11:30:59 oj14ozun Exp oj14ozun $</code> <code>$Id: quiz.html,v 1.30 2024/02/14 11:41:47 oj14ozun Exp oj14ozun $</code>
<code id="js-version"></code> <code id="js-version"></code>
<code id="css-version"></code> <code id="css-version"></code>
</footer> </footer>
...@@ -116,13 +117,4 @@ ...@@ -116,13 +117,4 @@
<a id="perma" href="#">Dauerlink</a> <a id="perma" href="#">Dauerlink</a>
<span id="display-hl-hack"></span> <span id="display-hl-hack"></span>
</body> </body>
<script src="./quiz.js"></script>
<script async>
const match = window.location.href.match(/\/(\w+)\.html$/);
if (match) {
make_quiz("./" + match[1] + ".json");
} else {
make_quiz("./quiz.json");
}
</script>
</html> </html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment