-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobile.html
More file actions
100 lines (92 loc) · 3.8 KB
/
Copy pathmobile.html
File metadata and controls
100 lines (92 loc) · 3.8 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="referrer" content="never">
<!--移动端-->
<title>foryou网站导航</title>
<link rel="icon" sizes="any" href="https://i.imgtg.com/2023/03/09/YQfnF.png">
<meta name="keywords" content="foryouos浏览器导航页,GitHub UI重构项目"/>
<meta name="description" content="foryou网页导航移动端页面"/>
<meta name="author" content="https://www.so.foryouos.cn"/>
<meta http-equiv="content-Type" content="text/html;charset=utf-8"/>
<script>
function browserRedirect() {
var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
var bIsMidp = sUserAgent.match(/midp/i) == "midp";
var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
var bIsAndroid = sUserAgent.match(/android/i) == "android";
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
if ( bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
//跳转移动端页面
//window.location.href = "mobile.html";
} else {
//跳转pc端页面
window.location.href = "index.html";
}
}
browserRedirect();
</script>
<!-- <script>-->
<!-- WIDGET = {-->
<!-- "CONFIG": {-->
<!-- "modules": "01234",-->
<!-- "background": "5",-->
<!-- "tmpColor": "E6B8AF",-->
<!-- "tmpSize": "56",-->
<!-- "cityColor": "434343",-->
<!-- "citySize": "56",-->
<!-- "aqiColor": "FF9900",-->
<!-- "aqiSize": "66",-->
<!-- "weatherIconSize": "94",-->
<!-- "alertIconSize": "58",-->
<!-- "padding": "10px 10px 10px 10px",-->
<!-- "shadow": "1",-->
<!-- "language": "auto",-->
<!-- "borderRadius": "10",-->
<!-- "fixed": "true",-->
<!-- "vertical": "center",-->
<!-- "horizontal": "left",-->
<!-- "city": "CN101180301",-->
<!-- "left": "40",-->
<!-- "top": "20",-->
<!-- "key": "6cfd3807500d4af38572be5b6b6d0f24"-->
<!-- }-->
<!-- }-->
<!-- </script>-->
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>
<script src="mobile.js" type="text/javascript"></script>
<link rel="stylesheet" href="mobile.css" >
</head>
<body>
<div id="he-plugin-simple"></div>
<div>
<form action="https://www.baidu.com/s?" id="frame_so" name="soform">
<input type="text" name="wd" autofocus placeholder="搜索一下,你就知道" autocomplete="off" id="kw">
</form>
<div>
<div class="gallery">
<a href="https://www.blog.foryouos.cn">
<img src="https://i.imgtg.com/2023/03/24/9ILcG.png" alt="博客" title="博客">
</a>
<a href="https://www.foryouos.cn">
<img src="https://i.imgtg.com/2023/03/09/YQ8Yg.png" alt="主页" title="瓶子的跋涉">
</a>
<a href="https://www.github.com/foryouos">
<img src="https://i.imgtg.com/2023/03/09/YQIAs.png" alt="Github" title="Github">
</a>
</div>
</div>
</div>
<div id="footer_end">
<footer>
<a href="https://www.blog.foryouos.cn/" target="_blank"> Blog |</a>
<a href="https://github.com/foryouos" target="_blank"> GitHub</a>
</footer>
</div>
</body>
</html>