-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (29 loc) · 1.1 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Zyneon Nexus - Loading...</title>
<link rel="icon" type="image/png" href="https://zyneonstudios.com/assets/images/2024.png"/>
<link id="shared-css" rel="stylesheet" href="https://zyneonstudios.com/assets/css/shared.css">
</head>
<body bgcolor="#050713">
<script>
function getBrowserLanguage() {
const urlParams = new URLSearchParams(window.location.search);
let s = "";
if(urlParams.get("closeApp")!=null) {
if(urlParams.get("closeApp")==="true") {
s="?closeApp=true";
}
}
const browserLanguage = navigator.language || navigator.userLanguage;
if(browserLanguage.toLowerCase().startsWith("de")) {
window.location.href = "de"+s;
} else {
window.location.href = "en"+s;
}
}
window.onload = getBrowserLanguage;
</script>
</body>
</html>