1$(document).ready(function () { 2 let btn = document.querySelector(".header_btn"); 3 let nav = document.querySelector('.header_nav'); 4 5 btn.addEventListener('click', toggleImage); 6 document.addEventListener('click', function(event) { 7 if (!nav.contains(event.target) && !btn.contains(event.target)) { 8 nav.classList.remove('header_nav-show'); 9 btn.classList.remove('menu_close'); 10 } 11 }); 12}); 13 14function toggleImage() { 15 this.classList.toggle('menu_close'); 16 document.querySelector('.header_nav').classList.toggle('header_nav-show'); 17} 18 19
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.