Advertisement
Guest User

Untitled

a guest
May 30th, 2014
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. http://tutorialzine.com/2014/05/javascript-challenge-make-me-blue/
  2.  
  3. ====== 3 ======
  4. $("ul").find("li").eq(3).blue()
  5.  
  6. ====== 4 ======
  7. $("#make-me-blue").blue();
  8. $("div").each(function() {
  9.     if ($(this).next().length == 0 && $(this).children().length==0){
  10.         $(this).blue()
  11.     }
  12. })
  13. $("span").first().blue()
  14. $("i").last().blue()
  15.  
  16. ====== 5 ======
  17. for (var i = 0; i < $("div").length; i++){
  18.     $("div").filter(function() {
  19.         return $(this).text() ==( i+1)
  20.     }).blue();
  21. }
  22.  
  23. ====== 6 ======
  24. $("div:not(.bomb)").blue()
  25.  
  26. ====== 7 ======
  27. setTimeout(function() {
  28. $("div").blue()
  29. },1001)
  30.  
  31. ====== 8 ======
  32. $("button").trigger("click")
  33. $("div").blue()
  34.  
  35. ====== 9 ======
  36. $.each($("#map").text().split(" "),function(i,v){
  37.   $("#"+v).blue()  
  38. })
  39.  
  40. ====== 10 ======
  41. setTimeout(function() {
  42.     $("div:not(.bomb)").blue()
  43. },60)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement