-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
344 lines (301 loc) · 16.9 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
<!DOCTYPE html>
<link rel="stylesheet" href="src/appariement.css">
<head>
<title>IXème Âge : Appariement</title>
</head>
<body>
<h1>Programme d'Appariement</h1>
<a href="/help" id="help-message">Comment est-ce que ça fonctionne ?</a>
<form name="army_entry" id="army_entry">
<div>
<p>Merci de renseigner vos armées</p>
<input type="text" id="friend0" required size="10">
<input type="text" id="friend1" required size="10">
<input type="text" id="friend2" required size="10">
<input type="text" id="friend3" required size="10">
<input type="text" id="friend4" required size="10">
<input type="text" id="friend5" required size="10">
</div>
<div>
<p>Merci de renseigner les armées adverses</p>
<input type="text" id="oppone0" required size="10">
<input type="text" id="oppone1" required size="10">
<input type="text" id="oppone2" required size="10">
<input type="text" id="oppone3" required size="10">
<input type="text" id="oppone4" required size="10">
<input type="text" id="oppone5" required size="10">
</div>
<div>
<input type="submit" class="next-step" value="Entrer les scores">
</div>
</form>
<form name="score_list" id="score_list" hidden>
<p>Merci de renseigner les scores attendus</p>
<div>
<p id="army0"></p>
<input type="text" id="army0_score0" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army0_score1" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army0_score2" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army0_score3" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army0_score4" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army0_score5" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
</div>
<div>
<p id="army1"></p>
<input type="text" id="army1_score0" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army1_score1" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army1_score2" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army1_score3" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army1_score4" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army1_score5" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
</div>
<div>
<p id="army2"></p>
<input type="text" id="army2_score0" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army2_score1" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army2_score2" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army2_score3" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army2_score4" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army2_score5" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
</div>
<div>
<p id="army3"></p>
<input type="text" id="army3_score0" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army3_score1" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army3_score2" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army3_score3" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army3_score4" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army3_score5" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
</div>
<div>
<p id="army4"></p>
<input type="text" id="army4_score0" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army4_score1" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army4_score2" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army4_score3" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army4_score4" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army4_score5" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
</div>
<div>
<p id="army5"></p>
<input type="text" id="army5_score0" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army5_score1" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army5_score2" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army5_score3" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army5_score4" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
<input type="text" id="army5_score5" required size="10" class="scoreInput" min="0" max="20" onfocus="this.type='number';">
</div>
<div>
<input type="submit" class="next-step" value="Commencer l'appariement">
</div>
</form>
<p id="loading_text_720" hidden>Calcul des 8.294.400 matchups en cours...<br></p>
<p id="update_result" hidden>Mise à jour des matchups...</p>
<p id="success_text" hidden>Calculs réalisés !</p>
<p id="best_matchup" hidden></p>
<form name="turn1" id="turn1" hidden>
<div id="t1_tip">
</div>
<div>
<p>Jouez une armée face cachée</p>
<select name="play_t1f" id="play_t1f" required class="armySelect">
<option id="default" value="" disabled selected>Que jouez-vous ?</option>
<option id="t1_a0" value="0"></option>
<option id="t1_a1" value="1"></option>
<option id="t1_a2" value="2"></option>
<option id="t1_a3" value="3"></option>
<option id="t1_a4" value="4"></option>
<option id="t1_a5" value="5"></option>
</select>
</div>
<div>
<p>Votre adversaire joue une armée face cachée</p>
<select name="play_t1o" id="play_t1o" required class="armySelect">
<option id="default" value="" disabled selected>Que joue-t-il?</option>
<option id="t1_o0" value="0"></option>
<option id="t1_o1" value="1"></option>
<option id="t1_o2" value="2"></option>
<option id="t1_o3" value="3"></option>
<option id="t1_o4" value="4"></option>
<option id="t1_o5" value="5"></option>
</select>
</div>
<div>
<input class="next-step" type="submit" value="Valider la sélection">
</div>
</form>
<form name="turn2" id="turn2" hidden>
<div id="t2_tip">
</div>
<div>
<p>Jouez deux armées face visible :</p>
<select name="play_t2f1" id="play_t2f1" required class="armySelect">
<option id="default" value="" disabled selected>Première armée</option>
<option id="t2f1_a0" value="0"></option>
<option id="t2f1_a1" value="1"></option>
<option id="t2f1_a2" value="2"></option>
<option id="t2f1_a3" value="3"></option>
<option id="t2f1_a4" value="4"></option>
<option id="t2f1_a5" value="5"></option>
</select>
<br>
<select name="play_t2f2" id="play_t2f2" required class="armySelect">
<option id="default" value="" disabled selected>Seconde armée</option>
<option id="t2f2_a0" value="0"></option>
<option id="t2f2_a1" value="1"></option>
<option id="t2f2_a2" value="2"></option>
<option id="t2f2_a3" value="3"></option>
<option id="t2f2_a4" value="4"></option>
<option id="t2f2_a5" value="5"></option>
</select>
<br>
<p>Votre adversaire joue deux armée face visible :</p>
<select name="play_t2o1" id="play_t2o1" required class="armySelect">
<option id="default" value="" disabled selected>Première armée</option>
<option id="t2o1_a0" value="0"></option>
<option id="t2o1_a1" value="1"></option>
<option id="t2o1_a2" value="2"></option>
<option id="t2o1_a3" value="3"></option>
<option id="t2o1_a4" value="4"></option>
<option id="t2o1_a5" value="5"></option>
</select>
<br>
<select name="play_t2o2" id="play_t2o2" required class="armySelect">
<option id="default" value="" disabled selected>Seconde armée</option>
<option id="t2o2_a0" value="0"></option>
<option id="t2o2_a1" value="1"></option>
<option id="t2o2_a2" value="2"></option>
<option id="t2o2_a3" value="3"></option>
<option id="t2o2_a4" value="4"></option>
<option id="t2o2_a5" value="5"></option>
</select>
<br>
<p id="t2-error-message" hidden>Il est impossible de jouer deux fois la même armée !</p>
<input class="next-step" type="submit" value="Valider la sélection">
</div>
</form>
<form name="turn3" id="turn3" hidden>
<div id="t3_tip">
</div>
<div>
<p>Quelle armée vous choisissez ? :</p>
<select name="play_t2o" id="play_t2o" required class="armySelect">
<option id="default" value="" disabled selected>Votre choix</option>
<option id="t2o_a0" value="7"></option>
<option id="t2o_a1" value="8"></option>
</select>
<br>
<p>Quelle armée votre adversaire choisit ? :</p>
<select name="play_t2f" id="play_t2f" required class="armySelect">
<option id="default" value="" disabled selected>Choix adverse</option>
<option id="t2f_a0" value="7"></option>
<option id="t2f_a1" value="8"></option>
</select>
<br>
<input class="next-step" type="submit" value="Valider la sélection">
</div>
</form>
<form name="turn4" id="turn4" hidden>
<div id="t4_tip">
</div>
<div>
<p>Quelle armée placez-vous face cachée ? :</p>
<select name="play_t4f" id="play_t4f" required class="armySelect">
<option id="default" value="" disabled selected>Votre armée</option>
<option id="t4f_a0" value="0"></option>
<option id="t4f_a1" value="1"></option>
<option id="t4f_a2" value="2"></option>
<option id="t4f_a3" value="3"></option>
<option id="t4f_a4" value="4"></option>
<option id="t4f_a5" value="5"></option>
</select>
<br>
<p>Quelle armée votre adversaire viens de placer face cachée ? :</p>
<select name="play_t4o" id="play_t4o" required class="armySelect">
<option id="default" value="" disabled selected>Armée adverse</option>
<option id="t4o_a0" value="0"></option>
<option id="t4o_a1" value="1"></option>
<option id="t4o_a2" value="2"></option>
<option id="t4o_a3" value="3"></option>
<option id="t4o_a4" value="4"></option>
<option id="t4o_a5" value="5"></option>
</select>
<br>
<input class="next-step" type="submit" value="Valider la sélection">
</div>
</form>
<form name="turn5" id="turn5" hidden>
<div id="t5_tip">
</div>
<div>
<p>Jouez deux armées face visible :</p>
<select name="play_t5f1" id="play_t5f1" required class="armySelect">
<option id="default" value="" disabled selected>Première armée</option>
<option id="t5f1_a0" value="0"></option>
<option id="t5f1_a1" value="1"></option>
<option id="t5f1_a2" value="2"></option>
<option id="t5f1_a3" value="3"></option>
<option id="t5f1_a4" value="4"></option>
<option id="t5f1_a5" value="5"></option>
</select>
<br>
<select name="play_t5f2" id="play_t5f2" required class="armySelect">
<option id="default" value="" disabled selected>Seconde armée</option>
<option id="t5f2_a0" value="0"></option>
<option id="t5f2_a1" value="1"></option>
<option id="t5f2_a2" value="2"></option>
<option id="t5f2_a3" value="3"></option>
<option id="t5f2_a4" value="4"></option>
<option id="t5f2_a5" value="5"></option>
</select>
<br>
<p>Votre adversaire joue deux armée face visible :</p>
<select name="play_t5o1" id="play_t5o1" required class="armySelect">
<option id="default" value="" disabled selected>Première armée</option>
<option id="t5o1_a0" value="0"></option>
<option id="t5o1_a1" value="1"></option>
<option id="t5o1_a2" value="2"></option>
<option id="t5o1_a3" value="3"></option>
<option id="t5o1_a4" value="4"></option>
<option id="t5o1_a5" value="5"></option>
</select>
<br>
<select name="play_t5o2" id="play_t5o2" required class="armySelect">
<option id="default" value="" disabled selected>Seconde armée</option>
<option id="t5o2_a0" value="0"></option>
<option id="t5o2_a1" value="1"></option>
<option id="t5o2_a2" value="2"></option>
<option id="t5o2_a3" value="3"></option>
<option id="t5o2_a4" value="4"></option>
<option id="t5o2_a5" value="5"></option>
</select>
<br>
<p id="t5-error-message" hidden>Il est impossible de jouer deux fois la même armée !</p>
<input class="next-step" type="submit" value="Valider la sélection">
</div>
</form>
<form name="turn6" id="turn6" hidden>
<div id="t6_tip">
</div>
<div>
<p>Quelle armée vous choisissez de combattre ? :</p>
<select name="play_t5o" id="play_t5o" required class="armySelect">
<option id="default" value="" disabled selected>Votre choix</option>
<option id="t5o_a0" value="7"></option>
<option id="t5o_a1" value="8"></option>
</select>
<br>
<p>Quelle armée votre adversaire choisit de combattre ? :</p>
<select name="play_t5f" id="play_t5f" required class="armySelect">
<option id="default" value="" disabled selected>Choix adverse</option>
<option id="t5f_a0" value="7"></option>
<option id="t5f_a1" value="8"></option>
</select>
<br>
<input class="next-step" type="submit" value="Valider la sélection">
</div>
</form>
<div id="final_result" hidden>
</div>
<script src="src/appariement.js"></script>
</body>