This repository has been archived by the owner on Jun 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
116 lines (104 loc) · 4.34 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>LPvis 🕺</title>
<link rel="shortcut icon" href="/media/cropped-eox_eye-32x32.png" />
<link rel="stylesheet" href="dependencies/leaflet.css">
<link rel="stylesheet" href="dependencies/leaflet.table.css">
<link rel="stylesheet" href="dependencies/supagrid.css">
<link rel="stylesheet" href="dependencies/Control.MiniMap.min.css">
<link rel="stylesheet" href="dependencies/leaflet.magnifyingglass.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css">
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="dependencies/leaflet.js"></script>
<script type="text/javascript" src="dependencies/Leaflet.VectorGrid.bundled.min.js"></script>
<script type="text/javascript" src="dependencies/leaflet.table.js"></script>
<script type="text/javascript" src="dependencies/supagrid.js"></script>
<script type="text/javascript" src="dependencies/leaflet-control-swipe.js"></script>
<script type="text/javascript" src="dependencies/Leaflet.Control.Custom.js"></script>
<script type="text/javascript" src="dependencies/Control.MiniMap.min.js"></script>
<script type="text/javascript" src="dependencies/leaflet.magnifyingglass.js"></script>
<script type="text/javascript "src="dependencies/wicket.min.js" charset="utf-8"></script>
<!-- dependencies timeseries-graph -->
<script type="text/javascript" src="dependencies/d3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="timestacks.js"></script>
</head>
<body>
<div class="page_wrap">
<header>
<h1>LPvis</h1>
<a
class="btn github-btn"
href="https://github.com/EOX-A/LPvis"
target="_blank"
>
<i class="fab fa-github"></i> Repository
</a>
</header>
<div id="wrapper">
<div id="map"></div>
<div id="sidebar"></div>
</div>
</div>
<script type="text/javascript" src="main.js"></script>
<!-- Start unsupported browser notice -->
<script src="dependencies/modal.min.js"></script>
<div id="ie-modal-container">
<div id="ie-info" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title">Unsupported Browser :(</h2>
</div>
<div class="modal-body">
<p>LPvis probably won't work great with your current browser.<br />We generally only support the recent versions of major browsers
like Chrome, Firefox, Safari, and Edge.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Dismiss & Try Anyway</button>
</div>
</div>
</div>
</div>
</div>
<script>
var ieModal = new Modal({
el: document.getElementById('ie-info')
});
ieModal.on('dismiss', function(myModal, event) {
document.getElementById('ie-modal-container').style.display = 'none'
document.documentElement.classList.remove('modal-open');
})
// Get IE or Edge browser version
var version = detectIE();
if (version != false) {
document.getElementById('ie-modal-container').style.display = 'flex'
document.documentElement.classList.add('modal-open');
ieModal.show();
}
/**
* detect IE
* returns version of IE or false, if browser is not Internet Explorer
*/
function detectIE() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
if (msie > 0) {
// IE 10 or older => return version number
return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
}
var trident = ua.indexOf('Trident/');
if (trident > 0) {
// IE 11 => return version number
var rv = ua.indexOf('rv:');
return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
}
// other browser
return false;
}
</script>
<!-- End unsupported browser notice -->
</body>
</html>