fix duration question
This commit is contained in:
parent
6209797896
commit
52b377c472
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user