1class MobileMenuHandler { 2 constructor (trigger, elements) { 3 let activeClasses = ["is-active", "menu-open"]; 4 trigger.addEventListener("click", () => { 5 elements.forEach((element) => { 6 activeClasses.map(classes => element.classList.toggle(classes)); 7 }); 8 }); 9 } 10} 11 12export default MobileMenuHandler;
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.