-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
382 lines (353 loc) · 11.4 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
<!--
oooooo oooooo oooo oooooo oooo ooooo ooooo
`888. `888. .8' `888. .8' `888' `888'
`888. .8888. .8' `888. .8' 888 888
`888 .8'`888. .8' `888. .8' 888ooooo888
`888.8' `888.8' `888.8' 888 888
`888' `888' `888' 888 888 .o.
`8' `8' `8' o888o o888o Y8P
Site made by Wouter Van Hoof
Belgium, February 2021
-->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Wouter Van Hoof</title>
<link href="logoKleur.png" rel="icon">
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js">
</script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet">
<script async defer src="https://www.google.com/recaptcha/api.js">
</script>
<script>
if (window.location.host.indexOf('github.io') > -1 && window.location.protocol != "https:"){
window.location.protocol = "https";
}
$(document).ready(function() {
$(window).scroll(function navbarchange() {
if ($(document).scrollTop() > 50) {
$('.navbar').addClass("fixto-fixed");
// $('.navbar').addClass("navbar-light");
// $('.navbar').removeClass("navbar-dark");
document.getElementById("logoNavbar").src = "logoKleurTekstZ.png";
} else {
$('.navbar').removeClass("fixto-fixed");
// $('.navbar').addClass("navbar-dark");
// $('.navbar').removeClass("navbar-light");
document.getElementById("logoNavbar").src = "logoKleurTekst.png";
}
});
var divId;
$('.nav-link').click(function(){
divId = $(this).attr('href');
$('html, body').animate({
scrollTop: $(divId).offset().top - 54
}, 100);
});
window.addEventListener('hashchange', function(){
history.pushState("", document.title, window.location.pathname
+ window.location.search);
});
$('.jaar').html((new Date()).getFullYear());
calculate_age(new Date(2000, 10, 5));
function calculate_age(dob) {
var diff_ms = Date.now() - dob.getTime();
var age_dt = new Date(diff_ms);
$('.leeftijd').html(Math.abs(age_dt.getUTCFullYear() - 1970));
}
function mailConfirm() {
var toastElList = [].slice.call(document.querySelectorAll('.toast'))
var toastList = toastElList.map(function(toastEl) {
// Creates an array of toasts (it only initializes them)
return new bootstrap.Toast(toastEl) // No need for options; use the default options
});
toastList.forEach(toast => toast.show()); // This show them
console.log(toastList); // Testing to see if it works
}
var form = document.getElementById("my-form");
var button = document.getElementById("verzenden");
var status = document.getElementById("my-form-status");
function success() {
form.reset();
$("#loading").hide();
document.getElementById("verzenden").disabled = false;
mailConfirm();
}
function error() {
$("#loading").hide();
document.getElementById("verzenden").disabled = false;
status.innerHTML = "<br>Oops! There was a problem. Please try again.";
}
form.addEventListener("submit", function(ev) {
ev.preventDefault();
$("#loading").show();
document.getElementById("verzenden").disabled = true;
var data = new FormData(form);
ajax(form.method, form.action, data, success, error);
});
$('.navbar-nav>li>a').on('click', function(){
$('.navbar-collapse').collapse('hide');
});
});
function ajax(method, url, data, success, error) {
var xhr = new XMLHttpRequest();
xhr.open(method, url);
xhr.setRequestHeader("Accept", "application/json");
xhr.onreadystatechange = function() {
if (xhr.readyState !== XMLHttpRequest.DONE) return;
if (xhr.status === 200) {
success(xhr.response, xhr.responseType);
} else {
error(xhr.status, xhr.response, xhr.responseType);
}
};
xhr.send(data);
}
function enableBtn(){
document.getElementById("verzenden").disabled = false;
}
</script>
<style>
body, html {
height: 100%;
margin: 0;
font-family: "Open Sans",sans-serif;
position:relative;
}
.bg {
background-image: url("background.jpg");
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.logo {
text-align: right;
}
.logo img {
width:30%;
}
.intro{
position: absolute;
left: 0;
top: 38%;
width: 100%;
text-align: center;
color: white;
margin:0px;
}
.introText{
margin: auto;
}
.navbar-toggler{
color:white!important;
}
.navbar {
margin-bottom: 0;
border-radius: 0;
padding-left: 3%;
padding-right:3%;
font-weight: 600;
font-size:14px;
text-transform: uppercase;
}
.navbarlogo img {
height : 100%;
}
.navbar-trans {
background-color: transparent;
}
.nav-link{
color:white!important;
}
.nav-link:hover{
border-bottom: 3px solid #00DED7;
}
.active{
border-bottom: 3px solid #00DED7;
}
.nav-item{
border-bottom: 3px solid transparent;
padding-left: .85rem;
padding-right: .85rem;
text-align:right;
}
.talen img{
width:70px;
}
.fixto-fixed {
transform: translateZ(0);
background-color: #FFF;
box-shadow: 0 0 5px 2px rgb(0 0 0 / 33%);
}
.fixto-fixed a{
color:black!important;
}
.contactGegevens {
background-color: white;
padding: 10px;
padding-top: 5px;
border-top: solid #00DED7 0.3em !important;
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%);
margin: 0.01em 16px;
margin-top:20px!important;
margin-bottom: 1.5em!important;
text-align:left;
max-width:600px !important;
margin: auto;
}
h4{
font-weight:400;
margin: 10px 0;
}
h2{
font-weight: 600;
text-transform: uppercase;
}
#verzenden{
background-color:#00DED7 !important;
border-color:#00DED7 !important;
margin-right: 10px;
}
#verzenden:disabled{
background-color:#b5b5b5 !important;
border-color:#b5b5b5 !important;
margin-right: 10px;
}
.contactpag{
padding-top:100px;
margin:0px !important;
padding-bottom:100px!important;
}
.contactpag h2{
text-align:left;
margin:auto;
max-width: 600px;
}
.tekst{
max-width:600px;
margin:auto;
text-align:justify;
}
.about h2{
max-width:600px;
text-align:left;
margin:auto;
}
.about{
padding-top:100px!important;
padding-bottom:100px!important;
padding:50px;
margin:0px !important;
}
#loading{
color:#00DED7;
}
.navbar-toggler{
background-color:white;
}
@media only screen and (max-width: 767px) {
.logo{
text-align:center!important;
}
.introText{
text-align:center!important;
}
.intro{
top:35%;
}
.nav{
max-width:30%;
}
}
footer {
background-color: #f2f2f2;
padding: 25px;
}
</style>
</head>
<body data-bs-offset="100" data-bs-spy="scroll" data-bs-target=".navbar">
<nav class="navbar navbar-expand-lg fixed-top navbar-light navbar-trans animate__animated animate__fadeIn">
<div class="container-fluid">
<a class="navbar-brand navbarlogo" href="#home"><img class="d-inline-block align-top" id="logoNavbar" src="logoKleurTekst.png" width="70"></a> <button aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-bs-target="#myNavbar" data-bs-toggle="collapse" type="button"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link home active" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="bg" id="home">
<div class="row intro text-center animate__animated animate__zoomIn">
<div class="col-md-5">
<div class="logo"><img src="logoKleur.png"></div>
</div>
<div class="col-md-7 introText" style="text-align:left;">
<br>
<h1>Wouter Van Hoof</h1>
<p>Tech enthousiast and tinkerer</p>
</div>
</div>
</div>
<div class="container-fluid bg-3 text-center about" id="about" style="background-color:#F5F5F5;">
<h2>About</h2>
<div class="tekst">
<br>
<p>I'm a <span class="leeftijd"></span> year old student electronics-ict from Belgium. In my free time, I like playing music, being a scout leader and to tinker with electronics or software. I can program in C, java and assembly. I also enjoy making websites in PHP, html, css and javascript.</p>
</div>
</div>
<div class="container-fluid bg-3 text-center contactpag" id="contact">
<h2>Contact</h2>
<div class="col w3-animate-bottom contactGegevens">
<h4>Send me a message!</h4><br>
<form action="https://formspree.io/f/xaylzeyn" id="my-form" method="post" name="my-form">
<div class="mb-3">
<label class="form-label" for="exampleFormControlInput1">Your name</label> <input autocomplete="name" class="form-control" id="exampleFormControlInput1" name="name" placeholder="John Doe" required="" type="text">
</div>
<div class="mb-3">
<label class="form-label" for="exampleFormControlInput1">Your email adress</label> <input autocomplete="email" class="form-control" id="exampleFormControlInput1" name="_replyto" placeholder="[email protected]" required="" type="email">
</div>
<div class="mb-3">
<label class="form-label" for="exampleFormControlTextarea1">Message</label>
<textarea class="form-control" id="exampleFormControlTextarea1" name="bericht" required="" rows="3"></textarea>
</div>
<div class="g-recaptcha" data-callback="enableBtn" data-sitekey="6LdI6R0TAAAAAGBLWpRs2tulMBIqCPuJMXR27Tpa"></div><br>
<div class="d-flex align-items-center">
<button class="btn btn-primary" disabled="disabled" id="verzenden" name="verzenden">Send!</button>
<div class="spinner-border" id="loading" role="status" style="display:none;">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<p id="my-form-status"></p>
</form>
</div>
</div>
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 5">
<div aria-atomic="true" aria-live="assertive" class="toast hide" id="liveToast" role="alert">
<div class="toast-header">
<svg aria-hidden="true" class="bd-placeholder-img rounded me-2" height="20" preserveaspectratio="xMidYMid slice" width="20" xmlns="http://www.w3.org/2000/svg">
<rect fill="#00DED7" height="100%" width="100%"></rect></svg> <strong class="me-auto">Wouter Van Hoof</strong> <small>just now</small> <button aria-label="Close" class="btn-close" data-bs-dismiss="toast" type="button"></button>
</div>
<div class="toast-body">
Message sent successfully!
</div>
</div>
</div>
<footer class="container-fluid text-center">
<p>©<span class="jaar"></span> Wouter Van Hoof</p>
</footer>
</body>
</html>