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/edit: search input form in hierarchy navigation
[sheet.git]
/
word
/
multichoice.js
diff --git
a/word/multichoice.js
b/word/multichoice.js
index 761b966dd3cc3976e9affc468e3c661bfc611824..ca6843af1e992be47e3e8777b006f8fda121c177 100644
(file)
--- a/
word/multichoice.js
+++ b/
word/multichoice.js
@@
-1,8
+1,10
@@
class WordMultiChoice extends WordQuiz {
next() {
class WordMultiChoice extends WordQuiz {
next() {
+ if (this.words.length < 4) return;
let word = this.words.shift();
let word = this.words.shift();
+ if (!word[2]) return this.next();
let form = put(this.form,
let form = put(this.form,
- '+img[src=$]+ul', `/data/word/
en
/${word[2]}.jpg`,
+ '+img[src=$]+ul', `/data/word/
32
/${word[2]}.jpg`,
);
let answers = [word[0], this.words[0][0], this.words[1][0], this.words[2][0]]
);
let answers = [word[0], this.words[0][0], this.words[1][0], this.words[2][0]]