Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     var timeout;
  3.     var sec = 30;
  4.  
  5.     startEvent = function() {
  6.       if (fio2< 90){              
  7.        
  8.         timeout = setInterval(AllarmFunction(sec),1000)
  9.        
  10.       }
  11.       else {
  12.         sec = 30;          
  13.       }
  14.  
  15.     };
  16.   }
  17.   AllarmFunction = function(secondi){
  18.     sec--;
  19.     console.log("sec: ",secondi)
  20.     if (secondi == 0)
  21.   console.log("PROBLEMA")
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement