forked from enam/neighborhoods
-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
executable file
·244 lines (230 loc) · 13.1 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1 user-scalable=0">
<title>Mapping Greater Boston's neighborhoods</title>
<meta name="description" content="Crowdsources mapping of neighborhoods in Greater Boston" />
<link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.ie.css" />
<![endif]-->
<link rel="stylesheet" href="libs/leaflet.draw/leaflet.draw.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="libsLeaflet.draw/leaflet.draw.ie.css" /><![endif]-->
<link rel="stylesheet" href="css/hoodstyles.css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script>alert('This site may not work in your browser! OH NO!')</script>
<![endif]-->
</head>
<body>
<!-- GENERAL MODAL****************************************************************-->
<div id="generalModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Hey hey!</h3>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">OK</button>
</div>
</div>
</div>
</div>
<!-- INFO MODAL****************************************************************-->
<div id="aboutModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Mapping Greater Boston's neighborhoods</h3>
</div>
<div class="modal-body">
<p> Boston and its surroundings are full of distinctive neighborhoods, but their extents and boundaries are open to interpretation. The goal of this site is to <b>collectively map neighborhoods</b> as an image of the city in maps and words.</p>
<p> No neighborhood names or boundaries are here to start with. <b>You make the map</b>. Real or imagined,
within a city, or crossing municipal borders. Names, extents, and descriptions are up to you. After mapping, be sure to <b>View Maps</b> to see other people's contributions.</p>
<p> This is a project by <a href="http://bostonography.com" target="_blank">Bostonography</a> — <a href="http://bostonography.com/2015/map-your-neighborhood-again/" target="_blank">read more about it here!</a></p>
<!--p><b>NEW download a shapefile of the data contributed so far, or get the source code!</b> Check the buttons in the bottom right.</p>
<p> <b>- Thanks!</b> </p-->
</div>
<div class="modal-footer">
<!--button class="btn" id="modalInfoBtn">More Info Here</button-->
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Start Mapping!</button>
</div>
</div>
</div>
</div>
<!--END MODAL-->
<!--flag modal-->
<div id="flagModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Flagging</h3>
</div>
<div class="modal-body">
<p><b>Please don't flag a neighborhood if you simply disagree with the border or description.</b>.</p>
<p> Only flag content that is offensive or just rubbish. Flagged content will be temporarily removed.
Once reviewed it will either be reinstated if found to be flagged in error, or remain hidden if
found to be junk. Thanks!</p>
</div>
<div class="modal-footer">
<button class="btn btn-danger" id="flagBtn" >No Really, Flag It!</button>
<button class="btn btn-success" data-dismiss="modal" aria-hidden="true">Never Mind</button>
</div>
</div>
</div>
</div>
<!--END MODAL-->
<!-- SUBMIT MODAL ***********************************************************************-->
<div id="submitModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Just a few more things</h3>
</div>
<div class="modal-body">
<form class="form-horizontal" style="margin-bottom:0px">
<div id="alertHolder2"></div>
<!--neighborhood name-->
<div class="form-group">
<label for="neighborhoodName" class="col-xs-4 control-label">Neighborhood Name <br><span style="color:#FF0000;font-weight:normal;font-style:italic;">*Required</span></label>
<div class="col-xs-8">
<input class="form-control typeahead noEnterSubmit neighborhoodName" id="neighborhoodName" autocomplete="off" data-provide="typeahead">
</div>
</div>
<div class="form-group">
<label for="cityName" class="col-xs-4 control-label">City/Town Name</label>
<div class="col-xs-8">
<input class="form-control typeahead noEnterSubmit cityName" id="cityName" autocomplete="off" data-provide="typeahead">
</div>
</div>
<!--location toggle-->
<!-- **disableing location didn't get a lot of love**
<div class="form-group">
<div class="col-sm-offset-4 col-sm-8">
<div class="checkbox">
<label>
<input type="checkbox" checked="checked"> Enable Location
</label>
</div>
</div>
</div>
-->
<!--years in city-->
<div class="form-group">
<label class="col-xs-4 control-label" >How many years have you lived in this city/town?</label>
<div id="cityLivingGroup" class="btn-group cty-group col-xs-8">
<button type="button" class="btn btn-default" name="0">Never</button>
<button type="button" class="btn btn-default" name="1">< 1</button>
<button type="button" class="btn btn-default" name="2">1-5</button>
<button type="button" class="btn btn-default" name="3">6-10</button>
<button type="button" class="btn btn-default" name="4">> 10</button>
</div>
</div>
<div class="form-group">
<label class="col-xs-4 control-label" >How many years have you lived in this neighborhood?</label>
<div id="neighborhoodLivingGroup" class="btn-group nbr-group col-xs-8">
<button type="button" class="btn btn-default" name="0">Never</button>
<button type="button" class="btn btn-default" name="1">< 1</button>
<button type="button" class="btn btn-default" name="2">1-5</button>
<button type="button" class="btn btn-default" name="3">6-10</button>
<button type="button" class="btn btn-default" name="4">> 10</button>
</div>
</div>
<div class="form-group">
<label class="col-xs-4 control-label" >Describe or share a story about your neighborhood:</label>
<div class="col-xs-8">
<textarea id="neighborhoodDescription" class="form-control" rows="3"></textarea>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
<button id="allSubmitBtn" class="btn btn-success">Save Neighborhood!</button>
</div>
</div>
</div>
</div>
<!--END MODAL-->
<!--download modal-->
<div id="downloadModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Is this the data you are looking for?</h3>
</div>
<div class="modal-body">
<p>You are about to download the entire neighborhood shapefile. It contains all polygons, including those that have been flagged as junk or inappropriate. Those items can be identified where the flag field=true. There are some great things to map here, so if you get the data, please let us know what you do with it!.</p>
</div>
<div class="modal-footer">
<button class="btn btn-success" id="downloadBtn" >Gimme My Data!</button>
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Never Mind</button>
</div>
</div>
</div>
</div>
<!--END MODAL-->
<img src="img/heart.svg" id="loveIcon" class="loveIcon noMouse"></img>
<div id="map"></div>
<div style="position:absolute; top: 80px; left: 30px; z-index:999;pointer-events:none">
<div id="btnBar" class="noMouse">
<button id="startPolyBtn" class="btn btn-default yesMouse" type="button"> <i class="glyphicon glyphicon-pencil icon-white"> </i> Draw a neighborhood SHAPE</button>
<button id="startMarkerBtn" class="btn btn-default yesMouse" type="button"> <i class="glyphicon glyphicon-pushpin icon-white"> </i> Mark a neighborhood POINT</button>
<button id="deletePolyBtn" style:"" class="btn btn-default yesMouse" type="button"> <i class="glyphicon glyphicon-trash icon-white"> </i> Cancel</button>
<button id="submitPolyBtn" style="display:none;" class="btn btn-default btn-success yesMouse" type="button">Save Neighborhood</button>
</div>
</div>
<div class="noMouse" style="position:absolute; top: 80px; left: 20px; z-index:999;pointer-events:none;min-width:300px;">
<div id="resultBar" class="noMouse viewMap" style="display:none;">
<button id="resultsInSpace" class="btn btn-default details spaceBtn yesMouse" type="button" data-toggle="button" >Show/Hide Base Map</button>
</div>
</div>
<div id="descriptionDiv" class="noMouse vieMap">
<div class="panel-group" id="accordion">
</div>
</div>
<div style="" class="linksbackground"></div>
<a style="bottom:60px;" class="link-icons enableTooltipsLeft" title="Information" href="#aboutModal" data-toggle="modal"><i class="glyphicon glyphicon-info-sign"></i></a>
<!--a style="bottom:60px;" class="link-icons enableTooltipsLeft download-btn" title="Download Data" ><i class="glyphicon glyphicon-download-alt"></i></a-->
<a id="githubBtn" style="bottom:40px;" class="link-icons enableTooltipsLeft" title="Get it on GitHub">
<img class="links glyphicon" style="width:15px;height15px;" src="img/GitHub-Mark-32px.png"/>
</a>
<a id="twitterbtn" href="http://twitter.com/bostonography" style="bottom:20px;" class="link-icons enableTooltipsLeft" title="Bostonography on Twitter" target="_blank">
<img class="links glyphicon" style="width:15px;height15px;" src="img/bird_black_32_0.png"/>
</a>
<div id="navDiv" class="navbar navbar-inverse navbar-fixed-top" >
<ul class="nav navbar-nav" id="mapItMenu">
<li style="top:-9px;padding-left:10px;position:relative"><h3 class="navText">{</h3></li>
<li id="makeMapModeBtn" class="active mapState"><a href="#make">Make Maps</a></li>
<li id="resultMapBtn" class="mapState"><a href="#view">View Maps</a></li>
<!--<li><a href="#contact">Contact</a></li>-->
<li style="top:-9px;position:relative"><h3 class="navText">}</h3></li>
<!--CITY BUTTONS CREATED IN hooscript.js -->
</ul>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="libs/bootstrap/js/bootstrap.min.js"></script>
<script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>
<script src="js/jquery.slimscroll.min.js"></script>
<script src="js/typeahead.min.js"></script>
<script src="bower_components/d3/d3.min.js"></script>
<script type="text/javascript" src="bower_components/evispa-timo-jsclipper/clipper.js"></script>
<script type="text/javascript" src="bower_components/graham_scan/graham_scan.min.js"></script>
<script type="text/javascript" src="bower_components/concavehull/dist/concavehull.min.js"></script>
<script src="bower_components/leaflet.freedraw/dist/leaflet.freedraw-src.js"></script>
<script src="libs/Leaflet.Editable.js"></script>
<script src="js/names.js"></script>
<script src="js/hoodscript.js"></script>
<script src="js/googleanalytics.js"></script>
</script>
</body>
</html>