1class AccordionToggle extends HTMLElement { 2 constructor() { 3 super() 4 this.details = this.querySelector('details') 5 this.summary = this.querySelector('summary') 6 7 this.addEventListener('keydown', this.handleKeyDown) 8 } 9 10 handleKeyDown = (event) => { 11 if (event.key === 'Escape' && this.details.open) { 12 event.preventDefault() 13 14 this.details.open = false 15 this.summary.focus() 16 } 17 } 18} 19 20customElements.define('accordion-toggle', AccordionToggle)
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.