wip: recurring transactions

This commit is contained in:
2025-05-20 23:18:16 +02:00
parent 5ee14578f8
commit 110258c8d5
15 changed files with 855 additions and 54 deletions

View File

@@ -1,6 +1,6 @@
htmx.on("htmx:afterSwap", (e) => {
updateTime(e.target);
htmx.on("htmx:afterSwap", () => {
updateTime();
});
document.addEventListener("DOMContentLoaded", () => {
@@ -8,7 +8,7 @@ document.addEventListener("DOMContentLoaded", () => {
updateTime(document);
})
function updateTime(e) {
function updateTime() {
document.querySelectorAll(".datetime").forEach((el) => {
if (el.textContent !== "") {
el.textContent = el.textContent.includes("UTC") ? new Date(el.textContent).toLocaleString([], { day: 'numeric', month: 'short', year: 'numeric' }) : el.textContent;