X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/7bbf129e06d190145d0a4d9a7d4c7399d2112f88..2304fc9d1a391372a6714502fb769c9d1a5ed182:/word/multichoice.js diff --git a/word/multichoice.js b/word/multichoice.js index 61a7b5a..ca6843a 100644 --- a/word/multichoice.js +++ b/word/multichoice.js @@ -1,9 +1,10 @@ class WordMultiChoice extends WordQuiz { 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/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]]