-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
169 lines (146 loc) · 7.92 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
<!DOCTYPE html>
<html lang='en'>
<head>
<title>Guerrilla Recycling (2021) - Chicago Environmentalists</title>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta content='You want to put your data on a searchable, filterable map. Provide a comma separated file (CSV) and this free, open source template will do the rest.' name='description'>
<meta content='Guerrilla Recycling (2021) - Chicago Environmentalists' name='author'>
<!-- Facebook metadata -->
<meta content="Guerrilla Recycling (2021) - Chicago Environmentalists" property="og:site_name">
<meta content="Guerrilla Recycling (2021) - Chicago Environmentalists" property="og:title">
<meta content="website" property="og:type">
<meta content="You want to put your data on a searchable, filterable map. Provide a comma separated file (CSV) and this free, open source template will do the rest." property="og:description">
<meta content="https://searchable-map-template-csv.netlify.com/" property="og:url">
<meta content="https://searchable-map-template-csv.netlify.com/img/screenshot.jpg" property="og:image">
<!-- Twitter metadata -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@DataMadeCo">
<meta name="twitter:creator" content="@DataMadeCo">
<meta name="twitter:title" content="Guerrilla Recycling (2021) - Chicago Environmentalists">
<meta name="twitter:url" content="https://searchable-map-template-csv.netlify.com/">
<meta name="twitter:description" content="You want to put your data on a searchable, filterable map. Provide a comma separated file (CSV) and this free, open source template will do the rest.">
<meta name="twitter:image:src" content="https://searchable-map-template-csv.netlify.com/img/screenshot.jpg">
<!-- Styles -->
<!-- Bootstrap cssS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-reboot.min.css">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="css/custom.css"/>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="lib/jquery-3.3.1.min.js"></script>
<script src="lib/popper.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<script src="lib/ejs.min.js"></script>
<script src="lib/jquery.address.js"></script>
<script src="lib/jquery.csv.min.js"></script>
<script src="lib/moment.js"></script>
<script src="lib/geojson.min.js"></script>
<script src="js/csv-to-geojson.js"></script>
<!-- Leaflet and Google -->
<link rel="stylesheet" href="css/leaflet.css"/>
<script src="lib/leaflet.js"></script>
<script src='lib/turf.min.js'></script>
<script src="https://maps.google.com/maps/api/js?libraries=places&key=AIzaSyBhlf7Ayk_8nYYW5siUMTXXwvI-A6va_m0"></script>
<script src="lib/Leaflet.GoogleMutant.js" ></script>
<script src="lib/leaflet-color-markers.js" ></script>
<!-- Custom JavaScript -->
<script src="js/searchable_map_lib.js"></script>
<script src="js/analytics_lib.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light mb-2">
<a class="navbar-brand" href="/">
Guerrilla Recycling (2021) - Chicago Environmentalists
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse mr-auto" id="navbarsExampleDefault">
<ul class="navbar-nav ml-auto">
<li class='nav-item'>
<a class="nav-link active" href="/"><i class="fa fa-map-marker" aria-hidden="true"></i> Map</a>
</li>
</ul>
</div>
</nav>
<main role="main" class="container-fluid">
<div class='row'>
<div class="col-md-4">
<p>In 2021 Chicago Environmentalists canvassed residences and businesses in Chicago to measure recycling compliance. These are the locations they checked.</p>
<div class="card bg-light">
<div class="card-body">
<div class='row'>
<div class="col-md-8">
<div class="form-group">
Near an address
<input class='form-control' id='search-address' placeholder='Enter an address' type='text'>
</div>
</div>
<div class="col-md-4">
<div class='form-group'>
Within
<select id='search-radius' class='form-control'>
<option value='400'>2 blocks</option>
<option value='805'>1/2 mile</option>
<option value='1610'>1 mile</option>
<option value='3220'>2 miles</option>
<option value='8050'>5 miles</option>
</select>
</div>
</div>
</div>
<div class='row'>
<div class="col-md-12">
<div class="form-group">
Search by name
<input class='form-control' id='search-name' placeholder='Enter a business or organization name' type='text'>
</div>
</div>
</div>
<button class='btn btn-primary' id="btnSearch"><i class='fa fa-search'></i> Search</button>
<a href="/" class='btn btn-secondary' id="btnReset" title="Reset"><i class="fa fa-repeat" aria-hidden="true"></i> Reset</a>
<button class='btn btn-dark' id='btnViewMode' title='Change view'><i class='fa fa-list'></i> List view</button>
</div>
</div>
</div>
<div class='col-md-8'>
<div id='mapCanvas' style="display: block; height: 1000px;"></div>
<div id="listCanvas" style="display: none">
<h2 class='list-header hidden-xs'>Search results <small id='list-result-count'></small></h2>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Property Owner or Mgmt Company</th>
<th scope="col">Address</th>
<th scope="col">Type of building</th>
</tr>
</thead>
<tbody id='results-list'></tbody>
</table>
</div>
</div>
<p class='float-right'>Based on <a href='https://github.com/datamade/searchable-map-template-csv' target='_blank'>Guerrilla Recycling (2021) - Chicago Environmentalists</a> by <a href='https://derekeder.com/' target='_blank'>Derek Eder</a> and <a href='https://datamade.us/' target='_blank'>DataMade</a></p>
</div>
</div>
<div class="modal fade" id="modal-pop" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<div class="container-fluid bd-example-row">
<div class="row">
<div class="col-md-12">
<button type="button" class="close close-btn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="fa fa-times-circle" aria-hidden="true"></i></span></button>
<div id="modal-main"></div>
</div>
</div>
</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script type="text/javascript" src="js/map.js"></script>
</main>
</body>
</html>