Advertisement
Guest User

Suresh

a guest
Sep 15th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. // #1
  2. $('#me').blue();
  3.  
  4. // #2
  5. $('.wants-to-be-blue').blue();
  6.  
  7. // #3
  8. $( "li" ).contents()
  9. .filter(function() {
  10. return this.nodeType === 8;
  11. }).parent().blue();
  12.  
  13. // #4
  14. $( "div, span, i" ).contents()
  15. .filter(function() {
  16. return this.nodeType === 8;
  17. }).parent().blue();
  18.  
  19. // #5
  20. for(var i=1;i<=9;i++) {
  21. $('div:contains('+ i +')').blue();
  22. }
  23.  
  24. // #6
  25. $("div:not('.bomb')").blue();
  26.  
  27. // #7
  28. $('section').on('DOMSubtreeModified', function(){
  29. $('div').blue();
  30. });
  31.  
  32. // #8
  33. $('button').trigger('click');
  34. $('div').blue();
  35.  
  36. // #9
  37. var ida = $('#map').text().split(' ');
  38. ida.forEach(function(v, k){
  39. $('#'+v).blue();
  40. })
  41.  
  42. // #10
  43. $('body').bind('DOMSubtreeModified', function(){
  44. $("div:not('.bomb')").blue();
  45. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement