hongkiat / advent-calendar

Advent Calendar in JavaScript

Home Page:http://hongkiat.github.io/advent-calendar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Demo

You can find demo on http://hongkiat.github.io/advent-calendar/

About

Advent Calendar in JavaScript

http://hongkiat.github.io/advent-calendar/


Languages

Language:JavaScript 63.0%Language:CSS 22.3%Language:HTML 14.7%