forked from ihewro/typecho-theme-leaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
130 lines (115 loc) · 3.5 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
<?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="//cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script>
<link rel='stylesheet' href="//cdn.bootcss.com/nprogress/0.2.0/nprogress.min.css" />
<script src='<?php $this->options->themeUrl('assets/js/jquery.parallax.min.js'); ?>'></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/script.js'); ?>"></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="//cdn.bootcss.com/jQuery.Marquee/1.3.94/jquery.marquee.min.js"></script>
<script>
var playlist = [<?php $this->options->musiclist(); ?>];
var isRotate = <?php $this->options->musicalbum(); ?>; //专辑图片旋转,true为开启,false为关闭
var autoplay = <?php $this->options->musicauto(); ?>; //自动播放,true为开启,false为关闭
</script>
<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/player.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();
}).on('pjax:complete',
function() {
NProgress.done();
imageeffct();
//linkshow();
setupContents();
lue();
});
</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 } ?>