From e7c3d0b8c700cd2b76b22d910c75e6dee701e3be Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Mon, 22 Oct 2012 14:50:35 +0000 Subject: [PATCH] *** empty log message *** --- cts/htdocs/thresh/styles.css | 10 ++++++---- cts/htdocs/thresh/tdc.htm | 8 +++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/cts/htdocs/thresh/styles.css b/cts/htdocs/thresh/styles.css index 9b48107..06aa5f9 100644 --- a/cts/htdocs/thresh/styles.css +++ b/cts/htdocs/thresh/styles.css @@ -104,22 +104,24 @@ div#bar2 div { table#content td.over { /* border-collapse:separate; */ - border-right:5px solid #f88; - border-left: 5px solid #f88; + border-right:5px solid #faa; + border-left: 5px solid #faa; width:60px; padding-right:20px; border-radius:40px 40px; border-spacing:2px; + background:#faa; } table#content td.under { /* border-collapse:separate; */ width:60px; padding-right:20px; - border-left: 5px solid #8f8; - border-right:5px solid #8f8; + border-left: 5px solid #afa; + border-right:5px solid #afa; border-radius:40px 40px; border-spacing:2px; + background:#afa; } diff --git a/cts/htdocs/thresh/tdc.htm b/cts/htdocs/thresh/tdc.htm index 3d1551c..3a4b083 100644 --- a/cts/htdocs/thresh/tdc.htm +++ b/cts/htdocs/thresh/tdc.htm @@ -16,6 +16,7 @@ # of Channels Update Interval (ms) Differences +Input Status @@ -29,6 +30,7 @@ var updaterate = document.getElementById("form_rate").value; var board = document.getElementById("form_board").value; var channels = document.getElementById("form_channels").value; var differences= document.getElementById("form_diff").checked; +var showstatus = document.getElementById("form_status").checked; var oldvalues = {}; var reglist = "80-83-84-85-86-87-88-89-8a-8b-8c-8d-8f-90"; @@ -66,7 +68,10 @@ function update(data) { else { val = c[j][i] & 0xFFFFFF; } - o += ""+(val); + if(showstatus) + o += ""+(val); + else + o += ""+(val); } } oldvalues = c; @@ -77,6 +82,7 @@ function setValues() { updaterate = document.getElementById("form_rate").value; board = document.getElementById("form_board").value; differences= document.getElementById("form_diff").checked; + showstatus = document.getElementById("form_status").checked; channels = document.getElementById("form_channels").value; clearInterval(updateTask); updateTask = setInterval("getdata('get.pl?"+board+"-c000-"+channels+"',update)",updaterate); -- 2.43.0