-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
220 lines (194 loc) · 10 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
<!DOCTYPE html>
<html lang='en'>
<head>
<title>Macoupin Resource Directory</title>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta content='Macoupin County’s online source for finding businesses, local governments and community services.' name='description'>
<meta content='Macoupin Resource Directory' name='author'>
<!-- Facebook metadata -->
<meta content="Macoupin Resource Directory" property="og:site_name">
<meta content="Macoupin Resource Directory" property="og:title">
<meta content="website" property="og:type">
<meta content="Macoupin County’s online source for finding businesses, local governments and community services." property="og:description">
<meta content="https://macoupindirectory.com/" property="og:url">
<meta content="https://macoupindirectory.com/images/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="Macoupin Resource Directory">
<meta name="twitter:url" content="https://macoupindirectory.com/">
<meta name="twitter:description" content="Macoupin County’s online source for finding businesses, local governments and community services.">
<meta name="twitter:image:src" content="https://macoupindirectory.com/images/screenshot.jpg">
<link href='/img/favicon.png' rel='shortcut icon'>
<!-- Styles -->
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/bootstrap-reboot.min.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" rel="stylesheet">
<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>
<!-- CARTO JavaScript -->
<script src="https://maps.google.com/maps/api/js?libraries=places&key=AIzaSyAtLJ5XbO21UrxRTtjmn8uoahFmI-qGeA0"></script>
<script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script>
<script src="/lib/leaflet-google.js" ></script>
<!-- Custom JavaScript -->
<script src="/js/analytics_lib.js"></script>
<script src="/js/cartodb_lib.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light bg-light mb-2">
<a class="navbar-brand" href="/"><img src='/images/logo.png' alt="Macoupin Resource Directory" title="Macoupin Resource Directory" style='height: 50px;'/></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>
<li class='nav-item'>
<a class="nav-link" href="/about.html"><i class="fa fa-info-circle" aria-hidden="true"></i> About</a>
</li>
<li class='nav-item'>
<a class="nav-link" href="https://www.macoupinvotes.com/machform/view.php?id=11280"><i class="fa fa-plus-circle" aria-hidden="true"></i> Add your information</a>
</li>
<li class='nav-item'>
<a class="nav-link" href="http://macoupincountyil.gov/county_clerk.htm">County Clerk</a>
</li>
</ul>
</div>
</nav>
<main role="main" class="container-fluid">
<div class='row'>
<div class="col-md-4">
<p>Macoupin County’s online source for finding businesses, local governments and community services. <a href='/about.html'>Read more »</a></p>
<div class="card bg-light">
<div class="card-body">
<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>
<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-8">
<div class='form-group'>
Type of location
<div class="checkbox">
<label>
<input type="checkbox" value="" id='cbType1'>
<span class='filter-box filter-green'></span>
Business
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="" id='cbType2'>
<span class='filter-box filter-red'></span>
Community Service
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="" id='cbType3'>
<span class='filter-box filter-blue'></span>
Local Government
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="" id='cbType4'>
<span class='filter-box filter-yellow'></span>
Tourist Spot
</label>
</div>
</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"></th>
<th scope="col">Name</th>
<th scope="col">Address</th>
<th scope="col">Contact</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody id='results-list'></tbody>
</table>
</div>
</div>
</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 -->
<style id="maps-styles">
#my-map{
marker-allow-overlap: true;
marker-width:20;
}
#my-map[type = 'Business'] { marker-file: url(https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png); }
#my-map[type = 'Community Service'] { marker-file: url(https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png); }
#my-map[type = 'Local Government'] { marker-file: url(https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-blue.png); }
#my-map[type = 'Tourist Spot'] { marker-file: url(https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-yellow.png); }
</style>
<script type="text/javascript" src="/js/map.js"></script>
</main>
</body>
</html>