Each of these time slots is a collection item. Is it possible to filer the collection items in Webflow to hide the event that is finished and highlight whats next, based on the system clock on the device?
Will you tell me the road you took with the script? I have the same issue: I’m displaying CMS schedules on TV screens with the CMS and I’d like to only show the next departures, not being obliged to keep showing all the departures of the day at all time on display.
At this point he just made a quick and dirty test to verify that it could be done. I pasted it in bellow. Far from what the end result will be, but I suppose it gives you an idea of the approach. I can send you the script when he makes the actual script, but that will probably not happen before the end of May!
<script>
function styleTime()
{
var timeArray = document.getElementsByClassName("program-text");
for (var i = 0; i < timeArray.length; i++)
{
var entryString = timeArray[i].innerHTML;
if (entryString.startsWith("13"))
{
timeArray[i].style.color = "red";
}
}
}
</script>