diff options
| author | Sacha Chua <sacha@sachachua.com> | 2026-11-28 22:39:07 -0500 |
|---|---|---|
| committer | Sacha Chua <sacha@sachachua.com> | 2026-11-28 22:39:07 -0500 |
| commit | efa1eefbc36ac490f4c15eccd6db5b1cc2e37432 (patch) | |
| tree | 211ebb5a2f16cd27d534b88f1f86f004c3857c76 /script.js | |
| parent | 9ed5b02b99ed9206e0d1c719b9c4afeef3aeabf4 (diff) | |
| download | emacsconf-wiki-efa1eefbc36ac490f4c15eccd6db5b1cc2e37432.tar.xz emacsconf-wiki-efa1eefbc36ac490f4c15eccd6db5b1cc2e37432.zip | |
add local text
Diffstat (limited to 'script.js')
| -rw-r--r-- | script.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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})`)); } }); } |
