From e7be3ec6930faaabbf0290afd45690b1c11eb74a Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Wed, 28 Nov 2012 19:17:35 +0000 Subject: [PATCH] *** empty log message *** --- cts/htdocs/thresh/padiwa.htm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cts/htdocs/thresh/padiwa.htm b/cts/htdocs/thresh/padiwa.htm index 1908e61..1da9de8 100644 --- a/cts/htdocs/thresh/padiwa.htm +++ b/cts/htdocs/thresh/padiwa.htm @@ -72,9 +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) val = "---"; - else val =((val&0xffff*1).toString(16)); - o += ""+val+"
"; + if(c[j][(i-1)*16+k]&0x7ff80000 != Math.floor(k/2)<<20) { + val = "---"; + col = "transparent"; + } + else { + val =((val&0xffff*1).toString(16)); + col = findcolor((val&0xffff*1),0,65536,0); + } + o += ""+val+"
"; } } } -- 2.43.0