Hi. Thanks for this. If I wanted to list the days of the week with Monday as the first day, what would I need to do to the script to allow for this?
Thanks.
eastevenson () - 5 years ago - Reply 0
In JS script:
$('.opening-hours li').eq(new Date().getDay() - 1).addClass('today');
NaszvadiG () - 5 years ago - Reply 0
Thanks. I thought that might do it but I was waiting until Sunday to see if it still worked! :D
eastevenson () - 5 years ago - Reply 0