Created
October 3, 2018 12:43
-
-
Save tonysaffo/449f3adbf3e5912478c8e7bf9095eaee to your computer and use it in GitHub Desktop.
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
function scrollTo(el) { | |
$('.hamburger').removeClass('is-active'); | |
$('.hidden-mobile-nav').slideUp(); | |
$('body').css({ | |
'overflow': 'auto', | |
}); | |
document.ontouchmove = function(e){ return true; }; | |
$('html, body').animate({ | |
scrollTop: el.offset().top - 50 | |
}, 400); | |
} | |
$('.mainsite .nav-footer li').eq(1).click(function(){ | |
scrollTo($('.mainsite-license')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment