-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
192 lines (186 loc) · 10.6 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta property="og:title" content="Catholic Charity USA Disaster Vulnerability Operations Map" />
<meta property="og:site_name" content="Catholic Charity USA Disaster Operations Map" />
<meta property="og:description" content="Social Vulnerability and Hazard Risk mapped together to help target disaster preparation and relief efforts." />
<meta property="og:type" content="Operation Map" />
<meta property="og:url" content="https://ccusa.github.io/Disaster_Vulnerability_Map" />
<meta property="og:image" content="static/map1.png" />
<title>CCUSA Disaster Operations Map</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.4.1/d3.min.js"></script>
<!-- Begin Mapbox requests -->
<script src='https://api.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.css' rel='stylesheet' />
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.0/mapbox-gl-geocoder.min.js'></script>
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.0/mapbox-gl-geocoder.css' type='text/css'/>
<!-- end Mapbox requests -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Roboto:wght@300&display=swap" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Fjalla+One|Exo:400,600|Ropa+Sans' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Exo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Alegreya+Sans+SC" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=PT+Sans+Narrow|Arimo|Dosis|Lato' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/map.css">
<link rel="stylesheet" type="text/css" href="css/overlay.css">
<link rel="stylesheet" type="text/css" href="css/sidenav.css">
<link rel="stylesheet" type="text/css" href="css/tachyons.css">
<link rel="stylesheet" type="text/css" href="css/mapbox-geocoder.css">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<!-- end project-specific asset calls -->
<!-- Google Analytics -->
<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-105569805-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<!--Navbar-->
<div>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-brand navbar-left" style="font-family: 'Nunita;' color:#fff; padding-top:8px"><a class="title" href="index.html"><img class="icon logo logo-smaller" src="static/ccusa_logo.svg" width="250" alt="DKDC logo"></a></div>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav pull-right">
<!-- <li class="nav">
<a id="print-link" onclick="myPrint()"></a>
</li> -->
<li class="nav">
<li class="nav" id="search">
<li class="nav"> <a href="index.html" class="header1">Map</a></li>
<li class="nav"> <a href="about.html" class="header1">About</a></li>
<li class="nav"> <a href="data.html" class="header1">Data</a></li>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
<!-- /.container -->
</nav>
</div>
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger"><strong style="font-family: 'Nunita;' color:#fff;">Choose Data Overlay</strong></label>
<div id='map'></div>
<nav id="menu">
<h4 class="menutitles">Social Vulnerability
</h4>
<nav id="menusocial"></nav>
<h4 class="menutitles">Hazard Risk</h4>
<nav id="menuhazard"></nav>
<h4 class="menutitles">Eviction Lab Data</h4>
</nav>
<div class='map-overlay pa3' id='features'>
<div class="mw9 center">
<div class="fl w-100 w-50-ns pv1">
<h4 id="overlay-title">Social Vulnerability <div class="popup2" onclick="myFunction2()"> <span><img src="icons/info.svg" onerror="this.src='icon/flag.png'" style="width:18px;height:18px;vertical-align:baseline;"></span>
<span class="popuptext2" id="myPopup2">Index scores range from 0 to 1, which depicts the percentiles of a particular county or tract relative to the rest of the USA. The higher the percentile ranking, the more vulnerable an area is in that category. A red flag indicates that an area is highly vulnerable, or in the top 90th percentile of a particular vulnerability.
</span>
</div>
</h4>
</div>
<div class="fl w-100 w-20-ns pv1 tc">
</div>
<div class="fl w-100 w-30-ns pv1 tl">
<span id='F_Total-bignumber'></span> Total Flags <img src="icons/flag.svg" onerror="this.src='icon/flag.png'" style="width:12px;height:12px;vertical-align:baseline;">
</div>
<div class="mw9 center">
<div class="cf">
<div class="fl w-100 w-100-ns">
<div id="overlay-overview">
<div id="location">County/Tract</div>
<div id="population">Population: </div>
</div>
</div>
<div class="fl w-100 w-100-ns">
<div>
<div id="diocese">Catholic Diocese: </div>
</div>
<div>
<!-- <div id="explanation" class='pv2'>Values shown are percentiles. A value of .7 means the county/tract has a higher rate of the statistic than 70% of all other counties/tracts. Flags are applied above the 90th percentile to indicate severe vulnerability in that area. More information on the SVI can be found <a href="https://svi.cdc.gov/">here.</a></div> -->
</div>
</div>
</div>
</div>
<div id="overlay-ses"></div>
<h4>Hazard Risk
<div class="popup" onclick="myFunction()"><span><img src="icons/info.svg" onerror="this.src='icon/flag.png'" style="width:18px;height:18px;vertical-align:baseline;"></span>
<span class="popuptext" id="myPopup">Hazard Risk is shown on a scale of 0-60. Data page contains more information about the factors considered for each.<br>
<span><img src="icons/hurricane - black.svg" onerror="this.src='icon/hurricane - black.png'" style="width:18px;height:18px;vertical-align:baseline;"></span>Hurricane<br>
<span><img src="icons/flood - black.svg" onerror="this.src='icon/flood - black.png'" style="width:18px;height:18px;vertical-align:baseline;"></span>Flood<br>
<span><img src="icons/earthquake - black.svg" onerror="this.src='icon/earthquake - black.png'" style="width:18px;height:18px;vertical-align:baseline;"></span>Earthquake<br>
<span><img src="icons/wildfire - black.svg" onerror="this.src='icon/wildfire - black.png'" style="width:18px;height:18px;vertical-align:baseline;"></span>Wildfire<br>
<span><img src="icons/tornado - black.svg" onerror="this.src='icon/tornado - black.png'" style="width:18px;height:18px;vertical-align:baseline;"></span>Tornado<br>
<span><img src="icons/hail - black.svg" onerror="this.src='icon/hail - black.png'" style="width:18px;height:18px;vertical-align:baseline;"></span>Hail<br>
</span>
</div>
</h4>
<div id="donut-1"></div>
<div id="donut-2"></div>
<div id="donut-3"></div>
<div id="donut-4"></div>
<div id="donut-5"></div>
<div id="donut-6"></div>
</div>
</div>
</div>
<div id="legend">
<div class='legend-title'><img src="icons/flag.svg" onerror="this.src='icon/flag.png'" style="width:12px;height:12px;"> Legend</div>
<div class='legend-block'><span class="legend-key" style="background-color: #f0f9e8;"></span><span class='legend-number'>1 </span></div>
<div class='legend-block'><span class="legend-key" style="background-color: #ccebc5;"></span><span class='legend-number'>2 </span></div>
<div class='legend-block'><span class="legend-key" style="background-color: #a8ddb5;"></span><span class='legend-number'>3 </span></div>
<div class='legend-block'><span class="legend-key" style="background-color: #7bccc4;"></span><span class='legend-number'>4 </span></div>
<div class='legend-block'><span class="legend-key" style="background-color: #4eb3d3;"></span><span class='legend-number'>5 </span></div>
<div class='legend-block'><span class="legend-key" style="background-color: #2b8cbe;"></span><span class='legend-number'>6 </span></div>
<div class='legend-block'><span class="legend-key" style="background-color: #08589e;"></span><span class='legend-number'>7+ </span></div>
</div>
<div id="footer" class="mapboxgl-ctrl mapboxgl-ctrl-attrib">
<a href="https://www.mapbox.com/about/maps/" target="_blank">© Mapbox</a>
<a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap</a>
<a href="https://svi.cdc.gov/" target="_blank">© CDC SVI</a>
<a href="http://www.attomdata.com/" target="_blank">© ATTOM</a>
<a href="http://www.evictionlab.org/" target="_blank">© Princeton Eviction Lab</a>
</div>
<div id="DKDC">
<img class="icon logo logo-smaller" src="static/DKDC.png" width="100" alt="DKDC logo">
</div>
<script>
// When the user clicks on <div>, open the popup
function myFunction() {
var popup = document.getElementById("myPopup");
popup.classList.toggle("show");
}
function myFunction2() {
var popup2 = document.getElementById("myPopup2");
popup2.classList.toggle("show");
}
function myPrint() {
window.print();
}
</script>
<!--Libraries Needed-->
<script src="assets/sources.js"></script>
<script src="assets/layers.js"></script>
<script src="js/mapbox.js"></script>
<script src="js/bars.js"></script>
<script src="js/legend.js"></script>
<script src="js/newdonut.js"></script>
</body>
</html>