From c578021f303c3cc72fe1bc15ba16ddec9a12db22 Mon Sep 17 00:00:00 2001 From: Thomas de Roo <2+thomas@noreply.localhost> Date: Mon, 15 Jun 2026 12:31:57 +0200 Subject: [PATCH] Update learn.php --- learn.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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); }