1// Add Custom JS to the <body> of the site in this file 2 3jQuery(function($) { 4 5 //WRAP HEADER IN CONTAINER SO BODY CONTENT IS NOT COVERED 6 var headerSection = $('.header-section-container'); 7 headerSection.wrap('<div class="header-placeholder"></div>'); 8 var headerWrap = $('.header-placeholder'); 9 var headerHeight = headerSection.outerHeight(true); 10 11 var firstSection = $('div.entry-content .et_pb_section:first-child'); 12 var firstSectionPadding = parseInt(firstSection.css("padding-top")) + parseInt(headerHeight) + 'px'; 13 firstSection.css('padding-top', firstSectionPadding); 14 15 16 $(window).resize(function() { 17 headerHeight = headerSection.outerHeight(); 18 19 }); 20 // POSITION MOBILE MENU BELOW HEADER 21 $( ".mobile_menu_bar" ).on( "click", function() { 22 23 const headerBottom = document.getElementById('km_custom_header').getBoundingClientRect().bottom; 24 25 var scroll = jQuery(window).scrollTop(); 26 var banner = jQuery('#simple-banner'); 27 var bannerHeight = banner.outerHeight(); 28 if (scroll < bannerHeight) { 29 jQuery(window).scrollTop(bannerHeight); 30 31 } 32 33 var mobMenu = $('#km_custom_header ul.et_mobile_menu'); 34 mobMenu.css('top', headerBottom); 35 36 37 $(window).resize(function() { 38 headerHeight = headerSection.outerHeight(); 39 var mobMenu = $('#km_custom_header ul.et_mobile_menu'); 40 mobMenu.css('top', headerBottom ); 41 }); 42 }); 43 44 });
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.