Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //2. So are classes..
- $('.wants-to-be-blue').blue()
- //3. The unordered list
- $('ul li:eq(3)').blue()
- //4. Treacherous HTML ahead!
- $('#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()
- // 5. Mind the order!
- $('div').each(function(elem,i){
- var val = $(this).text();
- $(this).attr('id','div_'+val);
- });
- for(i=1;i<$('div').length+1;i++){
- $('#div_'+i).blue()
- }
- // 6. Beware of the bombs!
- $('div:not(.bomb)').blue()
- // 7. You’ve got enemies!
- setTimeout(function(){$('section div').blue()},1200)
- //8. Speed is everything
- setTimeout(function(){ $('button').trigger('click') , $('div').blue() },10)
- //9. Randomization
- var ids = $('#map').text().split(' ');
- $.each(ids,function(){
- $('#'+this).blue()
- })
- //10. Boss fight
- setInterval(function(){$('div:not(.bomb)').blue()},1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement