1
0
mirror of https://github.com/apachecn/eloquent-js-3e-zh.git synced 2025-05-29 08:12:22 +00:00

2020-11-23 14:07:15

This commit is contained in:
wizardforcel 2020-11-23 14:07:16 +08:00
parent 2c2a019bb8
commit c9b2b07fad
2 changed files with 15 additions and 3 deletions

13
asset/docsify-cnzz.js Normal file
View File

@ -0,0 +1,13 @@
(function(){
var plugin = function(hook) {
hook.doneEach(function() {
var sc = document.createElement('script')
sc.src = 'https://s5.cnzz.com/z_stat.php?id=' +
window.$docsify.cnzzId + '&online=1&show=line'
document.querySelector('article').appendChild(sc)
})
}
var plugins = window.$docsify.plugins || []
plugins.push(plugin)
window.$docsify.plugins = plugins
})()

View File

@ -44,9 +44,6 @@
}) })
hook.doneEach(function() { hook.doneEach(function() {
(adsbygoogle = window.adsbygoogle || []).push({}) (adsbygoogle = window.adsbygoogle || []).push({})
var sc = document.createElement('script')
sc.src = 'https://s5.cnzz.com/z_stat.php?id=1275211409&online=1&show=line'
document.querySelector('article').appendChild(sc)
}) })
} }
@ -58,6 +55,7 @@
repo: 'apachecn/eloquent-js-3e-zh', repo: 'apachecn/eloquent-js-3e-zh',
plugins: [window.docsPlugin], plugins: [window.docsPlugin],
bdStatId: '38525fdac4b5d4403900b943d4e7dd91', bdStatId: '38525fdac4b5d4403900b943d4e7dd91',
cnzzId: '1275211409',
search: { search: {
paths: 'auto', paths: 'auto',
placeholder: '搜索', placeholder: '搜索',
@ -78,5 +76,6 @@
<script src="asset/docsify-copy-code.min.js"></script> <script src="asset/docsify-copy-code.min.js"></script>
<script src="asset/docsify-baidu-push.js"></script> <script src="asset/docsify-baidu-push.js"></script>
<script src="asset/docsify-baidu-stat.js"></script> <script src="asset/docsify-baidu-stat.js"></script>
<script src="asset/docsify-cnzz.js"></script>
</body> </body>
</html> </html>