|
@@ -385,31 +385,9 @@
|
|
|
})
|
|
|
|
|
|
// 底部ad
|
|
|
- fixedBottomAd()
|
|
|
- function fixedBottomAd () {
|
|
|
- var bottomFixedAdShow = true
|
|
|
- $('.i-need-more .closed').on('click', function () {
|
|
|
- bottomFixedAdShow = false
|
|
|
- $('.i-need-more').fadeOut()
|
|
|
- })
|
|
|
- var top1 = 0;
|
|
|
- var top2 = 0;
|
|
|
- var timer = null;
|
|
|
- $(window).on('scroll', function () {
|
|
|
- clearTimeout(timer);
|
|
|
- if (!bottomFixedAdShow) return
|
|
|
- timer = setTimeout(isScrollEnd, 800);
|
|
|
- top1 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
- $('.i-need-more').fadeOut()
|
|
|
- })
|
|
|
-
|
|
|
- function isScrollEnd() {
|
|
|
- top2 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
- if (top1 == top2 && bottomFixedAdShow) {
|
|
|
- $('.i-need-more').fadeIn()
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ $('.i-need-more .closed').on('click', function () {
|
|
|
+ $('.i-need-more').fadeOut()
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
/******* 获取url参数(正则)********/
|