Sith/core/static/bundled/htmx-index.js

12 lines
276 B
JavaScript
Raw Permalink Normal View History

2024-11-19 00:56:55 +00:00
import htmx from "htmx.org";
2024-12-08 11:31:35 +00:00
document.body.addEventListener("htmx:beforeRequest", (event) => {
event.target.ariaBusy = true;
});
document.body.addEventListener("htmx:afterRequest", (event) => {
event.originalTarget.ariaBusy = null;
});
2024-11-19 00:56:55 +00:00
Object.assign(window, { htmx });