-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
300 lines (267 loc) · 12.4 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Ergebnisse der Bundestagswahl 2017: Karlsruher Wahlanzeiger</title>
<meta name="description" content="Analysen und Visualisierungen der Daten zur Bundestagswahl 2017 in Karlsruhe. Größte Änderungen, Wechselwähler, Erststimmen und mehr Statistiken.">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@codeforka">
<meta name="twitter:title" content="Ergebnisse der Bundestagswahl 2017: Karlsruher Wahlanzeiger">
<meta name="twitter:description" content="Analysen und Visualisierungen der Daten zur Bundestagswahl 2017 in Karlsruhe. Größte Änderungen, Wechselwähler, Erststimmen und mehr Statistiken.">
<meta name="twitter:image" content="">
<meta property="og:type" content="article">
<meta property="og:title" content="Ergebnisse der Bundestagswahl 2017: Karlsruher Wahlanzeiger">
<meta property="og:site_name" content="OK Lab Karlsruhe">
<meta property="og:url" content="https://codeforkarlsruhe.github.io/wahlkarte/">
<meta property="og:image" content="">
<meta property="article:published_time" content="2017-09-24">
<meta property="article:author" content="https://www.facebook.com/codeforkarlsruhe/">
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="//d3js.org/topojson.v1.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="vendor/bootstrap-4.0.0-beta/dist/js/bootstrap.min.js"></script>
<script src="vendor/leaflet.js"></script>
<script src="vendor/bluebird.min.js"></script>
<script type="application/javascript" src="constants.js"></script>
<script type="application/javascript" src="src/global.js"></script>
<script type="application/javascript" src="src/szenarien/farbermittlung.js"></script>
<script type="application/javascript" src="src/szenarien/SzenarienConst.js"></script>
<script type="application/javascript" src="src/szenarien/szenarien.js"></script>
<script type="application/javascript" src="src/extendedTooltip/extendedTooltip.js"></script>
<script type="application/javascript" src="src/tooltip/tooltip.js"></script>
<script type="application/javascript" src="wahlkarte.js"></script>
<link rel="stylesheet" href="vendor/leaflet.css"/>
<link rel="stylesheet" href="vendor/bootstrap-4.0.0-beta/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="src/tooltip/tooltip.css">
<link rel="stylesheet" href="src/extendedTooltip/extendedTooltip.css">
<style>
html {
padding: 0;
}
body {
padding: 50px 0 0 0;
}
a {color: rgba(255,255,255,0.7);}
a:hover {color: rgba(255,255,255,1);}
.modal-body a {color: #1abc9c;}
#map {
width: 100%;
cursor: pointer;
}
@media (max-width: 991px) {
#map {
height: 75vh;
}
}
@media (min-width: 992px) {
#map {
height: calc(100vh - 50px);
position: fixed;
}
}
.map-column {
padding: 0;
}
.text-column {
padding: 0;
background-color: #1abc9c;
}
.carousel-inner {
width: 100%;
height: calc(100vh - 50px);
}
@media (max-width: 991px) {
.carousel-inner {
height: auto;
min-height: 30vh;
}
}
.carousel-item {
padding: 20px 50px 30px 50px;
}
.carousel-control-next,
.carousel-control-prev {
/* Overwrite Bootstrap's standard 15% with the
padding of .carousel-item */
width: 50px;
}
.wahl-carousel-control {
align-items: flex-start;
padding-top: 40px;
}
.wahl-carousel-caption {
color: #fff;
}
.flex{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
.wahlbezirk, .district {
opacity: 0.5;
}
.wahlbezirk:hover, .district:hover
{
opacity: 1;
}
#aboutModal img {
width: 200px;
height: 200px;
float: left;
}
#navbar .container {
padding-left: 0;
padding-right: 0;
max-width: none;
}
#navbar .nav-item {
margin-left: 20px;
}
#aboutButton {
margin-left: 20px;
}
@media (max-width: 670px) {
#navbar .navbar-brand {
font-size: 15px;
}
#navbar .nav-item {
margin-left: 12px;
}
#aboutButton {
margin-left: 0;
}
#navbar .subtitle {
display: none;
}
}
#navbar .nav-item:first-child {
margin-left: 0;
}
@media (max-width: 991px) and (min-height: 425px) {
#extended-tooltip {
position: absolute;
right: 20px;
left: auto;
top: 70px;
bottom: auto;
}
}
@media (max-width: 991px) and (max-height: 424px) {
#extended-tooltip {
position: absolute;
right: 110vw;
left: auto;
}
}
@media (max-width: 524px) {
#extended-tooltip {
position: absolute;
right: 110vw;
left: auto;
}
}
</style>
</head>
<body>
<nav id="navbar" class="navbar navbar-light bg-light fixed-top justify-content-between flex-nowrap flex-row">
<div class="container">
<span class="navbar-brand"><span class="title">Karlsruher Wahlanzeiger</span><span class="subtitle">: Bundestagswahl 2017</span></span>
<ul class="nav navbar-nav flex-row float-right">
<li class="nav-item">
<a id="twitterButton" class="nav-link" href="#" target="_blank" title="Auf Twitter teilen">
<span class="fa fa-lg fa-twitter" aria-hidden="true"></span>
<span class="sr-only">Auf Twitter teilen</span>
</a>
</li>
<li class="nav-item">
<a id="facebookButton" class="nav-link" href="#" target="_blank" title="Auf Facebook teilen">
<span class="fa fa-lg fa-facebook" aria-hidden="true"></span>
<span class="sr-only">Auf Facebook teilen</span>
</a>
</li>
<li class="nav-item">
<a id="whatsappButton" class="nav-link" title="Auf WhatsApp teilen">
<span class="fa fa-lg fa-whatsapp" aria-hidden="true"></span>
<span class="sr-only">Auf WhatsApp teilen</span>
</a>
</li>
<li class="nav-item">
<a id="aboutButton" class="nav-link" data-toggle="modal" href="#aboutModal" title="Über diese Seite">
<span class="fa fa-lg fa-info-circle" aria-hidden="true"></span>
<span class="sr-only">Info</span>
</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="map-column col-12 col-lg-9">
<div id="map"></div>
</div>
<div class="text-column col-12 col-lg-3">
<div id="szenarien-carousel" class="carousel slide" data-ride="carousel" data-interval="false">
<ol id="indicators" class="carousel-indicators"></ol>
<div id="innerCarousel" class="carousel-inner"></div>
<a class="wahl-carousel-control carousel-control-prev" href="#szenarien-carousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="wahl-carousel-control carousel-control-next" href="#szenarien-carousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
<div id="extended-tooltip">
<div id="extended-tooltip-header">
<h5 id="extended-tooltip-district-name"> </h5>
<span onclick="closeInfoPanel()" class="extended-tooltip-close-button"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
<ul class="nav nav-pills mb-2 mt-2" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link" id="pills-erststimme-tab" data-toggle="pill" href="#pills-erststimme" role="tab" aria-controls="pills-erststimme" aria-expanded="true">Erststimme</a>
</li>
<li class="nav-item">
<a class="nav-link active" id="pills-zweitstimme-tab" data-toggle="pill" href="#pills-zweitstimme" role="tab" aria-controls="pills-zweitstimme" aria-expanded="true">Zweitstimme</a>
</li>
</ul>
</div>
<div id="extended-tooltip-detail-district-info">
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane fade" id="pills-erststimme" role="tabpanel" aria-labelledby="pills-erststimme-tab">...</div>
<div class="tab-pane fade show active" id="pills-zweitstimme" role="tabpanel" aria-labelledby="pills-zweitstimme-tab">...</div>
</div>
</div>
</div>
<div id="tool-tip">
</div>
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog" aria-labelledby="aboutModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="aboutModalLabel">Über diese Seite</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<a href="https://codefor.de/karlsruhe"><img src="img/codeforka.png"></a>
<p>Ein Projekt des <a href="https://codefor.de/karlsruhe">Open Knowledge Lab Karlsruhe</a>, inspiriert von der <a href="http://berlinwahlkarte2016.morgenpost.de/">Berlinwahlkarte</a> der Berliner Morgenpost.</p>
<p>Den Quellcode findet ihr <a href="https://github.com/codeforkarlsruhe/wahlkarte">auf GitHub</a>.</p>
<p>Wir verwenden Daten der Stadt Karlsruhe, veröffentlicht in deren <a href="https://transparenz.karlsruhe.de">Transparenzportal</a> unter der <a href="https://www.govdata.de/dl-de/by-2-0">Datenlizenz Deutschland — Namensnennung — Version 2.0</a>.</p>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="vendor/bootstrap-4.0.0-beta/dist/js/bootstrap.min.js"></script>
</body>
</html>