-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (32 loc) · 942 Bytes
/
index.html
File metadata and controls
34 lines (32 loc) · 942 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Ulink!</title>
</head>
<body>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var SVR = JSON.parse(this.responseText);
console.log(SVR.home)
if (SVR.MD === "DBG") {
window.location.href = "/svr/err.html?dbg=true";
}
else {
if (SVR.HM === null || SVR.HM === "") {
window.location.href = "/svr/err.html?loc=false"
} else {
window.location.href = SVR.HM;
}
}
}
};
xmlhttp.open("GET", "/svr/svr.json", true);
xmlhttp.send();
</script>
</body>
</html>