Line 6: | Line 6: | ||
$("#main-container #button").mouseover(function() { | $("#main-container #button").mouseover(function() { | ||
growFn = setInterval(function() { | growFn = setInterval(function() { | ||
− | if ($("#main-container #button").width() < | + | if ($("#main-container #button").width() <= $(window).width()) { |
$("#main-container #button").width( | $("#main-container #button").width( | ||
$("#main-container #button").width() * 1.05 | $("#main-container #button").width() * 1.05 | ||
Line 12: | Line 12: | ||
} | } | ||
if ( | if ( | ||
− | $("#main-container #button").height() < | + | $("#main-container #button").height() <= $(window).height() |
− | + | ||
) { | ) { | ||
$("#main-container #button").height( | $("#main-container #button").height( | ||
Line 20: | Line 19: | ||
} | } | ||
if ( | if ( | ||
− | $("#main-container #button").height() > | + | $("#main-container #button").height() > |
− | + | $(window).height() | |
) { | ) { | ||
if ( | if ( | ||
− | $("#main-container #button").width() > | + | $("#main-container #button").width() > |
− | + | $(window).width() | |
) { | ) { | ||
$("#main-container #button").css("pointer-events", "none") | $("#main-container #button").css("pointer-events", "none") |
Revision as of 02:47, 17 October 2018