-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
483 lines (431 loc) · 31.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
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
<!DOCTYPE html>
<head>
<meta name="googlebot" content="noindex" />
<meta name="robots" content="noindex" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="main.css">
<!-- TODO: fallbacks <link rel="stylesheet" href="cdn.css" onerror="this.onerror=null;this.href='local.css';" /> -->
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css"> -->
<!-- <script src="https://ajax.googleapis.com/ajax/Plibs/jquery/3.5.1/jquery.min.js"></script> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<!-- <body oncontextmenu="return false;"> -->
<body>
<div id="loading" class="!fixed w-full h-full z-10">
<div class="lds-default">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div id="info-modal" class="hidden fixed w-full h-full z-10">
<div class="modal-background absolute top-0 left-0 p-16 w-full h-full" style="background-color: rgba(36, 88, 95, 0.356);"></div>
<div class="absolute left-0 right-0 top-0 bottom-0 m-auto bg-white w-2/3 h-[500px] z-20 rounded-lg overflow-y-auto">
<div class="p-4 flex flex-col gap-4">
<span class="close place-self-end select-none font-bold text-gray-400 hover:text-black">×</span> <!--TODO: Exit button-->
<div class="block rounded-lg p-2 bg-pink-300">
<h2 class="font-mono font-bold">Verwendung der Seite</h1>
<ul class="space-y-4">
<li>Im oberen Block befinden sich alle wichtigen Eingabeelemente.</li>
<ul class="">
<li class="font-bold">Wähle zuerst den gewünschten Modultyp.</li>
<li><span class="font-bold">Fernstudium: </span>Es wird lediglich die Hälfte der Unterrichtseinheiten in der Schule abgehalten. Die andere Hälfte erfolgt im Selbststudium.</li>
<li><span class="font-bold">Präsenzstudium: </span>Der gesamte Unterricht findet in der Schule statt.</li>
</ul>
<ul>
<li class="font-bold">Wähle die gewünschte Fremdsprache.</li>
<li>Wenn keine Fremdsprache gewählt wird, wird auch nicht versucht eine Fremdsprache zu buchen.</li>
</ul>
<ul>
<li class="font-bold">Wähle ein Wahlpflichtfach.</li>
<li>Wenn keine Auswahl getroffen wird, wird auch nicht versucht eines dieser Fächer zu buchen.</li>
</ul>
<ul>
<li class="font-bold">Wähle nun alle bereits von dir besuchten bzw. die dir angerechneten Fächer in der Tabelle an.</li>
<li>Tipp: Klicke auf das zuletzt besuchte Semester eines Fachs, um alle vorherigen Semester automatisch auszuwählen.</li>
</ul>
<ul>
<li class="font-bold">Zum Schluss ist noch zu entscheiden, ob mehrere Module des selben Typs auf einmal gebucht werden sollen.</li>
<li>Also zum Beispiel M1 & M2 in einem Semester</li>
</ul>
</ul>
</div>
<div class="block rounded-lg p-2 bg-[#e7393093]">
<h2 class="font-mono font-bold">Limitierungen</h1>
<ul>
<li>Folgende Fächer können vom Programm nicht auf Buchbarkeit geprüft werden:</li>
<li>Religion / Ethik, ÖKO (1,2,3)</li>
<li>Sowie alle Freifächer.</li>
</ul>
</div>
</div>
</div>
</div>
<!--Modal & Loading animation END-->
<div class="p-[5%]">
<div class="flex flex-col gap-8">
<div class="p-8 bg-white overflow-x-auto place-self-center rounded-lg drop-shadow-lg">
<div class="w-full">
<div class="Inputs columns flex w-full justify-between pb-[20px]">
<div class="">
<label class="font-bold">Studienart</label>
<div class="select" id="studytype">
<select required autocomplete="off" class="appearance-none bg-white border-2 border-cyan-300 rounded-lg p-2 disabled:border-rose-400">
<option value="" disabled selected>Belegung wählen..</option>
<option value="FS">Fernstudium</option>
<option value="PS">Präsenzstudium</option>
</select>
</div>
</div>
<div class="">
<label class="font-bold">2. Fremdsprache</label>
<div class="select" id="second-lang">
<select required autocomplete="off" class="appearance-none bg-white border-2 border-cyan-300 rounded-lg p-2 disabled:border-rose-400">
<option value="" disabled selected>Sprache wählen..</option>
<option value="L">Latein</option>
<option value="F">Französisch</option>
</select>
</div>
</div>
<div class="">
<label class="font-bold">Wahlpflichtfach</label>
<div class="select" id="be-me">
<select required autocomplete="off" class="appearance-none bg-white border-2 border-cyan-300 rounded-lg p-2 disabled:border-rose-400">
<option value="" disabled selected>Wahlpflichtfach wählen..</option>
<option value="BE">Bildnerische Erziehung</option>
<option value="ME">Musikerziehung</option>
</select>
</div>
</div>
</div>
<h1 class="title text-xl">Was wurde bereits besucht?</h1>
<table class="table table-fixed w-full" id="checkboxtable">
<thead>
<tr>
<th class="w-[75px]">Semester</th>
<th class="R">R</th>
<th class="D">D</th>
<th class="E">E</th>
<th class="L">L</th>
<th class="F">F</th>
<th class="GSP">GSP</th>
<th class="GWK">GWK</th>
<th class="M">M</th>
<th class="Eth">Eth</th>
<th class="BU">BU</th>
<th class="CH">CH</th>
<th class="PH">PH</th>
<th class="PP">PP</th>
<th class="INF">INF</th>
<th class="BE">BE</th>
<th class="ME">ME</th>
<th class="ÖKO">ÖKO</th>
<th class="LPK">LPK</th>
<th class="VWA">VWA</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center">1</td>
<td class="text-center R"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="R1"></label></td>
<td class="text-center D"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="D1"></label></td>
<td class="text-center E"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="E1"></label></td>
<td class="text-center L" id="emptyField"></td>
<td class="text-center F" id="emptyField"></td>
<td class="text-center GSP"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="GSP1"></label></td>
<td class="text-center GWK"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="GWK1"></label></td>
<td class="text-center M"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="M1"></label></td>
<td class="text-center Eth"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="Eth1"></label></td>
<td class="text-center BU" id="emptyField"></td>
<td class="text-center CH" id="emptyField"></td>
<td class="text-center PH" id="emptyField"></td>
<td class="text-center PP" id="emptyField"></td>
<td class="text-center INF"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="INF1"></label></td>
<td class="text-center BE" id="emptyField"></td>
<td class="text-center ME" id="emptyField"></td>
<td class="text-center ÖKO" id="emptyField"></td>
<td class="text-center LPK"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="LPK1"></label></td>
<td class="text-center VWA" id="emptyField"></td>
</tr>
<tr>
<td class="text-center">2</td>
<td class="text-center R"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="R2"></label></td>
<td class="text-center D"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="D2"></label></td>
<td class="text-center E"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="E2"></label></td>
<td class="text-center L"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="L1"></label></td>
<td class="text-center F"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="F1"></label></td>
<td class="text-center GSP"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="GSP2"></label></td>
<td class="text-center GWK"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="GWK2"></label></td>
<td class="text-center M"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="M2"></label></td>
<td class="text-center Eth" id="emptyField"></td>
<td class="text-center BU" id="emptyField"></td>
<td class="text-center CH" id="emptyField"></td>
<td class="text-center PH" id="emptyField"></td>
<td class="text-center PP" id="emptyField"></td>
<td class="text-center INF" id="emptyField"></td>
<td class="text-center BE" id="emptyField"></td>
<td class="text-center ME" id="emptyField"></td>
<td class="text-center ÖKO" id="emptyField"></td>
<td class="text-center LPK" id="emptyField"></td>
<td class="text-center VWA" id="emptyField"></td>
</tr>
<tr>
<td class="text-center">3</td>
<td class="text-center R"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="R3"></label></td>
<td class="text-center D"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="D3"></label></td>
<td class="text-center E"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="E3"></label></td>
<td class="text-center L"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="L2"></label></td>
<td class="text-center F"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="F2"></label></td>
<td class="text-center GSP"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="GSP3"></label></td>
<td class="text-center GWK" id="emptyField"></td>
<td class="text-center M"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="M3"></label></td>
<td class="text-center Eth" id="emptyField"></td>
<td class="text-center BU"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="BU1"></label></td>
<td class="text-center CH" id="emptyField"></td>
<td class="text-center PH" id="emptyField"></td>
<td class="text-center PP" id="emptyField"></td>
<td class="text-center INF" id="emptyField"></td>
<td class="text-center BE" id="emptyField"></td>
<td class="text-center ME" id="emptyField"></td>
<td class="text-center ÖKO" id="emptyField"></td>
<td class="text-center LPK" id="emptyField"></td>
<td class="text-center VWA" id="emptyField"></td>
</tr>
<tr>
<td class="text-center">4</td>
<td class="text-center R"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="R4"></label></td>
<td class="text-center D"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="D4"></label></td>
<td class="text-center E"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="E4"></label></td>
<td class="text-center L"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="L3"></label></td>
<td class="text-center F"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="F3"></label></td>
<td class="text-center GSP" id="emptyField"></td>
<td class="text-center GWK" id="emptyField"></td>
<td class="text-center M"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="M4"></label></td>
<td class="text-center Eth" id="emptyField"></td>
<td class="text-center BU"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="BU2"></label></td>
<td class="text-center CH"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="CH1"></label></td>
<td class="text-center PH"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="PH1"></label></td>
<td class="text-center PP" id="emptyField"></td>
<td class="text-center INF" id="emptyField"></td>
<td class="text-center BE" id="emptyField"></td>
<td class="text-center ME" id="emptyField"></td>
<td class="text-center ÖKO" id="emptyField"></td>
<td class="text-center LPK" id="emptyField"></td>
<td class="text-center VWA" id="emptyField"></td>
</tr>
<tr>
<td class="text-center">5</td>
<td class="text-center R" id="emptyField">🛈</td>
<td class="text-center D"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="D5"></label></td>
<td class="text-center E"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="E5"></label></td>
<td class="text-center L"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="L4"></label></td>
<td class="text-center F"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="F4"></label></td>
<td class="text-center GSP" id="emptyField"></td>
<td class="text-center GWK" id="emptyField"></td>
<td class="text-center M"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="M5"></label></td>
<td class="text-center Eth" id="emptyField"></td>
<td class="text-center BU" id="emptyField"></td>
<td class="text-center CH"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="CH2"></label></td>
<td class="text-center PH"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="PH2"></label></td>
<td class="text-center PP" id="emptyField"></td>
<td class="text-center INF" id="emptyField"></td>
<td class="text-center BE" id="emptyField"></td>
<td class="text-center ME" id="emptyField"></td>
<td class="text-center ÖKO" id="emptyField"></td>
<td class="text-center LPK" id="emptyField"></td>
<td class="text-center VWA" id="emptyField"></td>
</tr>
<tr>
<td class="text-center">6</td>
<td class="text-center R" id="emptyField"></td>
<td class="text-center D"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="D6"></label></td>
<td class="text-center E"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="E6"></label></td>
<td class="text-center L"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="L5"></label></td>
<td class="text-center F"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="F5"></label></td>
<td class="text-center GSP" id="emptyField"></td>
<td class="text-center GWK" id="emptyField"></td>
<td class="text-center M"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="M6"></label></td>
<td class="text-center Eth" id="emptyField"></td>
<td class="text-center BU" id="emptyField"></td>
<td class="text-center CH" id="emptyField"></td>
<td class="text-center PH"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="PH3"></label></td>
<td class="text-center PP"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="PP1"></label></td>
<td class="text-center INF" id="emptyField"></td>
<td class="text-center BE" id="emptyField"></td>
<td class="text-center ME" id="emptyField"></td>
<td class="text-center ÖKO" id="emptyField"></td>
<td class="text-center LPK" id="emptyField"></td>
<td class="text-center VWA" id="emptyField"></td>
</tr>
<tr>
<td class="text-center">7</td>
<td class="text-center R" id="emptyField"></td>
<td class="text-center D"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="D7"></label></td>
<td class="text-center E"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="E7"></label></td>
<td class="text-center L" id="emptyField"></td>
<td class="text-center F" id="emptyField"></td>
<td class="text-center GSP" id="emptyField"></td>
<td class="text-center GWK" id="emptyField"></td>
<td class="text-center M"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="M7"></label></td>
<td class="text-center Eth" id="emptyField"></td>
<td class="text-center BU" id="emptyField"></td>
<td class="text-center CH" id="emptyField"></td>
<td class="text-center PH" id="emptyField"></td>
<td class="text-center PP"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="PP2"></label></td>
<td class="text-center INF"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="INF2"></label></td>
<td class="text-center BE"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="BE1"></label></td>
<td class="text-center ME"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="ME1"></label></td>
<td class="text-center ÖKO"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="ÖKO1"></label></td>
<td class="text-center LPK" id="emptyField"></td>
<td class="text-center VWA" id="emptyField"></td>
</tr>
<tr>
<td class="text-center">8</td>
<td class="text-center R" id="emptyField"></td>
<td class="text-center D"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="D8"></label></td>
<td class="text-center E"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="E8"></label></td>
<td class="text-center L" id="emptyField"></td>
<td class="text-center F" id="emptyField"></td>
<td class="text-center GSP" id="emptyField"></td>
<td class="text-center GWK" id="emptyField"></td>
<td class="text-center M"><label class="checkbox"><input autocomplete="off" type="checkbox"
id="M8"></label></td>
<td class="text-center Eth" id="emptyField"></td>
<td class="text-center BU" id="emptyField"></td>
<td class="text-center CH" id="emptyField"></td>
<td class="text-center PH" id="emptyField"></td>
<td class="text-center PP" id="emptyField"></td>
<td class="text-center INF"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="INF3"></label></td>
<td class="text-center BE" id="emptyField"></td>
<td class="text-center ME" id="emptyField"></td>
<td class="text-center ÖKO"><label class="checkbox"><input autocomplete="off"
type="checkbox" id="ÖKO2"></label></td>
<td class="text-center LPK" id="emptyField"></td>
<td class="text-center VWA" id="emptyField"></td>
</tr>
</tbody>
</table>
<div class="columns">
<div class="column">
<label class="label">Fächer mehrfach belegen</label>
<div class="select" id="double-book">
<select required autocomplete="off">
<option value="n">Nein</option>
<option value="y">Ja</option>
</select>
</div>
</div>
</div>
<div class="columns">
<div class="column">
<p><b>Stundenplandaten: </b></p>
<p id="semesterStamp"><b>Wintersemester-XY</b></p>
</div>
<div class="column">
<div class="buttons">
<button class="button is-info bg-cyan-300 hover:bg-cyan-400 text-white px-4 py-2 rounded-full" onclick="openInfoModal()">Info</button>
<button id="start-btn" class="button bg-emerald-300 hover:bg-emerald-400 text-white p-2 rounded-full"
onclick="populate()">Bestätigen</button>
</div>
</div>
</div>
</div>
</div>
<div class="flex gap-2 h-full">
<div class="w-1/2">
<table id="timetableA" class="table is-bordered w-full bg-white drop-shadow-lg">
<!--dynamic content-->
</table>
</div>
<div class="w-1/2">
<table id="timetableB" class="table is-bordered w-full bg-white drop-shadow-lg"></table>
</div>
</div>
<div class="w-full bg-white rounded-lg drop-shadow-lg">
<div class="p-4">
<p class="font-bold text-center">Gebuchte Module</p>
<ul id="bookedList" class="flex flex-wrap gap-x-32 gap-y-4 pt-2 w-full place-content-center px-16">
</ul>
</div>
</div>
<!--
<div class="column">
<button id="weektoggle" class="button is-danger" onclick="toggleTimetableWeek()">Woche A</button>
</div> -->
</div>
</div>
<script src="https://unpkg.com/react@17/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" crossorigin></script>
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.min.js"></script>
<script type="text/babel" src="index.js"></script>
<script src="classes.js"></script>
</body>