diff options
author | Minteck <contact@minteck.org> | 2022-03-27 21:23:27 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-03-27 21:23:27 +0200 |
commit | 9ce177d037d0aec26d51cfcba5a091155aebbfc6 (patch) | |
tree | d3bc54df6ccd675e07713fe37cc641fca427cd69 /status-time.js | |
download | alicorn-9ce177d037d0aec26d51cfcba5a091155aebbfc6.tar.gz alicorn-9ce177d037d0aec26d51cfcba5a091155aebbfc6.tar.bz2 alicorn-9ce177d037d0aec26d51cfcba5a091155aebbfc6.zip |
Initial commit
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 |