-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
472 lines (430 loc) · 20.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
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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Austerity Measures in the Public Sector in Turkey</title>
<!-- Ubold Admin CSS -->
<link href="css/ubold-dark.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome for icons -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Georgia:wght@400;700&display=swap" rel="stylesheet">
<!-- jsPDF -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.4.0/jspdf.umd.min.js"></script>
<!-- html2canvas -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<!-- wordcloud2.js -->
<script src="https://cdn.jsdelivr.net/npm/wordcloud2.js"></script>
<style>
body {
background-color: #f0f0f0;
font-family: "Times New Roman", Times, serif;
color: #333;
font-size: 18px;
}
.container {
margin: 20px auto;
padding: 20px;
max-width: 1000px;
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
position: relative;
}
.header {
text-align: center;
margin-bottom: 40px;
}
.header img {
height: 50px;
vertical-align: middle;
}
.header h1 {
display: inline;
margin-left: 20px;
font-size: 24px;
color: #333;
}
.overview {
margin-bottom: 40px;
}
.section-title {
font-size: 20px;
margin-top: 20px;
margin-bottom: 10px;
border-bottom: 2px solid #012c5a;
display: inline-block;
color: #012c5a;
}
.analysis-step {
margin-bottom: 20px;
background-color: #fafafa;
border: 1px solid #b1afaf;
padding: 15px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.analysis-step p {
margin: 0;
}
.menu {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #343a40;
padding: 10px 20px;
color: white;
margin-bottom: 20px;
}
.menu .logos img {
height: 40px;
}
.menu .icons {
display: flex;
gap: 20px;
}
.menu .icons a {
color: white;
font-size: 20px;
}
.menu .icons a:hover {
color: #ffc107;
}
.cover-image-container {
width: 100%;
height: 200px;
overflow: hidden;
margin-top: 30px;
position: relative;
}
.cover-image {
position: absolute;
top: -350px;
width: 100%;
height: auto;
}
.analysis-step {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 40px;
}
.chart-container {
flex: 1;
margin: 0 20px;
}
.text-container {
flex: 1;
margin: 0 20px;
}
.analysis-step .chart-container canvas {
width: 100% !important;
height: auto !important;
max-width: 400px;
max-height: 300px;
}
.analysis-step:nth-child(odd) .chart-container {
order: 1;
}
.analysis-step:nth-child(odd) .text-container {
order: 2;
}
.analysis-step:nth-child(even) .chart-container {
order: 2;
}
.analysis-step:nth-child(even) .text-container {
order: 1;
}
.pdf-button {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
color: #333;
font-size: 24px;
cursor: pointer;
}
.pdf-button:hover {
color: #007bff;
}
.separator {
height: 1px;
background-color: #ddd;
margin: 40px 0;
}
.suggestions {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 10px;
margin-top: 20px;
background-color: #f9f9f9;
padding: 15px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.suggestion-item {
background-color: #e0f7fa;
padding: 10px;
}
.suggestion-item {
background-color: transparent; /* Remove background color */
padding: 10px;
margin-bottom: 10px; /* Add some space between items */
}
.suggestion-item p {
margin: 5px 0 0;
}
</style>
</head>
<body>
<div class="menu">
<div class="logos">
<img src="https://upload.wikimedia.org/wikipedia/commons/9/9f/UNDP_logo.svg" alt="UNDP Logo">
</div>
<div class="icons">
<a href="#home" title="Home"><i class="fas fa-home"></i></a>
<a href="#about" title="About Us"><i class="fas fa-info-circle"></i></a>
<a href="#demo" title="Demo"><i class="fas fa-chart-bar"></i></a>
</div>
<div class="logos">
<img src="https://sdgailab.org/assets/img/Webp.net-resizeimage.png" alt="SDG AI Lab Logo">
</div>
</div>
<div class="container" id="report-content">
<button class="pdf-button" onclick="downloadPDF()"><i class="fas fa-download"></i></button>
<div class="header">
<h1>Austerity Measures in the Public Sector in Turkey</h1>
</div>
<div class="overview">
<p>
Turkey's new austerity measures aim to address the economic crisis by cutting investments and service procurement, potentially reforming taxes to save 1 trillion lira. Announced by Finance Minister Mehmet Şimşek and Vice President Cevdet Yılmaz, these measures seek to reduce the budget deficit. Critiques emphasize equitable burden distribution and the symbolic importance of leadership in implementing these changes. The political implications and necessity of these measures are also highlighted.
</p>
<br>
<p>
This report analyzes social media discussions about Turkey's new austerity measures, drawing insights from posts and comments on Instagram and Facebook. The data was collected using hashtags related to public sector austerity, including #kamudatasarruf, #memurhakkınıalamıyor, #tasarruftedbirleri, and #verimlilikpaketi. The analysis focuses on sentiment, key phrases, and co-occurring hashtags to understand public perception and provide actionable recommendations for policymakers.
</p>
</div>
<h2>About the dataset</h2>
<div class="analysis-step">
<div class="chart-container">
<canvas id="platformDistributionChart" width="400" height="400"></canvas>
</div>
<div class="text-container">
<p>
The collected dataset consists of posts and comments from Instagram and Facebook related to four hashtags: '#publicsavings', '#publicemployeesrights', '#savingmeasures', and '#efficiencypackage'. It includes details such as post text, sentiment, intent, language, and engagement metrics. The main dataset captures a variety of public opinions, while the hashtags dataset connects these opinions to specific hashtags.</p>
</div>
</div>
<h2>What citizens think</h2>
<div class="analysis-step">
<div class="text-container">
<p>
Sentiment analysis of the posts shows a mix of positive, negative, and neutral reactions to the new austerity measures. Overall, there is a noticeable trend of concern and dissatisfaction among citizens, but some positive sentiments indicate support for the measures’ potential long-term benefits.
</p>
</div>
<div class="chart-container">
<canvas id="sentimentChart"></canvas>
</div>
</div>
<div class="box-container" style="display: flex; justify-content: space-between;">
<div class="box" style="flex: 1; margin-right: 20px; padding: 20px; background-color: #fafafa; border: 1px solid #b1afaf; border-radius: 10px;">
<h4>Compliments</h4>
<ul>
<li>
<strong>Efforts to Reduce Expenditures:</strong> Some citizens appreciate the efforts to reduce unnecessary government expenditures.
</li>
<br>
<li>
<strong>Increased Efficiency:</strong> Positive comments often mention the potential for increased efficiency and productivity in the public sector.
</li>
<br>
<li>
<strong>Economic Stability:</strong> There is support for long-term economic stability that these measures might bring.
</li>
</ul>
</div>
<div class="box" style="flex: 1; padding: 20px; background-color: #fafafa; border: 1px solid #b1afaf; border-radius: 10px;">
<h4>Complaints</h4>
<ul>
<li>
<strong>Insufficient Support:</strong> Citizens express frustration about the lack of sufficient government support during austerity.
</li>
<br>
<li>
<strong>Impact on Public Services:</strong> Many posts highlight concerns about the negative impact on public services and employee rights.
</li>
<br>
<li>
<strong>Unfair Targeting:</strong> There is a strong sentiment that the measures are unfairly targeting lower-income groups.
</li>
</ul>
</div>
</div>
<h2>What is discussed</h2>
<div class="analysis-step">
<div class="chart-container">
<div id="wordcloud" style="width: 600px; height: 400px;"></div>
</div>
<div class="text-container">
<p>
Co-occurring hashtags reveal additional topics of interest and trending discussions:
<ul>
<li>
<strong>#economicsustainability:</strong>Citizens discuss the broader economic impact of the measures.
</li>
<br>
<li>
<strong>#governmentaccountability:</strong>There is a call for greater transparency and accountability in how the measures are implemented.
</li>
<br>
<li>
<strong>#publicserviceefficiency:</strong> Discussions about improving efficiency in public services are prevalent and trending.
</li>
</ul>
</p>
</div>
</div>
<div class="analysis-step">
<div class="text-container">
<p>
Trending key phrases in the data highlight the main themes of public discussion:
<ul>
<li>
<strong>Public sector cuts:</strong> Frequent mentions of public austerity reflect widespread awareness and concern about government spending cuts.
</li>
<br>
<li>
<strong>Employee rights:</strong>Many posts focus on the rights of public sector employees amidst austerity.
</li>
<br>
<li>
<strong>Economic impact:</strong> Citizens are concerned about the broader economic impact of these measures.
</li>
</ul>
These key phrases underscore the need for policymakers to address public concerns transparently and ensure that austerity measures are implemented fairly and effectively.
</p>
</div>
<div class="chart-container">
<canvas id="keywordsChart" width="800" height="600"></canvas>
</div>
</div>
<h2>Authorities Criticized</h2>
<div class="analysis-step">
<div class="text-container">
<p>
Analysis of the data reveals criticism of key authorities and institutions involved in implementing austerity measures:
<ul>
<li>
<strong>Ministry of Treasury and Finance</strong> Criticized for harsh economic measures and lack of effective communication.
</li>
<br>
<li>
<strong>President</strong> Seen as out of touch with public needs and pushing harmful policies.
</li>
<br>
<li>
<strong>AKP (Justice and Development Party):</strong> Criticized for overall economic policies and implementation of austerity measures.
</li>
<br>
<li>
<strong>Government Units and Officials:</strong> Viewed as responsible for negative impacts on public services and lack of fairness.
</li>
<br>
<li>
<strong>Unions and Bureaus:</strong> Highlight the organized resistance and demand for fair treatment and transparency.
</li>
</ul>
These key phrases underscore the need for policymakers to address public concerns transparently and ensure that austerity measures are implemented fairly and effectively.
</p>
</div>
</div>
<h2>To take an action</h2>
<div class="analysis-step">
<div class="suggestions">
<div class="suggestion-item">
<h4>Enhance Transparency and Communication</h4>
<p></p>
</div>
<div class="suggestion-item">
<ul>
<li>
<strong>Clear Information:</strong> Authorities should provide clear and detailed information about the necessity of the austerity measures and the expected outcomes.
</li>
<br>
<li>
<strong>Build Trust:</strong> This can help build public trust and reduce misinformation.
</li>
</ul>
</div>
<div class="suggestion-item">
<h4>Implement Targeted Support</h4>
<p></p>
</div>
<div class="suggestion-item">
<ul>
<li>
<strong>Support Programs:</strong> Develop targeted support programs for the most affected groups, particularly lower-income citizens, to mitigate the negative impacts of the austerity measures.
</li>
<br>
<li>
<strong>Social Services:</strong> This can include financial aid, job training, and other social services.
</li>
</ul>
</div>
<div class="suggestion-item">
<h4>Engage with Public Sector Employees</h4>
<p></p>
</div>
<div class="suggestion-item">
<ul>
<li>
<strong>Address Concerns:</strong> Increase engagement with public sector employees by addressing their concerns and improving morale during this transition period.
</li>
<br>
<li>
<strong>Maintain Productivity:</strong> Regular consultations, feedback mechanisms, and support initiatives can help maintain productivity and ensure smoother implementation of the measures.
</li>
</ul>
</div>
</div>
</div>
<script src="path/to/ubold.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
<script src="js/platformDist.js"></script>
<script src="js/sentimentDist.js"></script>
<script src="js/hashtagCloud.js"></script>
<script src="js/keywordDist.js"></script>
<script>
function downloadPDF() {
const { jsPDF } = window.jspdf;
const container = document.getElementById('report-content');
const pdf = new jsPDF('p', 'pt', 'a4');
const pdfWidth = pdf.internal.pageSize.getWidth();
const pdfHeight = pdf.internal.pageSize.getHeight();
const margin = 40;
const pageHeight = pdfHeight - margin * 2;
html2canvas(container, { scale: 2, useCORS: true, allowTaint: true }).then(canvas => {
const imgData = canvas.toDataURL('image/png');
const imgWidth = canvas.width;
const imgHeight = canvas.height;
const imgPageHeight = (imgHeight * pdfWidth) / imgWidth;
let position = margin;
if (imgPageHeight <= pageHeight) {
pdf.addImage(imgData, 'PNG', margin, margin, pdfWidth - margin * 2, imgPageHeight - margin * 2);
} else {
const totalPages = Math.ceil(imgHeight / (imgWidth / pdfWidth * pageHeight));
for (let i = 0; i < totalPages; i++) {
const canvasPosition = -(pageHeight * i);
if (i !== 0) {
pdf.addPage();
}
pdf.addImage(imgData, 'PNG', margin, canvasPosition + margin, pdfWidth - margin * 2, imgPageHeight - margin * 2);
}
}
pdf.save('report.pdf');
});
}
</script>
</body>
</html>