diff options
| author | Sacha Chua <sacha@sachachua.com> | 2026-10-23 12:11:01 -0700 |
|---|---|---|
| committer | Sacha Chua <sacha@sachachua.com> | 2026-10-23 12:11:01 -0700 |
| commit | 8452ca8dc3b58600051095a038e232132291236b (patch) | |
| tree | bb1060ed3662119094b857736564e54ad707ccb6 | |
| parent | c732180b3293d80d57e320e1388894a1dbd8d426 (diff) | |
| download | emacsconf-wiki-8452ca8dc3b58600051095a038e232132291236b.tar.xz emacsconf-wiki-8452ca8dc3b58600051095a038e232132291236b.zip | |
translate
| -rw-r--r-- | script.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |
