Skip to content

Commit

Permalink
add to output using value
Browse files Browse the repository at this point in the history
  • Loading branch information
neurlang authored and Your Name committed Oct 26, 2024
1 parent 6950a59 commit da3ae5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/v0/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ document.getElementById('phonemizer').onclick = function() {
})
.then(response => response.json())
.then(data => {
document.getElementById('output').innerText = '';
document.getElementById('output').value = '';
for (var i in data.Words) {
const word = data.Words[i];
const lang = document.getElementById('output').innerText += ((targ == "Antvaset") ? "" : " ") + word.Phonetic;
const lang = document.getElementById('output').value += ((targ == "Antvaset") ? "" : " ") + word.Phonetic;
}
console.log('Success:', data);
})
Expand Down

0 comments on commit da3ae5c

Please sign in to comment.