I think that works, but I realized this is slightly more complicated than I first thought.
I also need the below function to execute every time the div (re)loads. This is the JS that determines if the collection list items inside the div should be displayed or hidden.
//show collection list item if it matches current day/time
var str = arrayDay[day]; //check day of week
if(hours >= utcFrom && //check start time
hours < utcTo && //check end time
str == "true")
item.className = item.className += " itemDisplayBlock"; //show collection item
Can we combine this function with the one you gave to me?
Can we add a line of code that hides the collection items if it does not match day and time (by replacing class .itemDisplayBlock with the class .itemDisplayNone)?