-
Notifications
You must be signed in to change notification settings - Fork 18
/
menu.php
144 lines (128 loc) · 4.43 KB
/
menu.php
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
143
144
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php if (!is_pjax()) { ?>
<div id="menu" class="vertical-center-child menu">
<a class="transition m-iterm" href="<?php $this->options->siteUrl(); ?>">home</a>
<a class="transition m-iterm" href="<?php Helper::options()->siteUrl()?>archive.html">archive</a>
<a class="transition m-iterm" href="<?php Helper::options()->siteUrl()?>about.html">about</a>
</div>
<div id="menu-trigger" class="menu-trigger">
<div id="nav-menu">
<i></i>
</div>
</div>
<script src='<?php $this->options->themeUrl('assets/js/nprogress.js'); ?>'></script>
<link rel='stylesheet' href='<?php $this->options->themeUrl('assets/css/nprogress.css'); ?>'/>
<?php if (!empty($this->options->indexsetup) && in_array('IndexImage', $this->options->indexsetup)): ?>
<script src='<?php $this->options->themeUrl('assets/js/jquery.parallax.js'); ?>'></script>
<?php endif; ?>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/script.js'); ?>"></script>
<link rel='stylesheet' href='<?php $this->options->themeUrl('assets/css/solarized-dark.css'); ?>'/>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/highlight.pack.js'); ?>"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!--Qpalyer author:https://32mb.space-->
<div id="QPlayer">
<div id="pContent">
<div id="player">
<span class="cover"></span>
<div class="ctrl">
<div class="musicTag marquee">
<strong>Title</strong>
<span> - </span>
<span class="artist">Artist</span>
</div>
<div class="progress">
<div class="timer left">0:00</div>
<div class="contr">
<div class="rewind icon"></div>
<div class="playback icon"></div>
<div class="fastforward icon"></div>
</div>
<div class="right">
<div class="liebiao icon"></div>
</div>
</div>
</div>
</div>
<div class="ssBtn">
<div class="adf"></div>
</div>
</div>
<ol id="playlist"></ol>
</div>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/jquery.marquee.min.js'); ?>"></script>
<script>
var playlist = [<?php $this->options->musiclist(); ?>];
var isRotate = true;
var autoplay = false;
</script>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/player.min.js'); ?>"></script>
<script>
function bgChange(){
var lis= $('.lib');
for(var i=0; i<lis.length; i+=2)
lis[i].style.background = 'rgba(246, 246, 246, 0.5)';
}
window.onload = bgChange;
</script>
<!--Qpalyer end!-->
<!--灯箱zoom.js-->
<script src="//cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js" type="text/javascript"></script>
<script src="<?php $this->options->themeUrl('assets/js/zoom.min.js') ?>" type="text/javascript"></script>
<script type="text/javascript">
var setupContents = function () {
$(".post-content img:not(article .link-box img, img[no-zoom])").each(function() {
$(this).attr('data-action', 'zoom');
if($(this).next().is('br')){
$(this).next().remove();
}
});
};
setupContents();
</script>
<script>
//pjax 刷新
$(document).pjax('a[href^="<?php Helper::options()->siteUrl()?>"]:not(a[target="_blank"], a[no-pjax])', {
container: '#pjax-container',
fragment: '#pjax-container',
timeout: 8000
}).on('pjax:send',
function() {
NProgress.start();
<?php $this->options->pjaxSendAction(); ?>
}).on('pjax:complete',
function() {
NProgress.done();
setupContents();//灯箱组件
lue();//文字超过div显示省略号
reHighlightCodeBlock();//代码高亮
<?php if ($this->options->duoshuosn){ ?>
<?php if (!empty($this->options->indexsetup) && in_array('webssl', $this->options->indexsetup)) : ?>
if ($('.ds-thread').length > 0) { if (typeof DUOSHUO !== 'undefined') DUOSHUO.EmbedThread('.ds-thread'); else $.getScript("<?php $this->options->themeUrl('assets/js/embedssl.min.js') ?>"); }
<?php else : ?>
if ($('.ds-thread').length > 0) { if (typeof DUOSHUO !== 'undefined') DUOSHUO.EmbedThread('.ds-thread'); else $.getScript("<?php $this->options->themeUrl('assets/js/embed.min.js') ?>"); }
<?php endif ;?>
<?php };?>
<?php $this->options->pjaxCompleteAction(); ?>
});
</script>
<script>
/*
var $content = $("#friends");
$content.hide();
function linkshow(){
$(function(){
$("#friend-head").bind("click",function(){
if($content.is(":visible")){
$content.fadeOut();
}
else{
$content.fadeIn();
}
})
});
}
linkshow();*/
</script>
</body>
</html>
<?php } ?>