-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (65 loc) · 2.54 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Dein Studienplan</title>
<meta name="author" content="Fabian Dietrich">
<link rel="stylesheet" href="assets/style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<script src="assets/js/utils.js"></script>
<script src="assets/js/studienplan.js"></script>
<script src="assets/js/moduledragger.js" defer></script>
<script src="assets/js/loadfromfile.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</head>
<body>
<h1>Dein Studienplan</h1>
<main id="selection">
<p>Bitte wählen sie eine lokale Datei oder ein unten aufgeführtes Beispiel
aus.</p>
<input type="file" id="file-selection">
<div id="examples">
<h3>Studienbeginn im Wintersemester</h3>
<div id="ws">
<button onclick="fetch('examples/b-inf-wi.csv').then(r => r.text()).then(csv => load(csv))">
Bachelor Informatik
</button>
<br>
<button onclick="fetch('examples/b-ic-wi.csv').then(r => r.text()).then(csv => load(csv))">
Bachelor Internet Computing
</button>
<br>
<button onclick="fetch('examples/b-ma-wi.csv').then(r => r.text()).then(csv => load(csv))">
Bachelor Mathematik
</button>
</div>
<h3>Studienbeginn im Sommersemester</h3>
<div id="ss">
<button onclick="fetch('examples/b-inf-so.csv').then(r => r.text()).then(csv => load(csv))">
Bachelor Informatik
</button>
<br>
<button onclick="fetch('examples/b-ic-so.csv').then(r => r.text()).then(csv => load(csv))">
Bachelor Internet Computing
</button>
</div>
</div>
</main>
<main id="invalid-file" style="display: none;">
<p>Die ausgewählte Datei ist kein kompatibler Studienplan!</p>
</main>
<main id="editor" style="display: none;">
<div id="controls">
<img id="trash" src="assets/trash-can-solid.svg" alt="Remove module">
<div class="module new" name="Neues Modul" ects="0" color="#E2E9FF">
<div></div>
</div>
<input type="number" id="semesterCounter" min="1" max="15">
</div>
<div id="studienplan">
</div>
</main>
<script>updateModule(document.querySelector("#controls .module"))</script>
</body>
</html>