Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var timeout;
- var sec = 30;
- startEvent = function() {
- if (fio2< 90){
- timeout = setInterval(AllarmFunction(sec),1000)
- }
- else {
- sec = 30;
- }
- };
- }
- AllarmFunction = function(secondi){
- sec--;
- console.log("sec: ",secondi)
- if (secondi == 0)
- console.log("PROBLEMA")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement