mlboydaisuke commited on
Commit
b834734
·
verified ·
1 Parent(s): e847b33

Demo from litert-ocr b326704: while a new file is read, the previous file's result is hidden

Browse files
Files changed (1) hide show
  1. app.js +2 -0
app.js CHANGED
@@ -499,6 +499,8 @@ function finishNotes(job) {
499
 
500
  function showFile(file, job) {
501
  $('result').hidden = true;
 
 
502
  $('error').hidden = true;
503
  $('password-form').hidden = true;
504
  $('took').textContent = '';
 
499
 
500
  function showFile(file, job) {
501
  $('result').hidden = true;
502
+ // the previous file's result goes too: on a narrow screen a PDF's page shows in the result card while it is read
503
+ $('output').hidden = true;
504
  $('error').hidden = true;
505
  $('password-form').hidden = true;
506
  $('took').textContent = '';