diff --git a/groups/new-homepage-3/homepage3-js-css.html b/groups/new-homepage-3/homepage3-js-css.html index a7f2d98..c2db6bb 100644 --- a/groups/new-homepage-3/homepage3-js-css.html +++ b/groups/new-homepage-3/homepage3-js-css.html @@ -161,7 +161,7 @@ img { } .hours-panel-body { - padding: 10px 5px 10px 5px; + padding: 10px 5px 0px 5px; } .padding-0 { @@ -185,6 +185,8 @@ img { .panel-outline-color { border: solid #555 1px; + font-size: 1.2em; + line-height: 1.4em; } .vertical-align { @@ -294,14 +296,14 @@ window.onload = function () { if (targetDate.getFullYear() === today.getFullYear() && targetDate.getMonth() === today.getMonth() && targetDate.getDate() === today.getDate()) { - document.getElementById('hours0').innerHTML = "

Today
" + 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 && h[i].Hours === "Closed" ) { - 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 < 3 && 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 + "

"; + } else if (start === true && count < 3 && 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++; } } diff --git a/groups/new-homepage-3/homepage3-template.html b/groups/new-homepage-3/homepage3-template.html index 4a7c7f0..a412074 100644 --- a/groups/new-homepage-3/homepage3-template.html +++ b/groups/new-homepage-3/homepage3-template.html @@ -383,44 +383,30 @@
-
+
-
+
-
+
-