mirror of
https://github.com/apachecn/eloquent-js-3e-zh.git
synced 2025-05-28 23:42:22 +00:00
2020-11-23 13:23:47
This commit is contained in:
parent
4d104f8cc2
commit
2c2a019bb8
13
asset/docsify-baidu-stat.js
Normal file
13
asset/docsify-baidu-stat.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
(function(){
|
||||||
|
var plugin = function(hook) {
|
||||||
|
hook.doneEach(function() {
|
||||||
|
window._hmt = window._hmt || []
|
||||||
|
var hm = document.createElement("script")
|
||||||
|
hm.src = "https://hm.baidu.com/hm.js?" + window.$docsify.bdStatId
|
||||||
|
document.querySelector("article").appendChild(hm)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var plugins = window.$docsify.plugins || []
|
||||||
|
plugins.push(plugin)
|
||||||
|
window.$docsify.plugins = plugins
|
||||||
|
})()
|
13
index.html
13
index.html
@ -13,17 +13,6 @@
|
|||||||
<!-- google ads -->
|
<!-- google ads -->
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
|
|
||||||
<!-- baidu stats -->
|
|
||||||
<script>
|
|
||||||
var _hmt = _hmt || [];
|
|
||||||
(function() {
|
|
||||||
var hm = document.createElement("script");
|
|
||||||
hm.src = "https://hm.baidu.com/hm.js?38525fdac4b5d4403900b943d4e7dd91";
|
|
||||||
var s = document.getElementsByTagName("script")[0];
|
|
||||||
s.parentNode.insertBefore(hm, s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- google webmaster -->
|
<!-- google webmaster -->
|
||||||
<meta name="google-site-verification" content="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo" />
|
<meta name="google-site-verification" content="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo" />
|
||||||
</head>
|
</head>
|
||||||
@ -68,6 +57,7 @@
|
|||||||
themeColor: '#DAA520',
|
themeColor: '#DAA520',
|
||||||
repo: 'apachecn/eloquent-js-3e-zh',
|
repo: 'apachecn/eloquent-js-3e-zh',
|
||||||
plugins: [window.docsPlugin],
|
plugins: [window.docsPlugin],
|
||||||
|
bdStatId: '38525fdac4b5d4403900b943d4e7dd91',
|
||||||
search: {
|
search: {
|
||||||
paths: 'auto',
|
paths: 'auto',
|
||||||
placeholder: '搜索',
|
placeholder: '搜索',
|
||||||
@ -87,5 +77,6 @@
|
|||||||
<script>Prism.languages.py = Prism.languages.python</script>
|
<script>Prism.languages.py = Prism.languages.python</script>
|
||||||
<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>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user