X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/ebbfbfbb295d4268eba729b0cee0b85679a04e3f..0ef06cdf3844c0899ea9f64670c41668301dfcc5:/word/memory.js diff --git a/word/memory.js b/word/memory.js index 99e76e8..a70ec06 100644 --- a/word/memory.js +++ b/word/memory.js @@ -42,6 +42,7 @@ class WordMemory extends WordQuiz { } load() { + this.configure(); if (this.preset.pairs) { this.dataurl = '/data/wordpairs.json'; fetch(this.dataurl).then(res => res.json()).then(pairs => { @@ -55,8 +56,10 @@ class WordMemory extends WordQuiz { } setup() { + super.setup(); this.turned = []; - this.form = document.getElementById('quiz'); + this.form.innerHTML = ''; + this.form.className = ''; let cards; if (this.words) {