fix duration question

This commit is contained in:
Carolus Bramnatyo Seno Mahesworo 2025-12-05 13:10:15 +07:00
parent 6209797896
commit 52b377c472

View File

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