1const contactModules = document.querySelectorAll('.contact-module'); 2 3contactModules.forEach((contactModule) => { 4 let contactData = contactModule.querySelector('.contact-data'); 5 let button = contactModule.querySelector('.contact-info-heading-mobile'); 6 7 button.addEventListener('click', function () { 8 if (this.classList.contains('active')) { 9 this.classList.remove('active'); 10 this.setAttribute('aria-expanded', false); 11 } else { 12 this.classList.add('active'); 13 this.setAttribute('aria-expanded', true); 14 } 15 }); 16 17 if (contactData.childNodes.length === 1) { 18 contactModule.classList.add('empty'); 19 } 20});
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.