Minor fixes

This commit is contained in:
ravi-aratchige
2022-11-10 11:11:53 +05:30
parent 797ea29492
commit 0c4f13a92f
+6 -6
View File
@@ -8,6 +8,10 @@ let day = today.getDay();
let month = today.getMonth();
let year = today.getFullYear();
// check the time and adjust the format
minute = checkTime(minute);
second = checkTime(second);
// CODE FOR THE SITE BACKGROUND
function changeImage() {
@@ -39,12 +43,8 @@ function loadGlassOverlayComponents() {
}
// convert the time to a 12-hour clock
// timeOfDay = convertTimeOfDay(hour, timeOfDay);
// hour = convertHour(hour);
// check the time and adjust the format
minute = checkTime(minute);
second = checkTime(second);
timeOfDay = convertTimeOfDay(hour, timeOfDay);
hour = convertHour(hour);
// set the suffix of the day
let daySuffix;