git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
map: generic page to show data tables
[sheet.git]
/
word
/
multichoice.js
diff --git
a/word/multichoice.js
b/word/multichoice.js
index f0520f9d428cccbcc376a89eecb7e2f2c960d884..7402507aa90e33c1fb481c3840918ec93c455da8 100644
(file)
--- a/
word/multichoice.js
+++ b/
word/multichoice.js
@@
-1,8
+1,7
@@
-class WordMulti
C
hoice extends WordQuiz {
+class WordMulti
c
hoice extends WordQuiz {
next() {
if (this.words.length < 4) return;
let word = this.words.shift();
next() {
if (this.words.length < 4) return;
let word = this.words.shift();
- if (!word[2]) return this.next();
let form = put(this.form,
'+img[src=$]+ul', `/data/word/32/${word[2]}.jpg`,
);
let form = put(this.form,
'+img[src=$]+ul', `/data/word/32/${word[2]}.jpg`,
);
@@
-26,7
+25,7
@@
class WordMultiChoice extends WordQuiz {
}
setup() {
}
setup() {
-
this.form = document.getElementById('quiz'
);
+
super.setup(
);
this.next();
}
};
this.next();
}
};