1jQuery(document).ready(function ($) { 2 // DESKTOP 3 4 //Var 5 var headerMenu = $('.dood-header-menu'); 6 var stickyMenu = $('#dood-header-menu-sticky'); 7 8 stickyMenu.hide(); 9 10 var isStickyVisible = false; 11 var isAnimating = false; 12 13 14 headerMenu.find('a[href="#"], a.sf-with-ul').on('click', function (event) { 15 event.preventDefault(); 16 }); 17 18 stickyMenu.find('a[href="#"], a.sf-with-ul').on('click', function (event) { 19 event.preventDefault(); 20 }); 21 22 $(window).scroll(function () { 23 var windowWidth = $(window).width(); 24 25 if (windowWidth >= 768) { 26 var scrollTop = $(this).scrollTop(); 27 var headerHeight = headerMenu.outerHeight(); 28 29 // console.log("Scroll Top", scrollTop); 30 // console.log("Header Height", headerHeight); 31 32 // if (scrollTop > 0) { 33 if (scrollTop > headerHeight) { 34 headerMenu.addClass('header-menu-hidden'); 35 36 stickyMenu.removeClass('header-menu-hidden'); 37 stickyMenu.show(); 38 } 39 // else if (scrollTop === 0) { 40 else { 41 stickyMenu.addClass('header-menu-hidden'); 42 stickyMenu.hide(); 43 44 headerMenu.removeClass('header-menu-hidden'); 45 } 46 } 47 }); 48});
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.