diff --git a/groups/new-homepage-3/homepage3-js-css.html b/groups/new-homepage-3/homepage3-js-css.html index bce014a..f30ddbb 100644 --- a/groups/new-homepage-3/homepage3-js-css.html +++ b/groups/new-homepage-3/homepage3-js-css.html @@ -75,6 +75,10 @@ body { padding: 2px; } +.slick-slide img { + padding: 2px; +} + /* style the gallery */ img { max-height: 350px !important; @@ -181,11 +185,14 @@ window.onload = function () { if (targetDate.getFullYear() === today.getFullYear() && targetDate.getMonth() === today.getMonth() && targetDate.getDate() === today.getDate()) { - document.getElementById('hours0').innerHTML = "
" +targetDate.toLocaleDateString("en-US", options_weekday) + "
" +targetDate.toLocaleDateString("en-US", options_date) + "
" + h[i]["Hours"] + "
" + document.getElementById('hours0').innerHTML = "Today
" + targetDate.toLocaleDateString("en-US", options_date) + "
" + h[i]["Hours"] + "
" var start = true; var count = 1; - } else if (start === true && count < 5) { - document.getElementById('hours' + count).innerHTML = "" +targetDate.toLocaleDateString("en-US", options_weekday) + "
" +targetDate.toLocaleDateString("en-US", options_date) + "
" + h[i]["Hours"] + "
" + } else if (start === true && count < 5 && h[i]["Hours"] === "Closed" ) { + document.getElementById('hours' + count).innerHTML = "" + targetDate.toLocaleDateString("en-US", options_weekday) + "
" + targetDate.toLocaleDateString("en-US", options_date) + "
" + h[i]["Hours"] + "
" + count++; + } else if (start === true && count < 5 && h[i]["Hours"] != "Closed") { + document.getElementById('hours' + count).innerHTML = "" + targetDate.toLocaleDateString("en-US", options_weekday) + "
" + targetDate.toLocaleDateString("en-US", options_date) + "
" + h[i]["Hours"] + "
" count++; }; };