jekyll-theme-conference 3.4.1 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -8
- data/_includes/js/conference.js +26 -16
- data/_includes/js/init.js +37 -0
- data/_includes/js/{bootstrap.js → lib/bootstrap.js} +0 -0
- data/_includes/js/{jquery-3.5.1.min.js → lib/jquery-3.5.1.min.js} +0 -0
- data/_includes/js/{leaflet-easybutton.js → lib/leaflet-easybutton.js} +0 -0
- data/_includes/js/{leaflet-locatecontrol.js → lib/leaflet-locatecontrol.js} +0 -0
- data/_includes/js/{leaflet-providers.js → lib/leaflet-providers.js} +0 -0
- data/_includes/js/{leaflet.js → lib/leaflet.js} +0 -0
- data/_includes/js/{popper.min.js → lib/popper.min.js} +0 -0
- data/_includes/js/{syncscroll.js → lib/syncscroll.js} +0 -0
- data/_includes/js/live.js +718 -0
- data/_includes/js/map.js +38 -0
- data/_includes/js/{conference-modal.js → modal.js} +13 -15
- data/_includes/js/{conference-program.js → program.js} +10 -17
- data/_includes/partials/footer.html +1 -1
- data/_includes/partials/get_live_timestamps.html +1 -1
- data/_includes/partials/header.html +1 -1
- data/_includes/partials/navbar.html +1 -1
- data/_includes/partials/show_live_button.html +2 -2
- data/_layouts/config.html +78 -0
- data/_layouts/data.html +3 -2
- data/_layouts/home.html +1 -1
- data/assets/js/config.json +3 -0
- metadata +17 -14
- data/_includes/js/conference-live.js +0 -720
- data/_includes/js/conference-map.js +0 -45
@@ -1,45 +0,0 @@
|
|
1
|
-
window.conference.mapConfig = (function() {
|
2
|
-
|
3
|
-
let map;
|
4
|
-
|
5
|
-
let mapProvider = "{{ site.conference.map.map_provider | default: 'OpenStreetMap.Mapnik' }}";
|
6
|
-
let homeCoord = [{{ site.conference.map.home_coord }}];
|
7
|
-
let zoomLevel = {{ site.conference.map.default_zoom | default: 17 }};
|
8
|
-
|
9
|
-
let setup = function (elId) {
|
10
|
-
map = L.map(elId).setView(homeCoord, zoomLevel);
|
11
|
-
|
12
|
-
L.tileLayer.provider(mapProvider).addTo(map);
|
13
|
-
|
14
|
-
L.easyButton('far fa-star', function(){
|
15
|
-
map.flyTo(homeCoord, zoomLevel);
|
16
|
-
}, '{{ site.data.lang[site.conference.lang].location.focus_conf | default: "Center map on conference location" }}').addTo(map);
|
17
|
-
|
18
|
-
L.control.locate({
|
19
|
-
flyTo: true,
|
20
|
-
strings: {
|
21
|
-
title: '{{ site.data.lang[site.conference.lang].location.focus_me | default: "Show me where I am" }}'
|
22
|
-
}
|
23
|
-
}).addTo(map);
|
24
|
-
};
|
25
|
-
|
26
|
-
let init = function () {
|
27
|
-
let elId = 'map';
|
28
|
-
|
29
|
-
if (document.getElementById(elId)) {
|
30
|
-
setup(elId);
|
31
|
-
window.conference.map = map;
|
32
|
-
}
|
33
|
-
};
|
34
|
-
|
35
|
-
return {
|
36
|
-
init: init,
|
37
|
-
default: {
|
38
|
-
mapProvider: mapProvider,
|
39
|
-
homeCoord: homeCoord,
|
40
|
-
zoomLevel: zoomLevel
|
41
|
-
}
|
42
|
-
};
|
43
|
-
})();
|
44
|
-
|
45
|
-
window.conference.mapConfig.init();
|