Sha256: e4ee53ee857434cf740030720b226ce4da0abde3344dc37bc41bcf07218b97cf
Contents?: true
Size: 538 Bytes
Versions: 38
Compression:
Stored size: 538 Bytes
Contents
document.addEventListener("turbo:load", () => { if (window.ontouchstart !== undefined) { document.body.classList.add("touch"); } else { document.body.classList.add("no-touch"); } }); document.addEventListener("focusin", (event) => { const input = event.target as HTMLElement; if (input.tagName === "INPUT" || input.tagName === "TEXTAREA") { document.body.classList.add("keyboard-visible"); } }); document.addEventListener("focusout", () => { document.body.classList.remove("keyboard-visible"); }); export {};
Version data entries
38 entries across 38 versions & 1 rubygems