1document.addEventListener('DOMContentLoaded',function(){ 2 var toggle=document.querySelector('.mobile-toggle'); 3 var nav=document.getElementById('mobile-nav'); 4 var close=document.querySelector('.mobile-nav-close'); 5 function openNav(){ 6 nav.classList.add('open'); 7 nav.setAttribute('aria-hidden','false'); 8 if(toggle)toggle.setAttribute('aria-expanded','true'); 9 document.body.style.overflow='hidden'; 10 } 11 function closeNav(){ 12 nav.classList.remove('open'); 13 nav.setAttribute('aria-hidden','true'); 14 if(toggle)toggle.setAttribute('aria-expanded','false'); 15 document.body.style.overflow=''; 16 } 17 if(toggle&&nav){ 18 toggle.addEventListener('click',openNav); 19 } 20 if(close&&nav){ 21 close.addEventListener('click',closeNav); 22 } 23 if(nav){ 24 document.addEventListener('keydown',function(e){ 25 if(e.key==='Escape'&&nav.classList.contains('open'))closeNav(); 26 }); 27 } 28 29 var scrollTop=document.createElement('button'); 30 scrollTop.innerHTML='<i class="fa fa-arrow-up"></i>'; 31 scrollTop.className='scroll-top'; 32 scrollTop.setAttribute('aria-label','ÐавеÑÑ '); 33 document.body.appendChild(scrollTop); 34 var ticking=false; 35 window.addEventListener('scroll',function(){ 36 if(!ticking){ 37 window.requestAnimationFrame(function(){ 38 scrollTop.style.display=window.pageYOffset>400?'flex':'none'; 39 ticking=false; 40 }); 41 ticking=true; 42 } 43 }); 44 scrollTop.addEventListener('click',function(){window.scrollTo({top:0,behavior:'smooth'})}); 45});
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.