-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
past.html
executable file
·189 lines (142 loc) · 7 KB
/
past.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=yes">
<meta http-equiv=“Content-Security-Policy” content=“default-src ‘self’ gap://ready file://* *; style-src ‘self’ ‘unsafe-inline’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’”/>
<html>
<head>
<title>Loading the map...</title>
<!-- Chrome Load -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/L.Control.Locate.min.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/L.Control.Locate.min.js" charset="utf-8"></script>
<!-- jQuery-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Leaflet (CSS and JS) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.js"></script>
<!-- leaflet-providers -->
<script src="scripts/leaflet-providers/leaflet-providers.js"></script>
<!-- Tabletop -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/tabletop.js/1.5.1/tabletop.js"></script>
<!-- Font Awesome -->
<script src="https://use.fontawesome.com/77cd9dd4f5.js"></script>
<!-- Leaflet.awesome-markers -->
<link rel="stylesheet" type="text/css" href="scripts/Leaflet.awesome-markers/dist/leaflet.awesome-markers.css">
<script type="text/javascript" src="scripts/Leaflet.awesome-markers/dist/leaflet.awesome-markers.js"></script>
<!-- Markercluster -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/MarkerCluster.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/MarkerCluster.Default.css">
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/leaflet.markercluster.js"></script>
<!-- Mapzen Search
<link rel="stylesheet" href="scripts/leaflet-geocoder/leaflet-geocoder-mapzen.css">
<script src="scripts/leaflet-geocoder/leaflet-geocoder-mapzen.js"></script>
-->
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" />
<script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script>
<!-- Locate Control -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet-locatecontrol/0.60.0/L.Control.Locate.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-locatecontrol/0.60.0/L.Control.Locate.min.js"></script>
<!-- jQuery-CSV -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/0.71/jquery.csv-0.71.min.js"></script>
<!-- Custom style sheet -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Layer Support for Marker Cluster -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.markercluster.layersupport.js"></script>
<!-- DataTables -->
<script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css" />
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body id= "stop-scrolling">
<div class="preloader"></div>
<div id="map" >
<a href= "http://moda.community/" target="_blank">
<img src = "https://otconsultancy.org/wp-content/uploads/2020/08/1.png" class="logo" style = "left: -160px">
</a>
<a href = "mailto:[email protected]" >
<img src = "https://otconsultancy.org/wp-content/uploads/2020/08/question.png" class = "qmark">
</a>
</div>
<div id="panel">
<div id="ctrl">
<input type="button" value="Update Map" onclick="document.location.reload(true)">
</div>
<div id="gform" >
<iframe id="form" src="https://docs.google.com/forms/d/e/1FAIpQLScnDwudN8osSXl8N30vOhOTsoMs4PgSNSmPzT8TjFuWpF8ydg/viewform?usp=sf_link" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
</div>
</div>
</div>
</div>
<table id="maptable" class="display"></table>
</body>
<script type="text/javascript">
var map = L.map('map', {
attributionControl: false,
zoomControl: false,
scrollWheelZoom: false
}).setView([41.76,-72.69], 11); // default center is overridden by Google Sheet options and points
</script>
<script>
function preloaderFadeOutInit(){
$('.preloader').fadeOut('slow');
$('body').attr('id','');
}
// Window load function
jQuery(window).on('load', function () {
(function ($) {
preloaderFadeOutInit();
})(jQuery);
setTimeout(function(){
$('#preloader').fadeOut();
$('.preloader_img').delay().fadeOut('slow');
}, 100000000000);
});
</script>
<script type="text/javascript" src="google-doc-url.js"></script>
<script type="text/javascript" src="scripts/constants.js"></script>
<script type="text/javascript" src="scripts/palette.js"></script>
<script type="text/javascript" src="scripts/polylabel.js"></script>
<script type="text/javascript" src="scripts/procsv.js"></script>
<script type="text/javascript" src="scripts/map.js"></script>
<script src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script>
var DATA_SERVICE_URL="https://script.google.com/macros/s/AKfycbxHrqv5x-2lCtZJ1W49q0rjU6ATnSLZWAtJADqBj1Kil32H80pL/exec?jsonp=callback";
var geocoder;
var map;
function initialize() {
//Create a geocoder
geocoder = new google.maps.Geocoder();
map=new google.maps.Map(document.getElementById('map_canvas'),{
center:new google.maps.LatLng(42.456187,-71.0653),
zoom:10,
maxZoom:20,
mapTypeId:google.maps.MapTypeId.ROADMAP
});
//Inject JavaScript (returned JSON) into the head of the page.
var scriptElement=document.createElement('script');
scriptElement.src=DATA_SERVICE_URL;
document.getElementsByTagName('head')[0].appendChild(scriptElement);
}
function callback(data) {
for (var i=1;i<data.length;i++) {
address=data[i][2];
//Geocode the JSON returned from callback function.
codeAddress();
}
}
function codeAddress(){
//Google Async service.
geocoder.geocode({'address':address},function(results,status){
if (status == google.maps.GeocoderStatus.OK) {
var marker = new google.maps.Marker({
position:results[0].geometry.location,
map:map
});
}else{
alert('Geocode was not successful for the following reason:' + status);
}
});
}
</script>
</body>
</html>