1$(document).ready(function() { 2 let isMobile = window.matchMedia("only screen and (max-width: 1023px)").matches; 3 $(window).bind("scroll", function () { 4 if ($(window).scrollTop() > 180) { 5 $(".o-header").addClass("fixed"); 6 $(".p-page-main__body").addClass("fixed"); 7 if(isMobile === false){ 8 $(".o-header__menu").css("display","none"); 9 } 10 } else { 11 $(".o-header").removeClass("fixed"); 12 $(".p-page-main__body").removeClass("fixed"); 13 if(isMobile === false){ 14 $(".o-header__menu").css("display","block"); 15 } 16 } 17 }); 18 $('.o-header__menu_fixed').on('click', function(e) { 19 $(".o-header__menu").slideToggle(); 20 }) 21 $('.o-header__mobile_menu').on('click touch', function(e) { 22 $(this).find('.o-header__mobile_menu__open').toggle(); 23 $(this).find('.o-header__mobile_menu__close').toggle(); 24 $('.o-header__toolbar_menu, .o-header__menu').slideToggle(); 25 }) 26 27 $("#headerSearch").on("click", function() { 28 $("#searchDiv").toggle(); 29 }); 30 31 $("#headerMobileSearch").on("click", function() { 32 $("#searchDiv").toggle(); 33 $('.o-header__toolbar_menu, .o-header__menu').hide(); 34 $('.o-header__mobile_menu__close').hide(); 35 }); 36});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.