-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
footer.php
40 lines (37 loc) · 1.42 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
<footer class="p-2">
<p class="text-white p-1 m-1 h6">
Copyright © 2015-<?php echo date('Y');?> All Rights Reserved </br>
</p>
<p class="text-white m-1 p-1 h6">
Powered by <a href="https://you2php.github.io/" target="_blank" class="text-white font-italic">YOU2PHP</a>
<a href="./embed/upgrade.php" target="_blank" class="text-white ml-2">检查更新</a>
</p>
</footer>
<script src="https://cdn.bootcss.com/popper.js/1.11.0/umd/popper.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcss.com/Swiper/4.0.6/js/swiper.min.js"></script>
<script>
$(".carousel").on("touchstart", function(event){
var xClick = event.originalEvent.touches[0].pageX;
$(this).one("touchmove", function(event){
var xMove = event.originalEvent.touches[0].pageX;
if( Math.floor(xClick - xMove) > 5 ){
$(this).carousel('next');
}
else if( Math.floor(xClick - xMove) < -5 ){
$(this).carousel('prev');
}
});
$(".carousel").on("touchend", function(){
$(this).off("touchmove");
});
});
$(function () {
var swiper = new Swiper('.swiper-container', {
spaceBetween: 20,
slidesPerView:'auto',
freeMode: true
});
})
</script>
</body></html>