git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc550e5
)
word/multichoice: skip imageless (unanswerable) questions
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 30 Dec 2021 02:41:30 +0000
(
03:41
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 31 Dec 2021 04:29:05 +0000
(
05:29
+0100)
word/multichoice.js
patch
|
blob
|
history
diff --git
a/word/multichoice.js
b/word/multichoice.js
index 761b966dd3cc3976e9affc468e3c661bfc611824..61a7b5adbb7950d4c4bbb0161cb27c3dcdb23f13 100644
(file)
--- a/
word/multichoice.js
+++ b/
word/multichoice.js
@@
-1,6
+1,7
@@
class WordMultiChoice extends WordQuiz {
next() {
let word = this.words.shift();
+ if (!word[2]) return this.next();
let form = put(this.form,
'+img[src=$]+ul', `/data/word/en/${word[2]}.jpg`,
);