docs: add hm script
parent
b36c663274
commit
b3a050a35d
|
@ -18,11 +18,13 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
|
var isGithub = location.host.indexOf('github') !== -1;
|
||||||
|
var src = isGithub ? 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867' : 'https://hm.baidu.com/hm.js?1564b57c5b8f74933e4fedca9dc75b0d';
|
||||||
(function() {
|
(function() {
|
||||||
const hm = document.createElement('script')
|
var hm = document.createElement('script');
|
||||||
hm.src = 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867'
|
hm.src = src;
|
||||||
const s = document.getElementsByTagName('script')[0]
|
var s = document.getElementsByTagName('script')[0];
|
||||||
s.parentNode.insertBefore(hm, s)
|
s.parentNode.insertBefore(hm, s);
|
||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -50,4 +52,4 @@
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue