]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Thu, 6 Dec 2012 16:26:52 +0000 (16:26 +0000)
committerhadeshyp <hadeshyp>
Thu, 6 Dec 2012 16:26:52 +0000 (16:26 +0000)
cts/htdocs/padiwa/padiwa.htm
cts/htdocs/tdc/tdc.htm

index c7a7f33bf3d202804dfa56f9a0ab9b417f316a61..50d2e770e0cc1f587655f24c555a243c3bd86640 100644 (file)
@@ -71,7 +71,7 @@ function update(data) {
       else if(option == "thresh") {
         o += "<td>";
         for(k=1;k<=16;k++) {
-          val = c[j][(i-1)*16+k];
+          val = c[j][(i-1)*16+k]*1.;
           if((c[j][(i-1)*16+k]&0x7fff0000) != (((k-1)<<15) & 0x7fff0000)) {
             val = "---";
             col = "transparent";
index 7174f361324a27c506562e0c0f6040548a9e7d00..a107e7d1b4930eb0a5a13de37044e205de922579 100644 (file)
@@ -100,17 +100,19 @@ function update(data) {
   if(showenable) {
     o += "<tr><td><td>Channel group";
     for(j=0;j<b.length-1;j++) {
-      o += "<th>";
-      for(k=3;k>=0;k--) {
-        o += "<span style=\"display:block;float:left;width:20px;font-size:80%\">"+k+"</span>";
-        }
-      o+="<br>";
-      for(k=3;k>=0;k--) {
-        o += "<input class=\"onoffbutton\" type=\"button\" onClick=\"setEnableBlock(this,'"+c[j][0]+"',"+k+",1)\" value=\"on\">";
-        }
-      o += "<br>";
-      for(k=3;k>=0;k--) {
-        o += "<input class=\"onoffbutton\" type=\"button\" onClick=\"setEnableBlock(this,'"+c[j][0]+"',"+k+",0)\" value=\"off\">";
+      if(isShown[j]) {
+        o += "<th>";
+        for(k=3;k>=0;k--) {
+          o += "<span style=\"display:block;float:left;width:20px;font-size:80%\">"+k+"</span>";
+          }
+        o+="<br>";
+        for(k=3;k>=0;k--) {
+          o += "<input class=\"onoffbutton\" type=\"button\" onClick=\"setEnableBlock(this,'"+c[j][0]+"',"+k+",1)\" value=\"on\">";
+          }
+        o += "<br>";
+        for(k=3;k>=0;k--) {
+          o += "<input class=\"onoffbutton\" type=\"button\" onClick=\"setEnableBlock(this,'"+c[j][0]+"',"+k+",0)\" value=\"off\">";
+          }
         }
       }
     }