File tree 2 files changed +15
-11
lines changed
2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change
1
+ ( function ( ) {
2
+ var plugin = function ( hook ) {
3
+ hook . doneEach ( function ( ) {
4
+ window . _hmt = window . _hmt || [ ]
5
+ var hm = document . createElement ( "script" )
6
+ hm . src = "https://hm.baidu.com/hm.js?" + window . $docsify . bdStatId
7
+ document . querySelector ( "article" ) . appendChild ( hm )
8
+ } )
9
+ }
10
+ var plugins = window . $docsify . plugins || [ ]
11
+ plugins . push ( plugin )
12
+ window . $docsify . plugins = plugins
13
+ } ) ( )
Original file line number Diff line number Diff line change 13
13
<!-- google ads -->
14
14
< script async src ="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js "> </ script >
15
15
16
- <!-- baidu stats -->
17
- < script >
18
- var _hmt = _hmt || [ ] ;
19
- ( function ( ) {
20
- var hm = document . createElement ( "script" ) ;
21
- hm . src = "https://hm.baidu.com/hm.js?38525fdac4b5d4403900b943d4e7dd91" ;
22
- var s = document . getElementsByTagName ( "script" ) [ 0 ] ;
23
- s . parentNode . insertBefore ( hm , s ) ;
24
- } ) ( ) ;
25
- </ script >
26
-
27
16
<!-- google webmaster -->
28
17
< meta name ="google-site-verification " content ="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo " />
29
18
</ head >
68
57
themeColor : '#11557c' ,
69
58
repo : 'apachecn/matplotlib-doc-zh' ,
70
59
plugins : [ window . docsPlugin ] ,
60
+ bdStatId : '38525fdac4b5d4403900b943d4e7dd91' ,
71
61
search : {
72
62
paths : 'auto' ,
73
63
placeholder : '搜索' ,
86
76
< script src ="asset/prism-python.min.js "> </ script >
87
77
< script src ="asset/docsify-copy-code.min.js "> </ script >
88
78
< script src ="asset/docsify-baidu-push.js "> </ script >
79
+ < script src ="asset/docsify-baidu-stat.js "> </ script >
89
80
</ body >
90
81
</ html >
You can’t perform that action at this time.
0 commit comments