Compare commits
4 commits
7734485917
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
b4adda93ac | ||
|
b50b08f766 | ||
|
cdf633a9bd | ||
|
baab6bbfc4 |
5 changed files with 21 additions and 49 deletions
|
@ -121,7 +121,6 @@ a.img-and-text-link:hover span {
|
||||||
}
|
}
|
||||||
|
|
||||||
.holiday-legend {
|
.holiday-legend {
|
||||||
height: 72px;
|
|
||||||
width: 145px;
|
width: 145px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB |
|
@ -36,17 +36,15 @@
|
||||||
<h3>{{name}} ({{capacity}} pl.)</h3>
|
<h3>{{name}} ({{capacity}} pl.)</h3>
|
||||||
{{#if wheelchair}}<img src="img/Wheelchair_symbol.svg" class="wheelchair" style="width:30px;height:30px;">{{/if}}
|
{{#if wheelchair}}<img src="img/Wheelchair_symbol.svg" class="wheelchair" style="width:30px;height:30px;">{{/if}}
|
||||||
{{#if wifi}}<img src="img/Logo_WiFi.svg" class="wifi" style="width:40px;height:20px;">{{/if}}
|
{{#if wifi}}<img src="img/Logo_WiFi.svg" class="wifi" style="width:40px;height:20px;">{{/if}}
|
||||||
{{#if online}}<img src="img/Online.png" class="wifi" style="width:50px;height:50px;">{{/if}}
|
|
||||||
<img src="img/{{type}}.png" class="type">
|
<img src="img/{{type}}.png" class="type">
|
||||||
<div class="location">{{#if online}}Link: <a href={{address}}>{{address}}</a>{{else}}Locatie: {{address}}{{/if}}</div>
|
<div class="location">Locatie: {{address}}</div>
|
||||||
{{#if online}}
|
|
||||||
{{else}}
|
|
||||||
<div class="period">{{#if period.start}}
|
<div class="period">{{#if period.start}}
|
||||||
Periode: {{date period.start}} tot {{date period.end}}
|
Periode: {{date period.start}} tot {{date period.end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
Open gedurende het hele jaar.
|
Open gedurende het hele jaar.
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
<h4>Openingsuren</h4>
|
||||||
<table class="desktop">
|
<table class="desktop">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Maandag</td>
|
<td>Maandag</td>
|
||||||
|
@ -66,9 +64,6 @@
|
||||||
<td>{{#if hours.sunday}}{{hours.sunday}}{{else}}Gesloten{{/if}}</td>
|
<td>{{#if hours.sunday}}{{hours.sunday}}{{else}}Gesloten{{/if}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h4>Openingsuren</h4>
|
|
||||||
|
|
||||||
<table class="mobile">
|
<table class="mobile">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Maandag</td>
|
<td>Maandag</td>
|
||||||
|
@ -93,10 +88,8 @@
|
||||||
<td>{{#if hours.sunday}}{{hours.sunday}}{{else}}Gesloten{{/if}}</td>
|
<td>{{#if hours.sunday}}{{hours.sunday}}{{else}}Gesloten{{/if}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{{/if}}
|
|
||||||
{{#if extra}}{{{extra}}}{{/if}}
|
{{#if extra}}{{{extra}}}{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script id="info-template" type="text/x-handlebars-template">
|
<script id="info-template" type="text/x-handlebars-template">
|
||||||
|
@ -119,19 +112,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 125px; height: 18px; padding-top: 5px; padding-left: 5px;">
|
<div style="width: 125px; height: 18px; padding-top: 5px; padding-left: 5px;">
|
||||||
<div style="height: 10px; width: 10px; background: rgb(36, 126, 202); margin-top: 1px; margin-left: 5px;"></div>
|
<div style="height: 10px; width: 10px; background: rgb(36, 126, 202); margin-top: 1px; margin-left: 5px;"></div>
|
||||||
<span style="position: absolute; left: 25px; top: 29px;">Enkel week</span>
|
<span style="position: absolute; left: 25px; top: 30px;">Enkel week</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 125px; height: 18px; padding-top: 5px; padding-left: 5px;">
|
<div style="width: 125px; height: 18px; padding-top: 5px; padding-left: 5px;">
|
||||||
<div style="height: 10px; width: 10px; background: rgb(120,120,120); margin-top: 1px; margin-left: 5px;"></div>
|
<div style="height: 10px; width: 10px; background: rgb(120,120,120); margin-top: 1px; margin-left: 5px;"></div>
|
||||||
<span style="position: absolute; left: 25px; top: 53px;">Opent binnenkort</span>
|
<span style="position: absolute; left: 25px; top: 52px;">Opent binnenkort</span>
|
||||||
</div>
|
|
||||||
<div style="width: 125px; height: 18px; padding-top: 5px; padding-left: 5px;">
|
|
||||||
<div style="height: 10px; width: 10px; background: rgb(124,252,120); margin-top: 1px; margin-left: 5px;"></div>
|
|
||||||
<span style="position: absolute; left: 25px; top: 77px;">Online</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 140px; height: 18px; padding-top: 5px; padding-left: 5px;" class="holiday">
|
<div style="width: 140px; height: 18px; padding-top: 5px; padding-left: 5px;" class="holiday">
|
||||||
<div style="height: 10px; width: 10px; background: rgb(121, 230, 121); margin-top: 0px; margin-left: 5px;"></div>
|
<div style="height: 10px; width: 10px; background: rgb(121, 230, 121); margin-top: 0px; margin-left: 5px;"></div>
|
||||||
<span style="position: absolute; left: 25px; top: 80px;">Tijdens kerstvakantie</span>
|
<span style="position: absolute; left: 25px; top: 75px;">Tijdens kerstvakantie</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -24,17 +24,11 @@ $(document).ready(function() {
|
||||||
iconUrl: "img/grey-marker.png"
|
iconUrl: "img/grey-marker.png"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var GreenIcon = L.Icon.Default.extend({
|
|
||||||
options: {
|
|
||||||
iconUrl: "img/green-marker.png"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var blueIcon = new BlueIcon();
|
var blueIcon = new BlueIcon();
|
||||||
var redIcon = new RedIcon();
|
var redIcon = new RedIcon();
|
||||||
var christmasIcon = new ChristmasIcon();
|
var christmasIcon = new ChristmasIcon();
|
||||||
var greyIcon = new GreyIcon();
|
var greyIcon = new GreyIcon();
|
||||||
var greenIcon = new GreenIcon();
|
|
||||||
|
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
var christmasSeason =
|
var christmasSeason =
|
||||||
|
@ -43,8 +37,6 @@ $(document).ready(function() {
|
||||||
|
|
||||||
function onEachFeature(feature, layer) {
|
function onEachFeature(feature, layer) {
|
||||||
if (feature.properties) {
|
if (feature.properties) {
|
||||||
var prop = feature.properties;
|
|
||||||
prop["online"] = feature.properties.address.substring(0,5)==="https";
|
|
||||||
layer.bindPopup(popuptemplate(feature.properties), {
|
layer.bindPopup(popuptemplate(feature.properties), {
|
||||||
showOnMouseOver: true
|
showOnMouseOver: true
|
||||||
});
|
});
|
||||||
|
@ -64,14 +56,10 @@ $(document).ready(function() {
|
||||||
} else if (feature.properties.holidays && christmasSeason) {
|
} else if (feature.properties.holidays && christmasSeason) {
|
||||||
icon = christmasIcon;
|
icon = christmasIcon;
|
||||||
iconDescription = "christmas";
|
iconDescription = "christmas";
|
||||||
} else if (!feature.properties.hours.saturday && !feature.properties.hours.sunday) {
|
} else if ((!feature.properties.hours.saturday && !feature.properties.hours.sunday)||(feature.properties.hours.saturday.toLowerCase()==="gesloten"&&feature.properties.hours.sunday.toLowerCase()==="gesloten")) {
|
||||||
icon = blueIcon;
|
icon = blueIcon;
|
||||||
iconDescription = "blue";
|
iconDescription = "blue";
|
||||||
}
|
}
|
||||||
if (feature.properties.address.substring(0,5)==="https") {
|
|
||||||
icon = greenIcon;
|
|
||||||
iconDescription = "green";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return new HoverMarker(latlng, { icon: icon, riseOnHover: true});
|
return new HoverMarker(latlng, { icon: icon, riseOnHover: true});
|
||||||
}
|
}
|
||||||
|
@ -84,7 +72,7 @@ $(document).ready(function() {
|
||||||
// account name = zeuswpi, details are in password manager
|
// account name = zeuswpi, details are in password manager
|
||||||
// token has a restriction to only work with our domains and localhost
|
// token has a restriction to only work with our domains and localhost
|
||||||
accessToken: 'pk.eyJ1IjoiemV1c3dwaSIsImEiOiJja2QzMDZ1NmcwMjBtMnlxbXV2bXVpaXhuIn0.-ViXZUT9SqRI3IvB8209LQ',
|
accessToken: 'pk.eyJ1IjoiemV1c3dwaSIsImEiOiJja2QzMDZ1NmcwMjBtMnlxbXV2bXVpaXhuIn0.-ViXZUT9SqRI3IvB8209LQ',
|
||||||
attribution: 'Achtergrondkaart © <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a>-bijdragers, <span lang="en">Imagery © <a href="https://www.mapbox.com/">Mapbox</a></span>. | <span lang="en">Made with ❤ by <a href="https://zeus.gent/">Zeus WPI</a></span> | <a href="https://zeus.gent/about/privacy/">Privacybeleid</a>',
|
attribution: '<span>Achtergrondkaart © <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a>-bijdragers </span>, <span lang="en">Imagery © <a href="https://www.mapbox.com/">Mapbox</a></span>. | <span lang="en">Made with ❤ by <a href="https://zeus.gent/">Zeus WPI</a></span> | <a href="https://zeus.gent/about/privacy/">Privacybeleid</a>',
|
||||||
maxZoom: 18
|
maxZoom: 18
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
|
@ -194,9 +182,5 @@ $(document).ready(function() {
|
||||||
position: "bottomright"
|
position: "bottomright"
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
var notice = new SimpleControl("#notice-template", "notice", {
|
|
||||||
position: "bottomleft"
|
|
||||||
}).addTo(map);
|
|
||||||
|
|
||||||
L.control.zoom().addTo(map);
|
L.control.zoom().addTo(map);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue