From ec5fd04ed42c5af0c85c090cdf2ff00dee0bf191 Mon Sep 17 00:00:00 2001
From: Philip Kaludercic <philip.kaludercic@fau.de>
Date: Thu, 15 Feb 2024 13:03:20 +0000
Subject: [PATCH] Remove explicit quiz.js initialisation

---
 quiz.html | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/quiz.html b/quiz.html
index fb1198a..19113f7 100644
--- a/quiz.html
+++ b/quiz.html
@@ -14,6 +14,7 @@
     <meta  name="viewport" content="width=device-width" />
     <title>Fragen aus der Systemprogrammung</title>
     <link rel="stylesheet" href="./quiz.css" />
+    <script src="./quiz.js"></script>
   </head>
   <body>
     <main class="info-box">
@@ -76,7 +77,7 @@
 	  </p>
 
 	  <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="css-version"></code>
 	  </footer>
@@ -116,13 +117,4 @@
     <a id="perma" href="#">Dauerlink</a>
     <span id="display-hl-hack"></span>
   </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>
-- 
GitLab