-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
58 lines (54 loc) · 1.51 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
<!doctype html>
<html>
<head>
<title>Stella - Things to change the world</title>
<meta name="description"
content="Search - Stella provides services and content worthy enough to change the world.">
</head>
<body>
<script>
try{
var adit = new URL(window.location).searchParams.get("adit");
ok();
}catch(error){
window.location.replace("notsupported.html");
}
function ok(){
if (window.innerHeight > window.innerWidth){
var mobile = 1;
}
if (adit == null){
var blan = navigator.language.split("-")[0];
if (mobile == 1){
window.location.replace(blan + "/index-m.html?adit=root_domain_flagverifier");
} else{
window.location.replace(blan + "/index-d.html?adit=root_domain_flagverifier");
}
}
if (adit == "lan_notvalid"){
var ipapi = new XMLHttpRequest();
ipapi.open("GET", "https://ipapi.co/json");
ipapi.onreadystatechange = function (){
if (this.readyState == 4 || this.status == 200){
var resp = JSON.parse(this.responseText);
if (mobile == 1){
window.location.replace(blan + "/index-m.html?adit=root_domain_flagverifier2");
} else{
window.location.replace(blan + "/index-d.html?adit=root_domain_flagverifier2");
}
}
}
ipapi.send();
}
if (adit == "lan_notvalid2"){
if (mobile == 1){
window.location.replace("/en/index-m.html?adit=root_domain_flagfail");
} else{
window.location.replace("/en/index-d.html?adit=root_domain_flagfail");
}
}
}
</script>
Couldn't bootstrap Stella Omni. There may be an issue with your browser or network. Check the console for more details. <3 <br>~Stella
</body>
</html>