]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
add framebuffer for hmon windows
authorJan Michel <jan@lxhadeb07>
Mon, 2 Jul 2018 12:03:41 +0000 (14:03 +0200)
committerJan Michel <jan@lxhadeb07>
Mon, 2 Jul 2018 12:03:41 +0000 (14:03 +0200)
hmon/monitor.cgi

index 262bee99a06a45110d42b271afe279d40234e4e3..55789dc31375898052b29cf6722f76c00e34d4a4 100755 (executable)
@@ -64,6 +64,7 @@ my @args = split('-',$ENV{'QUERY_STRING'});
 <div class="button" id = "stop" style="right:35px;width:45px;" onclick="stoprefresh(1)">stop</div>
 <div class="button" id = "big" style="right:75px;width:45px;" onclick="zoom();">&nbsp;bigger&nbsp;</div>
 
+<div id="contentback" class="blinkon"></div>
 <div id="content" class="blinkon"></div>
 $;
 
@@ -99,7 +100,17 @@ function reload() {
   xmlhttp=new XMLHttpRequest();
   xmlhttp.onreadystatechange = function() {
     if(xmlhttp.readyState == 4) {
-                       document.getElementById("content").innerHTML=xmlhttp.responseText;
+      if(!document.getElementById("footer")) {
+        document.getElementById("content").style.visibility="hidden";
+        document.getElementById("content").innerHTML=xmlhttp.responseText;
+        setTimeout('document.getElementById("content").style.visibility="visible"',100);
+        }
+      else {  
+        document.getElementById("content").innerHTML=xmlhttp.responseText;
+        }
+        
+      setTimeout('document.getElementById("contentback").innerHTML=document.getElementById("content").innerHTML',200);
+        
       if(document.getElementById('logbox')) {
         if(saveScrollTop) {
           document.getElementById('logbox').scrollTop = saveScrollTop;
@@ -143,7 +154,7 @@ function askclose() {
        }
 
 function clk(e) {
-  document.getElementById("footer").innerHTML= e.getAttribute("alt");
+  document.getElementById("content").getElementsByClassName("footer")[0].innerHTML= e.getAttribute("alt");
   }
 
 function openhelp(w) {
@@ -157,9 +168,11 @@ function openhelp(w) {
 function blink() {
   if(blinkcnt&1) {
     document.getElementById('content').setAttribute("class","blinkoff");
+    document.getElementById('contentback').setAttribute("class","blinkoff");
     }
   else {
     document.getElementById('content').setAttribute("class","blinkon");
+    document.getElementById('contentback').setAttribute("class","blinkon");
     }
   blinkcnt++;
   }