-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
249 lines (225 loc) · 6.04 KB
/
index.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="shortcut icon" href="img/icons/icon-48x48.png" />
<title>InfoVaccini - Campania</title>
<link href="css/app.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.js"></script>
</head>
<body class="bg-secondary">
<main class="content">
<div class="container-fluid p-0">
<div class="container text-center">
<h1 class="mb-3 text-center text-white"><strong>InfoVaccini - Campania</strong></h1>
<p class="text-center text-white">Progetto Open Source creato a scopo didattico, illustrativo e per allenamento personale. Tutte le fonti dei dati sono reperibili <a href="https://github.com/italia/covid19-opendata-vaccini" class="text-danger">a questo indirizzo</a></p>
<a href="api.php" class="btn btn-success mb-3">Aggiorna API</a>
</div>
<div class="row">
<div class="col-6 col-lg-6 col-xxl-6 d-flex">
<div class="card flex-fill">
<div class="card-header">
<h5 class="card-title mb-0">Tabella Consegne Dosi</h5>
</div>
<div class="container dataTables_wrapper dt-bootstrap4 no-footer">
<table class="table table-borderless my-o mb-0 text-center" id="table2">
<thead>
<tr>
<th scope="col">Data di Consegna</th>
<th scope="col">Nome Del Fornitore</th>
<th scope="col">Numero di Pezzi</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<div class="col-6 col-lg-6 col-xxl-6 d-flex">
<div class="card flex-fill">
<div class="card-header">
<h5 class="card-title mb-0">Tabella Centri ASL</h5>
</div>
<div class="container dataTables_wrapper dt-bootstrap4 no-footer">
<table class="table table-borderless my-o mb-0 text-center" id="hospitals">
<thead>
<tr>
<th scope="col">Comune</th>
<th scope="col">Nome del Luogo</th>
<th scope="col">Sito Web</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<div class="col-6 col-lg-6 col-xxl-6 d-flex">
<div class="card flex-fill">
<div class="card-header">
<h5 class="card-title mb-0">Tabella Vaccinazioni Giornaliere IN ITALIA</h5>
</div>
<div class="container dataTables_wrapper dt-bootstrap4 no-footer">
<table class="table table-borderless my-o mb-0 text-center" id="vaxtoday">
<thead>
<tr>
<th scope="col">Fascia</th>
<th scope="col">Maschi</th>
<th scope="col">Femmine</th>
<th scope="col">Prime Dosi</th>
<th scope="col">Seconde Dosi</th>
<th scope="col">Terze Dosi</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<div class="col-6 col-lg-6 col-xxl-6 d-flex">
<div class="card flex-fill">
<div class="card-header">
<h5 class="card-title mb-0">Tabella della Platea di Cittadini Eleggibili alla Vaccinazione</h5>
</div>
<div class="container dataTables_wrapper dt-bootstrap4 no-footer">
<table class="table table-borderless my-o mb-0 text-center" id="table">
<thead>
<tr>
<th scope="col">Fascia Età</th>
<th scope="col">Numero di Eleggibili</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="footer">
<div class="container-fluid">
<div class="row text-muted">
<div class="col-6 text-start">
<p class="mb-0">
<a href="" target="_blank" class="text-muted"><strong>InfoVaccini Open</strong></a> ©
</p>
</div>
<div class="col-6 text-end">
<ul class="list-inline">
<li class="list-inline-item">
<a class="text-muted">Creato da Giuseppe Flaminio</a>
</li>
</ul>
</div>
</div>
</div>
</footer>
<script src="js/app.js"></script>
<script src="js/datatables.js"></script>
<script>
$(document).ready(function() {
$('#table').DataTable({
"language": {
"url": "http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Italian.json"
},
"ajax": {
"url": "data/notVaccinated.json",
"dataSrc": ""
},
"columns": [{
"data": "fascia"
},
{
"data": "platea"
}
]
});
});
</script>
<script>
$(document).ready(function() {
$('#table2').DataTable({
"language": {
"url": "http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Italian.json"
},
"ajax": {
"url": "data/dailyDelivered.json",
"dataSrc": ""
},
"columns": [{
"data": "data_consegna"
},
{
"data": "fornitore"
},
{
"data": "dosi"
}
],
"order": [
[0, "desc"]
]
});
});
</script>
<script>
$(document).ready(function() {
$('#hospitals').DataTable({
"language": {
"url": "http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Italian.json"
},
"ajax": {
"url": "data/availableHospitals.json",
"dataSrc": ""
},
"columns": [{
"data": "comune"
},
{
"data": "luogo"
},
{
"data": "link"
}
],
"order": [
[0, "desc"]
]
});
});
</script>
<script>
$(document).ready(function() {
$('#vaxtoday').DataTable({
"language": {
"url": "http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Italian.json"
},
"ajax": {
"url": "data/todayStats.json",
"dataSrc": ""
},
"columns": [{
"data": "fascia"
},
{
"data": "maschi"
},
{
"data": "femmine"
},
{
"data": "prime_dosi"
},
{
"data": "seconda_dose"
},
{
"data": "terza_dose"
},
]
});
});
</script>
</body>
</html>