beer-o-matic.github.io/script.js
2015-01-07 16:02:30 +03:00

13 lines
284 B
JavaScript

var main = function(){
$('.can').hover(function() {
$(this).children('.highlight').toggle();
$('.can').css('top', '-309');
$(this).css('top', '-150');
}, function() {
$(this).children('.highlight').toggle();
$('.can').css('top', '-150');
});
};
$(document).ready(main);