ConradLax commited on
Commit
559c2d6
·
1 Parent(s): 6ed1c5c

fix: query selector for id

Browse files
Files changed (1) hide show
  1. static/script.js +4 -4
static/script.js CHANGED
@@ -48,8 +48,8 @@ function submitImages(acceptedFiles) {
48
  return "aqa";
49
  }
50
 
51
- const inputImg = document.querySelector('img-input');
52
- const outputImg = document.querySelector('img-output');
53
  let imageArray = [];
54
 
55
  inputImg.addEventListener("change", event =>{
@@ -61,8 +61,8 @@ inputImg.addEventListener("change", event =>{
61
  outputImg.textContent = "Result is: " + res;
62
  });
63
 
64
- const classifyBtn = document.querySelector('classify-btn');
65
- const outputPar = document.querySelector('test-output');
66
 
67
  classifyBtn.addEventListener('onclick', () => {
68
  outputPar.textContent = "asa";
 
48
  return "aqa";
49
  }
50
 
51
+ const inputImg = document.querySelector('.img-input');
52
+ const outputImg = document.querySelector('.img-output');
53
  let imageArray = [];
54
 
55
  inputImg.addEventListener("change", event =>{
 
61
  outputImg.textContent = "Result is: " + res;
62
  });
63
 
64
+ const classifyBtn = document.querySelector('.classify-btn');
65
+ const outputPar = document.querySelector('.test-output');
66
 
67
  classifyBtn.addEventListener('onclick', () => {
68
  outputPar.textContent = "asa";