Was wondering if anyone had any suggestions or if it’s possible in Webflow to highlight a List item or even a div depending on the day- basically I’d like to make the current day in the opening hours on one of my sites highlighted by making it brighter or making it bold.
I think jQuery may be the best option for this- has anyone came across this and been able to implement it?
It seems possible out with Webflow but the coding isn’t my strong suit.
Is there any chance you know how to Populate a paragraph element with the outcome of this script? I’m thinking something along these lines (my thought is to have a paragraph somewhere in the site telling the user what they are open that day to save them browsing for the opening hours)
function myFunction() {
var d = new Date();
var weekday = new Array(7);
weekday[0] = “Sunday”;
weekday[1] = “Monday”;
weekday[2] = “Tuesday”;
weekday[3] = “Wednesday”;
weekday[4] = “Thursday”;
weekday[5] = “Friday”;
weekday[6] = “Saturday”;
var n = weekday[d.getDay()];
document.getElementById("demo").innerHTML = n;
For the paragraph (or div), go to the element settings (second tab on the right), then type in the id. In your code example above, you are using the id demo. Don’t forget to call your function.