chiark / gitweb /
Further revisions for generalised dataage
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 24 Aug 2009 03:13:24 +0000 (04:13 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 24 Aug 2009 03:13:24 +0000 (04:13 +0100)
yarrg/web/query_age

index e0591e3..88bc7ea 100644 (file)
@@ -116,14 +116,10 @@ Time since this page loaded:
       var el= document.getElementById(<% $elemidprefix %>ageid);
       var age= oldage + (now - da_pageload) / 1000;
       var newhtml= <% meta_prettyprint_age('age','Math.floor','+') %>;
-% if ($ARGS{debug}) {
-      if (elemid == 'cid_loaded')
-       debug('element ageid='+ageid+' oldage='+oldage
-               +' age='+age+': '+newhtml);
-% }
       el.innerHTML= newhtml;
     }
   }
+  window.setInterval(da_Refresh, 10000);
 </&>
 </%method>
 
@@ -137,7 +133,6 @@ Time since this page loaded:
     da_Refresh();
   }
   window.onload= all_onload;
-  window.setInterval(da_Refresh, 10000);
 </&script>
 
 <%init>