From: Jan Michel Date: Wed, 30 Nov 2016 11:57:19 +0000 (+0100) Subject: Change update procedure for power switch GUI X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=61ab35481826d60f92e215923dd53b6d1cad2be0;p=daqtools.git Change update procedure for power switch GUI --- diff --git a/web/htdocs/tools/pwr/pwr_switch.htm b/web/htdocs/tools/pwr/pwr_switch.htm index 8ec0aea..df95d75 100644 --- a/web/htdocs/tools/pwr/pwr_switch.htm +++ b/web/htdocs/tools/pwr/pwr_switch.htm @@ -54,14 +54,14 @@ function maketable() { out += ""+i+""; if(typeof Vnames[i] !== 'undefined') out += Vnames[i]; if (Vstatus[i] == 1) { - out += ' '; + out += ' '; } else { - out += ' '; + out += ' '; } out += '\ '; - out += ''+Vcurrent[i]+''+Vaverage[i]+ + out += ''+Vcurrent[i]+''+Vaverage[i]+ ''+"\n"; } document.getElementById("display").innerHTML = out; @@ -124,7 +124,13 @@ function update(data) { Vaverage[i] = e.shift(); Vlimit[i] = e.shift(); } - maketable(); + document.getElementById("date").innerHTML = Vdate; + for(i=0;i