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)
|
||||
.then (correct => {
|
||||
document.querySelector("[name=xAnswer").value = correct || answer
|
||||
if (correct) {
|
||||
document.querySelector("[name=xAnswer").value = correct
|
||||
ok.textContent = "⭕"
|
||||
ok.title = "Possibly correct"
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue