This repository was archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
45 lines (44 loc) · 1.63 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
<!DOCTYPE html>
<html>
<head>
<title>Пункти прийому вторсировини</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<script src="https://macpaw.github.io/sort-resources/Map/jquery.js"></script>
<script>
function findGetParameter(parameterName) {
var result = null,
tmp = [];
var items = location.search.substr(1).split("&");
for (var index = 0; index < items.length; index++) {
tmp = items[index].split("=");
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
}
return result;
}
var script = document.createElement('script');
script.src = 'https://maps.googleapis.com/maps/api/js?key='+findGetParameter('key');
script.id = 'maps-script';
document.head.appendChild(script);
$(script).on('load', function() {
$.getScript('https://macpaw.github.io/sort-resources/Map/SVGMarker.min.js');
$.getScript('https://macpaw.github.io/sort-resources/Map/geolocation-marker.js');
});
</script>
<script src="Map/script.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto&subset=cyrillic-ext" rel="stylesheet">
<link rel="stylesheet" href="Map/styles.css"/>
</head>
<body>
<div id="map"></div>
<div id="info">
<div id="tap-area">
<div id="title"></div>
<div id="subtitle"></div>
</div>
<div id="description"></div>
<div id="info-arrow"></div>
<div id="location-center"></div>
</div>
</body>
</html>