]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Wed, 17 Oct 2012 11:05:05 +0000 (11:05 +0000)
committerhadeshyp <hadeshyp>
Wed, 17 Oct 2012 11:05:05 +0000 (11:05 +0000)
cts/htdocs/thresh/styles.css
cts/htdocs/thresh/tdc.htm

index 74beb5178b0a7d03e6a809e9b11fe3e7f80c07e9..f0ffbfca19feb12eb1e4e3463ed778ff4e24c6f4 100644 (file)
@@ -1,24 +1,56 @@
 body {
-    background:#eef;
+    background:#f5f5f5;
+    font-size:10pt;
+    margin:50px 0 0 15px;
+    padding:0;
 }
 
+h2 {
+  position:absolute;
+  width:100%;
+  top:-15px;
+  left:0px;
+  background:#f9f9f9;
+  border-bottom:1px solid #ccc;
+  padding:10px 0 5px 10px;
+}
+
+table.form {
+  border:1px solid #ccc;
+  padding:0;
+  background:#f0f0f8;
+  margin-bottom:20px;
+  border-collapse:collapse;
+}
+
+table.form td {
+  padding:2px 10px;
+}
 
 table#content, table#contentregs {
- border:1px solid #aaa
+ border:1px solid #ccc
  margin:0 20px 20px 0;
  border-collapse:collapse;
 }
 
+table#contentregs td:first-child, table#contentregs th:first-child,
+table#content td:first-child, table#content th:first-child{
+  width:40px;
+  padding-right:0px;
+  text-align:center;
+}
+
+
 
 table#content td, table#content th, table#contentregs td, table#contentregs th{
- border:1px solid #aaa
+ border:1px solid #ccc
  width:100px;
  text-align:right;
  padding-right:15px;
 }
 
 table#content, table#contentregs {
- border:1px solid #aaa
+ border:1px solid #ccc
 }
 
 
@@ -62,6 +94,6 @@ div#bar2 div {
 }
 
 .head {
-  background:#334;
+  background:#333;
   color:#eef;
 }
\ No newline at end of file
index d355ed2670aaadf97e153d2aefbd6845eb12d25c..a920e833c7dc68ceff1a2c87d0e130b19716930e 100644 (file)
@@ -9,9 +9,10 @@
 <body>
 
 
-<h4>Hit Counters</h4>
+<h2>Hit Counters &amp; TDC Registers</h2>
 <form acion="">
-<table><tr><td>Board<td><input type="text" id="form_board" name="board" maxlength="4" value="ffff">
+<table class="form"><tr class="head"><th colspan=2>Settings
+<tr><td>Board<td><input type="text" id="form_board" name="board" maxlength="4" value="ffff">
 <tr><td># of Channels<td><input type="text" id="form_channels" name="channels" maxlength="3" value="65">
 <tr><td>Update Interval (ms)<td><input type="text" id="form_rate" name="rate" maxlength="5" value="1000">
 <tr><td>Differences<td><input type="checkbox" id="form_diff" name="diff" value="1">
@@ -45,7 +46,7 @@ function update(data) {
   if(!document.getElementById("content").innerHTML) return;
   var b = data.split("&");
   var c = {};
-  o = "<tr class=\"head\"><th>Channel";
+  o = "<tr class=\"head\"><th>Reg<th>Channel";
 
   for(j=0;j<b.length-1;j++) {
     c[j] = b[j].split(" ");
@@ -54,7 +55,7 @@ function update(data) {
     } 
   
   for(i = 1; i <= channels; i++) {
-    o += "<tr class=\""+(i%2?"odd":"even")+"\"><th>"+(i-1);
+    o += "<tr class=\""+(i%2?"odd":"even")+"\"><th>"+(i-1+0xc000).toString(16)+"<th>"+(i-1);
     for(j=0;j<b.length-1;j++) {
       if(differences) {
         val = c[j][i]- (oldvalues[j][i]||0);
@@ -88,7 +89,7 @@ function updateregs(data) {
   if(!document.getElementById("contentregs").innerHTML) return;
   var b = data.split("&");
   var c = {};
-  o = "<tr class=\"head\"><th>Register<th>Content";
+  o = "<tr class=\"head\"><th>Reg<th>Content";
 
   for(j=0;j<b.length-1;j++) {
     c[j] = b[j].split(" ");