change2
parent
ddd2c0ac5a
commit
4cde454fa0
|
@ -10,6 +10,12 @@ function fillInWord() {
|
|||
if (isRead) Reader.read(word, inputSlider.value);
|
||||
if (!isChoose) return;
|
||||
const element = document.getElementById("selected-words");
|
||||
let element1 = document.getElementById("selected-words");
|
||||
let index = (String)(element1.value).indexOf(word);
|
||||
localStorage.setItem("nowWord",element1.value);
|
||||
if(index === -1){
|
||||
element1.value = element1.value + " " + word;
|
||||
}
|
||||
element.value = element.value + " " + word;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue