From 4b9497724d44477da26fffcb209b60b514d1498d Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 3 Oct 2014 14:29:13 +0200 Subject: [PATCH] Updates to xmldb web page for performance issues & Chrome compatibility --- web/htdocs/layout/blue.css | 17 ++++++++++++----- web/htdocs/scripts/xmlpage.js | 9 +++++---- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/web/htdocs/layout/blue.css b/web/htdocs/layout/blue.css index 4733092..472c462 100644 --- a/web/htdocs/layout/blue.css +++ b/web/htdocs/layout/blue.css @@ -12,9 +12,11 @@ body { /* width:320px; */ padding:10px; margin:50px 10px 0 30px; + border:1px solid #78b; border-radius:5px; background:#eef; - box-shadow: 0 0 10px 5px #fff, 0 0 4px 1px #78b inset; + + /*box-shadow: 0 0 10px 5px #fff, 0 0 4px 1px #78b inset;*/ } #fileSelection { @@ -249,7 +251,7 @@ div.header { font-weight:bold; top:-20px; color:#88a; - z-index:-1; +/* z-index:-1; */ } ul { padding-left:20px;} @@ -291,6 +293,9 @@ div.header span a { div.header span a:hover { } +table.queryresult { + table-layout:fixed; +} table.queryresult td.high { background-color:#e0eae0; @@ -369,15 +374,15 @@ span.tooltip { left: 1em; top: 2em; padding:3px 5px 5px 5px; -/* background:#ffe; */ - background: linear-gradient(135deg, rgba(255,255,238,1) 0%,rgba(250,250,220,1) 100%); + background:#ffe; +/* background: linear-gradient(135deg, rgba(255,255,238,1) 0%,rgba(250,250,220,1) 100%); */ border:2px solid #fff; color:black; text-align:left; font-weight:normal; min-width: 250px; border-radius:5px; - box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); +/* box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); */ opacity:0; } @@ -391,6 +396,8 @@ table.queryresult th div, table.queryresult td div { position:relative; cursor:default; } + + /***************** * Table for scaler view *****************/ diff --git a/web/htdocs/scripts/xmlpage.js b/web/htdocs/scripts/xmlpage.js index 683cba8..93eef87 100644 --- a/web/htdocs/scripts/xmlpage.js +++ b/web/htdocs/scripts/xmlpage.js @@ -18,18 +18,19 @@ } } - function refresh(time = 0) { + function refresh(time) { + time = time || 0; // alert(time); if(time == -1) { //call immediately and only once - getdataprint(GETCOMMAND+'?'+command,'content',false,0); + getdataprint(GETCOMMAND+'?'+command,'content',true,0); } else if (time > 0) { //call with timeout clearTimeout(Timeoutvar); - Timeoutvar = setTimeout("getdataprint(GETCOMMAND+'?'+command,'content',false,"+period+",refresh)",period); + Timeoutvar = setTimeout("getdataprint(GETCOMMAND+'?'+command,'content',true,"+period+",refresh)",period); } else { //call immediately, then with timeout clearTimeout(Timeoutvar); - getdataprint(GETCOMMAND+'?'+command,'content',false,period,refresh); + getdataprint(GETCOMMAND+'?'+command,'content',true,period,refresh); } } -- 2.43.0