summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2026-11-28 22:39:07 -0500
committerSacha Chua <sacha@sachachua.com>2026-11-28 22:39:07 -0500
commitefa1eefbc36ac490f4c15eccd6db5b1cc2e37432 (patch)
tree211ebb5a2f16cd27d534b88f1f86f004c3857c76
parent9ed5b02b99ed9206e0d1c719b9c4afeef3aeabf4 (diff)
downloademacsconf-wiki-efa1eefbc36ac490f4c15eccd6db5b1cc2e37432.tar.xz
emacsconf-wiki-efa1eefbc36ac490f4c15eccd6db5b1cc2e37432.zip
add local text
-rw-r--r--script.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/script.js b/script.js
index 47249339..7830de2b 100644
--- a/script.js
+++ b/script.js
@@ -118,9 +118,11 @@ document.querySelectorAll('.sched-entry').forEach((o) => {
localStart = (new Date(o.getAttribute('start'))).toLocaleString([], dateOptions);
localEnd = (new Date(o.getAttribute('end'))).toLocaleString([], dateOptions);
o.setAttribute('title', 'Your local time: ~ ' + localStart + ' to ~ ' + localEnd);
+ o.appendChild(document.createTextNode(` (Local: ${localStart} - ${localEnd})`));
} else if (o.getAttribute('start')) {
localStart = (new Date(o.getAttribute('start'))).toLocaleString([], dateOptions);
o.setAttribute('title', 'Your local time: ~ ' + localStart);
+ o.appendChild(document.createTextNode(` (Local: ${localStart})`));
}
});
}