diff --git a/examples/file-input/demo.html b/examples/file-input/demo.html index 39a696e..4403e13 100644 --- a/examples/file-input/demo.html +++ b/examples/file-input/demo.html @@ -28,7 +28,9 @@ function progressUpdate(packet){ if(packet.status == 'done'){ var pre = document.createElement('pre') pre.appendChild(document.createTextNode(packet.data.text)) + line.innerHTML = '' line.appendChild(pre) + } log.insertBefore(line, log.firstChild) @@ -37,7 +39,7 @@ function progressUpdate(packet){ function recognizeFile(file){ document.querySelector("#log").innerHTML = '' - + Tesseract.recognize(file, { lang: document.querySelector('#langsel').value }) @@ -69,7 +71,7 @@ function recognizeFile(file){ - +