Update nebulamain.js

This commit is contained in:
schooldev49 2022-12-07 21:15:46 -05:00 committed by GitHub
parent e7c14465af
commit 3675f1169e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,12 +39,11 @@ window.addEventListener("load", () => {
var m = date.getMinutes() // 0 - 59
var s = date.getSeconds() // 0 - 59
var session = "AM"
if (h == 0) {
h = 12
}
h = h == 12 ? 24 : h;
if (h >= 12) {
if (h == 0) {
h = 12
} else if (h >= 12) {
h = h - 12
session = "PM"
}