diff options
| author | ivar <i@oiee.no> | 2025-10-06 14:30:55 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-10-06 14:30:55 +0200 |
| commit | e62ef907e94132f4b656e32fb52f5f76587a36dc (patch) | |
| tree | 5f691e1656f94c78fe6186f87c875438876bbe4b /VegaData/wwwroot | |
| parent | 4a42adcb4c755b07fd0f0fc74f92e11851e48249 (diff) | |
| download | vegadata-e62ef907e94132f4b656e32fb52f5f76587a36dc.tar.xz vegadata-e62ef907e94132f4b656e32fb52f5f76587a36dc.zip | |
12
Diffstat (limited to 'VegaData/wwwroot')
| -rw-r--r-- | VegaData/wwwroot/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/VegaData/wwwroot/index.js b/VegaData/wwwroot/index.js index deb9552..cde0974 100644 --- a/VegaData/wwwroot/index.js +++ b/VegaData/wwwroot/index.js @@ -19,6 +19,8 @@ renderShowsBtn.addEventListener("click", () => { }); function dateString(date, small = false) { + console.log(date); + if (small) return Temporal.Instant.from(date).toZonedDateTimeISO(tzId).toPlainDateTime().toLocaleString('nb-NO', { weekday: "long", calendar: 'gregory', hour: "2-digit", minute: "2-digit", month: 'long', day: 'numeric' }) return Temporal.Instant.from(date).toZonedDateTimeISO(tzId).toPlainDateTime().toLocaleString('nb-NO', { weekday: "long", calendar: 'gregory', hour: "2-digit", minute: "2-digit", era: 'long', year: 'numeric', month: 'long', day: 'numeric' }) } @@ -57,7 +59,7 @@ async function renderShows(query) { lis.push(t("li", { class: "show", id: showKey }, [t("span", { class: "title italic" }, showKey), t("ul", undefined, [t("li", undefined, times.filter(e => e.ticketUrl !== "").map(e => t("li", { class: `time time-${e.id}`, id: `${showKey}-${e.startDateTime}` }, [t("a", undefined, [ t("div", undefined, [ - t("span", undefined, dateString(e.startDateTime)), + t("span", { title: e.startDateTime }, dateString(e.startDateTime)), t("span", undefined, `${e.scene} - ${e.tags.join(", ")}`), t("div", { class: "actions" }, [ t("a", { href: e.ticketUrl }, "Billetter"), |
