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() <= $(window).width()) { | + | if ($("#main-container #button").width() <= 1.2 * $(window).width()) { |
$("#main-container #button").width( | $("#main-container #button").width( | ||
$("#main-container #button").width() * 1.05 | $("#main-container #button").width() * 1.05 | ||
) | ) | ||
− | |||
− | |||
− | |||
} | } | ||
if ( | if ( | ||
− | $("#main-container #button").height() <= $(window).height() | + | $("#main-container #button").height() <= 1.2 * $(window).height() |
) { | ) { | ||
$("#main-container #button").height( | $("#main-container #button").height( | ||
Line 30: | Line 27: | ||
) { | ) { | ||
$("#main-container #button").css("pointer-events", "none") | $("#main-container #button").css("pointer-events", "none") | ||
+ | $("#main-container #button").css('border-radius',"0%") | ||
clearInterval(growFn) | clearInterval(growFn) | ||
} | } |
Revision as of 04:08, 17 October 2018