Advertisement
Guest User

Untitled

a guest
May 29th, 2014
1,893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //2. So are classes..
  2. $('.wants-to-be-blue').blue()
  3.  
  4.  
  5. //3. The unordered list
  6. $('ul li:eq(3)').blue()
  7.  
  8. //4. Treacherous HTML ahead!
  9.  
  10. $('#make-me-blue,section:first div:eq(2),section:eq(1) span:first,section:eq(1) i:eq(1), section:eq(1) div:last div').blue()
  11.  
  12. // 5. Mind the order!
  13.  
  14. $('div').each(function(elem,i){
  15.     var val = $(this).text();
  16.      $(this).attr('id','div_'+val);
  17. });
  18. for(i=1;i<$('div').length+1;i++){
  19.     $('#div_'+i).blue()
  20. }
  21.  
  22. // 6. Beware of the bombs!
  23. $('div:not(.bomb)').blue()
  24.  
  25. // 7. You’ve got enemies!
  26.  
  27. setTimeout(function(){$('section div').blue()},1200)
  28.  
  29. //8. Speed is everything
  30.  
  31. setTimeout(function(){ $('button').trigger('click') , $('div').blue() },10)
  32.  
  33. //9. Randomization
  34. var ids = $('#map').text().split(' ');
  35. $.each(ids,function(){
  36.      $('#'+this).blue()
  37. })
  38.  
  39. //10. Boss fight
  40. setInterval(function(){$('div:not(.bomb)').blue()},1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement