Expand html; fix minor error
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -21,7 +22,7 @@ $.ajax({
|
||||
const isToday = (today.toDateString() == date.toDateString());
|
||||
if (isToday) {
|
||||
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 {
|
||||
let start = start_and_end[0];
|
||||
let end = start_and_end[1];
|
||||
|
||||
Reference in New Issue
Block a user