Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
YujiSODE authored Feb 18, 2019
1 parent b2b42ee commit d466536
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ <h2>Output</h2>
<button id='fixedScanB'>Fixed Scan</button>
<!-- buttons to show color scale -->
<button id='scaleB'>Color Scale</button>
<!-- buttons to show log -->
<button id='logB'>Log</button>
</div>
<form id='control'>
<!-- source image and size of canvas -->
Expand Down Expand Up @@ -119,6 +121,7 @@ <h2>Output</h2>
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,
Expand Down Expand Up @@ -180,6 +183,12 @@ <h2>Output</h2>
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);
}());
</script>
</body>
Expand Down

1 comment on commit d466536

@YujiSODE
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

  • [index.html]: button to show log

Please # to comment.