-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
executable file
·352 lines (253 loc) · 12.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
<!DOCTYPE html>
<html lang="de">
<head>
<title>Mat-O-Wahl</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="Mat-O-Wahl, MatOWahl, Demokratie, Wahlen, elections, vote, Wahlbeteiligung, Fragebogen, Antworten, Positionen, Entscheidung, Hilfe, Politik, Vereine, e.V., Mitwirkung, Bürgermeister, Stadtrat, Kommunalwahl, Fachschaftsrat, Studentenrat, StuRa, Studentenparlament, Studierendenparlament, StuPa, AStA, Kreisrat, Landrat, Volksabstimmung, Plebiszit, Klon, clone, Alternative, GPL, Open Source, JavaScript, Freeware, kostenlos"/>
<meta name="robots" content="index, follow" />
<meta name="language" content="de" />
<meta name="Content-Language" content="de" />
<meta name="author" content="Mathias Steudtner" />
<meta name="description" content="Mat-O-Wahl" />
<!-- BOOTSTRAP + JQUERY --- START -->
<!-- ONLINE (deactivated) - Compiled and minified Bootstrap CSS -->
<!--
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
-->
<!-- LOCAL COPY (alternative) - Compiled and minified Bootstrap CSS -->
<link rel="stylesheet" href="system/bootstrap4/css/bootstrap.min.css">
<!-- ONLINE (deactivated) - Compiled and minified Bootstrap + jQuery JavaScript -->
<!--
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
-->
<!-- LOCAL COPY (alternative) - Compiled and minified Bootstrap + jQuery JavaScript -->
<script src="system/jquery3/jquery-3.4.1.min.js"></script>
<script src="system/bootstrap4/js/bootstrap.min.js"></script>
<!-- BOOTSTRAP + JQUERY --- END -->
<!-- Mat-o-Wahl EINSTELLUNGEN / SETTINGS (Javascript) -->
<script type="text/javascript" src="data/definition.js"></script>
<!-- Mat-o-Wahl JAVASCRIPT - immer / always -->
<script type="text/javascript" src="system/jquery.csv-0.8.9.min.js"></script>
<script type="text/javascript" src="system/general.js"></script>
<script type="text/javascript" src="system/output.js"></script>
<!-- Erweiterte Einstellungen auf Basis DEFINITION.JS - dynamisch eingebunden
Advanced Settings based on DEFINITION.JS - dynamically included -->
<script>
// Mat-o-Wahl CSS Styles
for (i = 0; i<= design.length-1; i++) {
document.writeln("<link rel='stylesheet' type='text/css' href='styles/"+design[i]+"' />");
}
// Mat-o-Wahl Extras / Add-ons
for (i = 0; i<= addons.length-1; i++) {
document.writeln(' <script type="text/javascript" src="'+addons[i]+'"><\/script> ');
}
// Mat-o-Wahl Sprache / Language / i18n
document.writeln("<script type='text/javascript' src='i18n/i18n_"+language+".js'><\/script>");
// $.getScript( "i18n/i18n_"+language+".js", function( data, textStatus, jqxhr ){ })
// -> wäre eleganter aber lädt zu langsam / unzuverlässig
</script>
</head>
<body>
<div class="container container-fluid theme-showcase">
<!-- 1. BESCHREIBUNG / DESCRIPTION -->
<main>
<section id="sectionDescription">
<!--
<div class="row border border-dark rounded" style="height: 60vh; text-overflow: clip; overflow: auto; margin-top: 1.0em;">
-->
<div class="row border border-dark rounded">
<div class="col align-self-center">
<div id="descriptionAddonTop">
<!-- Platzhalter / Placeholder -->
</div>
<div id="descriptionHeading1">
<h1>Überschrift zur Wahl/Thema der Wahl <br /> Main Headline </h1>
</div>
<div id="descriptionHeading2">
<h2>Unterüberschrift <br /> Second headline</h2>
</div>
<div id="descriptionExplanation" class="lead">
<p style="color: red; font-size: 150%;">
DE: Wenn Sie das hier lesen können, dann haben Sie in der Schule aufgepasst und dann ist hier irgendetwas schief gelaufen.
<br/> Bitte laden Sie die Seite noch einmal neu.
<br /> Wenn die Meldung immer noch erscheint, muss wohl der Techniker informiert werden.
<br />
<br /> EN: If you can read this, you didn't sleep during school and something went wrong.
<br /> Please reload the page and try again.
<br /> If the message still appears, we have to call the technician.
</p>
<p>
Kurze Beschreibung der Wahl, wer wird gewählt, wann, warum, für wie lange, usw. <br /> Short (explaining) text on what's the election about
</p>
</div>
<div id="descriptionAddonBottom">
<!-- Platzhalter / Placeholder -->
</div>
</div>
</div>
<div class="row">
<div class="col">
<button type="button" class="btn btn-primary btn-lg float-right" onclick="fnHideWelcomeMessage()" id="descriptionButtonStart">Start-Button</button>
</div>
</div>
</section>
<!-- 2. FRAGEN / QUESTIONS -->
<section id="sectionShowQuestions">
<div class="row" tabindex="0" style="margin-top: 1.0em;">
<div class="col">
<div class="card border-dark mb-3 bg-transparent">
<div class="card-header" id="showQuestionsHeader">Header</div>
<div class="card-body">
<p class="card-text lead" id="showQuestionsQuestion">Frage(n) zu den verschiedenen Positionen an die Parteien bzw. Kandidaten.
<br /> Question(s) on the different party/candidate positions.</p>
</div>
</div>
<p>
</p>
</div>
</div>
</section>
<!-- 3. VOTING BUTTONS -->
<section id="sectionVotingButtons">
<div class="row">
<div class="col">
<button type="button" id="votingDouble" onclick="fnChangeVotingDouble()" class="btn btn-outline-dark btn-lg btn-block">[x2] Important</button>
</div>
<div class="col">
<button type="button" id="votingPro" class="btn btn-success btn-lg btn-block">[✔] Pro</button>
</div>
<div class="col">
<button type="button" id="votingNeutral" class="btn btn-warning btn-lg btn-block">[◯] Neutral</button>
</div>
<div class="col">
<button type="button" id="votingContra" class="btn btn-danger btn-lg btn-block">[✖] Contra</button>
</div>
<!-- Force next columns to break to new line (Bootstrap 4.4+) -->
<div class="w-100"></div>
<div class="col">
<button type="button" id="votingSkip" class="btn btn-secondary btn float-right">[↷] Skip</button>
</div>
</div>
</section>
</main>
<!-- 4. FORTSCHRITTSZÄHLER + NAVIGATION / PROGRESS BAR + NAVIGATION -->
<nav id="sectionNavigation">
<div class="row fixed-top" style="width: inherit; top: 0%; left: 50%; transform: translateX(-50%); visibility: hidden; display: none;">
<div class="col">
<div class="progress" style="height: 2px;">
<div class="progress-bar" id="progress-bar" style="width:10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div id="navigationJumpToQuestion" style="display:none; width:100%">
Gehe direkt zu Frage Nummer XY.
Jump to Question XY directly
</div>
</div>
</div>
</nav>
<!-- CHECKBOX: STATISTIK j/n / STATISTICS y/n -->
<!--
<div class="row" id="keepStats">
<div class="col">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="keepStatsCheckbox" />
<label class="custom-control-label" for="keepStatsCheckbox" id="keepStatsQuestion">
Statistik erlauben? <br /> Allow statistics?
</label>
</div>
</div>
</div>
-->
<!-- Bootstrap-Modal STATISTIK j/n / STATISTICS y/n -->
<div class="modal fade" id="statisticsModal" tabindex="-1" role="dialog" aria-labelledby="statisticsModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="statisticsModalLabel"> Modal TITLE </h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="statisticsModalBody">
Modal BODY
</div>
<div class="modal-footer">
<button type="button" id="statisticsModalButtonNo" class="btn btn-outline-dark" data-dismiss="modal">Close</button>
<button type="button" id="statisticsModalButtonYes" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!-- 2. ERGEBNISSE / RESULTS -->
<section id="sectionResults">
<div class="row" id="results">
<div class="col">
<div id="resultsAddonTop">
<!-- Platzhalter / Placeholder -->
</div>
<div id="resultsHeading">
Überschrift für die Ergebnisse/Resultate (ungenutzt) <br /> Headline for the results (unused)
</div>
<div id="resultsShort">
Ergebnisse / Resultate der Parteien in tabellarischer Form <br /> Table with results (short) - DOM / id = "resultsShortTable"
</div>
</div>
</div>
<!--
Auswahlknoepfe für die detaillierten Ergebnisse. Text in i18n.
Buttons for detailled resuts. Labels in i18n.
-->
<div class="row" id="resultsButtons">
<div class="col">
<button type="button" id="resultsButtonTheses" class="btn btn-secondary btn-block" onclick="$('#resultsByThesis').toggle(500); $('#resultsByParty').fadeOut(500); $('#resultsButtonTheses').addClass('btn-primary').removeClass('btn-secondary'); $('#resultsButtonParties').addClass('btn-secondary').removeClass('btn-primary');">[?] Show questions</button>
</div>
<div class="col">
<button type="button" id="resultsButtonParties" class="btn btn-secondary btn-block" onclick="$('#resultsByParty').toggle(500); $('#resultsByThesis').fadeOut(500); $('#resultsButtonTheses').addClass('btn-secondary').removeClass('btn-primary'); $('#resultsButtonParties').addClass('btn-primary').removeClass('btn-secondary');">[#] Show parties</button>
</div>
</div>
<div class="row">
<div class="col">
<div id="resultsByThesis">
Detaillierte Ergebnisse / Resultate mit eigener Meinung in tabellarischer Form <br /> Table with results (long / detailed)
</div>
<div id="resultsByParty">
Detaillierte Ergebnisse / Resultate mit eigener Meinung in tabellarischer Form <br /> Table with results (long / detailed)
</div>
<div id="resultsAddonBottom">
<!-- Platzhalter / Placeholder -->
</div>
</div>
</div>
</section>
<!-- FUSSZEILE: IMPRESSUM, NEUSTART, SOCIAL MEDIA / FOOTER: IMPRINT, RESTART, SOCIAL MEDIA -->
<footer id="sectionFooter">
<div class="row">
<div class="col">
<a class="btn btn-outline-dark btn-block btn-sm" role="button" href="system/imprint.html" target="_blank" id="imprint">Button Impressum / Legal</a>
</div>
<div class="col" >
<a class='btn btn-outline-dark btn-block btn-sm' role='button' href='index.html' id="restart">Button Neustart / Restart</a>
</div>
<div class="col">
<a class="btn btn-block btn-sm social-facebook" role='button' style='color:#fff' onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(location.href) + '&title='+encodeURIComponent(document.title), '_blank', 'location=yes,height=480,width=640,scrollbars=yes,status=yes'); return false;" title="Share on Facebook">
facebook</a>
</div>
<div class="col">
<a class="btn btn-block btn-sm social-twitter" role='button' onclick="window.open('https://twitter.com/share?url=' + encodeURIComponent(location.href) + '&title='+encodeURIComponent(document.title), '_blank', 'location=yes,height=480,width=640,scrollbars=yes,status=yes'); return false;" title="Share on Twitter">
Twitter</a>
</div>
</div>
</footer>
</div>
<script type="text/javascript">
$(document).ready(function() {
fnStart();
});
</script>
</body>
</html>