]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Wed, 28 Nov 2012 19:17:35 +0000 (19:17 +0000)
committerhadeshyp <hadeshyp>
Wed, 28 Nov 2012 19:17:35 +0000 (19:17 +0000)
cts/htdocs/thresh/padiwa.htm

index 1908e61fa92d5608462d1bda16eede672c2a2fc9..1da9de82ea1e5a8f6edcba6f85c97ad493f790e7 100644 (file)
@@ -72,9 +72,15 @@ function update(data) {
         o += "<td>";
         for(k=1;k<=16;k++) {
           val = c[j][(i-1)*16+k];
-          if(c[j][(i-1)*16+k]&0x7ff80000 != Math.floor(k/2)<<20) val = "---";
-          else val =((val&0xffff*1).toString(16));
-          o += "<span class=\"fixed\" style=\"background:"+findcolor(val,0,65536,0)+"\">"+val+"</span><br>";
+          if(c[j][(i-1)*16+k]&0x7ff80000 != Math.floor(k/2)<<20) {
+            val = "---";
+            col = "transparent";
+            }
+          else {
+            val =((val&0xffff*1).toString(16));
+            col = findcolor((val&0xffff*1),0,65536,0);
+            }
+          o += "<span class=\"fixed\" style=\"background:"+col+"\">"+val+"</span><br>";
           }
         }
       }