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