daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 59 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top