forked from weipxiu/Art_Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
342 lines (312 loc) · 12.3 KB
/
footer.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!-- 底部区域开始 -->
<div class="footer">
<div class="container">
<p>注:当前主题为
<a href="https://www.weipxiu.com/">"唯品秀"</a>自主研发,版权所有!</p>
<p style="color: #28d0e9">该网站勉强运行 :
<span id="htmer_time" style="color: #28d0e9;"></span>
</p>
<p>
© 2016-2018
<a href="https://www.weipxiu.com/">唯品秀</a> 本站主题由
<a href="https://www.weipxiu.com/" class="highlight">WEIPXIU.COM</a>
提供 鄂ICP备 16001853号<!---1-->
</p>
</div>
</div>
<!-- 底部区域结束 -->
<!-- 底部半透明遮盖层 -->
<div class="footer-banner__navi">
<div class="js_banner_nav mod-banner_nav">
<a class="js_nav current" href="javascript:;"></a>
<a class="js_nav" href="javascript:;"></a>
<a class="js_nav" href="javascript:;"></a>
<a class="js_nav" href="javascript:;"></a>
<a class="js_nav" href="javascript:;"></a>
<a class="js_nav" href="javascript:;"></a>
</div>
<span class="mod-banner__nav-dot">
<canvas id="dotCanvas"></canvas>
</span>
</div>
<!-- 自定义右键菜单提示开始 -->
<div id="menu">
别看啦,宝宝好害羞
<span>*^_^*</span>
</div>
<!-- 自定义右键菜单提示结束 -->
<!-- 小飞机start -->
<div class="aircraft">
<font class="iconfont"></font>
</div>
<!-- 小飞机end -->
<!-- 在线客服开始 -->
<div id="divStayTopright" style="position:fixed;z-index:999999;top:40%;right:0px;height:16px;">
<div id="wuyousujian-kefuDv" style="right: -196px; position: fixed;">
<script>
var isIn = true;
var isLeft = "right";
</script>
<table>
<tbody>
<tr>
<td id="navLog">
<img src="<?php bloginfo('template_url'); ?>/images/open_im.png" id="imgNav">
</td>
<td>
<table id="__01" width="105" class="customer-list" style="min-width:105px" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<div class="kefu1">服务热线:</div>
</td>
</tr>
<tr>
<td>
<div class="telNo" id="txtTelNo"> 182****8470</div>
</td>
</tr>
<tr>
<td>
<div class="kefu3"></div>
</td>
</tr>
<tr>
<td>
<p class="wangwang-names" style="margin-bottom:7px"> QQ在线交流</p>
<div class="qqSmall">
<a target="_blank" href="https://wpa.qq.com/msgrd?v=3&uin=343049466&site=qq&menu=yes">
<img border="0" width="77" height="22" src="<?php bloginfo('template_url'); ?>/images/zaixian_qq.gif" alt="点击这里给我发消息" title="点击这里给我发消息"
/>
</a>
</div>
</td>
</tr>
<tr>
<td>
<div class="qqSmall">
<a target="_blank" href="https://wpa.qq.com/msgrd?v=3&uin=343049466&site=qq&menu=yes">
<img border="0" src="<?php bloginfo('template_url'); ?>/images/zaixian_qq.gif" alt="点击这里给我发消息" title="点击这里给我发消息" />
</a>
</div>
</td>
</tr>
<tr>
<td>
<p class="wangwang-names"> 旺旺在线</p>
<div class="qqSmall">
<a target="_blank" href="https://amos.alicdn.com/getcid.aw?spm=a1z10.1-c.0.0.LyS6rO&v=3&groupid=0&s=1&charset=utf-8&uid=可爱天使5202012&site=cntaobao&groupid=0&s=1&fromid=cntaobao可爱天使5202012"
style="position: relative; overflow: hidden;">
<img border="0" src="<?php bloginfo('template_url'); ?>/images/zaixian_ww.gif" alt="点击这里给我发消息" style="vertical-align:middle;">
<span class="image-overlay overlay-type-extern" style="display: none;">
<span class="image-overlay-inside"></span>
</span>
</a>
</div>
</td>
</tr>
<tr>
<td>
<div class="qqSmall">
<a target="_blank" href="https://amos.alicdn.com/getcid.aw?spm=a1z10.1-c.0.0.LyS6rO&v=3&groupid=0&s=1&charset=utf-8&uid=可爱天使5202012&site=cntaobao&groupid=0&s=1&fromid=cntaobao可爱天使5202012"
style="position: relative; overflow: hidden;">
<img border="0" src="<?php bloginfo('template_url'); ?>/images/lixian_ww.gif" alt="点击这里给我发消息" style="vertical-align:middle;">
<span class="image-overlay overlay-type-extern" style="display: none;">
<span class="image-overlay-inside"></span>
</span>
</a>
</div>
</td>
</tr>
<tr>
<td>
<div class="line"></div>
</td>
</tr>
<tr>
<td>
<div class="qq-kefu-fun-box">
<a class="qq-kefu-qrCode" id="qq-kefu-qrCode" href="javascript:;"></a>
<a class="qq-kefu-backUp-2" id="qq-kefu-backUp" href="javascript:;"></a>
<div class="qqkefu-qrcode-box" pos="2">
<!-- <img width="150" height="100" src="https://pan.baidu.com/share/qrcode?w=150&h=150&url=https://5usujian.com"> -->
</div>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- 在线客服结束 -->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-2.1.4.min.js"></script>
<?php include_once("baidu_js_push.php") ?>
<!-- 网站运行时间 -->
<script>
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;
}
</script>
<script type="text/javascript" language="javascript">
function setTime() {
// 博客创建时间秒数,时间格式中,月比较特殊,是从0开始的,所以想要显示5月,得写4才行,如下
var create_time = Math.round(new Date(Date.UTC(2016, 11, 16, 0, 0, 0))
.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 if (is_user_logged_in()){
echo "<script>$('#username a:lt(3)').hide();
$('#username a:gt(2)').show()</script>";
}
else {
echo "<script>$('#username a:lt(3)').show();
$('#username a:gt(2)').hide();</script>";
};
?>
<!-- 判断用户当前是否登录 结束 -->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/activate-power-mode.js"></script>
<!-- <script type="text/javascript" color="0,0,255" opacity='0.7' zIndex="-1" count="99" src="<?php bloginfo('template_url'); ?>/js/canvas-nest.min.js"></script> -->
<script defer="defer">
if ($(document).width() >= 1200) {
// 文字琴弦效果start
(function ($) {
$.extend($.easing, {
easeOutElastic: function (x, t, b, c, d) {
var s = 1.70158;
var p = 0;
var a = c;
if (t == 0) return b;
if ((t /= d) == 1) return b + c;
if (!p) p = d * .3;
if (a < Math.abs(c)) {
a = c;
var s = p / 4;
} else var s = p / (2 * Math.PI) * Math.asin(c / a);
return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
}
});
$.fn.qin = function (options) {
var defaults = {
offset: 22, // 最大偏移量
duration: 500, // 晃动时间
recline: 0.1 // 每像素偏移量
};
var opt = $.extend({}, defaults, options);
return this.each(function () {
var $ele = $(this);
fillSpan($ele);
stringAnimate($ele, opt);
});
};
function fillSpan($ele) {
var baseContent = $ele.text().trim().length < 25?$ele.text().trim():$ele.text().trim().slice(0,25) + '...';
var content = '';
for (var i = 0, len = baseContent.length; i < len; i++) {
content += '<span>'+baseContent.substr(i, 1)+'</span>'
}
$ele.html(content);
var positionArr = []; //存放原始位置
$ele.children('span').each(function () {
var $span = $(this);
var position = $span.position();
positionArr.push(position);
$span.css({
top: 0 + "px",
left: position.left + "px"
});
setTimeout(function () {
$span.css("position", "absolute");
}, 0);
});
$ele.data("stringPosition", positionArr);
}
function stringAnimate($ele, opt) {
var positionArr = $ele.data("stringPosition"); // 原始位置
var startX = 0; // 初始x轴位置
var startY = 0; // 初始y轴位置
$ele.mouseenter(function (ex) {
var offset = $ele.offset();
startX = ex.pageX - offset.left; // 鼠标在容器内 x 坐标
startY = ex.pageY - offset.top; // 鼠标在容器内 y 坐标
});
$ele.mousemove(function (ex) {
var offset = $ele.offset();
var xPos = ex.pageX - offset.left; // 鼠标在容器内 x 坐标
var yPos = ex.pageY - offset.top; // 鼠标在容器内 y 坐标
var offsetY = yPos - startY; // Y轴移动距离
if (Math.abs(offsetY) > opt.offset) { // 如果偏移超过最大值
return;
}
var ifDown = offsetY > 0; // 是否是向下移动
$ele.children("span").each(function (index) {
var $span = $(this); // 当前span
var position = positionArr[index]; // 当前原始position
var reclineNum = Math.abs(xPos - position.left) * opt.recline; // Y 轴移动距离,基于原始位置
reclineNum *= ifDown ? 1 : (-1); // 基于向下为正方向
var resultY = position.top + offsetY - reclineNum;
if (ifDown && resultY < position.top) {
resultY = position.top;
} else if (!ifDown && resultY > position.top) {
resultY = position.top;
}
$span.css({
top: resultY + "px"
});
});
});
$ele.mouseleave(function () {
$ele.children("span").each(function (index) {
$(this).stop(true, false).animate({
top: 0 + "px" //源代码:top: positionArr[index].top + "px"
}, {
duration: opt.duration,
easing: "easeOutElastic"
});
});
});
};
})(jQuery);
$(".mouseover ul li a").qin({
offset: 20, // default , 最大偏移量
duration: 500, // default , 晃动时间
recline: 0.1 // default , 每像素偏移量,越小“琴弦绷的越紧”
});
//文字琴弦效果end
}
</script>