File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 18
18
</ style >
19
19
< script >
20
20
var _hmt = _hmt || [ ] ;
21
+ var isGithub = location . host . indexOf ( 'github' ) !== - 1 ;
22
+ var src = isGithub ? 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867' : 'https://hm.baidu.com/hm.js?1564b57c5b8f74933e4fedca9dc75b0d' ;
21
23
( function ( ) {
22
- const hm = document . createElement ( 'script' )
23
- hm . src = 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867'
24
- const s = document . getElementsByTagName ( 'script' ) [ 0 ]
25
- s . parentNode . insertBefore ( hm , s )
24
+ var hm = document . createElement ( 'script' ) ;
25
+ hm . src = src ;
26
+ var s = document . getElementsByTagName ( 'script' ) [ 0 ] ;
27
+ s . parentNode . insertBefore ( hm , s ) ;
26
28
} ) ( )
27
29
</ script >
28
30
</ head >
50
52
</ script >
51
53
</ body >
52
54
53
- </ html >
55
+ </ html >
You can’t perform that action at this time.
0 commit comments