change
parent
0b5dacb472
commit
a9245afe6d
|
@ -9,11 +9,12 @@ function fillInWord() {
|
|||
let word = getWord();
|
||||
if (isRead) Reader.read(word, inputSlider.value);
|
||||
if (!isChoose) return;
|
||||
let element = document.getElementById("selected-words");
|
||||
let index = (String)(element.value).indexOf(word);
|
||||
localStorage.setItem("nowWord",element.value);
|
||||
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){
|
||||
element.value = element.value + " " + word;
|
||||
element1.value = element1.value + " " + word;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue