A dynamic php based advent calendar which can be easily configured via a json-config file
Go to file
2020-12-01 15:46:11 +01:00
_gifts adding screenshot and gitignore file 2020-12-01 13:03:09 +01:00
css Fix snow effect 2020-12-01 15:46:11 +01:00
fonts Initail commit 2020-12-01 12:25:47 +01:00
images Initail commit 2020-12-01 12:25:47 +01:00
adventCalendar.php implement snow canvas effect 2020-12-01 14:26:41 +01:00
calendar_dev.json Fix snow effect 2020-12-01 15:46:11 +01:00
calendar_prod.json Fix snow effect 2020-12-01 15:46:11 +01:00
favicon.ico Initail commit 2020-12-01 12:25:47 +01:00
index.php Fix snow effect 2020-12-01 15:46:11 +01:00
README.md Fix snow effect 2020-12-01 15:46:11 +01:00

web advent calendar

A dynamic php based advent calendar which can be easily configured via a json-config file

image

Configuration

There are two different and identical configuration files. One is the "calendar_prod.json" which is loaded by default and the other is the "calendar_dev.json" which is only loaded in development mode

Enable development-mode:

Add the following switch at the end of the URL of the web application to activate the deverlopmend mode

/index.php?dev=1

Configuration parameter

Set width and height for the calendar:

...
"config": {
    "calendarWidth": "472",
    "calendarHeight": "827",
    "useModal": "true",
    "showExtras": "true"
    "enableSnow": "true"
  },
...

Add entries for the days

...
"entries": [
    {
      "unlockDate": "2020-12-19",
      "doorWidth": "118",
      "doorHeight": "118",
      "positionTop": "0",
      "positionLeft": "0",
      "doorImageLeft": "images/19.png",
      "backgroundImage": "images/background1x1.png",
      "url": "adv19"
    },
    ...
]
...

Browser support

Unfortunately, older versions of Internet Explorer do not support CSS3 that well. The example calendar uses a fallback where the calendar doors are just hidden on hover.