Week 1 JS Calendar Highlight Bug
Closed this issue · 2 comments
cycomachead commented
Argh...what am I missing....
For the first week:
weeks = Math.floor(((today - start) / MS_DAY) / 7), // Weeks SINCE start
rows = document.getElementsByClassName("cal"),
temp = rows[weeks], // +1 is because row 0 is header
For every other week:
weeks = Math.floor(((today - start) / MS_DAY) / 7), // Weeks SINCE start
rows = document.getElementsByClassName("cal"),
temp = rows[weeks + 1], // +1 is because row 0 is header
cycomachead commented
Currently, [weeks] just seems to work. Maybe this is a problem with weekend dates...
cycomachead commented
Ugh I think the current settings are correct but I don't know...