Fix snow effect

master
Michael Reber 3 years ago
parent 2979f53794
commit c4152ebd4f

@ -26,6 +26,7 @@ Set width and height for the calendar:
"calendarHeight": "827",
"useModal": "true",
"showExtras": "true"
"enableSnow": "true"
},
...
```

@ -4,7 +4,7 @@
"calendarHeight": "827",
"useModal": "true",
"showExtras": "true",
"enableSnow": "true"
"enableSnow": "true"
},
"entries": [
{

@ -4,7 +4,7 @@
"calendarHeight": "827",
"useModal": "true",
"showExtras": "true",
"enableSnow": "true"
"enableSnow": "true"
},
"entries": [
{

@ -24,7 +24,7 @@ a {
height: 100%;
position: absolute;
width: 100%;
z-index: 1000;
/*z-index: 60;*/
}
.modal, .jquery-modal {
z-index: 1040 !important;

@ -1,23 +1,3 @@
<?php
$dev = isset($_GET['dev']) ? $_GET['dev'] : false;
if ($dev) {
$config = file_get_contents("./calendar_dev.json");
} else {
$config = file_get_contents("./calendar_prod.json");
}
require "adventCalendar.php";
$calendar = new adventCalendar();
$calendar->load_from_json($config);
echo $calendar->showExtras;
echo $calendar->enableSnow;
$showExtras = ($calendar->showExtras == 'true') ? true : false;
$snow_enabled = ($calendar->enableSnow == 'true') ? true : false;
?>
<!DOCTYPE html>
<html>
<head>
@ -35,7 +15,7 @@ $snow_enabled = ($calendar->enableSnow == 'true') ? true : false;
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css" />
<link rel="stylesheet" type="text/css" href="css/main-adventskalender.css?v=3.1" media="all">
<link rel="stylesheet" type="text/css" href="css/main-adventskalender.css?v=3.4" media="all">
<!--[if lte IE 9]>
<style type='text/css'>
@ -62,6 +42,24 @@ $snow_enabled = ($calendar->enableSnow == 'true') ? true : false;
<!-- End Matomo Code -->
<?php } ?>
</head>
<?php
$dev = isset($_GET['dev']) ? $_GET['dev'] : false;
if ($dev) {
$config = file_get_contents("./calendar_dev.json");
} else {
$config = file_get_contents("./calendar_prod.json");
}
require "adventCalendar.php";
$calendar = new adventCalendar();
$calendar->load_from_json($config);
//echo $calendar->showExtras;
//echo $calendar->enableSnow;
$showExtras = ($calendar->showExtras == 'true') ? true : false;
$snow_enabled = ($calendar->enableSnow == 'true') ? true : false;
?>
<body>
<?php if ($snow_enabled) { ?>
<canvas class="snow" id="snow"></canvas>

Loading…
Cancel
Save