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

Use the explicit make_quiz function

parent d6338bbf
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@
</p>
<footer>
<code>$Id: quiz.html,v 1.18 2024/01/21 10:12:04 oj14ozun Exp oj14ozun $</code>
<code>$Id: quiz.html,v 1.19 2024/01/21 10:53:23 oj14ozun Exp oj14ozun $</code>
<code id="js-version"></code>
</footer>
</aside>
......@@ -103,5 +103,13 @@
<a id="report" href="#" target="_blank" rel="noopener noreferrer">Fehler melden</a>
<span id="display-hl-hack"></span>
</body>
<script src="quiz.js"></script>
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment