forked from alibaba/hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (48 loc) · 1.43 KB
/
index.html
File metadata and controls
48 lines (48 loc) · 1.43 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
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="format-detection" content="telephone=no,address=no" />
<meta name="apple-mobile-web-app-status-bar-style" content="white" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title></title>
<script>
!(function (x) {
function w() {
var v,
u,
t,
tes,
s = x.document,
r = s.documentElement,
a = r.getBoundingClientRect().width;
if (!v && !u) {
var n = !!x.navigator.appVersion.match(/AppleWebKit.*Mobile.*/);
v = x.devicePixelRatio;
tes = x.devicePixelRatio;
(v = n ? v : 1), (u = 1 / v);
}
if (a >= 640) {
r.style.fontSize = '40px';
} else {
if (a <= 320) {
r.style.fontSize = '20px';
} else {
r.style.fontSize = (a / 320) * 20 + 'px';
}
}
}
x.addEventListener('resize', function () {
w();
});
w();
})(window);
</script>
</head>
<body>
<div id="app"></div>
</body>
</html>