]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
warnings for the data limit
authorCahit Ugur <c.ugur@gsi.de>
Fri, 25 Jul 2014 09:30:19 +0000 (11:30 +0200)
committerCahit Ugur <c.ugur@gsi.de>
Fri, 25 Jul 2014 09:30:19 +0000 (11:30 +0200)
web/htdocs/tdc/tdc.htm

index 09779f32fed96ca69646091162d5fa7b3981f0c5..96776d0b647302f02b654d560d50a01406c94897 100644 (file)
@@ -275,9 +275,9 @@ function updatestatregs(data) {
           if((val>>16 & 1)) 
             o += "<span class=\"over\" style=\"background:#faa;display:block;width:100%;float:right\">";
           if((val>>16 & 1))
-            o += "polarity wrong";
+            o += "<font color=#ff0000> <strong>polarity wrong</strong> </font> ";
           else
-            o += "polarity correct";
+            o += "<font color=#007f00> <strong>polarity correct</strong> </font> ";
           if((val>>16 & 1)) 
             o += "</span>";
           }
@@ -344,9 +344,15 @@ function updatectrlregs(data) {
           if(i==3) enableGroup[j][1] = val*1.;
           }
         else if(i==4) {
-          o += "<input onChange=\"setDataLimit(this,'"+c[j][0]+"')\" type=\"text\" id=\"datalimit\" name=\"datalimit\" class=\"small\" maxlength=\"4\" value=\""+val+"\">";
-          }
-        else {
+         if((val&0xFF)==0x80)
+            o += (val&0xFF); <!-- "<input onChange=\"setDataLimit(this,'"+c[j][0]+"')\" type=\"text\" id=\"datalimit\" name=\"datalimit\" class=\"small\" maxlength=\"4\" value=\""+val+"\">"; -->
+         else{
+            o += (val&0xFF);
+
+            o += "<font color=#ff0000> <strong><br>Sure about this?</strong> </font> ";
+            }
+         }
+       else {
           o += val;
           }
         }