diff options
Diffstat (limited to 'script.js')
| -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; |
