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
|
<!-- 页脚信息 -->
<footer class="footer-info">
<div class="container">
<div class="row">
<div class="col-md-5">
<h3>最新访客</h3>
<div class="newest-comment">
<?php $this->widget('Widget_Comments_Recent','ignoreAuthor=true')->to($comments); ?>
<?php while($comments->next()): ?>
<a href="<?php $comments->permalink(); ?>"><?php $comments->gravatar(200); ?></a>
<?php endwhile; ?>
</div>
</div>
<div class="col-md-7 site-info">
<h3>站点信息</h3>
<p>小站已萌萌哒运行:<span id="htmer_time"></span>,感谢陪伴</p>
<p id="hitokoto">正在玩命获取一言毒鸡汤( ̄(∞) ̄)</p>
<p>
Powered by <a href="http://typecho.org">Typecho</a> | Theme <a href="https://github.com/BigCoke233/mark">Mark</a> by BigCoke with <i class="fa fa-heart" style="color:red"></i>
<br />Copyright © <?php echo date('Y') ?> <A href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a>
</p>
</div>
</div>
</div>
</footer>
<!-- js -->
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/nav.js'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/jquery.fancybox.min.js'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/owo.js'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/prism.js'); ?>" data-no-instant></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/pjax/jquery.pjax.js'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/nprogress.js'); ?>"></script>
<script src="https://v1.hitokoto.cn/?encode=js&select=%23hitokoto" defer></script>
<?php if($this->options->pjax && $this->options->pjax!=0) :?>
<!-- pjax -->
<script>
//pjax load
$(document).pjax(
'body a',
'#pjax-container',
{
timeout:8000,
container: '#pjax-container',
fragment: '#pjax-container',
}
);
$(document).on('pjax:send',
function() {
$('#pjax-container').addClass("pjax-loading");
NProgress.start();
})
$(document).on('pjax:complete',
function() {
$('#pjax-container').removeClass("pjax-loading");
NProgress.done();
if (typeof Prism !== 'undefined') {
Prism.highlightAll(true,null);}
<?php $this->options->pjax_reload(); ?>
});
</script>
<?php endif; ?>
<script>
//prism highlight-code load
$(document).ready(function(){
var doc_pre = $(".post-content pre");
doc_pre.each(function(){
var class_val = $(this).attr('class');
var class_arr = new Array();
class_arr = class_val.split(';');
class_arr = class_arr['0'].split(':');
var lan_class = 'language-'+class_arr['1'];
var pre_content = '<code class="'+lan_class+'">'+$(this).html()+'</code>';
$(this).html(pre_content);
$(this).attr("class",'line-numbers '+lan_class);
});
});
//site creat time
function secondToDate(second) {
if (!second) {
return 0;
}
var time = new Array(0, 0, 0, 0, 0);
if (second >= 365 * 24 * 3600) {
time[0] = parseInt(second / (365 * 24 * 3600));
second %= 365 * 24 * 3600;
}
if (second >= 24 * 3600) {
time[1] = parseInt(second / (24 * 3600));
second %= 24 * 3600;
}
if (second >= 3600) {
time[2] = parseInt(second / 3600);
second %= 3600;
}
if (second >= 60) {
time[3] = parseInt(second / 60);
second %= 60;
}
if (second > 0) {
time[4] = second;
}
return time;
}
function setTime() {
var create_time = Math.round(new Date(Date.UTC(2018, 11, 01, 0, 0, 6)).getTime() / 1000);
var timestamp = Math.round((new Date().getTime() + 8 * 60 * 60 * 1000) / 1000);
currentTime = secondToDate((timestamp - create_time));
currentTimeHtml = currentTime[0] + '年' + currentTime[1] + '天'
+ currentTime[2] + '时' + currentTime[3] + '分' + currentTime[4]
+ '秒';
document.getElementById("htmer_time").innerHTML = currentTimeHtml;
} setInterval(setTime, 1000);
</script>
<?php $this->footer(); ?>
</body>
</html>
|