1document.addEventListener('DOMContentLoaded', function () { 2 const headerMenuBtn = document.querySelector('.header__menu') 3 if (headerMenuBtn) { 4 const menuMobile = document.querySelector('.menu') 5 const body = document.querySelector('body') 6 headerMenuBtn.addEventListener('click', function () { 7 menuMobile.classList.add('active') 8 body.classList.add('fixed') 9 }) 10 const menuMobileClose = document.querySelectorAll('.menu__close') 11 for (const menuMobileClose_item of menuMobileClose) { 12 menuMobileClose_item.addEventListener('click', function () { 13 const menuMobileAll = document.querySelectorAll( 14 '.menu.active, .menu__regions.active' 15 ) 16 for (const menuMobileAll_item of menuMobileAll) { 17 menuMobileAll_item.classList.remove('active') 18 } 19 body.classList.remove('fixed') 20 }) 21 } 22 } 23 const menuRegionBtn = document.querySelector('.menu__regions-click') 24 if (menuRegionBtn) { 25 const menuMobileRegion = document.querySelector('.menu__regions') 26 menuRegionBtn.addEventListener('click', function () { 27 menuMobileRegion.classList.add('active') 28 }) 29 } 30})
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.