Skip to content

Commit d6bba95

Browse files
committed
2020-11-23 13:57:21
1 parent 6151248 commit d6bba95

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

asset/docsify-cnzz.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(function(){
2+
var plugin = function(hook) {
3+
hook.doneEach(function() {
4+
var sc = document.createElement('script')
5+
sc.src = 'https://s5.cnzz.com/z_stat.php?id=' +
6+
window.$docsify.cnzzId + '&online=1&show=line'
7+
document.querySelector('article').appendChild(sc)
8+
})
9+
}
10+
var plugins = window.$docsify.plugins || []
11+
plugins.push(plugin)
12+
window.$docsify.plugins = plugins
13+
})()

index.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
})
4545
hook.doneEach(function() {
4646
(adsbygoogle = window.adsbygoogle || []).push({})
47-
var sc = document.createElement('script')
48-
sc.src = 'https://s5.cnzz.com/z_stat.php?id=1275211409&online=1&show=line'
49-
document.querySelector('article').appendChild(sc)
5047
})
5148
}
5249

@@ -61,6 +58,7 @@
6158
'/.*/SUMMARY.md': '/SUMMARY.md',
6259
},
6360
bdStatId: '38525fdac4b5d4403900b943d4e7dd91',
61+
cnzzId: '1275211409',
6462
search: {
6563
paths: 'auto',
6664
placeholder: '搜索',
@@ -84,5 +82,6 @@
8482
<script src="asset/docsify-baidu-push.js"></script>
8583
<script src="asset/docsify-baidu-push.js"></script>
8684
<script src="asset/docsify-baidu-stat.js"></script>
85+
<script src="asset/docsify-cnzz.js"></script>
8786
</body>
8887
</html>

0 commit comments

Comments
 (0)