git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
word/quiz: answer selection styling (hover)
[sheet.git]
/
word
/
quiz.plp
diff --git
a/word/quiz.plp
b/word/quiz.plp
index 9d4afc8990413eece557226d7943fe47a688ebb6..7fc375e8fcd5c81519ae1ae015c5586e7237904b 100644
(file)
--- a/
word/quiz.plp
+++ b/
word/quiz.plp
@@
-2,15
+2,25
@@
Html({
raw => <<'EOT',
Html({
raw => <<'EOT',
-<script src="/word/put.js"></script>
+<script src="/word/put.
min.
js"></script>
<script src="/word/quiz.js"></script>
<style>
img {
<script src="/word/quiz.js"></script>
<style>
img {
- max-width: 50%;
+ width: 90vw;
+ max-width: 64em;
+ margin: 2em 0 1ex;
}
}
-.wrong {background: red}
-.good {background: green}
+li {
+ font-size: 20pt;
+ padding: .2ex;
+}
+li:hover {
+ cursor: pointer;
+ background: #8888;
+}
+li.wrong {background: #F008}
+li.good {background: #0F08}
</style>
EOT
});
</style>
EOT
});
-say '<h1
>quiz</h1><p id="quiz">test</p
>';
+say '<h1
id=quiz>quiz</h1
>';