make today red; make closed days grey; fix padding on gallery
This commit is contained in:
@@ -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++;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user