assets/js/default.js in word-games-theme-1.9.9 vs assets/js/default.js in word-games-theme-2.0.0
- old
+ new
@@ -20,14 +20,16 @@
myFunction(x)
x.addListener(myFunction)
txtBox.addEventListener('input', (e) => {
if (e.target.value === "") {
- letterCloseButton.classList.remove("close_ltr_icon")
+ letterCloseButton.style.display = "none"
+ // letterCloseButton.classList.remove("close_ltr_icon")
}
else {
- letterCloseButton.classList.add("close_ltr_icon")
+ letterCloseButton.style.display = "block"
+ // letterCloseButton.classList.add("close_ltr_icon")
}
focusBorder.classList.remove("focus-border")
e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
let rangeOfBlankTile = 3
@@ -42,9 +44,9 @@
}
})
letterCloseButton.addEventListener("click", () => {
txtBox.value = ""
- letterCloseButton.classList.remove("close_ltr_icon")
+ letterCloseButton.style.display ="none"
})