-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (61 loc) · 1.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DPSBE6WEKM"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-DPSBE6WEKM');
</script>
<meta charset="utf-8">
<title>Ernstig.com</title>
<meta name="description" content="Developer / Cybersecurity Specialist" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" media="screen" href="css/style.css">
<script>
function switchLanguage(language) {
const textEN = "<ul>" +
"<br>There's not a lot going on here (again)...<br><br>";
const textNL = "<ul>" +
"<br>Het is hier (weer) vrij rustig...<br><br>";
if (language === 'EN') {
document.getElementById('text').innerHTML = textEN;
switchImage('img/headerEN.png');
} else if (language === 'NL') {
document.getElementById('text').innerHTML = textNL;
switchImage('img/headerNL.png');
}
}
function switchImage(imageSrc) {
document.getElementById('ernstig').src = imageSrc;
document.getElementById('ernstig').style = "max-width:90%; max-height:20%"
}
</script>
</head>
<body>
<body onload="switchLanguage('NL')"></body>
<br>
<div>
<div>
<p align="center">
<a href="#" onclick="switchLanguage('NL')" class="language-link">Nederlands</a> |
<a href="#" onclick="switchLanguage('EN')" class="language-link">English</a>
</p>
</div>
<div>
<p align="center">
<img id="ernstig" src="img/headerNL.png" style="max-width:90%; max-height:20%">
<div id="text-container" style="text-align: center;">
<div id="text" style="text-align: left; display: inline-block;">
</div>
<div style="margin-top: 2%">
<p align="center">
<a href="mailto:[email protected]" class="contact-link"><img src="img/mail.png" width="4%"></a>
</p>
</div>
</div>
</div>
</body>
</html>