-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·229 lines (159 loc) · 7.17 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
<!DOCTYPE html>
<html lang="en">
<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, 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 / PREFERENCES (Javascript) -->
<script type="text/javascript" src="data/definition.js"></script>
<!-- Mat-o-Wahl JAVASCRIPT und CSS - dynamisch eingebunden auf Basis DEFINITION.JS -->
<script type="text/javascript">
document.writeln("<link rel='stylesheet' type='text/css' href='styles/"+design+".css' />");
document.writeln("<script type='text/javascript' src='i18n/i18n_"+language+".js'><"+String.fromCharCode(47)+"script>");
// $.getScript( "i18n/i18n_"+language+".js", function( data, textStatus, jqxhr ){ })
// -> wäre eleganter aber lädt zu langsam / unzuverlässig
</script>
<!-- Mat-o-Wahl CSS -->
<link rel="stylesheet" type="text/css" href="styles/speechbubble.css">
<link rel="stylesheet" type="text/css" href="styles/bootstrap-flat-toggle-switch.css">
<!-- 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>
<!-- Mat-o-Wahl JAVASCRIPT - Addon (optional) -->
<!--
<script type="text/javascript" src="extras/addon_results_textfilter_by_button.js"></script>
-->
</head>
<body>
<div class="container container-fluid theme-showcase">
<!-- 1. BESCHREIBUNG / DESCRIPTION -->
<div class="row">
<div class="col">
<div id="descriptionAddonTop">
<!-- Platzhalter / Placeholder -->
</div>
<div id="heading1">
<h1>Überschrift zur Wahl/Thema der Wahl <br /> Main Headline </h1>
</div>
<div id="heading2">
<h2>Unterüberschrift <br /> Second headline</h2>
</div>
<div id="explanation">
<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="content" class="bubble">
<p>
Frage(n) zu den verschiedenen Positionen an die Parteien bzw. Kandidaten.
<br /> Question(s) on the different party/candidate positions
</p>
</div>
<div id="descriptionAddonBottom">
<!-- Platzhalter / Placeholder -->
</div>
</div>
</div>
<!-- 2. ERGEBNISSE / RESULTS -->
<div class="row">
<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 id="resultsLong">
Detaillierte Ergebnisse / Resultate mit eigener Meinung in tabellarischer Form <br /> Table with results (long / detailed)
</div>
<div id="resultsAddonBottom">
<!-- Platzhalter / Placeholder -->
</div>
</div>
</div>
<!-- 3. BUTTONS -->
<div class="row" id="voting_answers"></div>
<div class="row" id="voting">
<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-outline-dark btn-lg btn-block">[↷] Skip</button>
</div>
<div class="col">
<button type="button" id="votingDouble" onclick="fnChangeVotingDouble()" class="btn btn-outline-dark btn-lg btn-block">[x2] Important</button>
</div>
</div>
<!-- 4. FORTSCHRITTSZÄHLER / PROGRESS COUNTER -->
<div class="progress" id="progress">
<div class="progress-bar bg-secondary" id="progress-bar" style="width:10%"></div>
</div>
<div class="row">
<div class="col">
<div id="jumpToQuestion" style="display:none; width:100%">
Gehe direkt zu Frage Nummer XY.
Jump to Question XY directly
</div>
</div>
</div>
<!-- 5. CHECKBOX: STATISTIK j/n / STATISTICS y/n -->
<div class="row" id="keepStats">
<div class="col">
<label class="switch">
<input type="checkbox" id="keepStatsCheckbox" />
<span class="slider"></span>
</label>
<span id="keepStatsQuestion">
Statistik erlauben? <br /> Allow statistics?
</span>
</div>
</div>
<!-- 6. FUSSZEILE: IMPRESSUM, NEUSTART, SOCIAL MEDIA / FOOTER: IMPRINT, RESTART, SOCIAL MEDIA -->
<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>
</div>
<script type="text/javascript">
$(document).ready(function() {
fnStart();
});
</script>
</body>
</html>