forked from mrlan/EnglishPal
上传文件至 app/static/js
parent
9f03cc49fa
commit
e3db7c30b0
|
@ -8,7 +8,13 @@ function getWord() {
|
||||||
function fillInWord() {
|
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) {
|
||||||
|
if(isHighlight){
|
||||||
|
const element = document.getElementById("selected-words3");
|
||||||
|
element.value = element.value + " " + word;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
const element = document.getElementById("selected-words");
|
const element = document.getElementById("selected-words");
|
||||||
localStorage.setItem('nowWords', element.value);
|
localStorage.setItem('nowWords', element.value);
|
||||||
element.value = element.value + " " + word;
|
element.value = element.value + " " + word;
|
||||||
|
|
Loading…
Reference in New Issue