-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.html
71 lines (57 loc) · 1.92 KB
/
data.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Data</title>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0, minimum-scale=1.0"/>
<!-- build:css(.tmp) styles/data.css -->
<link rel="stylesheet" href="styles/data.css">
<!-- endbuild -->
</head>
<body>
{% include "partials/header.html" with { active: 'nachrichten' } %}
<div class="category container">
<a href="http://www1.wdr.de/nachrichten/landespolitik/landtagswahl/index.html">Landtagswahl 2017</a>
</div>
<article id="content" class="container">
<h1>Wörter der Wahl</h1>
<em>Wahlprogramme einmal anders</em>
<p>Zur NRW-Landtagswahl am 14. Mai haben wir gezählt, welche Wörter wie oft in den Wahlprogrammen vorkommen. Zu sehen sind die Top 30 Begriffe.</p>
<a href="index.html" title="Zum Daten-Tool (nicht barrierefrei)">Zur Anwendung</a>
{% set partyMap = {
all: "Alle Parteien (aggregiert)",
cdu: "CDU",
spd: "SPD",
gruene: "Grüne",
fdp: "FDP",
linke: "Linke",
piraten: "Piraten",
afd: "AFD"
} %}
{% for entry in lists %}
<h2>{{ partyMap[entry.party] }}</h2>
<table>
<thead>
<tr>
<th>Wort</th>
<th>Anzahl (abs.)</th>
<th>Anzahl (relativ zu Gesamtprogramm)</th>
</tr>
</thead>
<tbody>
{% for word in entry.words %}
<tr>
<td>{{ word.word }}</td>
<td>{{ word.count }}</td>
<td>{{ Math.round(word.share*10000)/100 }} %</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
</article>
{% include "partials/breadcrumb.html" %}
{% include "partials/footer.html" %}
{% include "partials/webtrekk.html" %}
</body>
</html>