1$(document).ready(function () { 2 if (!$('.hero').length) { 3 // ******************** 4 // IF HERO DONT EXIST ON PAGE 5 // ******************** 6 $('.rank-math-breadcrumb').addClass('under_header') 7 $('header').addClass('colored'); 8 $(window).scroll(function () { 9 $(document).scrollTop() > 200 ? 10 ( 11 $('header').addClass('scrolled'), 12 $('header').removeClass('colored'), 13 $('.site-content').css('margin-top', 220) 14 ) : 15 ( 16 $('header').removeClass('scrolled'), 17 $('header').addClass('colored'), 18 $('.site-content').css('margin-top', 0) 19 ); 20 }) 21 } else { 22 // ******************** 23 // IF HERO EXIST ON PAGE 24 // ******************** 25 $('.rank-math-breadcrumb').addClass('under_hero') 26 const observer = new IntersectionObserver(function (entries) { 27 entries.forEach(entry => !entry.isIntersecting ? 28 $('header').addClass('scrolled') : 29 $('header').removeClass('scrolled')); 30 }); 31 observer.observe(document.querySelector('.hero')) 32 } 33 $('.burger').click(function () { 34 $('header nav').hasClass("show") ? 35 ( 36 $('html').css('overflow', 'auto'), 37 $('header nav').removeClass("show"), 38 $(this).removeClass("close") 39 ) : 40 ( 41 $('html').css('overflow', 'hidden'), 42 $('header nav').addClass("show"), 43 $(this).addClass("close") 44 ) 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.