Skip to content

Commit 8500ee6

Browse files
committed
2020-11-23 14:41:18
1 parent d6bba95 commit 8500ee6

File tree

2 files changed

+32
-28
lines changed

2 files changed

+32
-28
lines changed

asset/docsify-apachecn-footer.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
(function(){
2+
var footer = [
3+
'<hr/>',
4+
'<div align="center">',
5+
' <p><a href="http://www.apachecn.org/" target="_blank"><font face="KaiTi" size="6" color="red">我们一直在努力</font></a><p>',
6+
' <p><a href="https://github.com/apachecn/AiLearning/" target="_blank">apachecn/AiLearning</a></p>',
7+
' <p><iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=AiLearning&type=watch&count=true&v=2" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>',
8+
' <iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=AiLearning&type=star&count=true" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>',
9+
' <iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=AiLearning&type=fork&count=true" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>',
10+
' <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=bcee938030cc9e1552deb3bd9617bbbf62d3ec1647e4b60d9cd6b6e8f78ddc03"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="ML | ApacheCN" title="ML | ApacheCN"></a></p>',
11+
' <p><span id="cnzz_stat_icon_1275211409"></span></p>',
12+
' <div style="text-align:center;margin:0 0 10.5px;">',
13+
' <ins class="adsbygoogle"',
14+
' style="display:inline-block;width:728px;height:90px"',
15+
' data-ad-client="ca-pub-3565452474788507"',
16+
' data-ad-slot="2543897000"></ins>',
17+
' </div>',
18+
'</div>'
19+
].join('\n')
20+
var plugin = function(hook) {
21+
hook.afterEach(function(html) {
22+
return html + footer
23+
})
24+
hook.doneEach(function() {
25+
(adsbygoogle = window.adsbygoogle || []).push({})
26+
})
27+
}
28+
var plugins = window.$docsify.plugins || []
29+
plugins.push(plugin)
30+
window.$docsify.plugins = plugins
31+
})()

index.html

+1-28
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,7 @@
1818
</head>
1919
<body>
2020
<div id="app">now loading...</div>
21-
<script id="footer" type="text/xml">
22-
<hr/>
23-
<div align="center">
24-
<p><a href="http://www.apachecn.org/" target="_blank"><font face="KaiTi" size="6" color="red">我们一直在努力</font></a><p>
25-
<p><a href="https://github.com/apachecn/ailearning/" target="_blank">apachecn/ailearning</a></p>
26-
<p><iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=ailearning&type=watch&count=true&v=2" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>
27-
<iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=ailearning&type=star&count=true" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>
28-
<iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=ailearning&type=fork&count=true" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>
29-
<a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=bcee938030cc9e1552deb3bd9617bbbf62d3ec1647e4b60d9cd6b6e8f78ddc03"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="ML | ApacheCN" title="ML | ApacheCN"></a></p>
30-
<p><span id='cnzz_stat_icon_1275211409'></span></p>
31-
<div style="text-align:center;margin:0 0 10.5px;">
32-
<ins class="adsbygoogle"
33-
style="display:inline-block;width:728px;height:90px"
34-
data-ad-client="ca-pub-3565452474788507"
35-
data-ad-slot="2543897000"></ins>
36-
</div>
37-
</div>
38-
</script>
3921
<script>
40-
window.docsPlugin = function(hook) {
41-
var footer = document.querySelector('#footer').innerHTML
42-
hook.afterEach(function(html) {
43-
return html + footer
44-
})
45-
hook.doneEach(function() {
46-
(adsbygoogle = window.adsbygoogle || []).push({})
47-
})
48-
}
49-
5022
window.$docsify = {
5123
loadSidebar: 'SUMMARY.md',
5224
name: 'AILearning',
@@ -83,5 +55,6 @@
8355
<script src="asset/docsify-baidu-push.js"></script>
8456
<script src="asset/docsify-baidu-stat.js"></script>
8557
<script src="asset/docsify-cnzz.js"></script>
58+
<script src="asset/docsify-apachecn-footer.js"></script>
8659
</body>
8760
</html>

0 commit comments

Comments
 (0)