Advertisement
Guest User

Solution 10 by DarkChowder

a guest
Jun 3rd, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var delay = 70,
  2.     divs = $('div');
  3.  
  4. //Wait for the bosses to disarm the div's
  5. setTimeout(antiBomb, delay);
  6.  
  7. function antiBomb(){
  8.     //Find the id after the one the bosses just set
  9.     var lastTimeoutId = setTimeout("I got you now!");
  10.    
  11.     //Kill the bosses
  12.     for (var i = 0 ; i < lastTimeoutId ; i++) {
  13.         clearTimeout(i);
  14.     }
  15.     //Turn everything blue
  16.     for (index = 0; index < divs.length; ++index) {
  17.         divs.eq(index).blue();
  18.     }
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement