assets/js/X-letter.js in word-games-theme-0.7.4 vs assets/js/X-letter.js in word-games-theme-0.7.5

- old
+ new

@@ -15,11 +15,12 @@ let exculdeValue = params.get('exculde') let includeValue = params.get('include') let lengthValue = params.get('length') let dictonary = params.get('dictionary') -let tab_container = document.querySelector('.tab_container') +let tab_link_wrapper = document.querySelector('.tab_link_wrapper') +tab_link_wrapper.style.display = "none" let txtBox = document.querySelector('.txtBox') txtBox.focus() txtBox.value = serachValue @@ -163,19 +164,19 @@ <li>${item} <span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span> </li></a>` }) - tab_container.innerHTML += ` - <a href="#${itemLength}"> - <input type="button" value="${itemLength} Letter" id="Tab${itemLength}" onclick="addFilter(${itemLength})" - class="tab_link"> - </a> - ` + // tab_container.innerHTML += ` + // <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') : '' + // let tabs = document.getElementsByClassName('tab_link') + // tabs[0] ? tabs[0].classList.add('active-tab') : '' main.innerHTML += ` <div class="allGroupWords"> <div class="wordListHeading"> <h3 class="lead">${itemLength} Letter Words</h3> @@ -327,21 +328,21 @@ ` } } // Implement Active class -const addFilter = () => { - let tabs = document.getElementsByClassName('tab_link') - tabs[0] ? tabs[0].classList.add('active-tab') : '' +// const addFilter = () => { +// let tabs = document.getElementsByClassName('tab_link') +// tabs[0] ? tabs[0].classList.add('active-tab') : '' - Array.from(tabs).map((item) => { - item.classList.remove('active-tab') - }) - main.innerHTML += `` - let activeLetter = event.target - // console.log(activeLetter) - activeLetter.classList.add('active-tab') -} +// Array.from(tabs).map((item) => { +// item.classList.remove('active-tab') +// }) +// main.innerHTML += `` +// let activeLetter = event.target +// // console.log(activeLetter) +// activeLetter.classList.add('active-tab') +// } // Scrabble Point Counts const ScrabbleScore = () => { let twl06_sowpods = { a: 1,