-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
198 lines (165 loc) · 9.37 KB
/
index.html
File metadata and controls
198 lines (165 loc) · 9.37 KB
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
<!DOCTYPE HTML>
<html>
<head>
<meta charset = 'utf8'>
<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.32.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.32.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 -->
<!-- begin project-specific STATIC asset calls.
page-specific calls that require ready DOM elements called at end of <body>.
may change that practice later. for now we can avoid listening for window.load, document.ready, etc -->
<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/css?family=Fjalla+One|Exo:400,600|Ropa+Sans' rel='stylesheet' type='text/css'>
<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">
<!-- end project-specific asset calls -->
</head>
<body>
<div>
<!--Navbar-->
<nav class="navbar navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<div class="navbar-brand navbar-left" style="font-family: 'Alegreya Sans SC', sans-serif;">CCUSA Disaster Operations Map</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">Loading map</a>
</li>
<li class="nav">
<li class="nav"> <a href="about.html">About</a></li>
<li class="nav"> <a href="data.html">Data</a></li>
</li>
<li class="nav" id="search">
</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: 'Alegreya Sans SC', sans-serif;">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>
</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 <span><img src="icons/info.svg" onerror="this.src='icon/flag.png'" style="width:18px;height:18px;vertical-align:baseline;"></span></h4>
</div>
<div class="fl w-100 w-10-ns pv1 tc">
</div>
<div class="fl w-100 w-40-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 <span><img src="icons/info.svg" onerror="this.src='icon/flag.png'" style="width:18px;height:18px;vertical-align:baseline;"></span></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 class="container">
<!-- Modal -->
<div id="about" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">About this Tool</h4>
</div>
<div class="modal-body">
<h1>Catholic Charities USA Disaster Vulnerability Map</h1>
<h2>Purpose</h2>
<p>
CCUSA wanted to create a map to <b>better target mitigation, preparedness, relief, and recovery projects</b> in order to best serve communities that are both at greatest risk for disasters and most overlooked or outright excluded from federal assistance during disasters. Specifically, they wanted to see the presence of acutely vulnerable populations such as uninsured (homeowners or renters), homeless, or subsidized renters at the local level.
</p>
<p>
This map can be used to strategically allocate resources to prepare for disasters, as well as identifying where vulnerable populations live within an area affected by a disaster.
</p>
<h2>Data</h2>
<p>
This map uses data from the CDC’s <a href="https://svi.cdc.gov">Social Vulnerability Index</a> and a proprietary dataset which maps disaster risk that we were given permission to use.
</p>
<p>
From the CDC’s website, social vulnerability refers to the resilience of communities when confronted by external stresses on human health, stresses such as natural or human-caused disasters, or disease outbreaks. Reducing social vulnerability can decrease both human suffering and economic loss. ATSDR's Social Vulnerability Index uses U.S. census variables at tract level to help local officials identify communities that may need support in preparing for hazards, or recovering from disaster.
</p>
<p>
The proprietary dataset shows risk of six types of natural disasters: floods, earthquakes, hurricanes, tornados, wildfires, and hail. It uses data from FEMA, USGS, and NOAA.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</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>
</div>
<!--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>