From c95f9c15c4a5ae61edf3e5f10e4ad66875ba28ef Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 14 May 2013 11:26:22 +0200 Subject: [PATCH] changed tdc GUI to mem read for better performance. Added control of data limit --- web/htdocs/layout/styles.css | 40 +++++++---- web/htdocs/tdc/tdc.htm | 130 +++++++++++++++++++++++++---------- 2 files changed, 118 insertions(+), 52 deletions(-) diff --git a/web/htdocs/layout/styles.css b/web/htdocs/layout/styles.css index 3e859d7..e738a0e 100644 --- a/web/htdocs/layout/styles.css +++ b/web/htdocs/layout/styles.css @@ -33,7 +33,7 @@ h3 { div.index { margin: 0 30px 0 15px; - background: #ffffff; + background: rgba(255,255,255,.5); overflow: hidden; padding: 5px; } @@ -60,15 +60,14 @@ table.form td { padding:2px 10px; } -table#content, table#contentregs { +table.content { border:solid #ccc; border-width:1px 0 0 1px; margin:0 20px 20px 0; border-spacing:0; } -table#contentregs td:first-child, table#contentregs th:first-child, -table#content td:first-child, table#content th:first-child{ +table.content td:first-child, table.content th:first-child{ width:40px; padding-right:0px; @@ -77,7 +76,7 @@ table#content td:first-child, table#content th:first-child{ -table#content td, table#content th, table#contentregs td, table#contentregs th{ +table.content td, table.content th { border:solid #ccc; border-width:0 1px 1px 0; width:90px; @@ -86,7 +85,7 @@ table#content td, table#content th, table#contentregs td, table#contentregs th{ padding-right:15px; } -table#content, table#contentregs { +table.content { border:1px solid #ccc; } @@ -117,12 +116,19 @@ div#bar2 div { font-weight:bold; } - +.content tr:nth-child(odd), .odd { + background:#f0f0f8; +} + +.content tr:nth-child(even), .even { + background:#e0e0e8; +} + .odd { background:#f0f0f8; } -.odd:hover, .even:hover { +.content tr:hover, .content tr:hover { background:#ffe; } @@ -130,12 +136,12 @@ div#bar2 div { background:#e0e0e8; } -.head { +tr.head th { background:#333; color:#eef; } -table#content td.over { +table.content td.over { width:50px; margin:0 10px; padding-right:10px; @@ -145,7 +151,7 @@ table#content td.over { background:#fcc; } -table#content td.under { +table.content td.under { width:50px; margin:0 10px; padding-right:10px; @@ -156,12 +162,12 @@ table#content td.under { } -table#content tr:hover td.over { +table.content tr:hover td.over { background:#fdd; border-color:#fdd; } -table#content tr:hover td.under { +table.content tr:hover td.under { background:#dfd; border-color:#dfd; } @@ -170,6 +176,12 @@ input { width:182px; } +input.small { + width:90px; + text-align:right; + margin-right:-6px; +} + #form_rate, #form_rate2, #form_min, #form_max { width: 89px; } @@ -180,7 +192,7 @@ width: 89px; } -#content .checkbox { +.content .checkbox { display: block; float:left; margin:0px -15px 2px 0px; diff --git a/web/htdocs/tdc/tdc.htm b/web/htdocs/tdc/tdc.htm index 1034db1..682f1d3 100644 --- a/web/htdocs/tdc/tdc.htm +++ b/web/htdocs/tdc/tdc.htm @@ -33,8 +33,9 @@ -
ChannelValue
-
RegisterValues
+
ChannelValue
+
RegisterValues
+
RegisterValues
-- 2.43.0