diff options
Diffstat (limited to '')
-rw-r--r-- | templates/page.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl index 14b5ca8a..1c31631d 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -295,7 +295,7 @@ Last edited <TMPL_VAR MTIME> <script> // @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt txt CC0-1.0 // Copyright (C) 2021 Sacha Chua - if (document.querySelector('.times')) { document.querySelector('.times').prepend('Your local time: ~ ' + (new Date(document.querySelector('.times').getAttribute('start')).toLocaleString()) + ' to ~ ' + (new Date(document.querySelector('.times').getAttribute('end')).toLocaleString()) + "\n"); } + if (document.querySelector('.times')) { document.querySelector('.times').prepend('Your local time: ~ ' + (new Date(document.querySelector('.times').getAttribute('start')).toLocaleString()) + ' to ~ ' + (new Date(document.querySelector('.times').getAttribute('end')).toLocaleString()) + "<br />"); } if (document.querySelector('a[name=transcript]')) { var transcriptLink = document.createElement('a'); transcriptLink.setAttribute('href', '#transcript'); |