diff --git a/learn.php b/learn.php index 5d10371..2830883 100644 --- a/learn.php +++ b/learn.php @@ -68,10 +68,6 @@ async function loadWord() { async function check() { - const stats = document.getElementById('stats'); - stats.innerText = - `Correct: ${data.debug?.updatedCorrect ?? '?'} | Wrong: ${data.debug?.updatedWrong ?? '?'}`; - const answer = document.getElementById('answer').value; @@ -99,7 +95,10 @@ async function check() { result.innerText = "Fout"; result.style.color = "red"; } - + const stats = document.getElementById('stats'); + stats.innerText = + `Correct: ${data.debug?.updatedCorrect ?? '?'} | Wrong: ${data.debug?.updatedWrong ?? '?'}`; + setTimeout(loadWord, 700); }