-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathindex.html
219 lines (208 loc) · 11.4 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>neighborhoods</title>
<meta name="description" content="Mapping vernacular neighborhoods in the Pacific Northwest" />
<meta name="author" content="Nick Martinelli" />
<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>
<!-- 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">Neighborhoods Mapping Project</h3>
</div>
<div class="modal-body">
<p> 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 the city, or crossing municipal borders. Names, extents, and descriptions are up to you. After mapping, be sure to <b>View Maps</b>. <b>All the color on this site comes from your contributions</b>.</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"><span style="color:#FF0000">* </span>Neighborhood Name</label>
<div class="col-xs-8">
<input class="form-control typeahead noEnterSubmit neighborhoodName" id="neighborhoodName" 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" >Years Lived in City:</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" >Years lived in 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 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>
</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: 50px; left: 30px; z-index:999;pointer-events:none">
<h1 id="mapTitle" style="margin-bottom:0px">Portland<font size="4"><b>NEIGHBORHOODS</b></font></h1>
</div>
<div style="position:absolute; top: 110px; left: 30px; z-index:999;pointer-events:none">
<div id="btnBar" class="noMouse">
<button id="startPolyBtn" class="btn btn-xs btn-default yesMouse" type="button"> <i class="glyphicon glyphicon-pencil icon-white"> </i> Start Mapping</button>
<button id="deletePolyBtn" style:"" class="btn btn-xs btn-default yesMouse" type="button"> <i class="glyphicon glyphicon-trash icon-white"> </i> Cancel Map</button>
<button id="submitPolyBtn" style="display:none;" class="btn btn-xs btn-default btn-success yesMouse" type="button">Save Neighborhood</button>
</div>
</div>
<div class="noMouse" style="position:absolute; top: 110px; left: 30px; 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 btn-xs 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:80px;" 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" style="bottom:20px;" class="link-icons enableTooltipsLeft" title="Me on Twitter" >
<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>
<li style="top:-9px;position:relative; padding-left:20px; padding-right:20px">
<div class="circleBase type1" style="top:6px; position:relative;">
<h4 style="top:8px; left:9px;position:relative;color:#fff">IN</h4>
</div>
</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="libs/Leaflet.draw/leaflet.draw.js"></script>
<script src="js/jquery.slimscroll.min.js"></script>
<script src="js/typeahead.min.js"></script>
<script src="js/hoodscript.js"></script>
<script src="js/googleanalytics.js"></script>
</script>
</body>
</html>