<(../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>";