From d6bba9534ee7a5217622ce2c9aef688ba0bc23f7 Mon Sep 17 00:00:00 2001
From: wizardforcel <562826179@qq.com>
Date: Mon, 23 Nov 2020 13:57:22 +0800
Subject: [PATCH] 2020-11-23 13:57:21
---
asset/docsify-cnzz.js | 13 +++++++++++++
index.html | 5 ++---
2 files changed, 15 insertions(+), 3 deletions(-)
create mode 100644 asset/docsify-cnzz.js
diff --git a/asset/docsify-cnzz.js b/asset/docsify-cnzz.js
new file mode 100644
index 00000000..cbfda89e
--- /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 8cebec89..6679b360 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: '搜索',
@@ -84,5 +82,6 @@
+