We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edea763 commit 8382babCopy full SHA for 8382bab
users/control/script.js
@@ -51,4 +51,19 @@ function tab(clicked_id) {
51
document.getElementById("tab1").style.textDecoration = "none";
52
}
53
z.style.textDecoration = "underline";
54
+}
55
+function startTime() {
56
+ const today = new Date();
57
+ let h = today.getHours();
58
+ let m = today.getMinutes();
59
+ let s = today.getSeconds();
60
+ m = checkTime(m);
61
+ s = checkTime(s);
62
+ document.getElementById('clock').innerHTML = h + ":" + m;
63
+ setTimeout(startTime, 1000);
64
65
+
66
+function checkTime(i) {
67
+ if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
68
+ return i;
69
0 commit comments