diff options
Diffstat (limited to 'status-time.js')
-rw-r--r-- | status-time.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/status-time.js b/status-time.js new file mode 100644 index 0000000..6c469c1 --- /dev/null +++ b/status-time.js @@ -0,0 +1,6 @@ +let updateTime = () => { + document.getElementById("statusbar-time").innerText = new Date().getHours() + ":" + (new Date().getMinutes() > 9 ? new Date().getMinutes() : "0" + new Date().getMinutes()); +} + +setInterval(updateTime, 1000) +updateTime()
\ No newline at end of file |