Update learn.php
This commit is contained in:
@@ -68,10 +68,6 @@ async function loadWord() {
|
|||||||
|
|
||||||
async function check() {
|
async function check() {
|
||||||
|
|
||||||
const stats = document.getElementById('stats');
|
|
||||||
stats.innerText =
|
|
||||||
`Correct: ${data.debug?.updatedCorrect ?? '?'} | Wrong: ${data.debug?.updatedWrong ?? '?'}`;
|
|
||||||
|
|
||||||
const answer =
|
const answer =
|
||||||
document.getElementById('answer').value;
|
document.getElementById('answer').value;
|
||||||
|
|
||||||
@@ -99,6 +95,9 @@ async function check() {
|
|||||||
result.innerText = "Fout";
|
result.innerText = "Fout";
|
||||||
result.style.color = "red";
|
result.style.color = "red";
|
||||||
}
|
}
|
||||||
|
const stats = document.getElementById('stats');
|
||||||
|
stats.innerText =
|
||||||
|
`Correct: ${data.debug?.updatedCorrect ?? '?'} | Wrong: ${data.debug?.updatedWrong ?? '?'}`;
|
||||||
|
|
||||||
setTimeout(loadWord, 700);
|
setTimeout(loadWord, 700);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user