diff --git a/src/js/firstperson.js b/src/js/firstperson.js index 9afd83b..1ccd9c9 100644 --- a/src/js/firstperson.js +++ b/src/js/firstperson.js @@ -105,7 +105,7 @@ function selectAnswer(e){ if(wrongCount >= maxWrong){ setTimeout(()=>{ showScore(); - }, 1500); + }, 500); return; } } @@ -114,7 +114,7 @@ function selectAnswer(e){ if(button.dataset.correct === "true") button.classList.add("correct"); button.disabled = true; }); - setTimeout(nextQuestion, 5000) + setTimeout(nextQuestion, 500) } function showScore(){ @@ -153,11 +153,11 @@ function postScore(score){ if(data.success || data.message === "Score accumulated") { setTimeout(() => { window.location.href = "../leaderboard.php"; - }, 1500); + }, 3000); } else { setTimeout(() => { window.location.href = "../leaderboard.php"; - }, 1500); + }, 3000); } }) .catch(err => {