From 9ce177d037d0aec26d51cfcba5a091155aebbfc6 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 27 Mar 2022 21:23:27 +0200 Subject: Initial commit --- status-time.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 status-time.js (limited to 'status-time.js') 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 -- cgit