MCPcopy Create free account
hub / github.com/codemistic/Web-Development / loadImg

Function loadImg

File converter/script.js:3–14  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

1let newImg, showImg;
2
3function loadImg(event){
4 showImg=document.getElementById('showImg')
5 showImg.src=URL.createObjectURL(event.target.files[0]);
6
7 newImg=document.createElement('img')
8 newImg.src=URL.createObjectURL(event.target.files[0]);
9
10
11 showImg.onload=function(){
12 URL.revokeObjectURL(showImg.src);
13 }
14}
15
16function pdfDown(){
17

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected