╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ script.js ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
204 if (!span) return; 205 const focusId = Number(span.dataset.focusId); 206 wasmInstance.exports._onMouseClick(focusId); 207 wasmInstance.exports._tick(minRows(), maxCols()); 208 }); 209 210 let resizeTimer = null; 211 window.addEventListener("resize", () => { 212 clearTimeout(resizeTimer); 213 resizeTimer = setTimeout(() => { 214 wasmInstance.exports._tick(minRows(), maxCols()); 215 }, 100); 216 }); 217 }); 218