From d46653674929c5bd8bdab6a07aee4df0957e2801 Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Mon, 18 Feb 2019 12:11:18 +0900 Subject: [PATCH] Add files via upload --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 2d6934f..34ba2c5 100644 --- a/index.html +++ b/index.html @@ -65,6 +65,8 @@

Output

+ +
@@ -119,6 +121,7 @@

Output

ScanB=slf.document.getElementById('scanB'), FixedScanB=slf.document.getElementById('fixedScanB'), ScaleB=slf.document.getElementById('scaleB'), + LogB=slf.document.getElementById('logB'), /*form inputs: Canvas*/ img=slf.document.getElementById('inputImg'), imgLength=0, @@ -180,6 +183,12 @@

Output

ScaleB.addEventListener('click',()=>{ colorScale(cOut); },false); + LogB.addEventListener('click',()=>{ + slf.alert(`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}\]`); + },false); }());