map: generic page to show data tables
[sheet.git] / word / multichoice.js
index f0520f9d428cccbcc376a89eecb7e2f2c960d884..7402507aa90e33c1fb481c3840918ec93c455da8 100644 (file)
@@ -1,8 +1,7 @@
-class WordMultiChoice extends WordQuiz {
+class WordMultichoice 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();
        }
 };