make today red; make closed days grey; fix padding on gallery

This commit is contained in:
Mark Eaton
2021-02-11 15:44:59 -05:00
parent f5073e3640
commit 3ff19e4607
+9 -2
View File
@@ -75,6 +75,10 @@ body {
padding: 2px;
}
.slick-slide img {
padding: 2px;
}
/* style the gallery */
img {
max-height: 350px !important;
@@ -181,10 +185,13 @@ window.onload = function () {
if (targetDate.getFullYear() === today.getFullYear() &&
targetDate.getMonth() === today.getMonth() &&
targetDate.getDate() === today.getDate()) {
document.getElementById('hours0').innerHTML = "<p>" +targetDate.toLocaleDateString("en-US", options_weekday) + "<br />" +targetDate.toLocaleDateString("en-US", options_date) + "</p><p>" + h[i]["Hours"] + "</p>"
document.getElementById('hours0').innerHTML = "<p><span style='color:red;'>Today</span><br />" + targetDate.toLocaleDateString("en-US", options_date) + "</p><p>" + h[i]["Hours"] + "</p>"
var start = true;
var count = 1;
} else if (start === true && count < 5) {
} else if (start === true && count < 5 && h[i]["Hours"] === "Closed" ) {
document.getElementById('hours' + count).innerHTML = "<span style='color:#777;'><p>" + targetDate.toLocaleDateString("en-US", options_weekday) + "<br />" + targetDate.toLocaleDateString("en-US", options_date) + "</p><p>" + h[i]["Hours"] + "</p></span>"
count++;
} else if (start === true && count < 5 && h[i]["Hours"] != "Closed") {
document.getElementById('hours' + count).innerHTML = "<p>" + targetDate.toLocaleDateString("en-US", options_weekday) + "<br />" + targetDate.toLocaleDateString("en-US", options_date) + "</p><p>" + h[i]["Hours"] + "</p>"
count++;
};