I hereby claim:
- I am jensechu on github.
- I am prawn (https://keybase.io/prawn) on keybase.
- I have a public key whose fingerprint is 078A 62A1 1287 EB2A 680B ED28 8EBA A8F2 FF00 3813
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$(document).ready(function(){ | |
var furs = ["#FFFFFF", "#F7941D", "#EBEBEB", "#636363", "#C69C6D", "#A186BE", "395A00", "#FFF220"]; | |
$("#picture img").click(function () { | |
var choice = Math.floor(Math.random()*furs.length); | |
$(this).css({ "background-color" : furs[choice] }); | |
}); |
$(document).ready(function(){ | |
var furs = ["#FFFFFF", "#F7941D", "#EBEBEB", "#636363", "#C69C6D", "#A186BE", "395A00", "#FFF220"]; | |
$("#picture img").click(function () { | |
var choice = Math.floor(Math.random()*furs.length); | |
$(this).css({ "background-color" : furs[choice] }); | |
}); |
<div id="picture"> | |
<img src="images/kitty.png"></img> | |
</div> |
<div id="food"> | |
<p>nom nom nom</p> | |
<img src="images/nomnom.png"></img> | |
<img class="fish" src="images/fish.png"></img> | |
</div> |
$(document).ready(function(){ | |
var furs = ["#FFFFFF", "#F7941D", "#EBEBEB", "#636363", "#C69C6D", "#A186BE", "395A00", "#FFF220"]; | |
$("#picture img").click(function () { | |
var choice = Math.floor(Math.random()*furs.length); | |
$(this).css({ "background-color" : furs[choice] }); | |
}); |
$("#picture img").droppable({ | |
drop: function() { | |
$(this).attr({ src: "images/kitty_nom.png" }); | |
$(this).addClass("eating"); | |
$(".fish").hide(); | |
} | |
}); |
$(".fish").draggable({ | |
drag: function() { | |
$("#picture img").attr({ src: "images/kitty_hungry.png" }); | |
revert: true; | |
}, | |
stop: function () { | |
if($("#picture img").hasClass("eating")) { | |
setTimeout(reset_kitty, 2000); | |
} | |
else { |
$(".fish").draggable({ | |
drag: function() { | |
$("#picture img").attr({ src: "images/kitty_hungry.png" }); | |
revert: true; | |
}, | |
stop: function () { | |
if($("#picture img").hasClass("eating")) { | |
setTimeout(reset_kitty, 2000); | |
} | |
else { |
function reset_meow() { | |
$("h3").text(""); | |
$("h1").text(""); | |
$("#kitty-speech").removeClass("kitty-bubble"); | |
$("#user-speech").removeClass("input-bubble"); | |
$("#user-input").val(""); | |
} |