-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (52 loc) · 1.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redirecting...</title>
<style>
body {
background-color: #121212;
color: #ffffff;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
text-align: center;
}
a {
color: #4caf50;
}
</style>
<script>
window.onload = function() {
var ua = navigator.userAgent.toLowerCase();
var url = '';
if (/android|iphone|ipad/.test(ua)) {
url = 'https://mob.crabby.me';
} else if (/linux|mac os/.test(ua)) {
url = 'https://adv.crabby.me';
} else if (/windows/.test(ua)) {
url = 'https://win.crabby.me';
}
if (url) {
window.location.href = url;
} else {
document.body.innerHTML = `
<h1>Choose your platform:</h1>
<ul>
<li><a href="https://adv.crabby.me">Linux/macOS</a></li>
<li><a href="https://mob.crabby.me">Mobile (iOS/Android)</a></li>
<li><a href="https://win.crabby.me">Windows</a></li>
<li><a href="https://ai.crabby.me">AI Platform</a></li>
</ul>`;
}
}
</script>
</head>
<body>
<p>Redirecting...</p>
</body>
</html>