-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (56 loc) · 2.15 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta content="yes" name="apple-touch-fullscreen">
<script>
//添加viewport-mate标签缩放网页。
! function(userAgent) {
if(userAgent.match(/AppleWebKit.*Mobile.*/)) {
var screen_w = parseInt(window.screen.width),
scale = screen_w / 750;
if(/Android (\d+\.\d+)/.test(userAgent)) {
var version = parseFloat(RegExp.$1);
if(userAgent.indexOf("MX") > -1 && version >= 5) {
//alert(userAgent)
document.write('<meta name="viewport" content="width=750,minimum-scale = ' + scale + ', maximum-scale = ' + scale + ', target-densitydpi=device-dpi">');
} else {
document.write(version > 2.3 ? '<meta name="viewport" content="width=750, minimum-scale = ' + scale + ', maximum-scale = ' + scale + ', target-densitydpi=device-dpi">' : '<meta name="viewport" content="width=750, target-densitydpi=device-dpi">');
};
} else {
document.write('<meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi, viewport-fit=cover">');
}
}
}(navigator.userAgent);
</script>
<script type="text/javascript" src="./static/js/segment.min.js"></script>
<script type="text/javascript" src="./static/js/ease.min.js"></script>
<title>df-h5</title>
</head>
<body ontouchstart="">
<div id="app"></div>
<!-- built files will be auto injected -->
<script>
(function(a, h, c, b, f, g) {
a["UdeskApiObject"] = f;
a[f] = a[f] || function() {
(a[f].d = a[f].d || []).push(arguments)
};
g = h.createElement(c);
g.async = 1;
g.charset = "utf-8";
g.src = b;
c = h.getElementsByTagName(c)[0];
c.parentNode.insertBefore(g, c)
})(window, document, "script", "http://assets-cli.udesk.cn/im_client/js/udeskApi.js", "ud");
ud({
"code": "258gcd2e",
"link": "http://dafu.udesk.cn/im_client/?web_plugin_id=41955"
});
</script>
</body>
</html>