diff --git a/quiz.html b/quiz.html index cc8eadd3456ee2e5fd58011efc1a736c8c98d9a9..4b6abad2f255e88f1efe9fc436594ee50bbede88 100644 --- a/quiz.html +++ b/quiz.html @@ -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>