mirror of https://github.com/dirtbags/moth.git
Also set xAnswer for wrong answers
This commit is contained in:
parent
dac6fd40e7
commit
fe0805e9c1
|
@ -215,8 +215,8 @@ function answerCheck(e) {
|
||||||
|
|
||||||
possiblyCorrect(answer)
|
possiblyCorrect(answer)
|
||||||
.then (correct => {
|
.then (correct => {
|
||||||
|
document.querySelector("[name=xAnswer").value = correct || answer
|
||||||
if (correct) {
|
if (correct) {
|
||||||
document.querySelector("[name=xAnswer").value = correct
|
|
||||||
ok.textContent = "⭕"
|
ok.textContent = "⭕"
|
||||||
ok.title = "Possibly correct"
|
ok.title = "Possibly correct"
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue