-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
227 lines (165 loc) · 9.46 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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Health4TheWorld</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="//api.tiles.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.js"></script>
<link href="//api.tiles.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css" rel="stylesheet" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="//code.getmdl.io/1.1.3/material.lime-teal.min.css">
<script defer src="//code.getmdl.io/1.1.3/material.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
<script src="//d3js.org/d3.v4.min.js"></script>
<link rel="stylesheet" href="materialize.css">
<link rel="stylesheet" href="fixed-drawer.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-66511604-1', 'auto');
ga('send', 'pageview');
</script>
<style>
body { margin:0; padding:0; }
#map { position:absolute; height: calc(100vh); width: calc(100vw - 320px); }
.trend {stroke-width: 4;stroke-opacity:.12;fill:none;}
.tick line {stroke: rgba(0, 0, 0, 0.1);stroke-dasharray:2;}
@media only screen and (max-width: 1024px) {
#map {width: 100vw;}
}
</style>
</head>
<body>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer">
<div class="mdl-layout__drawer mdl-color-text--grey-60 mdl-shadow--2dp">
<h6 style="padding:0 1rem; text-align:center; margin-bottom: 0.3;">Health4TheWorld <img src=" h4tw_logo.png" style="padding:0.3rem;max-width:10%;"></h6>
<h4 style="padding:0 1rem; text-align:center; margin-top:0;" >PPE Locator Tool</h4>
<ul class="collapsible" data-collapsible="expandable" style="border-right: none; border-left: none;">
<!-- ******************************************************************************************************************** -->
<!--MAP CANVAS MENU-->
<!-- ******************************************************************************************************************** -->
<li>
<div class="collapsible-header indigo-alt"><i class="material-icons right">map</i>Basemap</div>
<div class="collapsible-body white">
<div id="menu" class="demo-toggles">
<p class="narrow">
<input name="group1" type="radio" id="lightCanvas" value="cjaw9t1bs9ca42spvoe4jjloj" checked/>
<label for="lightCanvas">Light</label>
</p>
<p class="narrow">
<input name="group1" type="radio" id="Satellite" value="cjawjbu6s0mzh2rmwcivbi175"/>
<label for="Satellite">Satellite</label>
</p>
<p class="narrow">
<input name="group1" type="radio" id="outdoors" value="cj69pbt4b2i202sldemnjtkos"/>
<label for="outdoors">Outdoors</label>
</p>
</div>
</div>
</li>
<li>
<div class="collapsible-header indigo-alt"><i class="material-icons right">layers</i>Africa</div>
<div class="collapsible-body white" id= 'layers_africa'>
<span style="display: inline-block;text-align:left">
<a href = "#!" id = "zoom_africa" >
<p class="blue-grey-text valign left" style="margin-top:0px; margin-bottom: 10px; ">
<i style="vertical-align: text-bottom;" class = "material-icons left valign blue-grey-text">zoom_in</i><b>Quick Zoom</b>
</p>
</a>
</span>
<p>
<input name= "ppe_africa" type="checkbox" id="ppe_africa" class="layer-on" onclick="toggleLayer('ppe_africa')" checked/>
<label for="ppe_africa" class="valign">All Suppliers</label>
</p>
<p>
<input name= "mask_africa" type="checkbox" id="mask_africa" class="layer-on" onclick="toggleLayer('mask_africa')" checked/>
<label for="mask_africa" class="valign">Masks</label>
</p>
</div>
</li>
<li>
<div class="collapsible-header indigo-alt"><i class="material-icons right">layers</i>Asia</div>
<div class="collapsible-body white" id= 'layers_asia'>
<span style="display: inline-block;text-align:left">
<a href = "#!" id = "zoom_asia" >
<p class="blue-grey-text valign left" style="margin-top:0px; margin-bottom: 10px; ">
<i style="vertical-align: text-bottom;" class = "material-icons left valign blue-grey-text">zoom_in</i><b>Quick Zoom</b>
</p>
</a>
</span>
<p>
<input name= "ppe_asia" type="checkbox" id="ppe_asia" class="layer-on" onclick="toggleLayer('ppe_asia')" checked/>
<label for="ppe_asia" class="valign">All Suppliers</label>
</p>
</div>
</li>
<li>
<div class="collapsible-header indigo-alt"><i class="material-icons right">layers</i>South America</div>
<div class="collapsible-body white" id= 'layers_samerica'>
<span style="display: inline-block;text-align:left">
<a href = "#!" id = "zoom_samerica" >
<p class="blue-grey-text valign left" style="margin-top:0px; margin-bottom: 10px; ">
<i style="vertical-align: text-bottom;" class = "material-icons left valign blue-grey-text">zoom_in</i><b>Quick Zoom</b>
</p>
</a>
</span>
<p>
<input name= "ppe_samerica" type="checkbox" id="ppe_samerica" class="layer-on" onclick="toggleLayer('ppe_samerica')" checked/>
<label for="ppe_samerica" class="valign">All Suppliers</label>
</p>
</div>
</li>
<li>
<div class="collapsible-header indigo-alt"><i class="material-icons right">layers</i>USA</div>
<div class="collapsible-body white" id= 'layers_usa'>
<span style="display: inline-block;text-align:left">
<a href = "#!" id = "zoom_usa" >
<p class="blue-grey-text valign left" style="margin-top:0px; margin-bottom: 10px; ">
<i style="vertical-align: text-bottom;" class = "material-icons left valign blue-grey-text">zoom_in</i><b>Quick Zoom</b>
</p>
</a>
</span>
<p>
<input name= "ppe_usa" type="checkbox" id="ppe_usa" class="layer-on" onclick="toggleLayer('ppe_usa')" checked/>
<label for="ppe_usa" class="valign">All Suppliers</label>
</p>
<p>
<input name= "mask_usa" type="checkbox" id="mask_usa" class="layer-on" onclick="toggleLayer('mask_usa')" checked/>
<label for="mask_usa" class="valign">Masks</label>
</p>
</div>
</li>
<!-- ******************************************************************************************************************** -->
<!--legend-->
<!-- ******************************************************************************************************************** -->
<li>
<div class="collapsible-header indigo-alt">Legend<i class="material-icons right">more_vert</i></div>
<div class="collapsible-body white">
<ul class="collection with-header grey-text text-darken-2">
<li class="collection-item grey-text"><div>PPE General Supplier<a href="#!" class="secondary-content"><svg height="21" width="21"><circle cx="10.5" cy="10.5" r="7.5" fill="#FF0000" /></svg></a></div></li>
<li class="collection-item grey-text"><div>Mask<a href="#!" class="secondary-content"><svg height="21" width="21"><circle cx="10.5" cy="10.5" r="7.5" fill="#00FFC5" /></svg></a></div></li>
</ul>
</div>
</li>
<!--end legend list-->
<div class="mdl-grid">
<a id="clear" class="waves-light btn">Clear All</a>
</div>
</ul>
</div>
<main class="mdl-layout__content">
<div class="page-content">
<div id="map"></div>
</div>
</main>
</div>
<!--end main index-->
<script src='ppe.js'></script>
<script src="toggleLayer.js"></script>
</body>
</html>