...
|
...
|
@@ -15,8 +15,7 @@ var $loadMoreInfo = $('#load-more-info'); |
|
|
var $loading = $(''),
|
|
|
$noMore = $('');
|
|
|
|
|
|
var winH = $(window).height(),
|
|
|
loadMoreH = $loadMoreInfo.height();
|
|
|
var winH = $(window).height();
|
|
|
|
|
|
var $infoList = $('#info-list'),
|
|
|
$infos = $infoList.children('.info-list'),
|
...
|
...
|
@@ -107,7 +106,9 @@ navHammer.on('tap', function(e) { |
|
|
});
|
|
|
|
|
|
$(document).scroll(function() {
|
|
|
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH - 50) {
|
|
|
loadMore($infos.not('.hide'), state[curType]);
|
|
|
var $c = $infos.not('.hide');
|
|
|
|
|
|
if ($(window).scrollTop() + winH >= $(document).height() - 0.25 * $c.height()) {
|
|
|
loadMore($c, state[curType]);
|
|
|
}
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|