summaryrefslogtreecommitdiff
path: root/tempo.js
diff options
context:
space:
mode:
Diffstat (limited to 'tempo.js')
-rw-r--r--tempo.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tempo.js b/tempo.js
index ae3fa22..a18be78 100644
--- a/tempo.js
+++ b/tempo.js
@@ -20,12 +20,12 @@ function updateTime() {
if (timefmt == 12) // default to 24
h = (h + 11) % 12 + 1;
- let str_t = padTime(h) + '  ' + padTime(m) +
- ' &nbsp' + padTime(s);
+ let str_t = padTime(h) + '\u00A0\u00A0' + padTime(m) +
+ '\u00A0\u00A0' + padTime(s);
let str_d = dd + ' ' + months[dm] + ' ' + dy;
- document.getElementById('timeval').innerHTML = str_t;
- document.getElementById('dateval').innerHTML = str_d;
+ document.getElementById('timeval').textContent = str_t;
+ document.getElementById('dateval').textContent = str_d;
}
function startTempo() {