-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfooter.php
66 lines (62 loc) · 2.25 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="appBox">
<div class="appTui">
<a href="https://www.nihaowua.com"><h3 class="title">?? 你好污啊-撩妹撩汉金句大全 </h3><span class="brand">点击体验套路 </span><span class="label">广告</span></a>
</div>
</div>
<div style="margin: 0 auto;text-align: center;margin-bottom: 20px;">本站所有资源收集于网络,版权归原作者所有。若本站发布的内容侵犯到您的权益,请致信 [email protected] ,我们会尽快删除!</div>
</div>
</div>
<script type="text/javascript">
//禁止下拉
var overscroll = function(el) {
el.addEventListener('touchstart', function() {
var top = el.scrollTop
, totalScroll = el.scrollHeight
, currentScroll = top + el.offsetHeight
//If we're at the top or the bottom of the containers
//scroll, push up or down one pixel.
//
//this prevents the scroll from "passing through" to
//the body.
if(top === 0) {
el.scrollTop = 1
} else if(currentScroll === totalScroll) {
el.scrollTop = top - 1
}
})
el.addEventListener('touchmove', function(evt) {
//if the content is actually scrollable, i.e. the content is long enough
//that scrolling can occur
if(el.offsetHeight < el.scrollHeight)
evt._isScroller = true
})
}
overscroll(document.querySelector('.scroll'));
document.body.addEventListener('touchmove', function(evt) {
//In this case, the default behavior is scrolling the body, which
//would result in an overflow. Since we don't want that, we preventDefault.
if(!evt._isScroller) {
evt.preventDefault()
}
})
</script>
<!--百度自动推送-->
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<div style="display:none"><script src="https://s13.cnzz.com/z_stat.php?id=1271204308&web_id=1271204308" language="JavaScript"></script></div>
<?php $this->footer(); ?>
</body>
</html>