From d249f6c5baad4ef5f972eccd7950ae9fb22bb8d9 Mon Sep 17 00:00:00 2001 From: hadaq Date: Wed, 28 Nov 2012 19:41:20 +0000 Subject: [PATCH] *** empty log message *** --- cts/htdocs/thresh/padiwa.htm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cts/htdocs/thresh/padiwa.htm b/cts/htdocs/thresh/padiwa.htm index 1da9de8..75b6d71 100644 --- a/cts/htdocs/thresh/padiwa.htm +++ b/cts/htdocs/thresh/padiwa.htm @@ -72,13 +72,15 @@ function update(data) { o += ""; for(k=1;k<=16;k++) { val = c[j][(i-1)*16+k]; - if(c[j][(i-1)*16+k]&0x7ff80000 != Math.floor(k/2)<<20) { + if((c[j][(i-1)*16+k]&0x7fff0000) != (((k-1)<<15) & 0x7fff0000)) { val = "---"; col = "transparent"; } else { - val =((val&0xffff*1).toString(16)); - col = findcolor((val&0xffff*1),0,65536,0); + col = findcolor((val&0xffff),min,max,0); + val =((val&0xffff).toString(16)); +// if((c[j][(i-1)*16+k]&0x7fff0000) != (((k-1)<<15) & 0x7fff0000)) +// val = "-"+val; } o += ""+val+"
"; } @@ -94,4 +96,4 @@ function update(data) { - \ No newline at end of file + -- 2.43.0