mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-14 10:25:01 +01:00
Store more metadata
And other various improvements
This commit is contained in:
parent
f6fac25c6f
commit
7f1702bc28
11 changed files with 75 additions and 55 deletions
|
|
@ -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));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue