I want my site to display "Open" or "Closed" based on the current time.
My question is nothing is showing up on the site, so i'm trying to figure out whats wrong with the code
<script type="text/javascript">
var today = new Date(),
var open = "Open",
var closed = "Closed",
var display = document.getElementById('hours-display');
if (today.getHours() >= 9 && today.getHours() < 18) {
display.innerHTML = open;
} else {
display.innerHTML = closed;
}
</script>
<div id="hours-display"></div>