word/memory: webkit prefix for turned card faces
[sheet.git] / word / multichoice.js
index 5908fdcbec9f3a2a69967bf1d9111bb4e98e193e..f0520f9d428cccbcc376a89eecb7e2f2c960d884 100644 (file)
@@ -4,14 +4,16 @@ class WordMultiChoice extends WordQuiz {
                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]]
                        .shuffle()
+               this.log('ask', word[2], answers);
                answers.forEach(suggest => {
                        let label = suggest.replace(/\/.*/, '');
                        let option = put(form, 'li', label, {onclick: () => {
+                               this.log('pick', suggest, null, word[0]);
                                if (suggest != word[0]) {
                                        // incorrect
                                        put(option, '.wrong');