Store more metadata

And other various improvements
This commit is contained in:
nora 2025-07-04 22:47:06 +02:00
parent f6fac25c6f
commit 7f1702bc28
11 changed files with 75 additions and 55 deletions

View file

@ -2,3 +2,12 @@
document.querySelectorAll(".number").forEach((elem) => {
elem.textContent = new Intl.NumberFormat().format(Number(elem.textContent));
});
// Do some fancy date formatting in your locale, so you can't blame me if the numbers look ass.
document.querySelectorAll(".date").forEach((elem) => {
console.log("run")
elem.textContent = new Intl.DateTimeFormat(undefined, {
dateStyle: "short",
timeStyle: "short",
}).format(new Date(elem.textContent));
});