assets/js/X-letter.js in word-games-theme-1.0.5 vs assets/js/X-letter.js in word-games-theme-1.0.6

- old
+ new

@@ -67,9 +67,24 @@ e.target.value = e.target.value.replace(/\?$/, '') } }) var theSelect = document.getElementById('select_dropDown') + +const sortup = document.querySelector(".sortup-icon") +let bool = false +sortup.addEventListener("click", () => { + if (bool) { + theSelect.size = 0 + bool = false + theSelect.style.display = "none" + } + else { + bool = true + theSelect.size = 3 + theSelect.style.display = "block" + } +}) document.querySelector('.select_dropDown2').value = dictonary const getDiff = (text1, text2) => { var diffRange = [] var currentRange = undefined for (var i = 0; i < text1.length; i++) {