-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
245 lines (242 loc) · 9.47 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="google-site-verification" content="1xfCqTBoVbKGCu_O8oZ1a11W30Hkf9AHpZ555fFftuA" />
<title>Präsentation Informatik</title>
<style>
body {
margin: 0;
}
#app {
transition: 1s;
font-family: sans-serif;
background: #f1cb79;
width: 100vw;
height: 100vh;
color: #122149;
overflow-y: hidden;
}
#app.statetwo{
transition: 1s;
background: #122149;
color: #f1cb79;
}
h1 {
text-align: center;
margin-top: 0;
padding-top: 50px;
font-size: 4em;
}
#infobox {
transition: 1s;
background: #122149;
color: white;
padding: 30px;
border-radius: 30px;
margin: 50px;
font-family: monospace;
display: none;
}
#infobox.stateone {
transition: 1s;
display: block;
}
#map {
transition: 1s;
display: none;
}
#map.stateone {
transition: 1s;
margin-top: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
#map.statetwo {
transition: 1s;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
}
#explanations {
padding-left: 2em;
padding-right: 2em;
margin-top: 100vh;
}
#explanations.statethree {
transition: 1s;
margin: 0;
}
h2 {
margin-bottom: 0;
margin-top: 50;
font-size: 2em;
}
ul {
transition: 1s;
margin-top: 0.5em;
display: none;
}
li {
font-size: 1.15em;
}
</style>
</head>
<body>
<div id="base">
<div id="terminal" style="height: 100vh; width: 100vw; background: black; color: white; font-family: monospace; word-break: break-all;">
studiinfo@school :
</div>
<div id="app" class="stateone" style="display: none;">
<h1 id="header" class="stateone">Informatik</h1>
<div id="infobox" class="stateone">
<span style="color: rgb(112, 163, 213);">const</span> <span style="color: rgb(120, 199, 252);">Informatik_Studium</span> = {<br>
<span id="infoconst"><!-- name: "Informatik (Bachelor/Master of Science)",<br>
studyTime: 3,<br>
occupationalFields: ["Software Entwicklung", "Data Science", "KI Entwicklung", "many more"],<br>
approval: "partly needed",<br>
focusOppertunities: {<br>
bachelor: ["KI", "Computer Science", "Kognitive Informatik", "many more"],<br>
master: ["Angewandte Informatik", "(Applied Research in) Computer Science", "High-Performance- / Quanten-Computing", "KI", "Machine Learning", "many more"]<br>
}--></span><br>
}
</div>
<div id="map" class="stateone">
<img style="max-width: 100vw; max-height: calc(100vh - 120px);"src="Untitled.svg">
</div>
<div id="explanations">
<div id="tasks">
<h2>Aufgaben und Ziele</h2>
<ul style="display: block;">
<li>Entwicklung von Software</li>
<li>Qualitätssicherung</li>
<li>Netzwerk-Architektur</li>
</ul>
</div>
<div id="work">
<h2>Arbeitsort und Arbeitsweise</h2>
<ul>
<li>Ort & Zeit frei wählbar</li>
<li>Typischerweise normaler Büroplatz<br>meist mit mehr (vertikalen) Bildschirmen</li>
<li>keine körperliche Anforderungen</li>
</ul>
</div>
<div id="activities">
<h2>Tätigkeiten</h2>
<ul>
<li>viel im Team</li>
<li>Programmieren, Netzwerke designen, ...</li>
</ul>
</div>
<div id="requirements">
<h2>Anforderungen und Vorraussetzungen</h2>
<ul>
<li>Informatik & Mathe</li>
<li>logisches Denken</li>
<li>kreatives Lösen von Problemen</li>
<li>aufbrechen größerer Probleme in kleinere</li>
<li>"Computational Thinking"</li>
<li>im Team arbeiten</li>
</ul>
</div>
<div id="sunsides">
<h2>Sonnen- und Schattenseiten</h2>
<!--<div>
<div>
<h3 style="text-align: center; display: inline-block;">Sonnenseiten<h3>
</div>
<div>
<h3 style="text-align: center; display: inline-block;">Schattenseiten</h3>
</div>
</div>-->
<ul>
<span style="font-size: 2.5em;">☀️</span>
<li>Spaßfaktor</li>
<li>gutes Gehat</li>
<li>viele Weiterbildungsmöglichkeiten</li>
<li>Zukunftssicherheit</li>
<li>viele coole Unternehmen</li>
<span style="font-size: 2em; margin-top: 1.5em;">🌓</span>
<li>keine körperliche Betätigung</li>
</ul>
</div>
<div id="related">
<h2>Verwandte Berufe</h2>
<ul>
<li>IT-Sicherheit</li>
<li>IT-Administration</li>
<li>Ingenieursberufe</li>
<li>Elektro- und Informationstechnik</li>
</ul>
</div>
</div>
</div>
</div>
<script>
var startedPresentation = false;
var terminalText = [" launch-presentation Informatik\n", "Launching presentation", "..."]
var states = ["stateone", "statetwo", "statethree"];
var currentState = 1;
var place = 1;
var infoboxCounter = 0;
var infobox = [' name: "Informatik (Bachelor/Master of Science)"', ',<br> studyTime: 3', ',<br> occupationalFields: ["Software Entwicklung", "Data Science", "KI Entwicklung", "many more"]', ',<br> approval: "partly needed"', ',<br> focusOppertunities: {<br> bachelor: ["KI", "Computer Science", "Kognitive Informatik", "many more"],<br> master: ["Angewandte Informatik", "(Applied Research in) Computer Science", "High-Performance- / Quanten-Computing", "KI", "Machine Learning", "many more"]<br> }']
function startTerminal(i, j) {
if (!(j == 0)) {
if (terminalText[i].charCodeAt(j - 1) == 32) {
document.getElementById("terminal").innerText += " " + terminalText[i][j];
} else {
document.getElementById("terminal").innerText += terminalText[i][j];
}
} else {
document.getElementById("terminal").innerText += terminalText[i][j];
}
j++;
if (j == terminalText[i].length) {
j = 0;
i ++;
}
if (!(i == terminalText.length)) {
if (i % 2 === 0) {
setTimeout(function() {startTerminal(i, j)}, 100)
} else {
startTerminal(i, j)
}
} else {
document.getElementById("terminal").style.display = "none"
document.getElementById("app").style.display = "block"
}
}
document.getElementById("base").addEventListener("click", () => {
if (!startedPresentation) {
startedPresentation = true;
startTerminal(0, 0)
} else if (infoboxCounter < infobox.length) {
document.getElementById("infoconst").innerHTML += infobox[infoboxCounter];
infoboxCounter++
} else {
if (currentState < states.length) {
let nodes = document.getElementById("app").childNodes;
document.getElementById("app").classList.remove(states[currentState - 1]);
document.getElementById("app").classList.add(states[currentState]);
for (let i = 0; i < nodes.length; i++) {
try {
nodes[i].classList.remove(states[currentState - 1]);
nodes[i].classList.add(states[currentState]);
} catch {
}
}
currentState++;
} else {
let nodes = document.getElementById("explanations").childNodes;
console.log(nodes)
nodes[place].getElementsByTagName("ul")[0].style.display = "none";
nodes[place + 2].getElementsByTagName("ul")[0].style.display = "block";
place += 2
}
}
})
</script>
</body>
</html>