Created
July 6, 2012 09:46
-
-
Save logsol/3059282 to your computer and use it in GitHub Desktop.
Where's Waldo Bookmarklet Game
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
var points=0; | |
function go(){ | |
$($("div:visible,span:visible,p:visible").get().sort(function(){ | |
}).slice(0,1)[0]).append($('<span>').html('Waldow').css({ "opacity": 0.3,"z-index":1111, "cursor":'pointer}).click(function(e){ | |
return Math.round(Math.random())-0.5 | |
e.stopPropagation(); | |
e.preventDefault(); | |
points++; | |
console.log(points); | |
$(this).remove(); | |
go(); | |
return false; | |
})) | |
} | |
go(); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment