Streaming live at 10am (PST)

Opening times code help

Hi all,

I am working on a site and trying to get the text to turn bold for the current days opening times. I am working off someone else’s code and can’t seem to get it to work. Any suggestions?

The code I am working for is below:

var day = new Date().getDay() - 1;
$('.opening-days li').eq(day<0?6:day).css('font-weight','bold');
$('.times li').eq(day<0?6:day).css('font-weight','bold');
function myFunction() {
var d = new Date();
var weekday = new Array(7);
weekday[0] = "We are Closed today & open tomorrow at 9am";
weekday[1] = "Today we are open 9am-6pm";
weekday[2] = "Today we are open 9am-6pm";
weekday[3] = "Today we are open 9am-8pm";
weekday[4] = "Today we are open 9am-6pm";
weekday[5] = "Today we are open 9am-3pm";
weekday[6] = "Today we are open 9am-12.30pm";

var n = weekday[d.getDay()];
document.getElementById("demo1").innerHTML = n;
document.getElementById("demo2").innerHTML = n;