You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// Activate Bootstrap tooltips
|
|
|
|
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
|
|
|
const tooltipList = [...tooltipTriggerList].map(element => new bootstrap.Tooltip(element))
|
|
|
|
|
|
|
|
// -----------------------------------------
|
|
|
|
// HTMX events
|
|
|
|
|
|
|
|
function runOnceAfterSettle(func) {
|
|
|
|
// https://htmx.org/docs/#request-operations
|
|
|
|
document.addEventListener("htmx:afterSettle", function handler(event) {
|
|
|
|
func();
|
|
|
|
document.removeEventListener("htmx:afterSwap", handler);
|
|
|
|
});
|
|
|
|
}
|