Skip to content

Commit e19a059

Browse files
committed
chore: H5端添加百度统计
1 parent 2176fc0 commit e19a059

File tree

1 file changed

+32
-21
lines changed

1 file changed

+32
-21
lines changed

index.html

+32-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
11
<!DOCTYPE html>
22
<html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<script>
6+
var coverSupport =
7+
'CSS' in window &&
8+
typeof CSS.supports === 'function' &&
9+
(CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
10+
document.write(
11+
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
12+
(coverSupport ? ', viewport-fit=cover' : '') +
13+
'" />',
14+
)
15+
</script>
16+
<title></title>
17+
<!--preload-links-->
18+
<!--app-context-->
19+
</head>
320

4-
<head>
5-
<meta charset="UTF-8" />
6-
<script>
7-
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
8-
CSS.supports('top: constant(a)'))
9-
document.write(
10-
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
11-
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
12-
</script>
13-
<title></title>
14-
<!--preload-links-->
15-
<!--app-context-->
16-
</head>
17-
18-
<body>
19-
<div id="app">
20-
<!--app-html-->
21-
</div>
22-
<script type="module" src="/src/main.ts"></script>
23-
</body>
24-
21+
<body>
22+
<div id="app">
23+
<!--app-html-->
24+
</div>
25+
<script type="module" src="/src/main.ts"></script>
26+
<script>
27+
var _hmt = _hmt || []
28+
;(function () {
29+
var hm = document.createElement('script')
30+
hm.src = 'https://hm.baidu.com/hm.js?47837f06b6f8cf08ba80165ca9a80711'
31+
var s = document.getElementsByTagName('script')[0]
32+
s.parentNode.insertBefore(hm, s)
33+
})()
34+
</script>
35+
</body>
2536
</html>

0 commit comments

Comments
 (0)