+ 2
How to run input and coutdown at the same time?
I am making a multiple choice quiz game and want to run coutdown in a way at the same time user should be able to input their option.
6 ответов
+ 1
Actually i am doing it in python can you tell me in python
+ 1
Sorry not my thing😂✌
+ 1
Google search "Asynchronous Methods python"
0
Supose you have the box with the id box and you have used
var box = document.getElementById("box");
var countdown = setInterval(count, 1000);
var sec = 10;//10 secs to answer
function count(){
sec--;
onclick.box = function() {
clearInterval(countdown);
}
if(sec == 0) {
clearInterval(countdown);
}
}
I guess you have to learn more about DOM and Events, so you can make a better code.
0
no problem thanks anyways😊😊😊
0
it WWW(worldwide web)