-
Notifications
You must be signed in to change notification settings - Fork 282
/
bdlogin.html
99 lines (91 loc) · 2.78 KB
/
bdlogin.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="referrer" content="never">
<title>Login</title>
<style>
#messagebox {
position: fixed;
width: 100%;
max-width: 530px;
background: #fff;
padding: 30px;
margin: auto;
left: 0;
right: 0;
border-radius: 4px;
}
#messagebox h1 {
text-align: center;
}
#messagebox p {
margin: 10px 0;
}
.ok-btn {
color: #fff;
background-color: #5cb85c;
border-color: #4cae4c;
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
border: 1px solid transparent;
border-radius: 4px;
display: block;
margin: auto;
max-width: 150px;
}
.ok-btn:hover {
background: #6ecc6e;
}
.not-visible {
visibility: hidden;
}
</style>
</head>
<body>
<div id="messagebox" style="display: none;">
<h1>
提示
</h1>
<p>
您当前使用的是<b>IE内核</b><br>
如果通过<b>用户名密码登录</b>可能会出现<b>当前浏览器版本过低无法登录</b>的问题<br>
解决方法:<br>
1. 下载Webkit内核(下载地址在窗口底部)<br>
2. 使用扫码登录或第三方账号登录
</p>
<div class="ok-btn"
onclick="window.location.href='https://passport.baidu.com/v2/?login&u=https%3A%2F%2Fpan.baidu.com%2Fdisk%2Fhome';">
<p>
确定
</p>
</div>
</div>
<script>
function detectIE() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
if (msie > 0) {
return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
}
return false;
}
var version = detectIE();
if (version === false) {
window.location.href = "https://passport.baidu.com/v2/?login&u=https%3A%2F%2Fpan.baidu.com%2Fdisk%2Fhome";
} else {
document.body.style.backgroundColor = "#CCCCCC";
document.getElementById("messagebox").style.display = "";
}
</script>
</body>
</html>