-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.htm
366 lines (360 loc) · 23.4 KB
/
index.htm
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="Data dashboard for English libraries">
<meta name="author" content="Libraries Hacked">
<title>Library Dashboard</title>
<link href="node_modules/leaflet/dist/leaflet.css" rel="stylesheet" />
<link href="node_modules/bootswatch/dist/sandstone/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">
<link href="node_modules/jquery-shorten/dist/css/shorten.min.css" rel="stylesheet" />
<link href="node_modules/drmonty-leaflet-awesome-markers/css/leaflet.awesome-markers.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@librarieshacked">
<meta name="twitter:title" content="Library Dashboard">
<meta name="twitter:description" content="Information on UK public libraries">
<meta name="twitter:image" content="https://england.librarydata.uk/images/dashboard.png">
</head>
<body class="grey">
<div id="main" class="container main">
<ul class="nav nav-pills">
<li class="nav-item"><a class="nav-link active" href="/">dashboard <span
class="sr-only">(current)</span></a></li>
<li class="nav-item"><a class="nav-link" href="/map">map</a></li>
<li class="nav-item"><a class="nav-link" href="/thedata">data</a></li>
</ul>
<br />
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="alert alert-light">
<strong>Important!</strong> This data was collected in July 2016, and is out of date.
</div>
<!-- Widget 1: Areas -->
<div class="card mb-3">
<div class="card-body">
<h4 class="card-title text-muted"><span class="sel-auth-name"></span></h4>
<h6 class="card-subtitle text-muted">Select the area you're interested in.</h6>
</div>
<div class="card-body">
<select id="sel-authority" class="form-control">
<option value="">England</option>
</select>
</div>
<div class="card-body">
<div class="row">
<div id="div-population" class="stats col-4">
<small class="text-muted">People
<a href="#" class="fas fa-info-circle" data-toggle="popover" data-animation="false" title="Population" data-content="As estimated in mid-2015"></a>
</small>
<p class="lead text-gray-dark"></p>
</div>
<div id="div-num-libs" class="stats col-4"><small class="text-muted">Libraries <a
href="#" class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="The number of public libraries open in July 2016, of all types"></a></small>
<p class="lead text-gray-dark"></p>
</div>
<div id="div-libs-per-population" class="stats col-4"><small class="text-muted">Per
Lib. <a href="#" class="fas fa-info-circle" data-toggle="tooltip"
data-animation="false"
title="The number of people per library"></a></small>
<p class="lead text-gray-dark"></p>
</div>
</div>
<div class="div-loading">
<i class="fas fa-spinner fa-pulse fa-fw text-muted"></i>
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
<!-- Widget 2: Tweets -->
<div id="div-twitter" class="alert alert-success mb-3">
<div id="divTweet"></div>
</div>
<!-- Widget 3: Library details -->
<div class="card mb-3">
<div class="card-body">
<h4 class="card-title text-muted">Library details</h4>
<h6 class="card-subtitle text-muted">Select the library you're interested in.</h6>
</div>
<div class="card-body">
<div class="form-group">
<select id="sel-library-details-library" class="form-control">
<option value="">select a library</option>
</select>
</div>
<div id="divLibraryLinks"></div>
<div id="divLibraryDetails"></div>
<div id="divLibraryStatutoryDetails"></div>
<div id="divLibraryDeprivationDetails"></div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<!-- Widget 4: Library types by authority -->
<div class="card mb-3">
<div class="card-body">
<h4 class="card-title text-muted"><span class="sel-auth-name"></span> library counts</h4>
<h6 class="card-subtitle text-muted">types of library and how many</h6>
</div>
<div class="card-body">
<div class="row">
<div id="divTotalCount" class="col-6"><small class="text-muted">total <a href="#"
class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="the number of libraries open in july 2016, with change since april 2010"></a></small>
<p class="strong"><span id="spLibTotal" class="lead text-gray-dark"></span> <span
id="spLibChange"></span></p>
</div>
<div id="divStatutoryCount" class="col-6"><small class="text-muted">statutory <a
href="#" class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="the number of libraries that part of statutory provision in july 2016, with change since april 2010"></a></small>
<p class="strong"><span id="spStatTotal" class="lead text-gray-dark"></span> <span
id="spStatChange"></span></p>
</div>
</div>
</div>
<div class="card-body">
<div>
<canvas id="divLibrariesDonutChart" height="250"></canvas>
</div>
<div class="div-loading">
<i class="fas fa-spinner fa-pulse fa-fw text-muted"></i>
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
<!-- Widget 5: Libraries distance stats -->
<div class="card mb-3">
<div class="card-body">
<h4 class="card-title text-muted">distances in <span class="sel-auth-name"
id="spDistanceTitle"></span></h4>
<h6 class="card-subtitle text-muted" id="hLibDistanceSubtitle">distance to the nearest statutory
library</h6>
</div>
<div class="card-body">
<div class="row" id="divAuthDistanceStats">
<div id="divDistanceAverage" class="col-4"><small class="text-muted">average <a
href="#" class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="average distance in miles for the population to travel"></a></small>
<p class="lead text-gray-dark"></p>
</div>
<div id="divDistanceLongest" class="col-4"><small class="text-muted">furthest <a
href="#" class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="the furthest distance in miles"></a></small>
<p class="lead text-gray-dark"></p>
</div>
<div id="divDistancePopOverOne" class="col-4"><small class="text-muted">> 2 mi. <a
href="#" class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="percentage of the population travelling at least 2 miles"></a></small>
<p class="lead text-gray-dark"></p>
</div>
</div>
</div>
<div class="card-body">
<div><canvas id="divLibrariesDistancesLineChart" height="220"></canvas></div>
<div class="div-loading">
<i class="fas fa-spinner fa-pulse fa-fw text-muted"></i>
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<!-- Widget 6: Public libraries news -->
<div id="divNewsStories" class="alert alert-danger card mb-3">
<div id="divNews"></div>
</div>
<!-- Widget 7: Libraries area stats -->
<div class="card mb-3">
<div class="card-body">
<h4 class="card-title text-muted">deprivation in <span class="sel-auth-name"></span></h4>
<h6 class="card-subtitle text-muted">area average deprivation. lower (1-10) means more deprived.
</h6>
</div>
<div class="card-body">
<div class="row" id="divAuthDepStats1">
<div id="divIMD" class="stats col-4"><small class="text-muted">multiple <a href="#"
class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="a combination of deprivation measures to give an overall deprivation index"></a></small>
<p class="lead text-success"></p>
</div>
<div id="divEmployment" class="stats col-4"><small class="text-muted">work <a href="#"
class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="employment deprivation for the area"></a></small>
<p class="lead text-success"></p>
</div>
<div id="divEducation" class="stats col-4"><small class="text-muted">education <a
href="#" class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="children's education deprivation for the area"></a></small>
<p class="lead text-success"></p>
</div>
</div>
<div class="row">
<div id="divAdultSkills" class="stats col-4"><small class="text-muted">skills <a
href="#" class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="adult skills and training deprivation for the area"></a></small>
<p class="lead text-success"></p>
</div>
<div id="divHealth" class="stats col-4"><small class="text-muted">health <a href="#"
class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="health deprivation for the area"></a></small>
<p class="lead text-success"></p>
</div>
<div id="divServices" class="stats col-4"><small class="text-muted">services <a
href="#" class="fas fa-info-circle" data-toggle="tooltip" data-animation="false"
title="geographical access to services deprivation for the area"></a></small>
<p class="lead text-success"></p>
</div>
</div>
</div>
<div class="card-body">
<div id="divWrapperLibrariesStatsBarChart"><canvas id="divLibrariesStatsBarChart"></canvas>
</div>
<div class="div-loading">
<i class="fas fa-spinner fa-pulse fa-fw text-muted"></i>
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
<!-- Widget 8: Find My Library -->
<div class="card mb-3">
<div class="card-body">
<h4 class="card-title text-muted">nearest<span id="spNearestLibName"></span></h4>
<h6 class="card-subtitle text-muted">select the library types and find your nearest library</h6>
</div>
<div class="card-body">
<div class="form-group form-inline">
<label class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input chb-libtype" id="chbLAL" value="LAL"
checked="checked">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">authority</span>
</label>
<label class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input chb-libtype" id="chbCL" value="CL"
checked="checked">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">commissioned</span>
</label>
<label class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input chb-libtype" id="chbCRL" value="CRL"
checked="checked">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">community</span>
</label>
<label class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input chb-libtype" id="chbICL" value="ICL"
checked="checked">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">independent</span>
</label>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">
<span class="fas fa-home text-muted" id="spFmlHome"></span>
<span class="fas fa-spinner fa-spin text-muted" id="spFmlSpinning"></span>
</span>
<input id="txtAddress" class="form-control" type="text"
placeholder="enter a location e.g. BA1 7JH">
</div>
</div>
<div id="divFmlContent">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item"><a class="nav-link active" href="#Walking" data-toggle="tab"
role="tab">walking</a></li>
<li class="nav-item"><a class="nav-link" href="#Cycling" data-toggle="tab"
role="tab">cycling</a></li>
<li class="nav-item"><a class="nav-link" href="#Driving" data-toggle="tab"
role="tab">driving</a></li>
</ul>
<div class="tab-content" id="fmlRouteContent">
<div class="tab-pane active" id="Walking" role="tabpanel">
<div class="row">
<div id="divWalkingDistance" class="col-6"><small
class="text-muted">distance <a href="#" class="fas fa-info-circle"
data-toggle="tooltip" data-animation="false"
title="walking distance in miles to the library"></a></small>
<p class="lead text-gray-dark"></p>
</div>
<div id="divWalkingTime" class="col-6"><small class="text-muted">time <a
href="#" class="fas fa-info-circle" data-toggle="tooltip"
data-animation="false"
title="an estimated walking time"></a></small>
<p class="lead strong text-gray-dark"></p>
</div>
</div>
<div id="divWalkingInstructions"></div>
</div>
<div class="tab-pane fade" id="Cycling" role="tabpanel">
<div class="row">
<div id="divCyclingDistance" class="col-6"><small
class="text-muted">distance <a href="#" class="fas fa-info-circle"
data-toggle="tooltip" data-animation="false"
title="cycling distance in miles to the library"></a></small>
<p class="lead text-gray-dark"></p>
</div>
<div id="divCyclingTime" class="col-6"><small class="text-muted">time <a
href="#" class="fas fa-info-circle" data-toggle="tooltip"
data-animation="false" title="an estimated cycle time"></a></small>
<p class="lead strong text-gray-dark"></p>
</div>
</div>
<div id="divCyclingInstructions"></div>
</div>
<div class="tab-pane fade" id="Driving" role="tabpanel">
<div class="row">
<div id="divDrivingDistance" class="col-6"><small
class="text-muted">distance <a href="#" class="fas fa-info-circle"
data-toggle="tooltip" data-animation="false"
title="driving distance in miles to the library"></a></small>
<p class="lead text-gray-dark"></p>
</div>
<div id="divDrivingTime" class="col-6"><small class="text-muted">time <a
href="#" class="fas fa-info-circle" data-toggle="tooltip"
data-animation="false"
title="an estimated driving time"></a></small>
<p class="lead text-gray-dark"></p>
</div>
</div>
<div id="divDrivingInstructions"></div>
</div>
</div>
</div>
</div>
<div class="card-body" id="divFmlMap"></div>
</div>
</div>
</div>
<footer>
<hr />
<p>a <a href="https://www.librarieshacked.org" target="_blank">{ libraries: hacked }</a> open source project
available on <a href="https://github.com/librarieshacked/public-libraries-news"
target="_blank">GitHub</a>.</p>
</footer>
</div>
<!-- Framework plugins -->
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/popper.js/dist/umd/popper.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="node_modules/devbridge-autocomplete/dist/jquery.autocomplete.min.js"></script>
<!-- Data and charting plugins -->
<script src="node_modules/moment/min/moment.min.js"></script>
<script src="node_modules/papaparse/papaparse.min.js"></script>
<script src="node_modules/chart.js/dist/Chart.min.js"></script>
<script src="node_modules/twitter-text/twitter-text.js"></script>
<script src="node_modules/jquery-shorten/dist/jquery-shorten.min.js"></script>
<!-- Mapping plugins -->
<script src="node_modules/leaflet/dist/leaflet.js"></script>
<script src="node_modules/drmonty-leaflet-awesome-markers/js/leaflet.awesome-markers.min.js"></script>
<script src="node_modules/leaflet-geometry/dist/leaflet.geometryutil.js"></script>
<script src="node_modules/polyline/src/polyline.js"></script>
<!-- Custom -->
<script src="js/config.js"></script>
<script src="js/libraries.js"></script>
<script src="js/dashboard.js"></script>
</body>
</html>