https://github.com/azaleamollis/advent-calendar
Advent Calendar with Christmas quotes in JavaScript
https://github.com/azaleamollis/advent-calendar
advent-calendar christmas
Last synced: 8 months ago
JSON representation
Advent Calendar with Christmas quotes in JavaScript
- Host: GitHub
- URL: https://github.com/azaleamollis/advent-calendar
- Owner: azaleamollis
- Created: 2015-11-16T18:36:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-16T13:10:02.000Z (over 7 years ago)
- Last Synced: 2023-03-06T13:33:14.675Z (over 2 years ago)
- Topics: advent-calendar, christmas
- Language: JavaScript
- Homepage: http://azaleamollis.github.io/advent-calendar/
- Size: 59.6 KB
- Stars: 4
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Advent Calendar
This is an Advent Calendar built in JS, with 24 doors for the days of Advent (Dec 1 - Dec 24). A door is only active **on** or **after** the specific day displayed on it. The active doors are white and clickable. After you click them an alert message with a Christmas quote pops up on the screen. The inactive doors are green and cannot be clicked.
This means that, by default, the whole Calendar is **inactive before December**.
## How to Test the Calendar before December?
In order to test the Calendar before December, comment out the month checker in the `/scripts/calendar.js` file, in *line 24*:
```javascript
if( /* ( currentDate.getMonth() + 1 ) < 12 || */ currentDate.getDate() < day ) {
```If you want the Calendar to check for the month again just uncomment the month checker in the same line.