summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2026-10-23 12:11:01 -0700
committerSacha Chua <sacha@sachachua.com>2026-10-23 12:11:01 -0700
commit8452ca8dc3b58600051095a038e232132291236b (patch)
treebb1060ed3662119094b857736564e54ad707ccb6
parentc732180b3293d80d57e320e1388894a1dbd8d426 (diff)
downloademacsconf-wiki-8452ca8dc3b58600051095a038e232132291236b.tar.xz
emacsconf-wiki-8452ca8dc3b58600051095a038e232132291236b.zip
translate
-rw-r--r--script.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/script.js b/script.js
index 3ed6ee0a..47249339 100644
--- a/script.js
+++ b/script.js
@@ -102,6 +102,13 @@ addLocalTimeToSVGs();
document.querySelector('.times').querySelector('.others').style.display = 'none';
}
}
+document.querySelectorAll('.sched-entry').forEach((o) => {
+ var localStart = (new Date(o.getAttribute('data-start'))).toLocaleString([], { timeStyle: 'short' }).replace(/\./g, '');
+ var localEnd = (new Date(o.getAttribute('data-end'))).toLocaleString([], { hour: 'numeric', minute: 'numeric', timeZoneName: 'short' }).replace(/\./g, '');
+ o.querySelector('.sched-start').textContent = localStart;
+ o.querySelector('.sched-end').textContent = localEnd;
+});
+
if (document.querySelector('.time-overlay')) {
document.querySelectorAll('.time-overlay').forEach(function (o) {
if (o.getAttribute('title')) return;