show running text
This commit is contained in:
parent
37340eb816
commit
798d3629c7
|
@ -105,14 +105,14 @@ window.getCode = function getCode() {
|
|||
}
|
||||
|
||||
let statusElem = document.getElementById("status");
|
||||
let indicatorElem = document.getElementById("htmx-indicator");
|
||||
|
||||
document.body.addEventListener('htmx:beforeRequest', (event) => {
|
||||
let elem = document.getElementById("htmx-indicator");
|
||||
elem.style.display = "inline";
|
||||
indicatorElem.style.display = "inline";
|
||||
statusElem.innerText = "Running…";
|
||||
});
|
||||
document.body.addEventListener('htmx:afterRequest', (event) => {
|
||||
let elem = document.getElementById("htmx-indicator");
|
||||
elem.style.display = "none";
|
||||
indicatorElem.style.display = "none";
|
||||
});
|
||||
document.body.addEventListener('htmx:beforeSwap', (event) => {
|
||||
let detail = event.detail;
|
||||
|
|
Loading…
Reference in a new issue