-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (47 loc) · 1.86 KB
/
index.html
File metadata and controls
52 lines (47 loc) · 1.86 KB
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
<!DOCTYPE html>
<html>
<head>
<!-- Google Tag Manager ->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PJSXD6TP');</script>
<!- End Google Tag Manager -->
<meta charset="utf-8">
<title>Dominik Kern Dynamics</title>
<script type="text/javascript">
// Determine the user's browser language, defaulting to 'en'.
const userLang = navigator.language || navigator.userLanguage || 'en';
// Define the target URL, defaulting to the English version.
let targetUrl = '/en/';
// If the browser language starts with 'de', change the target to the German version.
// Using startsWith('de') covers 'de', 'de-DE', 'de-AT', etc.
if (userLang.startsWith('de')) {
targetUrl = '/de/';
}
// Use window.location.replace() to redirect.
// This is better than window.location.href because it doesn't create
// an entry in the browser's history, so the user can't get stuck
// in a redirect loop by clicking the "back" button.
window.location.replace(targetUrl);
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=/en/">
</noscript>
</head>
<body>
<!-- Google Tag Manager (noscript) ->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PJSXD6TP"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!- End Google Tag Manager (noscript) -->
<p>Loading your preferred language...</p>
<p>If you are not redirected, please choose your language:</p>
<nav>
<ul>
<li><a href="/en/">English</a></li>
<li><a href="/de/">Deutsch</a></li>
</ul>
</nav>
</body>
</html>