1/** 2 * @author: Yoann Le Crom <[email protected]> 3 */ 4 5import { Controller } from '@hotwired/stimulus'; 6 7export default class extends Controller { 8 connect() { 9 // Prevent fullscreen menu flashing when resizing down 10 let windowResizingTimer; 11 window.addEventListener('resize', () => { 12 this.element.classList.remove('open'); 13 this.element.classList.add('windowResizing'); 14 clearTimeout(windowResizingTimer); 15 windowResizingTimer = setTimeout(() => { 16 this.element.classList.remove('windowResizing'); 17 }, 300); 18 }); 19 } 20 21 toggle() { 22 this.element.classList.toggle('open'); 23 } 24}
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.