]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
first padiwa GUI
authorhadeshyp <hadeshyp>
Wed, 28 Nov 2012 18:11:37 +0000 (18:11 +0000)
committerhadeshyp <hadeshyp>
Wed, 28 Nov 2012 18:11:37 +0000 (18:11 +0000)
cts/htdocs/thresh/padiwa.htm

index 2c21127b92eac52b784611c9af549de21d32eed1..e31130925897ca249147c82ad6e4bef9262b72a7 100644 (file)
@@ -59,9 +59,9 @@ function update(data) {
     for(j=0;j<b.length-1;j++) {
       if(option == "temp") {
         val = (((c[j][i]) & 0xFFF)/16);
-        if(val == 0 || val > 250) val = "---";
+        if(val <= 0 || val > 100 || (c[j][i])&0xf000) val = "---";
           else val = val.toFixed(1)
-        o += "<td class=\"under\" style=\"background:"+findcolor(val,min,max,0)+"\">"+(val);
+        o += "<td class=\"colored\" style=\"background:"+findcolor(val,min,max,0)+"\">"+(val);
         }
       else if(option == "id") {
         val = c[j][(i-1)*4+4]+c[j][(i-1)*4+3]+c[j][(i-1)*4+2]+c[j][(i-1)*4+1];