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/finder: common method to format caption names
[sheet.git]
/
word
/
multichoice.js
diff --git
a/word/multichoice.js
b/word/multichoice.js
index ca6843af1e992be47e3e8777b006f8fda121c177..f0520f9d428cccbcc376a89eecb7e2f2c960d884 100644
(file)
--- a/
word/multichoice.js
+++ b/
word/multichoice.js
@@
-9,9
+9,11
@@
class WordMultiChoice extends WordQuiz {
let answers = [word[0], this.words[0][0], this.words[1][0], this.words[2][0]]
.shuffle()
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: () => {
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');
if (suggest != word[0]) {
// incorrect
put(option, '.wrong');