Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript error Shop Open and Close Times script Re: error Shop Open and Close Times script

#78970
Bob
Member

Try removing the space from line 6, almost all the way at the end of the line.
Line 6 is now:

if (t_hour == 8 && t_min >= 30 && t_day > 0 && t_day < = 5)

whereas it should, I think, be:

if (t_hour == 8 && t_min >= 30 && t_day > 0 && t_day <= 5)

Edit: you have the same thing on line 10. Don't know for sure this causes the problem though.

I removed the space from between the < and the =