assets/js/X-letter.js in word-games-theme-0.1.7 vs assets/js/X-letter.js in word-games-theme-0.1.8
- old
+ new
@@ -126,10 +126,11 @@
sum = 0
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}">
<li>${item}
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
</li></a>`
})
@@ -138,9 +139,10 @@
<a href="#${itemLength}">
<input type="button" value="${itemLength} Letter" id="Tab${itemLength}" onclick="addFilter(${itemLength})"
class="tab_link">
</a>
`
+
let tabs = document.getElementsByClassName('tab_link')
tabs[0] ? tabs[0].classList.add('active-tab') : ''
main.innerHTML += `
<div class="allGroupWords">