-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturnierkoffer.html
388 lines (370 loc) · 19.6 KB
/
turnierkoffer.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
<html>
<head><script src="localforage.js"></script>
<script>console.log('localforage is: ', localforage);</script>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script type="text/javascript">
function SetValue(id) {
localforage.getItem(id, function(err, value) {
console.log("id=" + id + ", value=" + value);
document.getElementById(id).checked = value;
SetHideableAreas(id, value ? "block" : "none");
});
}
function SetHideableAreas(name, value) {
var i = 1;
while (true) {
var key = name + i + "HideableArea";
var element = document.getElementById(key);
if (element === null)
break;
console.log("key=" + key + ", value=" + value);
element.style.display = value;
var members = element.getAttribute("data-members");
if (members !== null) {
var membersArray = members.split(",");
for (var j = 0; j < membersArray.length; j++) {
console.log("j=" + j + ", member=" + membersArray[j]);
var memberElement = document.getElementById(membersArray[j]);
if (value === "none")
memberElement.checked = false;
if (memberElement.type === "checkbox")
CheckBoxShowHide(memberElement);
else if (memberElement.type === "radio")
RadioButtonShowHide(memberElement);
}
}
i++;
}
}
function CheckBoxShowHide(element) {
console.log("element.name=" + element.name + ", checked=" + element.checked);
localforage.setItem(element.name, element.checked);
SetHideableAreas(element.name, element.checked ? "block" : "none");
}
function RadioButtonShowHide(element) {
var elements = document.getElementsByName(element.name);
for (var j = 0; j < elements.length; j++) {
console.log("j=" + j + ", id=" + elements[j].id);
var memberElement = document.getElementById(elements[j].id);
localforage.setItem(memberElement.id, memberElement.checked);
SetHideableAreas(memberElement.id, memberElement.checked ? "block" : "none");
}
}
function reset_all_values() {
localforage.clear();
window.location.reload();
}
window.onload = function() {
// SetValue("Disco");
SetValue("Sun");
SetValue("Rain");
SetValue("Cold");
SetValue("Money");
SetValue("Passport");
SetValue("Food");
SetValue("Sleeping");
SetValue("Glasses");
SetValue("Hurt");
SetValue("Injured");
SetValue("Drugs");
SetValue("Alcohol");
SetValue("SmartPhone");
SetValue("Captain");
SetValue("Hair");
SetValue("Sweets");
SetValue("Sleep");
SetValue("Shave");
SetValue("Navi");
SetValue("Games");
SetValue("Chair");
SetValue("Plugs");
SetValue("List");
SetValue("Treasurer");
SetValue("Boobs");
SetValue("Party");
SetValue("Swim");
SetValue("Insects");
SetValue("Thing");
SetValue("DoorOut");
SetValue("DoorIn");
SetValue("SurfaceGrass");
SetValue("SurfaceSand");
SetValue("SurfaceIndoor");
SetValue("HousingCamping");
SetValue("HousingHotel");
SetValue("HousingGym");
document.getElementById("reset_all")
.onclick = reset_all_values;
}
</script>
</head>
<body>
<h1>Turnierkoffer</h1>
<small>(kann auch für Taschen und Rucksäcke verwendet werden)</small><br><br>
Wir gehen davon aus, dass ihr schon etwas anhabt, wenn ihr auf das Turnier fahrt.<br><br>
<table>
<tbody><tr valign="top">
<td style=";width:300px;text-align:top;">
<form name="Form">
<!-- <label><input type="checkbox" name="Disco" id="Disco" onclick="CheckBoxShowHide(this)">
mit Disc-o-Fever</label><br> -->
<label><input type="radio" name="Door" id="DoorOut" onclick="RadioButtonShowHide(this)">
draußen</label>
<label><input type="radio" name="Door" id="DoorIn" onclick="RadioButtonShowHide(this)">
drinnen</label><br>
<div id="DoorOut1HideableArea" style="display:none" data-members="Sun,Rain,Cold">
<label><input type="checkbox" name="Sun" id="Sun" onclick="CheckBoxShowHide(this)">
sonnig</label>
<label><input type="checkbox" name="Rain" id="Rain" onclick="CheckBoxShowHide(this)">
regnerisch</label>
<label><input type="checkbox" name="Cold" id="Cold" onclick="CheckBoxShowHide(this)">
kalt</label><br>
</div>
<br>
<label><input type="radio" name="Surface" id="SurfaceGrass" onclick="RadioButtonShowHide(this)">
Gras (Kunstrasen)</label><br>
<label><input type="radio" name="Surface" id="SurfaceSand" onclick="RadioButtonShowHide(this)">
Sand</label>
<div id="DoorIn1HideableArea" style="display:none" data-members="SurfaceIndoor">
<label><input type="radio" name="Surface" id="SurfaceIndoor" onclick="RadioButtonShowHide(this)">
Halle</label>
</div>
<br>
<br>
<label><input type="checkbox" name="Money" id="Money" onclick="CheckBoxShowHide(this)">
im Nicht-€-Ausland</label><br>
<div id="Money1HideableArea" style="display:none" data-members="Passport">
<label><input type="checkbox" name="Passport" id="Passport" onclick="CheckBoxShowHide(this)">
im Nicht-EU-Ausland</label><br>
</div>
<label><input type="checkbox" name="Food" id="Food" onclick="CheckBoxShowHide(this)">
es gibt was zum Essen (Frühstück)</label><br>
<label><input type="checkbox" name="Sleeping" id="Sleeping" onclick="CheckBoxShowHide(this)">
mit Übernachtung</label><br>
<div id="Sleeping1HideableArea" style="display:none" data-members="HousingCamping,HousingHotel,HousingGym">
<label><input type="radio" name="Housing" id="HousingCamping" onclick="RadioButtonShowHide(this)">
Zelt</label>
<label><input type="radio" name="Housing" id="HousingHotel" onclick="RadioButtonShowHide(this)">
Ho(s)tel</label>
<label><input type="radio" name="Housing" id="HousingGym" onclick="RadioButtonShowHide(this)">
Schlafhalle</label><br><br>
</div>
<label><input type="checkbox" name="Glasses" id="Glasses" onclick="CheckBoxShowHide(this)">
Brillenträger</label><br>
<label><input type="checkbox" name="Hurt" id="Hurt" onclick="CheckBoxShowHide(this)">
Wehwehchen</label><br>
<label><input type="checkbox" name="Injured" id="Injured" onclick="CheckBoxShowHide(this)">
Invalide</label><br>
<label><input type="checkbox" name="Drugs" id="Drugs" onclick="CheckBoxShowHide(this)">
drogenabhängig</label><br>
<label><input type="checkbox" name="Alcohol" id="Alcohol" onclick="CheckBoxShowHide(this)">
<s>Alkoholiker</s> trinkfest</label><br>
<label><input type="checkbox" name="SmartPhone" id="SmartPhone" onclick="CheckBoxShowHide(this)">
Smartphoner</label><br>
<label><input type="checkbox" name="Captain" id="Captain" onclick="CheckBoxShowHide(this)">
Chef-Stratege</label><br>
<label><input type="checkbox" name="Hair" id="Hair" onclick="CheckBoxShowHide(this)">
lange Haare</label><br>
<label><input type="checkbox" name="Sweets" id="Sweets" onclick="CheckBoxShowHide(this)">
Naschkatze</label><br>
<label><input type="checkbox" name="Sleep" id="Sleep" onclick="CheckBoxShowHide(this)">
Schlafmütze</label><br>
<label><input type="checkbox" name="Shave" id="Shave" onclick="CheckBoxShowHide(this)">
Rasierfreund</label><br>
<label><input type="checkbox" name="Navi" id="Navi" onclick="CheckBoxShowHide(this)">
orientierungslos</label><br>
<label><input type="checkbox" name="Games" id="Games" onclick="CheckBoxShowHide(this)">
Spielkind</label><br>
<label><input type="checkbox" name="Chair" id="Chair" onclick="CheckBoxShowHide(this)">
alter Mann ;-)</label><br>
<label><input type="checkbox" name="Plugs" id="Plugs" onclick="CheckBoxShowHide(this)">
leichter Schlaf</label><br>
<label><input type="checkbox" name="List" id="List" onclick="CheckBoxShowHide(this)">
durchorganisiert</label><br>
<label><input type="checkbox" name="Treasurer" id="Treasurer" onclick="CheckBoxShowHide(this)">
Kassenwart</label><br>
<label><input type="checkbox" name="Boobs" id="Boobs" onclick="CheckBoxShowHide(this)">
Brüsteträger(in)</label><br>
<label><input type="checkbox" name="Party" id="Party" onclick="CheckBoxShowHide(this)">
(Motto-)Party</label><br>
<label><input type="checkbox" name="Swim" id="Swim" onclick="CheckBoxShowHide(this)">
am Wasser</label><br>
<div id="Swim1HideableArea" style="display:none" data-members="Insects">
<label><input type="checkbox" name="Insects" id="Insects" onclick="CheckBoxShowHide(this)">
am See/Fluss</label><br>
</div>
<label><input type="checkbox" name="Thing" id="Thing" onclick="CheckBoxShowHide(this)">
das eine Ding da</label>
</form>
</td>
<td style="text-align:top;">
Was nehm ich auf das Turnier mit?
<h4>Essentielles</h4>
<input type="checkbox" name="irrelevant" value="irrelevant"> Scheibe<br>
<!-- <div id="Disco1HideableArea" style="display:none"> -->
<!-- <label><input type="checkbox" name="irrelevant" value="irrelevant"> Disc-o-Anzug</label><br> -->
<!-- </div> -->
<div id="SurfaceGrass1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Stollenschuhe (Multinocken)</label><br>
</div>
<div id="SurfaceIndoor1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Turnschuhe</label><br>
</div>
<div id="Sleeping4HideableArea" style="display:none">
<div id="HousingCamping1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Zelt</label><br>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Schlafsack, Isomatte</label><br>
</div>
<div id="HousingGym1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Schlafsack, Isomatte</label><br>
</div>
</div>
<div id="Passport1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> (gültigen!) REISEPASS!</label><br>
</div>
<h4>ausm Schrank</h4>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Sporthose</label><br>
<div id="Swim2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Badehose/Badeanzug/Bikini</label><br>
</div>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Socken, Unterwäsche</label><br>
<div id="SurfaceSand1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Sandsocks</label><br>
</div>
<div id="Boobs1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Sport-BH</label><br>
</div>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> 2 Mannschafts-Trikots</label><br>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> hell</label><br> <label><input type="checkbox" name="irrelevant" value="irrelevant"> dunkel</label><br>
<div id="Cold3HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Thermoshirt, Tight, Trainingshose</label><br>
</div>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Pullover</label><br>
<div id="Rain1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Regenjacke (Regenschirm?)</label><br>
</div>
<div id="Party1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> vielleicht was Schickeres (Kostüm, Verkleidung, Accessoires,...)</label><br>
</div>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Handtuch (<a href="https://en.wikipedia.org/wiki/Phrases_from_The_Hitchhiker%27s_Guide_to_the_Galaxy#Knowing_where_one's_towel_is">warum</a>?)</label><br>
<div id="Sun2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Hut/Tuch/Kappe</label><br>
</div>
<div id="Rain2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Kappe</label><br>
</div>
<div id="Cold1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Mütze</label><br>
</div>
<div id="SurfaceIndoor2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Knieschoner</label><br>
</div>
<div id="Sleeping2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Nachthemd</label><br>
</div>
<h4>ausm Bad</h4>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Duschgel (Shampoo)</label><br>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> <del>Badeschlappen</del> Adiletten!</label><br>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Deo/Aftershave/Parfum</label><br>
<div id="Sleeping3HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Zahnbürste, Zahnpasta</label><br>
</div>
<div id="Sun1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Sonnencreme</label><br>
</div>
<div id="Insects1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Mückenspray</label><br>
</div>
<div id="Glasses1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Kontaktlinsen, Brillenetui</label><br>
</div>
<div id="Hurt1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Bepanthen, Tape, Pflaster</label><br>
</div>
<div id="Injured1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Voltaren, Finalgon</label><br>
</div>
<div id="Drugs1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Ibuprofen</label><br>
</div>
<div id="Hair1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Kamm/Bürste, Haargummi(s)</label><br>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Föhn</label><br>
</div>
<div id="Shave1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Rasierer (Rasierschaum)</label><br>
</div>
<h4>aus der Küche</h4>
<div id="Food1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Teller, Becher</label><br>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Messer, Gabel, Löffel</label><br>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Tupperdose/Verpackung (für geschmierte Brötchen)</label><br>
</div>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Trinkflasche</label><br>
<h4>sonstiges</h4>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Geld (für Startgebühr, Essen, ...)</label><br>
<div id="Money2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Devisen (Dollar, Franken, Kronen, ...)</label><br>
</div>
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Tüte für Schmutzwäsche</label><br>
<div id="Alcohol1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> ein paar Kästen Bier, Duschsekt, Wodka, ...</label><br>
</div>
<div id="SmartPhone1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Ladekabel, Zusatzakku</label><br>
</div>
<div id="Passport2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Steckdosenadapter</label><br>
</div>
<div id="Sun3HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Sonnenbrille</label><br>
</div>
<div id="Navi1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Anfahrtsbeschreibung/<a href="http://www.garmin.de/">Navi</a></label><br>
</div>
<div id="Captain1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Taktikboard, Spielzug-Zettel</label><br>
</div>
<div id="HousingCamping2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Stirnlampe/Taschenlampe</label><br>
</div>
<div id="Sweets1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Müslirieger, Schokolade, Gummibärchen</label><br>
</div>
<div id="Hurt2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Magnesium/Bananen</label><br>
</div>
<div id="Hurt3HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Black-Roll</label><br>
</div>
<div id="Sleep1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> kleines Kopfkissen</label><br>
</div>
<div id="Cold2HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Handschuhe</label><br>
</div>
<div id="Games1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Spielkarten, <a href="http://www.wurstquartett.de/">Wurstquartett</a>, <a href="http://de.wikipedia.org/wiki/Zoff_im_Zoo">Zoff im Zoo</a>, <a href="http://de.wikipedia.org/wiki/Cafe_International">Café International</a>, <a href="http://de.wikipedia.org/wiki/6_nimmt">6 nimmt</a>, Tablet, ...</label><br>
</div>
<div id="Chair1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Klappstuhl/Dreibein</label><br>
</div>
<div id="Plugs1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Ohrstöpsel</label><br>
</div>
<div id="List1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> was auf der Todo-Liste/in den Mails steht</label><br>
</div>
<div id="Treasurer1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> Quittungsblock</label><br>
</div>
<div id="Thing1HideableArea" style="display:none">
<label><input type="checkbox" name="irrelevant" value="irrelevant"> <input type="text" name="thing" value="" placeholder="Playboy"></label><br>
</div>
</td>
</tr>
</tbody></table>
<button type="button" id="reset_all">Alles zurücksetzen</button><br><br>
<a href="mailto:turnierkoffer@stefanhorter.de">Vorschläge?</a>
</body>
</html>