Skip to content

Commit

Permalink
Merge pull request #15 from YujiSODE/Y20190226
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
YujiSODE authored Feb 26, 2019
2 parents 9f7dc45 + 476a4cd commit 4d80229
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ <h2>Output</h2>
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'),
Expand Down Expand Up @@ -184,10 +185,13 @@ <h2>Output</h2>
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);
}());
</script>
Expand Down

0 comments on commit 4d80229

Please # to comment.