updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
+34
View File
@@ -0,0 +1,34 @@
function GetClock() {
var d = new Date();
var hours = d.getHours();
var mins = d.getMinutes();
var secs = d.getSeconds();
var am_pm;
if (hours == 0) {
am_pm = " AM";
hours = 12;
} else if (hours < 12) {
am_pm = " AM";
} else if (hours == 12) {
am_pm = " PM";
} else if (hours > 12) {
am_pm = " PM";
hours -= 12;
}
if (mins <= 9) {
mins = "0" + mins;
}
if (secs <= 9) {
secs = "0" + secs;
}
document.getElementById('clockbox').innerHTML = hours + ":" + mins + ":" + secs + am_pm;
}
window.onload = function () {
GetClock();
setInterval(GetClock, 1000);
}