1(function () { 2 'use strict'; 3 4 var header = document.getElementById( 'cz-header' ); 5 if ( header ) { 6 var onScroll = function () { 7 if ( window.scrollY > 8 ) { 8 header.classList.add( 'is-scrolled' ); 9 } else { 10 header.classList.remove( 'is-scrolled' ); 11 } 12 }; 13 window.addEventListener( 'scroll', onScroll, { passive: true } ); 14 onScroll(); 15 } 16 17 var toggle = document.querySelector( '.cz-menu-toggle' ); 18 var nav = document.querySelector( '.cz-nav' ); 19 if ( toggle && nav ) { 20 toggle.addEventListener( 'click', function () { 21 var isOpen = nav.classList.toggle( 'is-open' ); 22 toggle.setAttribute( 'aria-expanded', isOpen ? 'true' : 'false' ); 23 nav.style.display = isOpen ? 'flex' : ''; 24 if ( isOpen ) { 25 nav.style.position = 'absolute'; 26 nav.style.top = '68px'; 27 nav.style.left = '0'; 28 nav.style.right = '0'; 29 nav.style.background = '#fff'; 30 nav.style.flexDirection = 'column'; 31 nav.style.padding = '20px 32px'; 32 nav.style.borderBottom = '1px solid var(--cz-border)'; 33 } 34 } ); 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.