-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
288 lines (246 loc) · 11.8 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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!DOCTYPE html>
<html>
<head>
<link rel='icon' href='favicon.ico' type='image/x-icon'/>
<title>Census Map Visualization Tool</title>
<!--mobile compatibility-->
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<!-- custom css -->
<link href='css/index.css' rel='stylesheet'>
<!-- Help page styles -->
<link href='css/introjs.css' rel='stylesheet'>
<!-- Help page theme -->
<link href='css/introjs-modern.css' rel='stylesheet'>
</head>
<body>
<script>
function startTour() {
var tour = introJs()
tour.setOption('showProgress', 'true');
tour.setOption('tooltipPosition', 'auto');
tour.setOption('positionPrecedence', ['left', 'right', 'bottom', 'top'])
tour.start()
}
</script>
<div class='container no-drag no-select'>
<div id='top-panel'>
<div id='progress-bar'></div>
<div class='no-select'>
<input id='location_input' class='no-drag' type='text' placeholder='Search' data-step="1" data-intro='Enter location informtion such as county name or zipcode'>
<button name='submit' id='submit' onclick='cmv.run()' data-step="9" data-intro='Press this button to retrieve your data' >Submit</button>
<h4 id='mapviews-title'> Views </h4>
<select id='mapviews' onchange='cmv.display.topbar.updateMapView(this)' title='map-views'>
<option value='1' selected>1</option>
<option value='2'>2</option>
<option value='4'>4</option>
</select>
<h4 id='date'></h4>
</div>
</div> <!-- /top-panel -->
<table id='map-container'>
<tr>
<td id='map0' class=''>
<div class='map'></div>
</td>
<td id='map1' class='no-display'>
<div class='map'></div>
</td>
</tr>
<tr>
<td id='map2' class='no-display'>
<div class='map'></div>
</td>
<td id='map3' class='no-display'>
<div class='map'></div>
</td>
</tr>
</table>
<div id='canvas-control-help' hidden>
<!-- This section is filled with 'cmv.display.help.content' -->
</div> <!-- /canvas-control-help -->
<div class='sidebar-panel'>
<div class='sidebar no-select' data-position="auto" data-step="2" data-intro='You can now choose from a list of variables below'>
<div id='placeholder' class='sidebar-tab'></div> <!-- /placeholder -->
<div class='sidebar-tab' onclick='cmv.display.sidebar.open("configuration")'>
<div class='sidebar-content'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/input.svg'/>
</div>
</div> <!-- /sidebar-configuration-icon -->
<div class='sidebar-tab' onclick='cmv.display.sidebar.open("population")' data-step="3" data-intro='Press this icon to select a population variable, OR'>
<div class='sidebar-content'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/population.svg'/>
</div>
</div> <!-- /sidebar-population-icon -->
<div class='sidebar-tab' onclick='cmv.display.sidebar.open("demographic")' data-step="4" data-intro='Press this icon to select a age demographic variable, OR'>
<div class='sidebar-content'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/demographic.svg'/>
</div>
</div> <!-- /sidebar-demographic-icon -->
<div class='sidebar-tab' onclick='cmv.display.sidebar.open("income")' data-step="5" data-intro='Press this icon to select a income variable, OR'>
<div class='sidebar-content'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/income.svg'>
</div>
</div> <!-- /sidebar-income-icon -->
<div class='sidebar-tab' onclick='cmv.display.sidebar.open("crime")' data-step="6" data-intro='Press this icon to select a crime variable, OR'>
<div class='sidebar-content'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/crime.svg'>
</div>
</div> <!-- /sidebar-crime-icon -->
<div class='sidebar-tab' onclick='cmv.display.sidebar.open("transportation")' data-step="7" data-intro='Press this icon to select a transportation variable, OR'>
<div class='sidebar-content'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/transportation.svg'>
</div>
</div> <!-- /sidebar-transportation-icon -->
<div class='sidebar-tab' onclick='cmv.display.sidebar.open("education")' data-step="8" data-intro='Press this icon to select a education variable.'>
<div class='sidebar-content'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/education.svg'>
</div>
</div> <!-- /sidebar-education-icon -->
<div class='sidebar-controls'>
<div id='sidebar-control-settings'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/settings.svg'>
</div>
<div id='sidebar-control-help' onclick='javascript:startTour();'>
<img class='sidebar-icon no-drag' src='img/svg/sidebar-icons/help.svg'>
</div>
</div>
</div> <!-- /sidebar -->
<div class='sidepage-panel'>
<div id='sidepage-configuration' class='sidepage inactive'>
<!-- configuration is taken from IPO lines #1-9 -->
</div> <!-- /sidepage-configuration -->
<div id='sidepage-population' class='sidepage inactive'>
<div class='checkbox-content'>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='population' tooltip="Total population">Population</label>
</div>
</div>
<div id='sidepage-population-description' class='sidepage-description'>
<p>Population Sample Text</p>
</div>
</div> <!-- /sidepage-population -->
<div id='sidepage-demographic' class='sidepage inactive'>
<div class='checkbox-content'>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='median_male_age' tooltip="The median age of males">Median Male Age</label>
</div>
<div class='checkbox'>
<label><input name='censusVar' type='radio' value='median_female_age' tooltip="The median age of females">Median Female Age</label>
</div>
</div>
<div id='sidepage-demographic-description' class='sidepage-description'>
<div class='description-content'>
<p>Demographic Sample Text</p>
</div>
</div>
</div> <!-- /sidepage-demographic -->
<div id='sidepage-income' class='sidepage inactive'>
<div class='checkbox-content'>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='income' tooltip="Median household income in the past 12 months">Income</label>
</div>
<div class='checkbox'>
<label><input name='censusVar' type='radio' value='income_per_capita' tooltip="Per capita income in the past 12 months">Income Per Capita</label>
</div>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='poverty' tooltip="Number of people whose income in the past 12 months is below the poverty level">Poverty</label>
</div>
</div>
<div id='sidepage-income-description' class='sidepage-description'>
<div class='description-content'>
<p>Income Sample Text</p>
</div>
</div>
</div> <!-- /sidepage-income -->
<div id='sidepage-crime' class='sidepage inactive'>
<div class='checkbox-content'>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='employment_unemployed' tooltip="Number of unemployed, age 16 or older, in the civilian labor force">Unemployment</label>
</div>
<div class='checkbox'>
<label><input name='censusVar' type='radio' value='employment_not_labor_force' tooltip="Number of persons, age 16 or older, not in the labor force">Not In Labor
Force</label>
</div>
</div>
<div id='sidepage-crime-description' class='sidepage-description'>
<p>Crime Sample Text</p>
</div>
</div> <!-- /sidepage-crime -->
<div id='sidepage-transportation' class='sidepage inactive'>
<div class='checkbox-content'>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='commute_time' tooltip="Total time spent commuting">Commute Time</label>
</div>
<div class='checkbox'>
<label><input name='censusVar' type='radio' value='commute_time_carpool' tooltip="Time spent commuting (in minutes) for cars, trucks, or vans in carpool">Car Pool</label>
</div>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='commute_time_public_transport' tooltip="Time spent commuting (in minutes) for public transports">Public
Transport</label>
</div>
<div class='checkbox'>
<label><input name='censusVar' type='radio' value='commute_time_solo_automobile' tooltip="Time spent commuting (in minutes) for cars, trucks, or vans alone">Solo
Car</label>
</div>
</div>
<div id='sidepage-transportation-description' class='sidepage-description'>
<p>Transportation Sample Text</p>
</div>
</div> <!-- /sidepage-transportation -->
<div id='sidepage-education' class='sidepage inactive'>
<div class='checkbox-content'>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='education_bachelors' tooltip="The number of persons age 25 and over who hold a Bachelor's degree">Bachelor's
Degrees</label>
</div>
<div class='checkbox'>
<label><input name='censusVar' type='radio' value='education_masters' tooltip="The number of persons age 25 and over who hold a Master's degree">Master's Degrees</label>
</div>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='education_high_school' tooltip="The number of persons age 25 and over who have a regular high school diploma">High School</label>
</div>
<div class='checkbox'>
<label><input name='censusVar' type='radio' value='education_ged' tooltip="The number of persons age 25 and over who have a GED or alternative credential">GED</label>
</div>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='education_none' tooltip="The number of persons age 25 and over who complete no schooling">No Education</label>
</div>
<div class='checkbox'>
<label><input name='censusVar' type='radio' value='education_associates' tooltip="The number of persons age 25 and over who hold an Associate's degree">Associate's
Degree</label>
</div>
<div class='checkbox grey-box'>
<label><input name='censusVar' type='radio' value='education_professional' tooltip="The number of persons age 25 and over who hold a Professional degree">Professional</label>
</div>
</div>
<div id='sidepage-education-description' class='sidepage-description'>
<p>Education Sample Text</p>
</div>
</div> <!-- /sidepage-education -->
</div><!-- /sidepage-panel -->
</div> <!-- /sidebar-panel -->
</div> <!-- /container -->
<!-- 2.2.4 jquery -->
<script src='https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js'></script>
<!-- google maps api -->
<script src='https://maps.google.com/maps/api/js?key=AIzaSyCpL-2JnAAFuOFkITfVfUjrYyFwZ_f6nFQ&libraries=places'></script>
<!-- citysdk api -->
<script src='terraformer/terraformer-1.0.5.min.js'></script>
<script src='terraformer/terraformer-arcgis-parser-1.0.4.min.js'></script>
<script src='citysdk/dist/js/core/citysdk.js'></script>
<script src='citysdk/dist/js/modules/citysdk.census.js'></script>
<!-- 1.0.1 progressbar.js-->
<script src='https://cdnjs.cloudflare.com/ajax/libs/progressbar.js/1.0.1/progressbar.min.js'></script>
<!-- custom javascript -->
<script src='js/cmv-init.js'></script>
<script src='js/documentation.js'></script>
<script src='js/display.map.styles.js'></script>
<script src='js/display.map.js'></script>
<script src='js/display.topbar.js'></script>
<script src='js/display.sidebar.js'></script>
<script src='js/cmv.js'></script>
<script src='js/intro.js'></script> <!-- library for the help functionality -->
<script src="js/display.sidebar.help.js"></script>
<script src='js/display.location.js'></script>
</body>
</html>