-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
338 lines (298 loc) · 13.1 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
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Government Dashboard</h1>
<h2>Track the info that matters to people in Ireland. Click any value to see the source of the data. All updates visable on GitHub.</h2>
<section class="home-section">
<div class="home-content">
<div class="overview-boxes">
<div class="box">
<div class="right-side">
<div class="box-topic">Homeless People</div>
<div class="number" id="homeless"></div>
</div>
<i class='bx bx-group house'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Houses Built Last Year</div>
<div class="number" id="houses_built"></div>
</div>
<i class='bx bx-building-house house'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">New Builds Needed Per Year</div>
<div class="number" id="houses_needed"></div>
</div>
<i class='bx bx-euro house'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Derelict/Vacant Houses</div>
<div class="number" id=derelict_vacant></div>
</div>
<i class='bx bxs-no-entry house'></i>
</div>
</div>
</div>
</section>
<section class="home-section">
<div class="home-content">
<div class="overview-boxes">
<div class="box">
<div class="right-side">
<div class="box-topic">TD Hourly wage</div>
<div class="number" id="average_td"></div>
</div>
<i class='bx bx-euro euro'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Average Industrial Hourly Wage</div>
<div class="number" id="average_industry"></div>
</div>
<i class='bx bx-euro euro'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Living Hourly Wage </div>
<div class="number" id="living_wage"></div>
</div>
<i class='bx bx-euro euro'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Minimum Hourly Wage</div>
<div class="number" id=minimum_wage></div>
</div>
<i class='bx bx-euro euro'></i>
</div>
</div>
</div>
</section>
<section class="home-section">
<div class="home-content">
<div class="overview-boxes">
<div class="box">
<div class="right-side">
<div class="box-topic">HSE Waiting List</div>
<div class="number" id="waiting_list"></div>
</div>
<i class='bx bx-first-aid health'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Quality of Life Ranking</div>
<div class="number" id="quality_of_life_rank"></div>
</div>
<i class='bx bxs-bar-chart-alt-2 health'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Male Life Expectency</div>
<div class="number" id="male_life_expectency"></div>
</div>
<i class='bx bx-donate-heart health'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Female Life Expectency</div>
<div class="number" id=female_life_expectency></div>
</div>
<i class='bx bxs-donate-heart health'></i>
</div>
</div>
</div>
</section>
<section class="home-section">
<div class="home-content">
<div class="overview-boxes">
<div class="box">
<div class="right-side">
<div class="box-topic">Mother & Baby Home Redress Paid</div>
<div class="number" id="mother_and_baby_redress"></div>
</div>
<i class='bx bx-euro euro'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Mother & Baby Home Minimum Child Deaths</div>
<div class="number" id="deaths"></div>
</div>
<i class='bx bxs-baby-carriage health'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Institutional Abuse Redress Cap</div>
<div class="number" id="cap"></div>
</div>
<i class='bx bx-coin-stack coin_green'></i>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">Expected Redress Cost for Tax Payer</div>
<div class="number" id=expected></div>
</div>
<i class='bx bxs-coin-stack coin'></i>
</div>
</div>
</div>
</section>
<section class="home-section">
<div class="home-content">
<div class="overview-boxes">
<div class="box">
<div class="right-side">
<div class="box-topic">Add/update a data point on</div>
<div class="number"><a href="https://github.com/jimmycasey/govDashboard">GitHub</a></div>
</div>
<a href="https://github.com/jimmycasey/govDashboard"><i class='bx bx-plus house'></i></a>
</div>
<div class="box">
<div class="right-side">
<div class="box-topic">View the history of updates</div>
<div class="number"><a href="https://github.com/jimmycasey/govDashboard/commits/main">Here</a></div>
</div>
<a href="https://github.com/jimmycasey/govDashboard/commits/main"><i class='bx bx-history house'></i></a>
</div>
</div>
</div>
</section>
<div class="footer">To update visit: <a href="https://github.com/jimmycasey/govDashboard">GitHub</a> / <a
href="https://www.buymeacoffee.com/jimmyendless">Buy me a ☕</a> / Made with ❤ by <a
href="https://twitter.com/jimmyendless">@jimmyendless</a></div>
<script>
//***********************************************************************************************************************
//Edit the stats object below with a new value, link, and date
//***********************************************************************************************************************
let stats = {
"homes": {
"homeless": {
"value": "13,866",
"link": "https://www.irishexaminer.com/news/arid-41382853.html",
"date": "26th April 2024"
},
"houses_built": {
"value": "23,751",
"link": "https://businessplus.ie/news/new-houses-built/",
"date": "15th Feb 2023"
},
"derelict_vacant": {
"value": "183,312",
"link": "https://www.irishtimes.com/business/economy/ireland-has-10th-highest-rate-of-vacant-homes-in-the-world-study-finds-1.4709476",
"date": "25th Oct 2021"
},
"houses_needed": {
"value": "62,000",
"link": "https://www.irishtimes.com/ireland/housing-planning/2023/01/26/ireland-needs-almost-double-amount-of-new-builds-in-housing-targets-research-finds/",
"date": "26th Jan 2023"
}
},
"wages": {
"average_industrial_wage": {
"value": "22.35",
"link": "https://www.cso.ie/en/statistics/earnings/earningsandlabourcosts/",
"date": "30th June 2022"
},
"average_td_wage": {
"value": "49.90",
"link": "https://www.oireachtas.ie/en/members/salaries-and-allowances/salaries/",
"date": "31st May 2022"
},
"minimum_wage": {
"value": "11.30",
"link": "https://www.citizensinformation.ie/en/employment/employment_rights_and_conditions/pay_and_employment/pay_inc_min_wage.html",
"date": "1st Jan 2023"
},
"living_wage": {
"value": "13.85",
"link": "https://www.livingwage.ie/download/pdf/living_wage_2022-23_final.pdf",
"date": "20th Oct 2022"
},
},
"health": {
"waiting_list": {
"value": "885,600",
"link": "https://www.breakingnews.ie/ireland/over-40000-operations-and-appointments-cancelled-in-first-two-months-of-the-year-1463133.html",
"date": "15th April 2023"
},
"quality_of_life_rank": {
"value": "31",
"link": "https://www.numbeo.com/quality-of-life/rankings_by_country.jsp",
"date": "1st July 2022"
},
"male_life_expectency": {
"value": "78.4",
"link": "https://www.cso.ie/en/interactivezone/statisticsexplained/birthsdeathsandmarriages/lifeexpectancytables/",
"date": "1st Jan 2022"
},
"female_life_expectency": {
"value": "82.8",
"link": "https://www.cso.ie/en/interactivezone/statisticsexplained/birthsdeathsandmarriages/lifeexpectancytables/",
"date": "1st Jan 2022"
},
},
"abuse": {
"mother_and_baby_redress": {
"value": "0",
"link": "https://www.irishexaminer.com/news/arid-40979510.html",
"date": "10th Oct 2022"
},
"deaths": {
"value": "9,000",
"link": "https://www.independent.ie/irish-news/mother-and-baby-homes-report-will-reveal-9000-children-died-in-18-institutions-investigated-39951584.html",
"date": "12th January 2021"
},
"cap": {
"value": "127,000,000",
"link": "https://www.irishtimes.com/news/woods-defends-his-deal-with-church-on-redress-for-abuse-1.1276752",
"date": "8th Jan 2011"
},
"expected": {
"value": "1,500,000,000",
"link": "https://www.irishtimes.com/ireland/education/2023/01/09/taxpayer-may-end-up-paying-most-of-15bn-redress-for-abuse-by-religious-orders/",
"date": "9th Jan 2023"
}
}
}
//***********************************************************************************************************************
document.getElementById("houses_built").innerHTML = "<a href=" + stats.homes.houses_built.link + ">" + stats.homes.houses_built.value + "</a>";
document.getElementById("homeless").innerHTML = "<a href=" + stats.homes.homeless.link + ">" + stats.homes.homeless.value + "</a>";
document.getElementById("derelict_vacant").innerHTML = "<a href=" + stats.homes.derelict_vacant.link + ">" + stats.homes.derelict_vacant.value + "</a>";
document.getElementById("houses_needed").innerHTML = "<a href=" + stats.homes.houses_needed.link + ">" + stats.homes.houses_needed.value + "</a>";
document.getElementById("average_td").innerHTML = "<a href=" + stats.wages.average_td_wage.link + ">" + stats.wages.average_td_wage.value + "</a>";
document.getElementById("average_industry").innerHTML = "<a href=" + stats.wages.average_industrial_wage.link + ">" + stats.wages.average_industrial_wage.value + "</a>";
document.getElementById("living_wage").innerHTML = "<a href=" + stats.wages.living_wage.link + ">" + stats.wages.living_wage.value + "</a>";
document.getElementById("minimum_wage").innerHTML = "<a href=" + stats.wages.minimum_wage.link + ">" + stats.wages.minimum_wage.value + "</a>";
document.getElementById("waiting_list").innerHTML = "<a href=" + stats.health.waiting_list.link + ">" + stats.health.waiting_list.value + "</a>";
document.getElementById("quality_of_life_rank").innerHTML = "<a href=" + stats.health.quality_of_life_rank.link + ">" + stats.health.quality_of_life_rank.value + "</a>";
document.getElementById("male_life_expectency").innerHTML = "<a href=" + stats.health.male_life_expectency.link + ">" + stats.health.male_life_expectency.value + "</a>";
document.getElementById("female_life_expectency").innerHTML = "<a href=" + stats.health.female_life_expectency.link + ">" + stats.health.female_life_expectency.value + "</a>";
document.getElementById("mother_and_baby_redress").innerHTML = "<a href=" + stats.abuse.mother_and_baby_redress.link + ">" + stats.abuse.mother_and_baby_redress.value + "</a>";
document.getElementById("deaths").innerHTML = "<a href=" + stats.abuse.deaths.link + ">" + stats.abuse.deaths.value + "</a>";
document.getElementById("cap").innerHTML = "<a href=" + stats.abuse.cap.link + ">" + stats.abuse.cap.value + "</a>";
document.getElementById("expected").innerHTML = "<a href=" + stats.abuse.expected.link + ">" + stats.abuse.expected.value + "</a>";
</script>
<script type="module">
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.10.0/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.10.0/firebase-analytics.js";
const firebaseConfig = {
apiKey: "AIzaSyBo8TfUGH_sUBR3L_fGb80nl5dNoqnauyA",
authDomain: "govdashboard-50179.firebaseapp.com",
projectId: "govdashboard-50179",
storageBucket: "govdashboard-50179.appspot.com",
messagingSenderId: "832956131379",
appId: "1:832956131379:web:40d1c5104269eb35e81b46",
measurementId: "G-FCEFNLMRM5"
};
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script>
</html>