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){
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 => {