X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/a8e02f8948b961a27b47965e0eab1fcc1c207915..50442220cc52bad55c1003de34f8dada958650d5:/word/multichoice.js?ds=sidebyside diff --git a/word/multichoice.js b/word/multichoice.js index 649d19a..761b966 100644 --- a/word/multichoice.js +++ b/word/multichoice.js @@ -2,15 +2,15 @@ class WordMultiChoice extends WordQuiz { next() { let word = this.words.shift(); let form = put(this.form, - '+img[src=$]+ul', `/data/word/en/${word[0]}.jpg`, + '+img[src=$]+ul', `/data/word/en/${word[2]}.jpg`, ); - let answers = [word[2], this.words[0][2], this.words[1][2], this.words[2][2]] + let answers = [word[0], this.words[0][0], this.words[1][0], this.words[2][0]] .shuffle() answers.forEach(suggest => { let label = suggest.replace(/\/.*/, ''); let option = put(form, 'li', label, {onclick: () => { - if (suggest != word[2]) { + if (suggest != word[0]) { // incorrect put(option, '.wrong'); return;