Last active
March 26, 2021 16:59
-
-
Save ashblue/e1f881cafbeb17b4272d to your computer and use it in GitHub Desktop.
From http://localhost/visa-signature/apply.jsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DRAWER_CONTAINER = 'offer-drawer' | |
# Remove the drawer if the CSS class changes | |
_isMobileClass = false | |
$(window).resize(-> | |
mobileOn = $HTML.hasClass('mobile') | |
# Change detected, clear the existing class | |
if mobileOn != _isMobileClass | |
_isMobileClass = mobileOn | |
$('#' + DRAWER_CONTAINER).detach() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment