1import { Controller } from "@hotwired/stimulus" 2 3// Connects to data-controller="numiko--nav" 4export default class extends Controller { 5 connect () { 6 const searchCollapseElem = document.querySelector('#navSearchDesktop'); 7 searchCollapseElem.addEventListener('shown.bs.collapse', () => { 8 setTimeout(() => { document.querySelector('[data-nav-search-input]').focus(); }, 200) 9 }) 10 } 11 12 detailsOpen (event) { 13 event.target.open = true 14 } 15 16 detailsClose (event) { 17 event.target.open = false 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.