jsmecham/calendarview — Issue #6: mark Dates in the past and the future
Author: Schrank
Created: 2012-01-17 13:58:05+00:00
State: open

To style days in the past and the future, I needed classes for it.

Lines 362++

// Today, past and future
if (date.getFullYear() == thisYear && date.getMonth() == thisMonth && day == thisDay) {
cell.addClassName('today')
} else if (date.getFullYear() >= thisYear && date.getMonth() >= thisMonth && day >= thisDay) {
cell.addClassName('futureDay')
} else {
cell.addClassName('pastDay')
}