71 |
|
|
72 |
function updatePage(){ |
function updatePage(){ |
73 |
if ( isUpdating == false |
if ( isUpdating == false |
74 |
&& mouseState == "up" |
&& mouseState == "up" |
75 |
&& getPageHeight() - getScrollHeight() < preloadDistance){ |
&& getPageHeight() - getScrollHeight() < preloadDistance){ |
76 |
log("Getting segment: ", $("history_index").value); |
log("Getting segment: ", $("history_index").value); |
77 |
setCookie(id, $("history_index").value ); |
setCookie(id, $("history_index").value ); |
78 |
isUpdating = true; |
isUpdating = true; |
79 |
getMoreHistory(); |
getMoreHistory(); |
80 |
} |
} |
81 |
checker.cancel(); |
checker.cancel(); |