latin: enlarge horizontal domino tiles to letter height
[sheet.git] / word / quiz.plp
index 9d4afc8990413eece557226d7943fe47a688ebb6..dc0e1e06ecf5a4771224f87f49f3b8a9ff2ccfde 100644 (file)
@@ -1,16 +1,30 @@
 <(../common.inc.plp)><:
 
+our $wordlistbase;
+
 Html({
        raw => <<'EOT',
-<script src="/word/put.js"></script>
+<script src="/word/put.min.js"></script>
 <script src="/word/quiz.js"></script>
 <style>
 img {
-       max-width: 50%;
+       width: 90vw;
+       max-width: 64em;
+       margin: 2em 0 1ex;
+}
+li {
+       font-size: 20pt;
+       padding: .2ex;
 }
-.wrong {background: red}
-.good {background: green}
+li:hover {
+       cursor: pointer;
+       background: #8888;
+}
+li.wrong {background: #F008}
+li.good {background: #0F08}
 </style>
 EOT
 });
-say '<h1>quiz</h1><p id="quiz">test</p>';
+
+say '<h1 id=quiz>quiz</h1>';
+say "<script>new Quiz('/$wordlistbase.json')</script>";