Expand html; fix minor error

This commit is contained in:
MarkEEaton
2022-08-24 11:39:21 -04:00
committed by GitHub
parent d4595f2822
commit 1cdeb17e17
+3 -2
View File
@@ -1,4 +1,5 @@
<div id="hours-content"><strong>Today's hours: </strong><br/></div> <div id="hours-content"></div>
<p>More detailed information is available on our <a href="https://library.kbcc.cuny.edu/calendar">hours</a> page.</p>
<script> <script>
@@ -21,7 +22,7 @@ $.ajax({
const isToday = (today.toDateString() == date.toDateString()); const isToday = (today.toDateString() == date.toDateString());
if (isToday) { if (isToday) {
if (start_and_end.length === 1) { if (start_and_end.length === 1) {
document.getElementById("hours-content").innerHTML += "The library is currently " + start + "<br />" document.getElementById("hours-content").innerHTML += "The library is CLOSED today.<br />"
} else { } else {
let start = start_and_end[0]; let start = start_and_end[0];
let end = start_and_end[1]; let end = start_and_end[1];