-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathotherinsatll.html
58 lines (56 loc) · 1.48 KB
/
otherinsatll.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 lang="zh">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />
<title>
达达办公
</title>
<style type="text/css">
.installBody{
text-align: center;
margin-top: 300px;
font-size: 3rem;
}
</style>
<script>
function load()
{
function myBrowser(){
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
var isOpera = userAgent.indexOf("Opera") > -1;
if (isOpera) {
return "Opera"
}; //判断是否Opera浏览器
if (userAgent.indexOf("Firefox") > -1) {
return "FF";
} //判断是否Firefox浏览器
if (userAgent.indexOf("Chrome") > -1){
return "Chrome";
}
if (userAgent.indexOf("Safari") > -1) {
return "Safari";
} //判断是否Safari浏览器
if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) {
return "IE";
}; //判断是否IE浏览器
}
//以下是调用上面的函数
var mb = myBrowser();
if ("Safari" != mb) {
alert("请使用Safari打开此页面");
}
window.location.href="itms-services://?action=download-manifest&url=https://raw.githubusercontent.com/Guoxiafei/DCCBOAAPP/master/DCCBOA.plist";
}
</script>
</head>
<body onload="load()">
<div class="installBody">
<p >
请点击右上角,选择Safari打开此页面。<br/>
<br/>
点击安装后,回到桌面查看安装进度。
</p>
</div>
</body>
</html>