diff --git a/asset/docsify-cnzz.js b/asset/docsify-cnzz.js new file mode 100644 index 0000000000000000000000000000000000000000..cbfda89e9ff98947e10c19efe74ce31f320a51b9 --- /dev/null +++ b/asset/docsify-cnzz.js @@ -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 +})() \ No newline at end of file diff --git a/index.html b/index.html index 98ab43a32a5aef7fecd3dc9e815284133d945511..7a8d3f11c17d8ba0c7ffba82848c240b0cebb548 100644 --- a/index.html +++ b/index.html @@ -44,9 +44,6 @@ }) hook.doneEach(function() { (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) }) } @@ -61,6 +58,7 @@ '/.*/SUMMARY.md': '/SUMMARY.md', }, bdStatId: '38525fdac4b5d4403900b943d4e7dd91', + cnzzId: '1275211409', search: { paths: 'auto', placeholder: '搜索', @@ -86,5 +84,6 @@ + \ No newline at end of file