-
Notifications
You must be signed in to change notification settings - Fork 1
/
_footer.html
executable file
·142 lines (132 loc) · 4.56 KB
/
_footer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<footer id="footer" role="contentinfo">
<div class="container-fluid">
<div class="row">
<div class="col-12">
©
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>
<a href="/">{{.Site.Title}}</a>.
Using <a target="_blank" href="http://www.chole.io/">Ink</a> & <a target="_blank" href="/">Story</a>.
</div>
</div>
</div>
</footer>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="{{.Site.Root}}/bundle/js/prism.js"></script>
<script src="{{.Site.Root}}/bundle/js/zoom-vanilla.min.js"></script>
<script src="{{.Site.Root}}/bundle/js/main.js"></script>
<script>
window.onload=function(){
var b = document.getElementsByClassName('b');
var w = document.getElementsByClassName('w');
var menupgMargin = (b.length+w.length)*28;
var srhboxMargin = (b.length+w.length+3)*28;
var menusrhWidth = (b.length+w.length-1)*28;
document.getElementById('menu-page').style['margin-left'] = menupgMargin+'px';
document.getElementById('search-box').style['margin-left'] = srhboxMargin+'px';
document.getElementById('menu-search').style['width'] = menusrhWidth+'px';
if (window.location.hash!='') {
var i=window.location.hash.indexOf('#comment');
var ii=window.location.hash.indexOf('#respond-post');
if (i != '-1' || ii != '-1') {
document.getElementById('btn-comments').innerText='hide comments';
document.getElementById('comments').style.display='block';
}
}
}
function isMenu(){
if(document.getElementById('menu-1').style.display=='inline'||document.getElementById('menu-1').style.display=='block'){
$('#search-box').fadeOut(200);
$('#menu-page').fadeOut(200);
$('#menu-1').fadeOut(500);
$('#menu-2').fadeOut(400);
$('#menu-3').fadeOut(300);
} else {
$('#menu-1').fadeIn(150);
$('#menu-2').fadeIn(150);
$('#menu-3').fadeIn(150);
}
}
function isMenu1(){
if(document.getElementById('menu-page').style.display=='block'){
$('#menu-page').fadeOut(300);
} else {
$('#menu-page').fadeIn(300);
}
}
function isMenu2(){
if(document.getElementById('torTree')){
if(document.getElementById('torTree').style.display=='block'){
$('#torTree').fadeOut(300);
} else {
$('#torTree').fadeIn(300);
}
}
}
function isMenu3(){
if($('#search-box').css('display')!='none'){
$('#search-box').fadeOut(300);
} else {
$('#search-box').fadeIn(300);
}
}
function isComments(){
if(document.getElementById('btn-comments').innerText=='show comments'){
document.getElementById('btn-comments').innerText='hide comments';
document.getElementById('comments').style.display='block';
site_comment_load();
} else {
document.getElementById('btn-comments').innerText='show comments';
document.getElementById('comments').style.display='none';
}
}
function Search404(){
$('#menu-1').fadeIn(150);
$('#menu-2').fadeIn(150);
$('#menu-3').fadeIn(150);
$('#search-box').fadeIn(300);
}
function goBack(){
window.history.back();
}
</script>
<!-- cPlayer Start -->
<script async>
"use strict";
(function(){
var cp = function(){
var len = cPlayerOptions.length;
for(var i=0;i<len;i++){
var element = document.getElementById('player' + cPlayerOptions[i]['id'])
while (element.hasChildNodes()) {
element.removeChild(element.firstChild);
};
cPlayers[i] = new cPlayer({
element: element,
list: cPlayerOptions[i]['list'],
});
};
cPlayers = [];cPlayerOptions = [];
};
var script = document.createElement('script');
script.type = "text/javascript";
script.src = "https://cdn.bootcss.com/cplayer/3.2.1/cplayer.js";
script.async = true;
if(script.readyState){ //IE
script.onreadystatechange = function(){
if (script.readyState == "loaded" ||
script.readyState == "complete"){
script.onreadystatechange = null;
cp();
}
};
}else{ //Others
script.onload = function(){
cp();
};
}
document.head.appendChild(script);
})();
</script>
<!-- cPlayer End -->