Line 5: | Line 5: | ||
$("#main-container #button").mouseover(function() { | $("#main-container #button").mouseover(function() { | ||
growFn = setInterval(function() { | growFn = setInterval(function() { | ||
− | if ($("#main-container #button").width() < 2 * $(window).width()) | + | if ($("#main-container #button").width() < 2 * $(window).width()) { |
$("#main-container #button").width( | $("#main-container #button").width( | ||
$("#main-container #button").width() * 1.05 | $("#main-container #button").width() * 1.05 | ||
) | ) | ||
− | if ($("#main-container #button").height() < 2 * $(window).height()) | + | } |
+ | if ( | ||
+ | $("#main-container #button").height() < | ||
+ | 2 * $(window).height() | ||
+ | ) { | ||
$("#main-container #button").height( | $("#main-container #button").height( | ||
$("#main-container #button").height() * 1.05 | $("#main-container #button").height() * 1.05 | ||
) | ) | ||
+ | } | ||
if ( | if ( | ||
− | + | $("#main-container #button").height() >= | |
− | (2 * $(window).height( | + | (2 * $(window).height()) && |
− | + | $("#main-container #button").width() >= (2 * $(window).width()) | |
) { | ) { | ||
$("#main-container #button").css("pointer-events", "none") | $("#main-container #button").css("pointer-events", "none") | ||
Line 79: | Line 84: | ||
// animatethis($("#main-container #Big2Cell"), 6000, 2, -1, 2, -1) | // animatethis($("#main-container #Big2Cell"), 6000, 2, -1, 2, -1) | ||
}) | }) | ||
+ | |||
</script> | </script> | ||
</html> | </html> |
Revision as of 18:56, 11 October 2018