Advent Calendar in JavaScript
JavaScript CSS HTML
Pull request Compare This branch is 3 commits ahead of azaleamollis:master.
Latest commit fcf39fe Aug 19, 2016 @tfirdaus tfirdaus add docs folder
Failed to load latest commit information.

Advent Calendar

This is a regular Advent Calendar built in JS, with 24 doors for the days of Advent (Dec 1 - Dec 24). A door can only be opened on or after the specific date on it. This means that the Calendar is inactive before December.

How to Test the Calendar before December?

In order to test the Calendar before December, please comment out the month checker in the /scripts/calendar.js file, in line 24 in the following way:

if( /* ( currentDate.getMonth() + 1 ) < 12 || */ currentDate.getDate() < day ) {

This way the Calendar will only check the day of the current month, but not the current month of the year, so it can be tested before December.