Spaces:
Runtime error
Runtime error
update js
Browse files- 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.
|
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 |
}
|