-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
300 lines (267 loc) · 12.6 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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>Curio Web</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-3.11.2.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<header>
<img src="./img/curio-15-licht-groen-logo-rgb.png" width="250px;" heigh="auto">
</header>
<main>
<div class="container" style="justify-content: unset;">
<img src="./img/pngwing.com.png" alt="Placeholder" width="250px" height="300px">
<div class="text-container" style="margin: 0 30px;">
<div class="typewriter" style="width:max-content;">
<h1 style="text-align: left;">Lets start coding...</h1>
</div>
<p style="font-size:23px;">Welkom bij onze Opendag en opleiding voor Software Development! Bij deze opleiding leer je allemaal leuke en coole dingen maken, het maken van websites tot het schrijven van je eigen scripts en computer programma's.
Hier ga je leren werken in groep en alleen om de mooiste websites en best draaiende software te creëeren! en niet alleen dat maar je leert ook communiceren met je klanten en hoe je moet werken bij een bedrijf!
Samen met de leuken en leefvolle leerkrachten leer je hoe je een goeie developer kunt worden en zelf nieuwe coole projecten kunt maken met je eigen kennis en interessen. Kijk wat rond en bedenk wat voor cools je allemaal kunt maken, en dan zie ik jouw volgend jaar hier ook op school!
</p>
</div>
</div>
<div class="container">
<div class="small-Container">
<div class="agenda-container agenda">
<div id="agenda-inhouding" class="agenda-content">
<div class="agenda-day" id="monday">Maandag</div>
<div class="agenda-day" id="tuesday">Dinsdag</div>
<div class="agenda-day" id="wednsday">Woensdag</div>
<div class="agenda-day" id="thursday">Donderdrag</div>
<div class="agenda-day" id="friday">Vrijdag</div>
<div id="agenda" class="agenda-inhoud">
</div>
<div class="agenda-footer">
<button id="prevBtn"><div class="arrow">←</div></button>
<button id="nextBtn"><div class="arrow">→</div></button>
</div>
</div>
</div>
</div>
<div class="text-Container" style="margin: 0 30px; text-align: left;">
<h1>Je schooljaar</h1>
<p style="font-size:20px;">Onze opleiding volgt een beetje rare routen als het gaat om "schooljaren", maar geef me 10s en dan heb ik het zo uitgelegd!
Onze opleiding die werkt in "blokken", elk blok duurt ongv een half jaar. Op het einde van elk blok wordt er een soort "mini examen"
gehouden wat eigenlijk inhoudt dat je 2-5 iets grotere toetsen maatk om te zien of je de stof van dat blok hebt begrepen. Dit wordt gedaan
om te voorkomen dat leerlingen die het niet goed hebben begrepen geen heel jaar maar een half jaar moeten overdoen. Ben je nog bij?
Mooi zo! Laten we verder gaan, je heb dus in principe 6 blokken en 1 jaar Stage. Je begint je eerste 2 Blokken met de basis te leren en je
skills als een Software Developer te ontwikkelen en al snel zul je merken wat je beter afgaat en wat niet. Daarna in het 3de blok ga je met behulp
van je leerkrachten en mentor je voorbereiden op je stage in blok 4. Nadat je klaar bent met je stage ga je in blok 5 een specialisatie keuzen
moeten maken waarbij je gaat kiezen in welk gedeelte van Software Developer je wilt verdiepen waarna in blok 6 de Eindexamens volgen. Nadat je alle
blokken hebt gedaan en je eindexamen hebt gedaan ga je nog 1 jaar op eindstage en als dat klaar is kun je jouw diploma komen ophalen voor
Software Developer. Maar als je al wat kennis hebt, kun je ook een versnellingstraject doen! dan komt je eindstage te vervallen.
</p>
</div>
<div class="small-Container" style="justify-content: space-between; display:flex; flex-direction: column;">
<div class="agenda-container" style="height:250px;">
<h1>Wist je dat?</h1>
<div class="typewriter" id="typewriter2" style="width:max-content; max-width: 350px; height:500px;">
<p id="textWjd"></p>
</div>
</div>
<div class="agenda-container" style="height:250px;">
<div class="agenda-header">
<button id="prevBtnVak"><div class="arrow">←</div></button>
<button id="nextBtnVak" style="margin:0 8px 0 5px;"><div class="arrow">→</div></button>
<h1 style="margin:0; display:flex;flex-direction: row;">
Vak:
<div class="subject active">Native</div>
<div class="subject">Web</div>
<div class="subject">Pro</div>
<div class="subject">Praktijk</div>
<div class="subject">Codelab</div>
<div class="subject">Engels</div>
<div class="subject">Nederlands</div>
<div class="subject">Rekenen</div>
<div class="subject">Mentor uur</div>
<div class="subject">Por</div>
</h1>
</div>
<div id="subject-Container" class="subject-inhoud">
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="line">
<div class="blur"></div>
</div>
<div style="display:flex; justify-content: space-between; margin:0 10%;">
<div>
<div class="footerContent" style="display:flex; flex-direction: row; text-align:center;">
<img src="./img/phoenix logo.png" width="80px" style="border-radius: 50%;">
<p style="font-size:23px; margin:auto 5px;">Made by <strong style="color: orange; text-shadow: black 1px 1px 1px;">RJO</strong></p>
</div>
<div class="footerContent" style="margin:0 10%; display:flex; flex-direction: row; text-align:center;">
<p>Je kunt deze website ook vinden op <strong>curio.rjo-web.nl</strong></p>
</div>
</div>
<div>
<p style="font-size:23px">Voor meer info, ga naar https://www.curio.nl</p>
<p style="font-size:15px"> locatie: <strong>Terheidenseweg 350, Breda</strong></p>
</div>
</div>
</footer>
</body>
</html>
<script>
document.addEventListener("DOMContentLoaded", function() {
const days = document.querySelectorAll(".agenda-day");
const prevBtn = document.getElementById("prevBtn");
const nextBtn = document.getElementById("nextBtn");
const agendaContainer = document.getElementById('agenda');
let currentDayIndex = 0;
const arrowButton2 = document.getElementById('nextBtn');
const arrowButton = document.getElementById('prevBtn');
days[currentDayIndex].classList.add("active");
prevBtn.addEventListener("click", showPreviousDay);
nextBtn.addEventListener("click", showNextDay);
const wjdElement = document.getElementById("wjd");
const wjdText = document.getElementById("textWjd");
var currentWjd = 0;
const subjectContainer = document.getElementById("subject-Container");
const subjects = document.querySelectorAll(".subject");
const prevBtnVak = document.getElementById("prevBtnVak");
const nextBtnVak = document.getElementById("nextBtnVak");
prevBtnVak.addEventListener("click", ShowPreviousSubject);
nextBtnVak.addEventListener("click", ShowNextSubject);
let currentSubjectIndex = 0;
function showPreviousDay() {
days[currentDayIndex].classList.remove("active");
currentDayIndex = (currentDayIndex - 1 + days.length) % days.length;
days[currentDayIndex].classList.add("active");
animateText("right", "agenda")
fetchTextFromFile("normal");
}
function showNextDay() {
days[currentDayIndex].classList.remove("active");
currentDayIndex = (currentDayIndex + 1) % days.length;
days[currentDayIndex].classList.add("active");
animateText("left", "agenda")
fetchTextFromFile("normal");
}
function ShowPreviousSubject() {
subjects[currentSubjectIndex].classList.remove("active");
currentSubjectIndex = (currentSubjectIndex - 1 + subjects.length) % subjects.length;
subjects[currentSubjectIndex].classList.add("active");
animateText("down", "subject-Container");
fetchTextFromFile("subject");
}
function ShowNextSubject() {
subjects[currentSubjectIndex].classList.remove("active");
currentSubjectIndex = (currentSubjectIndex + 1) % subjects.length;
subjects[currentSubjectIndex].classList.add("active");
animateText("down", "subject-Container");
fetchTextFromFile("subject");
}
async function fetchTextFromFile(type, currentIndexWJD = 0) {
setTimeout(async () => {
if (type == "normal") {
try {
const response = await fetch('./textfiles/' + currentDayIndex + '.txt');
const text = await response.text();
agendaContainer.innerHTML = text;
} catch (error) {
console.error('Error fetching and displaying text:', error);
}
}
else if (type =="subject") {
try {
const response = await fetch('./textfiles/vakText/' + currentSubjectIndex + '.txt');
const text = await response.text();
subjectContainer.innerHTML = text;
} catch (error) {
console.error('Error fetching and displaying text:', error);
}
}
}, 500);
if(type == "wjd") {
try {
const response = await fetch('./textfiles/wjdText/wjd' + currentIndexWJD + '.txt');
return response;
}
catch (error) {
console.error('Error fetching and displaying text:', error);
}
}
}
fetchTextFromFile("normal")
fetchTextFromFile("subject")
function animateText(side, containerId) {
const textContainer = document.getElementById(containerId);
if(side == 'left') {
textContainer.style.transform = 'translateX(-15%)';
}
else if (side == 'right') {textContainer.style.transform = 'translateX(15%)';}
else if(side == 'down') {textContainer.style.transform = 'translateY(15%)';}
textContainer.classList.add('flying');
setTimeout(() => {
if(side == 'left') {
textContainer.style.transform = 'translateX(-15%)';
}
else if(side == 'right') {textContainer.style.transform = 'translateX(15%)';}
textContainer.classList.remove('flying');
if(side == 'left') {
textContainer.style.transform = 'translateX(15%)';
textContainer.style.transform = 'translateX(0)';
}
else if(side == 'right'){
textContainer.style.transform = 'translateX(-15%)';
textContainer.style.transform = 'translateX(0)';
}
else if(side == 'down') {
textContainer.style.transform = 'translateY(0%)';
}
// days[currentDayIndex].classList.remove('flying');
}, 500);
}
arrowButton.addEventListener('click', () => {
arrowButton.classList.add('clicked');
setTimeout(() => {
arrowButton.classList.remove('clicked');
}, 500);
});
arrowButton2.addEventListener('click', () => {
arrowButton2.classList.add('clicked');
setTimeout(() => {
arrowButton2.classList.remove('clicked');
}, 500);
});
async function typeText() {
let currentIndex = 0;
const text = await fetchTextFromFile("wjd", currentWjd);
if(currentWjd >= 9) {currentWjd = 0;} else {
currentWjd = currentWjd + 1;}
const textToType = await text.text();
const typingInterval = setInterval(() => {
wjdText.textContent += textToType[currentIndex];
currentIndex++;
if (currentIndex === textToType.length) {
clearInterval(typingInterval);
setTimeout(eraseText, 25000); // Wait for 3 seconds and then erase the text
}
}, 40);
}
function eraseText(currentWjd) {
const textLength = wjdText.textContent.length;
const erasingInterval = setInterval(() => {
wjdText.textContent = wjdText.textContent.slice(0, -1);
if (wjdText.textContent.length === 0) {
clearInterval(erasingInterval);
setTimeout(typeText, 500); // Wait for 30 seconds and then type the text again
}
}, 18);
}
typeText(); // Start the typing animation initially
});
</script>