-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
62 lines (58 loc) · 2.01 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
</div>
<footer class="footer">
<span><?php $this->options->banquan();?></span>
<a href="/static/xml/rss.xml">RSS订阅</a>
</footer>
<div id="to-top">
<span></span>
<span></span>
</div>
<script type="text/javascript" src="<?php $this->options->themeUrl('js/jquery.pjax.min.js'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('js/pjax.js'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('js/blog.js'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('js/nprogress.min.js'); ?>"></script>
<!-- 点击页面文字冒出特效 -->
<script>
;(function(){
var textArr = ['富强', '民主', '文明', '和谐', '自由', '平等', '公正', '法治', '爱国', '敬业', '诚信', '友善']
window.blog.initClickEffect(textArr)
})()
</script>
<script>
function getBaseUrl() {
var ishttps = 'https:' == document.location.protocol ? true : false;
var url = window.location.host;
if (ishttps) {
url = 'https://' + url;
} else {
url = 'http://' + url;
}
return url;
}
let url = '"'+getBaseUrl()+'"';
$(document).pjax('a[href^='+ url +']:not(a[target="_blank"], a[no-pjax])', {
container: '#pjax',
fragment: '#pjax',
timeout: 8000
})
$(document).on('pjax:start',function() { NProgress.start(); });
$(document).on('pjax:end',function() { NProgress.done(); });
//表单提交事件
$(document).on('.submit', function (event) {
event.preventDefault();
// $.pjax.submit(event, '#pjax');
$.pjax.submit(event, '#pjax', {timeout: 10000});
});
//表单提交成功事件
$(document).on('pjax:success', function (event) {
//console.log("关闭搜索框之类的操作");
});
//「页面刷新」事件触发运行
$(document).ready(function()
{
MyApp.initPjax();
});
</script>
<?php $this->footer(); ?>
</body>
</html>