summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-01-26 06:36:19 +0100
committerAndrew Dolgov <[email protected]>2007-01-26 06:36:19 +0100
commitc50e2b3004252f5f775741020003c5935560f0f7 (patch)
treeaac1db4bb7ccd90ac3681570fc50a46f4858b894 /viewfeed.js
parente4609ea9a0d428b8760590ececb5c6ba5b5e3e23 (diff)
cdm tweaks, misc fixes
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/viewfeed.js b/viewfeed.js
index 8e3fe422e..8492a2341 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -553,8 +553,6 @@ function cdmWatchdog() {
var ctr = document.getElementById("headlinesInnerContainer");
- if (!ctr.hasChildNodes()) return;
-
var ids = new Array();
var e = ctr.firstChild;
@@ -583,6 +581,15 @@ function cdmWatchdog() {
}
+ // method 2: article bottom is visible and is in upper 1/2 of the viewport
+
+/* if (e.offsetTop + e.offsetHeight >= ctr.scrollTop &&
+ e.offsetTop + e.offsetHeight <= ctr.scrollTop + ctr.offsetHeight/2) {
+
+ ids.push(e.id.replace("RROW-", ""));
+
+ } */
+
}
e = e.nextSibling;
@@ -604,11 +611,11 @@ function cdmWatchdog() {
xmlhttp_rpc.open("GET", query, true);
xmlhttp_rpc.onreadystatechange=all_counters_callback;
- xmlhttp_rpc.send(null);
+ xmlhttp_rpc.send(null);
}
- _cdm_wd_timeout = window.setTimeout("cdmWatchdog()", 5000);
+ _cdm_wd_timeout = window.setTimeout("cdmWatchdog()", 4000);
} catch (e) {
exception_error(e, "cdmWatchdog");