From 476a4cd90df50467560a4f129b5930130322f31e Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Tue, 26 Feb 2019 09:47:13 +0900 Subject: [PATCH] Add files via upload --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 34ba2c5..444990e 100644 --- a/index.html +++ b/index.html @@ -115,6 +115,7 @@

Output

C=slf.document.getElementById('cvs_getColorSection'), cOut=slf.document.getElementById('outputCvs'), reader=new FileReader(), + __LOG='', /*buttons*/ LeftB=slf.document.getElementById('leftB'), RightB=slf.document.getElementById('rightB'), @@ -184,10 +185,13 @@

Output

colorScale(cOut); },false); LogB.addEventListener('click',()=>{ - slf.alert(`Filename:${imgLength>0?img.files[0].name:'no data'} + __LOG=`\"getColorSection\" +Filename:${imgLength>0?img.files[0].name:'no data'} Horizontal coordinate in pixels:${xScan.value} Width to scan:${wScan.value} -RGB color coefficients:\[r,g,b\]=\[${rScan.value},${gScan.value},${bScan.value}\]`); +RGB color coefficients:\[r,g,b\]=\[${rScan.value},${gScan.value},${bScan.value}\]`; + slf.alert(__LOG); + slf.console.log(__LOG); },false); }());