ianluo commited on
Commit
a961b40
·
1 Parent(s): c85df8a
Files changed (1) hide show
  1. static/script.js +2 -1
static/script.js CHANGED
@@ -11,10 +11,11 @@ textGenForm.addEventListener("submit", async (e) => {
11
  e.preventDefault();
12
 
13
  const textGenInput = document.getElementById("text-gen-input");
14
- const textGenParagraph = document.getElementById("text-gen-output");
15
 
16
  try {
17
  textGenParagraph.textContent = await translateText(textGenInput.value);
 
18
  } catch (err) {
19
  console.log(err);
20
  }
 
11
  e.preventDefault();
12
 
13
  const textGenInput = document.getElementById("text-gen-input");
14
+ const textGenParagraph = document.querySelector(".text-gen-output");
15
 
16
  try {
17
  textGenParagraph.textContent = await translateText(textGenInput.value);
18
+ console.log(textGenInput.value);
19
  } catch (err) {
20
  console.log(err);
21
  }