From c4152ebd4fed9cbfe63fd8ebcc16424659eb18e5 Mon Sep 17 00:00:00 2001 From: Michael Reber Date: Tue, 1 Dec 2020 15:46:11 +0100 Subject: [PATCH] Fix snow effect --- README.md | 1 + calendar_dev.json | 2 +- calendar_prod.json | 2 +- css/main-adventskalender.css | 2 +- index.php | 40 +++++++++++++++++------------------- 5 files changed, 23 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 72f4706..f220b5f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Set width and height for the calendar: "calendarHeight": "827", "useModal": "true", "showExtras": "true" + "enableSnow": "true" }, ... ``` diff --git a/calendar_dev.json b/calendar_dev.json index f4dc1af..3e58bca 100644 --- a/calendar_dev.json +++ b/calendar_dev.json @@ -4,7 +4,7 @@ "calendarHeight": "827", "useModal": "true", "showExtras": "true", - "enableSnow": "true" + "enableSnow": "true" }, "entries": [ { diff --git a/calendar_prod.json b/calendar_prod.json index 2cc2cc0..12da424 100644 --- a/calendar_prod.json +++ b/calendar_prod.json @@ -4,7 +4,7 @@ "calendarHeight": "827", "useModal": "true", "showExtras": "true", - "enableSnow": "true" + "enableSnow": "true" }, "entries": [ { diff --git a/css/main-adventskalender.css b/css/main-adventskalender.css index 33ba9ff..e8dc1c0 100644 --- a/css/main-adventskalender.css +++ b/css/main-adventskalender.css @@ -24,7 +24,7 @@ a { height: 100%; position: absolute; width: 100%; - z-index: 1000; + /*z-index: 60;*/ } .modal, .jquery-modal { z-index: 1040 !important; diff --git a/index.php b/index.php index 9cbbc0c..57c73f0 100644 --- a/index.php +++ b/index.php @@ -1,23 +1,3 @@ -load_from_json($config); - -echo $calendar->showExtras; -echo $calendar->enableSnow; - -$showExtras = ($calendar->showExtras == 'true') ? true : false; -$snow_enabled = ($calendar->enableSnow == 'true') ? true : false; - -?> - @@ -35,7 +15,7 @@ $snow_enabled = ($calendar->enableSnow == 'true') ? true : false; - + + load_from_json($config); + + //echo $calendar->showExtras; + //echo $calendar->enableSnow; + $showExtras = ($calendar->showExtras == 'true') ? true : false; + $snow_enabled = ($calendar->enableSnow == 'true') ? true : false; + ?> +