-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
218 lines (216 loc) · 12.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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>crimearound.us</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<script src="http://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.js"></script>
<script src='http://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-draw/v0.2.2/leaflet.draw.js'></script>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css" />
<link rel="stylesheet" href="https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-draw/v0.2.2/leaflet.draw.css" />
<link rel="stylesheet" href="foundation/stylesheets/foundation.min.css">
<link rel="stylesheet" href="foundation/stylesheets/general_foundicons.css">
<link rel="stylesheet" href="css/chosen.min.css">
<link rel="stylesheet" href="foundation/stylesheets/app.css">
<link rel="stylesheet" href="foundation/stylesheets/print.css" media="print" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="/css/leaflet.ie.css" />
<link rel="stylesheet" href="/css/leaflet.draw.ie.css" />
<![endif]-->
</head>
<body>
<div class="fixed">
<nav class="top-bar">
<ul>
<li class="name"><h1><a href="/">crimearound.us</a></h1></li>
</ul>
<section>
<ul class="right" id="right-nav">
<li><a href="/about.html"><i class="fa fa-info-circle"></i> About</a></li>
<li><a href="/help.html"><i class="fa fa-question-circle"></i> Help</a></li>
</ul>
</section>
</nav>
</div>
<div id="mapinfo" class="three columns full-height">
<h4 class="light">Search crime in your area</h4>
<p>Draw on the map or <a href='/help.html'>use the filters below</a>.</p>
<hr />
<div id="filters">
<form>
<fieldset>
<legend><i class="fa fa-calendar-o"></i> Date & time</legend>
<div class="date-wrapper">
<label for="start">Start Date</label>
<input id="start" class="date-filter start" type="text" placeholder="Start Date"/>
</div>
<div class="date-wrapper">
<label for="end">End Date</label>
<input id="end" class="date-filter end" type="text" placeholder="End Date"/>
</div>
<p>
Hour of day:
<span>
<span id="time-start" data-value="0">12am</span>
—
<span id="time-end" data-value="23">11pm</span>
</span>
<div id="time-slider"></div>
</p>
</fieldset>
<fieldset>
<legend>Crime</legend>
<select id="crime-type" data-placeholder="Crime type ..." class="chosen-select" multiple>
<option value=""></option>
<optgroup label="Violent">
<option value="ASSAULT">Assault</option>
<option value="BATTERY">Battery</option>
<option value="CRIM SEXUAL ASSAULT">Criminal sexual assault</option>
<option value="HOMICIDE">Homicide</option>
<option value="ROBBERY">Robbery</option>
</optgroup>
<optgroup label="Property">
<option value="ARSON">Arson</option>
<option value="BURGLARY">Burglary</option>
<option value="MOTOR VEHICLE THEFT">Motor vehicle theft</option>
<option value="THEFT">Theft</option>
</optgroup>
<optgroup label="Quality of Life">
<option value="CRIMINAL DAMAGE">Criminal damage</option>
<option value="NARCOTICS">Narcotics</option>
<option value="PROSTITUTION">Prostitution</option>
</optgroup>
<optgroup label="Other">
<option value="CRIMINAL TRESPASS">Criminal trespass</option>
<option value="DECEPTIVE PRACTICE">Deceptive practice</option>
<option value="GAMBLING">Gambling</option>
<option value="INTERFERE WITH PUBLIC OFFICER,INTERFERENCE WITH PUBLIC OFFICER">Interference with a public officer</option>
<option value="INTIMIDATION">Intimidation</option>
<option value="KIDNAPPING">Kidnapping</option>
<option value="LIQUOR LAW VIOLATION">Liquor law violation</option>
<option value="NON-CRIMINAL,NON-CRIMINAL (SUBJECT SPECIFIED)">Non-criminal</option>
<option value="OBSCENITY">Obscenity</option>
<option value="OTHER OFFENSE">Other offense</option>
<option value="OTHER NARCOTIC VIOLATION">Other narcotic violation</option>
<option value="PUBLIC INDECENCY">Public indecency</option>
<option value="PUBLIC PEACE VIOLATION">Public peace violation</option>
<option value="RITUALISM">Ritualism</option>
<option value="SEX OFFENSE">Sex offense</option>
<option value="STALKING">Stalking</option>
<option value="WEAPONS VIOLATION">Weapons violation</option>
</optgroup>
</select>
</fieldset>
<fieldset id="beat-filters">
<legend>Location</legend>
<select id="crime-location" data-placeholder="Location type ..." class="chosen-select" multiple>
<option value="airport">Airport</option>
<option value="business_banking">Business - Banking</option>
<option value="business_eatery">Business - Eatery</option>
<option value="business_hotel_motel">Business - Hotel/Motel</option>
<option value="business_liquor">Business - Liquor</option>
<option value="business_office">Business - Office</option>
<option value="business_retail">Business - Retail</option>
<option value="cha">Chicago Housing Authority Property</option>
<option value="cta">Chicago Transit Authority Property</option>
<option value="gov">Government Property</option>
<option value="hospital">Hospital/Nursing Home</option>
<option value="library">Library</option>
<option value="indoors_residence">Indoors - Residence</option>
<option value="other">Other</option>
<option value="outdoors_public">Outdoors - Public</option>
<option value="outdoors_residence">Outdoors - Residence</option>
<option value="worship">Place of Worship</option>
<option value="school">School</option>
<option value="transportation">Transportation</option>
<option value="vacant">Vacant Property</option>
<option value="vehicle">Vehicle</option>
</select>
<br /><br />
</fieldset>
<ul id="form-controls" class="button-group radius even two-up">
<li><a href="javascript://" id="submit-query" class="button radius">Search</a></li>
<li><a href="javascript://" id="reset" class="button radius alert">Reset</a></li>
</ul>
<p>
<span id="remember" class="light" style="display:none;">
<i class="fa fa-save"></i>
<a href="javascript://">Remember search</a>
</span>
<span id="report" class="light" style="display:none;">
|
<i class="fa fa-download"></i>
<a href="javascript://">Download</a>
</span>
<span id="print" class="light" style="display:none;">
|
<i class="fa fa-print"></i>
<a href="javascript://">Print</a>
</span>
</p>
</ul>
</form>
</div>
<hr />
<div id="meta">
<p>
© <a href='http://www.lisc-chicago.org'>LISC Chicago</a> and <a href='http://datamade.us'>DataMade</a><br />
Hosted by <a href="http://www.smartchicagocollaborative.org/">Smart Chicago Collaborative</a>
</p>
</div>
</div>
<div id="map" class="nine columns full-height"></div>
<div id="report-modal" class="reveal-modal small">
<h2 class="light">Oops, slight problem</h2>
<p class="lead">You need to give me something to work with</p>
<p>Before I can generate a report, I need you to specify what you want me to report
on by drawing a shape on the map.</p>
<a href="javascript://" class="close-reveal-modal">×</a>
</div>
<div id="date-error" class="reveal-modal small">
<h2 class="light">Oops, slight problem</h2>
<p class="lead">At least one of your dates isn’t formatted correctly.
The date fields down at the bottom of the map expect dates formatted like this:
<strong>YYYY-MM-DD</strong></p>
<a href="javascript://" class="close-reveal-modal">×</a>
</div>
<div id="time-error" class="reveal-modal small">
<h2 class="light">Oops, slight problem</h2>
<p class="lead">It looks like the time of day range that you specified has a start time
that occurs after the end time. Please correct this and try again.</p>
<a href="javascript://" class="close-reveal-modal">×</a>
</div>
<div id="shape-error" class="reveal-modal small">
<h2 class="light">Oops, slight problem</h2>
<p class="lead">
Before we can run your query, you’ll need to make sure to draw
a shape on the map using the tools on the left-hand side.
</p>
<a href="javascript://" class="close-reveal-modal">×</a>
</div>
<script src="//d3nslu0hdya83q.cloudfront.net/dist/1.0/raven.min.js"></script>
<script>
Raven.config('https://0b2a28d91b324689b12ca36f747af10e@app.getsentry.com/8349').install();
</script>
<script src="foundation/javascripts/foundation.min.js"></script>
<script src="foundation/javascripts/app.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/chosen.jquery.min.js"></script>
<script src="js/ejs_production.js"></script>
<script src="js/moment.min.js"></script>
<script src="js/spin.min.js"></script>
<script src="js/jquery.spin.js"></script>
<script src="js/jquery.fileDownload.js"></script>
<script src="js/map.js?2"></script>
<script src="js/jquery.ba-hashchange.js"></script>
<script src="js/analytics_lib.js"></script>
</body>
</html>