forked from n2code/werwolf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·464 lines (457 loc) · 15.5 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
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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
<!DOCTYPE html>
<html manifest="werwolf.appcache" lang="de">
<!--@ TheNails Mörder-Spielleiter-App basierend auf Nikos Werwolf-Spielleiter-Web-App -->
<head>
<meta name="HandheldFriendly" content="true"/>
<meta name="MobileOptimized" content="320"/>
<meta name="viewport" content="width=320,initial-scale=1.0,target-densityDpi=145"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta charset="utf-8"/>
<title>Mörder-Spielleiter-App</title>
<style>
/* CSS-Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
:focus {
outline: 0;
}
body {
line-height: 1;
color: black;
background: white;
}
ol, ul {
list-style: none;
}
table {
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: "";
}
blockquote, q {
quotes: "" "";
}
/* ENDE CSS Reset */
body
{
font: 20px verdana, sans-serif;
width:320px;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
h1
{
color: #555555;
font-weight: bold;
text-shadow: 0 -1px 1px #000000;
text-align: center;
margin: 0px 0px 3px 0px;
font-size:1.2em;
font-weight:bold;
font-variant:small-caps;
}
h2
{
text-align: right;
margin-top:0px;
color:#555555;
font-size:1.3em;
font-weight:bold;
font-variant:small-caps;
}
h3
{
text-align: left;
margin-top:0px;
color:#666666;
font-size:1.0em;
font-weight:bold;
font-variant:small-caps;
}
fieldset
{
border:7px solid #999999;
border-radius:15px;
border-radius:15px;
background-color:#f0f8ff;
padding:5px;
padding-top:0px;
margin-bottom:10px;
margin-left:0px;
margin-right:0px;
}
hr
{
width:95%;
border:2px solid #999999;
}
select
{
border: 2px solid #AAAAAA;
padding: 4px 3px 3px 5px;
margin: 0;
font: inherit;
outline:none;
line-height: 1.1;
background: #DDDDDD;
-webkit-appearance:none;
border-radius: 10px;
}
ul
{
border: 2px solid #bbb;
box-shadow: 5px 5px 5px #888;
margin: 3px 10px 10px 3px;
background-color:#CCCCCC;
width:278px;
}
ol
{
list-style-type: decimal;
}
li
{
margin: 3px 3px 3px 3px;
padding: 2px 2px 2px 2px;
background-color:#EEEEEE;
overflow:hidden;
}
#spielerliste>li, #rollenliste>li, #auswahlanzeige>li
{
line-height:36px;
min-height:36px;
}
#ausgabeeinstellungen
{
text-align: center;
}
#ausgabeeinstellungen > p
{
font-size: 0.8em;
text-align: left;
}
#ausgabeeinstellungen > hr
{
width:90%;
border:1px solid #CCCCCC;
}
button.blaubutton
{
font: inherit;
font-weight: bold;
text-shadow: -1px -1px 3px #666666;
color: #FFFFFF;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
border: 1px solid #CCCCCC;
padding: 10px 15px;
background: rgb(101,175,232);
background: -moz-linear-gradient(top, rgba(101,175,232,1) 0%, rgba(49,113,193,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(101,175,232,1)), color-stop(100%,rgba(49,113,193,1)));
background: -webkit-linear-gradient(top, rgba(101,175,232,1) 0%,rgba(49,113,193,1) 100%);
background: -o-linear-gradient(top, rgba(101,175,232,1) 0%,rgba(49,113,193,1) 100%);
background: -ms-linear-gradient(top, rgba(101,175,232,1) 0%,rgba(49,113,193,1) 100%);
background: linear-gradient(top, rgba(101,175,232,1) 0%,rgba(49,113,193,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#65afe8', endColorstr='#3171c1',GradientType=0 );
}
button.blaubutton:hover, button.blaubutton:focus
{
text-shadow: -1px -2px 4px #FF0000;
}
button.menubutton
{
width:190px;
margin: 7px 0px 7px 0px;
}
button.listenbutton
{
float:right;
height:48px;
width:48px;
font: inherit;
font-weight:bold;
font-size:0.8em;
text-shadow: 1px -1px 1px #FFFFFF;
color:#000;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #CCCCCC;
padding: 2px 4px 4px 4px;
background: rgb(188,188,188);
background: -moz-linear-gradient(top, rgba(188,188,188,1) 0%, rgba(229,229,229,1) 5%, rgba(179,179,179,1) 58%, rgba(179,179,179,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(188,188,188,1)), color-stop(5%,rgba(229,229,229,1)), color-stop(58%,rgba(179,179,179,1)), color-stop(100%,rgba(179,179,179,1)));
background: -webkit-linear-gradient(top, rgba(188,188,188,1) 0%,rgba(229,229,229,1) 5%,rgba(179,179,179,1) 58%,rgba(179,179,179,1) 100%);
background: -o-linear-gradient(top, rgba(188,188,188,1) 0%,rgba(229,229,229,1) 5%,rgba(179,179,179,1) 58%,rgba(179,179,179,1) 100%);
background: -ms-linear-gradient(top, rgba(188,188,188,1) 0%,rgba(229,229,229,1) 5%,rgba(179,179,179,1) 58%,rgba(179,179,179,1) 100%);
background: linear-gradient(top, rgba(188,188,188,1) 0%,rgba(229,229,229,1) 5%,rgba(179,179,179,1) 58%,rgba(179,179,179,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bcbcbc', endColorstr='#b3b3b3',GradientType=0 );
}
button.menulistenbutton
{
float:none;
height:auto;
width:170px;
margin-bottom:5px;
}
button.listenbutton:hover, button.listenbutton:focus
{
text-shadow: 1px -1px 1px #6495ED;
border: 1px solid #6495ED;
}
button.listenbutton>img
{
width:40px;
height:40px;
}
#bugbutton
{
width:250px;
}
#continuebutton
{
display:none;
}
#continuebutton>button
{
font-variant:small-caps;
font-weight:bold;
color:#00EE00;
}
#spielername
{
font: inherit;
width:210px;
height:36px;
}
#rollenselect
{
width:100%;
}
#spielerauswahl
{
width:180px;
}
.zentriermich
{
text-align: center;
}
.jabutton
{
float:left;
}
.neinbutton
{
float:right;
}
.einstellungsauswahl
{
padding: 2px 2px 2px 2px;
margin: 1px 1px 1px 1px;
border-radius: 5px;
}
.status_boese
{
border-style:none solid;
border-width: 2px;
border-color: #C00000;
}
.status_gut
{
border-style:none solid;
border-width: 2px;
border-color: #00BB00;
}
.status_tot
{
text-decoration: line-through;
background-color: #999999;
}
span.status_klassentext
{
float:right;
font-size:0.8em;
font-variant:small-caps;
vertical-align:bottom;
}
span.status_klassentext:before { content:"("; }
span.status_klassentext:after { content:")"; }
q
{
display:block;
quotes: "\00BB" "\00AB" "\203A" "2039";
font-style:italic;
font-family:times;
font-size:1.2em;
}
q:before
{
content: open-quote;
}
q:after
{
content: close-quote;
}
#karte
{
background-color: white;
display: inline-block;
border: 5px solid black;
width: 180px;
height: 200px;
border-radius:15px;
box-shadow: 5px 5px 5px #888;
padding: 20px 10px 20px 10px;
text-align:center;
}
#kartenvergabe_spieler
{
font-size:1.2em;
}
.kontaktmail {
unicode-bidi:bidi-override; direction: rtl;
font-style:italic;
}
</style>
<script src=gamelogic.js></script>
</head>
<body onload="SpielInit();">
<h1>TheNailsMörderApp</h1>
<noscript><h1 style="color:#C00000;">benötigt Javascript!</h1></noscript>
<fieldset id="spiel_hauptmenu" style="display:none;">
<h2>Hauptmenü</h2>
<div class="zentriermich">
<span style="font-size:0.9em;">Willkommen zur Mörder‑Spielleiter‑App!</span>
<hr>
<div id="continuebutton">
<button class="blaubutton menubutton" onclick="Button_Fortsetzen(this);">Weiterspielen</button><br>
</div>
<button class="blaubutton menubutton" onclick="Anzeige_Menu(['spiel_setup']);">Neues Spiel</button><br>
<button class="blaubutton menubutton" onclick="Anzeige_Menu(['spiel_anleitung']);">Anleitung</button>
<hr>
<button id="bugbutton" class="listenbutton menulistenbutton" onclick="window.open('https://github.com/TheNailDev/moerder-spielleiter/issues','_blank');">Bug melden (GitHub)</button><br>
</div>
</fieldset>
<fieldset id="spiel_setup" style="display:none;">
<h2>Spiel-Setup</h2>
<form id="vorbereitung_spieler" method="post" action="javascript:void(0);" onsubmit="return false;">
<p>
Spieler (<span id="spieleranzahl">0</span>):
</p>
<ul id="spielerliste"></ul>
</form>
<form id="vorbereitung_rollen" method="post" action="javascript:void(0);" onsubmit="return false;">
<p>
Rollen (<span id="rollenanzahl">0</span>):
</p>
<ul id="rollenliste"></ul>
</form>
<div class="zentriermich">
Balance: <span id="balanceanzeige">0</span><br>
<button class="blaubutton menubutton" onclick="SpielStart();">Spiel starten</button>
<button class="listenbutton menulistenbutton" onclick="Anzeige_Menu(['spiel_einstellungen']);">Einstellungen</button>
<button class="listenbutton menulistenbutton" onclick="Anzeige_Menu(['spiel_hauptmenu']);">◄ Hauptmenü</button>
</div>
</fieldset>
<fieldset id="spiel_guide" style="display:none;">
<h2>Spiel</h2>
<div id="ausgabe">
<div id="ausgabecontent"></div>
<div id="ausgabeinteraktion"></div>
</div>
</fieldset>
<fieldset id="spiel_status" style="display:none;">
<h2>Status</h2>
<div id="statusausgabe"></div>
</fieldset>
<fieldset id="spiel_admin" style="display:none;">
<h2>Spielleiter</h2>
<div id="adminausgabe" style="text-align:center;">
<button class="listenbutton menulistenbutton" style="width:250px;" onclick="Button_NachtWiederholen(this);">Spiel zurückspulen</button>
<button class="listenbutton menulistenbutton" style="width:250px;" onclick="Button_Neustart(this);">Spiel abbrechen</button>
</div>
</fieldset>
<fieldset id="spiel_anleitung" style="display:none;">
<h2>Anleitung</h2>
<p style="font-size:0.8em;text-align:left;">
Du traust dich, die Spielleiter-Rolle zu übernehmen? Diese App nimmt dich an die Hand und assistiert dir! Ich gehe davon aus, dass du schon zumindest eine Partie gespielt hast, alles andere wissenswerte zum Spiel und zur App folgt jetzt.<br>
<b>Vorsicht - Wall of Text!</b>
</p>
<hr>
<h3>Voraussetzungen</h3>
<p style="font-size:0.8em;text-align:left;">
Damit Werwolf Spaß machen kann, sollte man mindestens 8 Spieler und 1 Spielleiter haben. Je besser sich die Personen kennen, desto spannender wird das Spiel. Namenskenntnis ist Minimum, Freude an Diskussionen optimal. Alle müssen sich im Klaren darüber sein, dass gelogen und betrogen wird, wo es nur geht... Zur Rollenverteilung werden zusätzlich entweder eine Spieleausgabe oder selbstangefertigte Zettel benötigt. Weiterhin sollte man in gemütlicher Runde am Tisch oder im Kreis sitzen mit genügend Platz, damit du als Spielleiter drumherum laufen kannst.
</p>
<hr>
<h3>Vorbereitung</h3>
<p style="font-size:0.8em;text-align:left;">
Wähle im Hauptmenü "Neues Spiel" und trage die Namen aller Mitspieler ein. Anschließend füge im unteren Teil gleichviele Rollen hinzu. Denk daran, dass Werwölfe und mindestens genau so viele normale Dorfbewohner der Grundbestandteil des Spieles sind, zuviele andere Rollen bei zu wenigen Dorfbewohnern schaden. Sobald die Balance stimmt, kann es losgehn. In einer professionellen Runde kann man es mit bis zu -7 ruhig etwas schwerer machen, ansonsten sind Werte von -3 bis +3 vollkommen in Ordnung. Nur bei vielen absoluten Neulingen sind positivere Werte empfehlenswert.
</p>
<hr>
<h3>Spiel: Bedienung</h3>
<p style="font-size:0.8em;text-align:left;">
Das Interface ist während des Spiels dreigeteilt. Im Abschnitt "Spiel" steht der Text, den du als Spielleiter laut verkündest, in Anführungsstrichen. Fette Schrift kennzeichnet Aktionen die du ausführen oder anregen musst. Meist sind diese auch eingeklammert, lies diesen Teil *nicht* vor, sondern handle nur dementsprechend! Wenn die App eine Auswahl fordert, wähle je nach Aktion einen, mehrere oder auch gar keinen Spieler aus und bestätige die Auswahl mit dem "OK"-Button. Im mittleren Abschnitt findest du Spielinfos für dich, diese sind vertraulich! Sie geben dir Übersicht über die Rollen der Spieler, ihre Beziehungen oder ihr Ableben. Weiterhin erfährst du in der wievielten Tag- oder Nachtphase sich das Spiel befindet und wie lange diese bereits dauert.
</p>
<hr>
<h3>Spiel: Sonderfunktionen</h3>
<p style="font-size:0.8em;text-align:left;">
Der unterste Abschnitt des Interface beinhaltet Sonderfunktionen für den Spielleiter (also dich^^). Die Buttons sollten selbsterklärend sein und fragen bei Klick noch einmal nach, bevor sie sich aktivieren. Am interessantesten ist aber bestimmt der "Zurückspulen"-Knopf: Zu Beginn einer jeden neuen Nacht wird das aktuelle Spiel automatisch gespeichert. Ist dir oder den Spielern ein schwerer Fehler unterlaufen, so kannst du die App auf den Anfang der letzten Nacht zurücksetzen um Eingaben oder Entscheidungen zu korrigieren.
</p>
<div class="zentriermich">
<hr>
<button class="listenbutton menulistenbutton" onclick="Anzeige_Menu(['spiel_hauptmenu']);">◄ Hauptmenü</button>
</div>
</fieldset>
<fieldset id="spiel_einstellungen" style="display:none;">
<h2>Einstellungen</h2>
<p style="font-size:0.8em;text-align:left;">
Hier in den erweiterten Spieleinstellungen können kleinere Regeldetails festgelegt werden, aber Vorsicht, die Balance wird dadurch unter Umständen stark verändert!
</p>
<div class="zentriermich"><hr></div>
<div id="ausgabeeinstellungen">
<p>Loading...</p>
</div>
<div class="zentriermich">
<hr>
<button class="listenbutton menulistenbutton" onclick="Anzeige_Menu(['spiel_setup']);">◄ Zurück</button>
</div>
</fieldset>
<fieldset id="spiel_rollenvergabe" style="display:none;">
<h2>Virtuelle Karten</h2>
<div class="zentriermich">
<span id="kartenvergabe_spieler">Spieler 0 von 0</span>
<div id="karte"></div>
<hr>
<button class="listenbutton menulistenbutton" onclick="Anzeige_Menu(['spiel_guide']);">◄ Zurück</button>
</div>
</fieldset>
<div style="margin-top:-10px;font-size:0.7em;text-align:center;">NMA<span id="vinfo"></span></div>
</body>
</html>