-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
67 lines (61 loc) · 2.01 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
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>Youreln工具箱起始页</title>
<style>
body {
background-color: #f5f5f5;
text-align: center;
font-family: Arial, sans-serif;
}
.container {
margin-top: 200px;
}
h1 {
font-size: 36px;
color: #333;
margin-bottom: 20px;
}
p {
font-size: 18px;
color: #666;
margin-bottom: 40px;
}
.btn {
display: inline-block;
padding: 10px 20px;
font-size: 20px;
background-color: #007bff;
color: #fff;
text-decoration: none;
border-radius: 4px;
}
</style>
<script>
// 检测设备类型并进行跳转
function detectDeviceAndRedirect() {
if (isMobile()) {
var choice = confirm("移动设备网页版已经放缓更新,推荐下载app以体验最新功能\n点击【确定】将跳转至网页版,点击【取消】将进行安卓版下载。");
if (choice) {
window.location.href = 'app-h5.html';
} else {
window.location.href = 'http://lc-tSvFkeR3.cn-n1.lcfile.com/TqwBNBIb5xHsCXdJtaqSMBxKPhLltClV/Youreln%E5%B7%A5%E5%85%B7%E7%AE%B1_2.5.0_release.apk';
}
} else {
window.location.href = 'pc.html';
}
}
// 判断是否为移动设备
function isMobile() {
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
}
</script>
</head>
<body onload="detectDeviceAndRedirect();">
<div class="container">
<h1>欢迎来到Youreln工具箱</h1>
<p>即将进入...</p>
</div>
</body>
</html>