Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://tutorialzine.com/2014/05/javascript-challenge-make-me-blue/
- ====== 3 ======
- $("ul").find("li").eq(3).blue()
- ====== 4 ======
- $("#make-me-blue").blue();
- $("div").each(function() {
- if ($(this).next().length == 0 && $(this).children().length==0){
- $(this).blue()
- }
- })
- $("span").first().blue()
- $("i").last().blue()
- ====== 5 ======
- for (var i = 0; i < $("div").length; i++){
- $("div").filter(function() {
- return $(this).text() ==( i+1)
- }).blue();
- }
- ====== 6 ======
- $("div:not(.bomb)").blue()
- ====== 7 ======
- setTimeout(function() {
- $("div").blue()
- },1001)
- ====== 8 ======
- $("button").trigger("click")
- $("div").blue()
- ====== 9 ======
- $.each($("#map").text().split(" "),function(i,v){
- $("#"+v).blue()
- })
- ====== 10 ======
- setTimeout(function() {
- $("div:not(.bomb)").blue()
- },60)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement