git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
word/quiz: generic page container setup
[sheet.git]
/
word
/
memory.js
diff --git
a/word/memory.js
b/word/memory.js
index 99e76e87ad66cec3e9d757f5b234ce68bacfc996..a70ec06638ac20ce07a2ec60bc2aff3803617ff8 100644
(file)
--- a/
word/memory.js
+++ b/
word/memory.js
@@
-42,6
+42,7
@@
class WordMemory extends WordQuiz {
}
load() {
}
load() {
+ this.configure();
if (this.preset.pairs) {
this.dataurl = '/data/wordpairs.json';
fetch(this.dataurl).then(res => res.json()).then(pairs => {
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() {
}
setup() {
+ super.setup();
this.turned = [];
this.turned = [];
- this.form = document.getElementById('quiz');
+ this.form.innerHTML = '';
+ this.form.className = '';
let cards;
if (this.words) {
let cards;
if (this.words) {