Showing
2 changed files
with
2 additions
and
2 deletions
@@ -139,7 +139,7 @@ $('.maybe-like p').on('touchstart', function (e) { | @@ -139,7 +139,7 @@ $('.maybe-like p').on('touchstart', function (e) { | ||
139 | 139 | ||
140 | //srcoll to load more | 140 | //srcoll to load more |
141 | $(window).scroll(function () { | 141 | $(window).scroll(function () { |
142 | - if ($(window).scrollTop() + winH >= $(document).height()) { | 142 | + if ($(window).scrollTop() + winH >= $(document).height() - 50) { |
143 | search(); | 143 | search(); |
144 | } | 144 | } |
145 | }); | 145 | }); |
@@ -41,7 +41,7 @@ if ($('#float-layer-btn') && $('#float-layer-btn')[0]) { | @@ -41,7 +41,7 @@ if ($('#float-layer-btn') && $('#float-layer-btn')[0]) { | ||
41 | e.srcEvent.stopPropagation(); | 41 | e.srcEvent.stopPropagation(); |
42 | }); | 42 | }); |
43 | 43 | ||
44 | - if (!window.cookie('_float-layer-app')) { | 44 | + if (typeof window.cookie === 'function' && !window.cookie('_float-layer-app')) { |
45 | $('#float-layer-app').show(); | 45 | $('#float-layer-app').show(); |
46 | } else { | 46 | } else { |
47 | $('#float-layer-app').hide(); | 47 | $('#float-layer-app').hide(); |
-
Please register or login to post a comment