assets/js/X-letter.js in word-games-theme-0.7.3 vs assets/js/X-letter.js in word-games-theme-0.7.4
- old
+ new
@@ -18,10 +18,11 @@
let dictonary = params.get('dictionary')
let tab_container = document.querySelector('.tab_container')
let txtBox = document.querySelector('.txtBox')
+txtBox.focus()
txtBox.value = serachValue
var theSelect = document.getElementById('select_dropDown')
document.querySelector('.select_dropDown2').value = dictonary
@@ -44,11 +45,11 @@
getData(serachValue.toLowerCase())
function x_with_letters(data) {
if (typeof data === 'string') {
errorMsg.innerHTML = 'No words found'
- wordCount.innerHTML = `<strong> 0 words with letters ${serachValue.split(
+ wordCount.innerHTML = `<strong>Found 0 words with letters ${serachValue.split(
''
)}</strong>`
} else {
let newWordsLength = 0
let filterData = ''
@@ -156,11 +157,11 @@
item = item.toLowerCase()
for (let i = 0; i < item.length; i++) {
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
}
wordLength.value = itemLength
- return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item}">
+ return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item}">
<li>${item}
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
</li></a>`
})
@@ -185,10 +186,10 @@
</ul>
</div>
</div>
`
}
- wordCount.innerHTML = `<strong>${newWordsLength} words with letters ${serachValue.split(
+ wordCount.innerHTML = `<strong>Found ${newWordsLength} words with letters with ${serachValue.split(
''
)}</strong>`
}
}