word: common language handling in quiz
[sheet.git] / word / quiz.plp
index 7fc375e8fcd5c81519ae1ae015c5586e7237904b..dc0e1e06ecf5a4771224f87f49f3b8a9ff2ccfde 100644 (file)
@@ -1,5 +1,7 @@
 <(../common.inc.plp)><:
 
+our $wordlistbase;
+
 Html({
        raw => <<'EOT',
 <script src="/word/put.min.js"></script>
@@ -23,4 +25,6 @@ li.good {background: #0F08}
 </style>
 EOT
 });
+
 say '<h1 id=quiz>quiz</h1>';
+say "<script>new Quiz('/$wordlistbase.json')</script>";