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
//fix menu | |
$(window).scroll(function(){ | |
var js_scroll = $(window).scrollTop(); | |
var SCROLL_MIN = 820; | |
var SCROLL_MAX = 5480; | |
if ( js_scroll > SCROLL_MIN ) { | |
$(".js-top-nav").addClass('fixed'); | |
if(js_scroll > SCROLL_MAX) { | |
$(".js-top-nav").removeClass('fixed'); | |
}; |
NewerOlder