mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-23 16:21:22 +00:00
12 lines
276 B
JavaScript
12 lines
276 B
JavaScript
import htmx from "htmx.org";
|
|
|
|
document.body.addEventListener("htmx:beforeRequest", (event) => {
|
|
event.target.ariaBusy = true;
|
|
});
|
|
|
|
document.body.addEventListener("htmx:afterRequest", (event) => {
|
|
event.originalTarget.ariaBusy = null;
|
|
});
|
|
|
|
Object.assign(window, { htmx });
|