word-games-theme 2.9.1 → 2.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  :root {
2
- --primary-color: #0CC48B;
2
+ --primary-color: #b641da;
3
3
  --font-size: 16px;
4
4
  --secondary-color: #E0FDFE;
5
5
  --secondary-color-1: #fafafa;
@@ -1,9 +1,9 @@
1
- <svg height="50px" width="1em" style="font-size: 25px" viewBox="0 0 24 24" fill="#000" xmlns="http://www.w3.org/2000/svg" stroke="#000">
1
+ <svg height="50px" width="1em" style="font-size: 25px" viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg" stroke="white">
2
2
  <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
3
3
  <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
4
4
  <g id="SVGRepo_iconCarrier">
5
5
  <g clip-path="url(#clip0_429_11083)">
6
- <path d="M7 7.00006L17 17.0001M7 17.0001L17 7.00006" stroke="#000" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path>
6
+ <path d="M7 7.00006L17 17.0001M7 17.0001L17 7.00006" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path>
7
7
  </g>
8
8
  <defs>
9
9
  <clipPath id="clip0_429_11083">
@@ -1,14 +1,17 @@
1
1
  // getqueryUrl from form
2
2
  const params = new URLSearchParams(window.location.search)
3
3
  let serachValue = params.get('search')
4
+ let defintions = document.querySelector("#Defintions")
4
5
 
5
6
  let txtBox = document.querySelector('.txtBox')
6
7
  txtBox.value = serachValue
7
8
 
9
+ defintions.innerHTML = `Defintion(s) for ${serachValue}`
10
+
8
11
  // DICTONARY
9
12
  const fetchMeaning = async (serachValue) => {
10
13
  try {
11
- let resMeaning = await fetch(`/.netlify/functions/wordMeaning?search=${serachValue}`)
14
+ let resMeaning = await fetch(`http://127.0.0.1:9000/wordMeaning?search=${serachValue}`)
12
15
  let getDef = await resMeaning.text()
13
16
 
14
17
  if (getDef && resMeaning.status == 200) {
@@ -144,7 +147,7 @@ const fetchTWL06Dic = async (serachValue) => {
144
147
  }
145
148
 
146
149
  try {
147
- let res = await fetch(`/.netlify/functions/gettwl06?search=${serachValue}`)
150
+ let res = await fetch(`http://127.0.0.1:9000/gettwl06?search=${serachValue}`)
148
151
 
149
152
  let getData = await res.text()
150
153
 
@@ -201,7 +204,7 @@ const fetchSOWPODSDic = async (serachValue) => {
201
204
  sum += newAlphabet[item[i]] || 0 // for unknown characters
202
205
  }
203
206
 
204
- let res = await fetch(`/.netlify/functions/getsowpods?search=${serachValue}`)
207
+ let res = await fetch(`http://127.0.0.1:9000/getsowpods?search=${serachValue}`)
205
208
 
206
209
  let getData = await res.text()
207
210
 
@@ -254,7 +257,7 @@ const fetchEnableDic = async (serachValue) => {
254
257
  sum += newAlphabet[item[i]] || 0 // for unknown characters
255
258
  }
256
259
 
257
- let res = await fetch(`/.netlify/functions/getenable?search=${serachValue}`)
260
+ let res = await fetch(`http://127.0.0.1:9000/getenable?search=${serachValue}`)
258
261
 
259
262
  let getData = await res.text()
260
263
 
data/assets/js/theme.js CHANGED
@@ -8,64 +8,141 @@ if ("{{ site.removeBootstrapJs }}" === "true") {
8
8
  const intModalBtn = document.querySelector("#int-modal-btn");
9
9
  const closeBtn = document.querySelector("#close-modal");
10
10
 
11
- if(intModalBtn){
12
- intModalBtn.addEventListener("click", () => {
13
- languagesModal.style.display = "block";
14
- languagesModal.classList.add("show");
15
- let modal = document.createElement("div");
16
- modal.classList.add("modal-backdrop", "show");
17
- document.body.appendChild(modal);
18
- });
19
- closeBtn.addEventListener("click", () => {
20
- languagesModal.style.display = "none";
21
- languagesModal.classList.remove("show");
22
- let modal = document.querySelector(".modal-backdrop");
23
- document.body.removeChild(modal);
24
- });
25
- }
11
+ if (intModalBtn) {
12
+ intModalBtn.addEventListener("click", () => {
13
+ languagesModal.style.display = "block";
14
+ languagesModal.classList.add("show");
15
+ let modal = document.createElement("div");
16
+ modal.classList.add("modal-backdrop", "show");
17
+ document.body.appendChild(modal);
18
+ });
19
+ closeBtn.addEventListener("click", () => {
20
+ languagesModal.style.display = "none";
21
+ languagesModal.classList.remove("show");
22
+ let modal = document.querySelector(".modal-backdrop");
23
+ document.body.removeChild(modal);
24
+ });
25
+ }
26
26
 
27
27
 
28
- var mediaQuery = window.matchMedia("(max-width: 768px)")
29
- let navbarDropdown = document.querySelector("#navbarDropdown");
30
- let dropmenu = document.querySelector(".dropmenu");
31
- navbarDropdown.addEventListener("click", () => {
32
- if (dropmenu.classList.contains("show")) {
33
- dropmenu.classList.remove("show");
34
- dropmenu.style.display = "none"
35
- } else {
36
- dropmenu.classList.add("show");
37
- if (mediaQuery.matches) {
38
- dropmenu.style.display = "block"
28
+ var mediaQuery = window.matchMedia("(max-width: 768px)")
29
+ let navbarDropdown = document.querySelector("#navbarDropdown");
30
+ let dropmenu = document.querySelector(".dropmenu");
31
+ // navbarDropdown.addEventListener("click", () => {
32
+ // if (dropmenu.classList.contains("show")) {
33
+ // dropmenu.classList.remove("show");
34
+ // dropmenu.style.display = "none"
35
+ // } else {
36
+ // dropmenu.classList.add("show");
37
+ // if (mediaQuery.matches) {
38
+ // dropmenu.style.display = "block"
39
+ // } else {
40
+ // dropmenu.style.display = "grid"
41
+ // dropmenu.style.padding = "3.5rem"
42
+ // dropmenu.style.gridTemplateColumns = "auto auto";
43
+ // dropmenu.style.columnGap = "5rem";
44
+ // dropmenu.style.rowGap = "1rem";
45
+ // dropmenu.style.borderBottom = "1px solid rgba(0, 0, 0, 0.1)"
46
+ // dropmenu.style.borderLeft = "1px solid rgba(0, 0, 0, 0.1)"
47
+ // dropmenu.style.borderRight = "1px solid rgba(0, 0, 0, 0.1)"
48
+ // }
49
+
50
+ // }
51
+ // });
52
+
53
+
54
+ const wordGamesToolbarListItems = document.querySelectorAll(
55
+ ".wordgames-toolbar-list-item-span"
56
+ );
57
+
58
+ Array.from(wordGamesToolbarListItems).map((item) => {
59
+ item.addEventListener("click", (e) => {
60
+ e.preventDefault();
61
+ var style = window.getComputedStyle(item.nextElementSibling);
62
+ var maxHeight = style.getPropertyValue("max-height");
63
+ console.log(maxHeight)
64
+ if (maxHeight && maxHeight !== "0px") {
65
+ // If the item is expanded, collapse it
66
+ item.nextElementSibling.style.maxHeight = "0";
67
+ item.nextElementSibling.style.opacity = "0";
68
+ item.nextElementSibling.style.height = "0";
39
69
  } else {
40
- dropmenu.style.display = "grid"
41
- dropmenu.style.padding = "3.5rem"
42
- dropmenu.style.gridTemplateColumns = "auto auto";
43
- dropmenu.style.columnGap= "5rem";
44
- dropmenu.style.rowGap= "1rem";
45
- dropmenu.style.borderBottom= "1px solid rgba(0, 0, 0, 0.1)"
46
- dropmenu.style.borderLeft= "1px solid rgba(0, 0, 0, 0.1)"
47
- dropmenu.style.borderRight= "1px solid rgba(0, 0, 0, 0.1)"
70
+ // If the item is collapsed, expand it
71
+ item.nextElementSibling.style.maxHeight =
72
+ item.nextElementSibling.scrollHeight + "px";
73
+ item.nextElementSibling.style.opacity = "1";
74
+ item.nextElementSibling.style.height = "auto";
48
75
  }
49
-
50
- }
51
- });
52
- const navbarToggler = document.querySelector('.navbar-toggler');
53
- const navBar = document.querySelector('#navbarSupportedContent');
54
- const menuIcon = '/assets/images/hamburger-menu.svg';
55
- const closeIcon = '/assets/images/close-menu.svg';
56
- const imgElement = navbarToggler.querySelector('img');
76
+ });
77
+ });
78
+
57
79
 
58
- navbarToggler.addEventListener('click', () => {
80
+
81
+ const navbarToggler = document.querySelector('.navbar-toggler');
82
+ const navBar = document.querySelector('#navbarSupportedContent');
83
+ const menuIcon = '/assets/images/hamburger-menu.svg';
84
+ const closeIcon = '/assets/images/close-menu.svg';
85
+ const imgElement = navbarToggler.querySelector('img');
86
+
87
+ navbarToggler.addEventListener('click', () => {
59
88
  if (navBar.classList.contains('show')) {
60
- navBar.classList.remove('show');
61
- navBar.style.display = 'none';
62
- imgElement.src = menuIcon; // Change to hamburger menu icon when closing
89
+ navBar.classList.remove('show');
90
+ navBar.style.display = 'none';
91
+ imgElement.src = menuIcon; // Change to hamburger menu icon when closing
63
92
  } else {
64
- navBar.classList.add('show');
65
- navBar.style.display = 'block';
66
- imgElement.src = closeIcon; // Change to close icon when opening
93
+ navBar.classList.add('show');
94
+ navBar.style.display = 'block';
95
+ imgElement.src = closeIcon; // Change to close icon when opening
67
96
  }
68
- });
97
+ });
69
98
 
70
99
 
71
- }
100
+ }
101
+
102
+
103
+
104
+
105
+ // Fetch data from data.json
106
+ async function fetchData() {
107
+ const response = await fetch('/alllinks.json');
108
+ const data = await response.json();
109
+ return data.featuredLinks;
110
+ }
111
+
112
+ // Filter data based on search query
113
+ function filterData(data, query) {
114
+ return data.filter(item => item.name.toLowerCase().includes(query.toLowerCase()));
115
+ }
116
+
117
+ // Display filtered results
118
+ function displayResults(results) {
119
+ const resultsContainer = document.getElementById('results');
120
+ resultsContainer.style.display = results.length ? 'block' : 'none';
121
+ resultsContainer.innerHTML = results.length
122
+ ? results.map(result => `<div class="result-item"><a href="${result.url}" target="_blank">${result.name}</a></div>`).join('')
123
+ : '<p>No results found</p>';
124
+ }
125
+
126
+ // Handle search input
127
+ const searchInput = document.querySelector('.searchBar input');
128
+ searchInput.addEventListener('input', async (event) => {
129
+ const query = event.target.value;
130
+ const data = await fetchData();
131
+ const filteredResults = filterData(data, query);
132
+ displayResults(filteredResults);
133
+
134
+ gtag('event', 'search', {
135
+ 'event_category': 'engagement',
136
+ 'event_label': 'Search Box',
137
+ 'value': query
138
+ });
139
+
140
+ });
141
+
142
+ // Hide results when clicking outside search input and results container
143
+ document.addEventListener('click', (event) => {
144
+ const resultsContainer = document.getElementById('results');
145
+ if (!searchInput.contains(event.target) && !resultsContainer.contains(event.target)) {
146
+ resultsContainer.style.display = 'none';
147
+ }
148
+ });
@@ -41,34 +41,313 @@ for (let e = 0; e < greyLetters.length; e++) {
41
41
  })
42
42
  }
43
43
 
44
+ let wordleSolverData = document.getElementById('wordleSolverData')
45
+ greenLetters[0].focus()
46
+ let wordleWordCount = document.querySelector('#wordleWordCount')
47
+ let wordleSolvererrorMsg = document.querySelector('#wordleSolvererrorMsg')
48
+ let wordlesolver_submit = document.getElementById('wordlesolver_submit')
49
+ let newWordsLength = 0
50
+
51
+ let errMessage = document.querySelector('.errMessage')
52
+ let wrapper_div = document.querySelector('.wrapper_div')
53
+ const params = new URLSearchParams(window.location.search)
54
+ let spinner = document.querySelector('.spinner')
55
+
56
+ let featureContainer = document.querySelector("#featureContainer")
57
+ let howContainer = document.querySelector("#howContainer")
58
+ let faqsContainer = document.querySelector("#faqsContainer")
59
+ let infographicsContainer = document.querySelector("#infographicsContainer")
60
+ let authorsLists = document.querySelector(".authors-list")
61
+
44
62
  function handleSubmit(e) {
45
63
  e.preventDefault()
64
+
65
+ if (featureContainer) {
66
+ featureContainer.remove()
67
+ }
68
+ if (howContainer) {
69
+ howContainer.remove()
70
+ }
71
+ if (faqsContainer) {
72
+ faqsContainer.remove()
73
+ }
74
+ if (infographicsContainer) {
75
+ infographicsContainer.remove()
76
+ }
77
+ if (authorsLists) {
78
+ authorsLists.remove()
79
+ }
80
+
81
+
82
+
83
+ document.querySelector(".refineSerach").style.display = "block"
84
+ const scrollingElement = (document.scrollingElement || document.body);
85
+ scrollingElement.scroll({ top: 515, behavior: 'smooth' });
86
+
87
+ let greenWithIndex = getIndexs('.greenWithIndex')
88
+
46
89
  let corretLettterArray = []
90
+ let getGreenLetters = []
47
91
  Array.from(greenLetters).map((item) => {
48
92
  if (!item.value) {
49
- corretLettterArray.push(item.value.replace("", "_"))
93
+ corretLettterArray.push(item.value.replace("", "_").toLowerCase())
50
94
  } else {
51
- corretLettterArray.push(item.value)
95
+ getGreenLetters.push(item.value.toLowerCase())
96
+ corretLettterArray.push(item.value.toLowerCase())
52
97
  }
53
98
  })
54
- let includesLettterArray = []
99
+ let includesLettersArray = []
100
+ let getYellowLetters = []
55
101
  Array.from(yellowLetters).map((item) => {
56
102
  if (!item.value) {
57
- includesLettterArray.push(item.value.replace("", "_"))
103
+ includesLettersArray.push(item.value.replace("", "_").toLowerCase())
58
104
  } else {
59
- includesLettterArray.push(item.value)
105
+ getYellowLetters.push(item.value.toLowerCase())
106
+ includesLettersArray.push(item.value.toLowerCase())
60
107
  }
61
108
  })
62
- let exculdesLettterArray = []
109
+ let excludesLettersArray = []
110
+ let getGreyLetters = []
63
111
  Array.from(greyLetters).map((item) => {
64
112
  if (!item.value) {
65
- exculdesLettterArray.push(item.value.replace("", "_"))
113
+ excludesLettersArray.push(item.value.replace("", "_").toLowerCase())
66
114
  } else {
67
- exculdesLettterArray.push(item.value)
115
+ getGreyLetters.push(item.value.toLowerCase())
116
+ excludesLettersArray.push(item.value.toLowerCase())
68
117
  }
69
118
  })
119
+ if (history.pushState) {
120
+ var newurl = window.location.protocol + "//" + window.location.host +
121
+ window.location.pathname + '?' + "correct" + "=" + corretLettterArray.join("")
122
+ + '&includes' + '=' + includesLettersArray.join("") + "&excludes" + '=' + excludesLettersArray.join("")
123
+ window.history.pushState({ path: newurl }, '', newurl);
124
+
125
+ const params = new URLSearchParams(window.location.search)
126
+ let correct = params.get('correct')
127
+ let includes = params.get('includes')
128
+ let excludes = params.get('excludes')
129
+
130
+ gtag('event', 'page_view', {
131
+ page_location: window.location.pathname + location.search,
132
+ })
133
+ }
134
+ wordleSolver(getGreenLetters, getYellowLetters, getGreyLetters, greenWithIndex)
135
+ }
136
+ if (params.size > 0) {
137
+ window.onload = function (e) {
138
+ handleSubmit(e);
139
+ }
140
+ let correct = params.get('correct').toLowerCase()
141
+ let includes = params.get('includes').toLowerCase()
142
+ let excludes = params.get('excludes').toLowerCase()
143
+ for (let g = 0; g < greenLetters.length; g++) {
144
+ const elem = greenLetters[g]
145
+ let values = correct.split("")
146
+ values.map((item, index) => {
147
+ if (Number(elem.dataset.id) === index) {
148
+ elem.value = item.replace("_", "")
149
+ if (elem.value != "") {
150
+ elem.classList.add('ws-fcs')
151
+ }
152
+ }
153
+ })
154
+ elem.addEventListener('input', (e) => {
155
+ e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
156
+ if (e.target.value) {
157
+ e.target.classList.add('ws-fcs')
158
+ } else {
159
+ e.target.classList.remove('ws-fcs')
160
+ }
161
+ })
162
+ }
163
+ for (let y = 0; y < yellowLetters.length; y++) {
164
+ const elem = yellowLetters[y]
165
+ let values = includes.split("")
166
+ values.map((item, index) => {
167
+ if (Number(elem.dataset.id) === index) {
168
+ elem.value = item.replace("_", "")
169
+ if (elem.value != "") {
170
+ elem.classList.add('ws-fcs2')
171
+ }
172
+ }
173
+ })
174
+ elem.addEventListener('input', (e) => {
175
+ e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
176
+ if (e.target.value) {
177
+ e.target.classList.add('ws-fcs2')
178
+ } else {
179
+ e.target.classList.remove('ws-fcs2')
180
+ }
181
+ })
182
+ }
183
+ for (let e = 0; e < greyLetters.length; e++) {
184
+ const elem = greyLetters[e]
185
+ let values = excludes.split("")
186
+ values.map((item, index) => {
187
+ if (Number(elem.dataset.id) === index) {
188
+ elem.value = item.replace("_", "")
189
+ if (elem.value != "") {
190
+ elem.classList.add('ws-fcs3')
191
+ }
192
+ }
193
+ })
194
+
195
+ elem.addEventListener('input', (e) => {
196
+ e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
197
+ if (e.target.value) {
198
+ e.target.classList.add('ws-fcs3')
199
+ } else {
200
+ e.target.classList.remove('ws-fcs3')
201
+ }
202
+ })
203
+ }
70
204
 
71
- window.location = `/${permalink}/result` + '?' + "correct" + "=" + corretLettterArray.join("")
72
- + '&includes' + '=' + includesLettterArray.join("") + "&excludes" + '=' + exculdesLettterArray.join("")
73
205
  }
74
- form.addEventListener('submit', handleSubmit)
206
+ form.addEventListener('submit', handleSubmit)
207
+
208
+ const wordleSolver = async (value, value2, value3, greenWithIndex) => {
209
+ try {
210
+ let result = ''
211
+ document.querySelector('#updateTxt').innerHTML = ''
212
+ spinner.classList.add('spinner-border')
213
+ wordleWordCount.innerHTML = 'Searching for best possible letters...'
214
+ let response = await fetch('/.netlify/functions/wordleSolver', {
215
+ method: 'POST',
216
+ body: JSON.stringify({
217
+ greenLetters: value,
218
+ yellowLetters: value2,
219
+ greyLetters: value3,
220
+ greenWithIndex: greenWithIndex,
221
+ }),
222
+ })
223
+ let data = await response.json()
224
+ data = data.slice(0, 1000)
225
+ document.querySelector('#updateTxt').innerHTML = 'Solve'
226
+ spinner.classList.remove('spinner-border')
227
+
228
+ let ok = true
229
+ if (data.length === 0) {
230
+ newWordsLength = ''
231
+ wordleSolverData.innerHTML = ''
232
+ wordleSolvererrorMsg.classList.add('alert-danger')
233
+ wordleSolvererrorMsg.innerHTML = 'Sorry!! No words found'
234
+ wordleWordCount.style.display = 'none'
235
+ // console.log(wordleWordCount)
236
+ } else {
237
+ wordleWordCount.style.display = 'block'
238
+ wordleSolverData.innerHTML = ''
239
+ wordleSolvererrorMsg.classList.remove('alert-danger')
240
+ wordleSolvererrorMsg.innerHTML = ''
241
+ newWordsLength = ''
242
+ newWordsLength += data.length
243
+ result = data.map((item) => {
244
+ if (item.length === 1) {
245
+ ok = false
246
+ newWordsLength = newWordsLength - 1
247
+ } else {
248
+ // console.log(newWordsLength);
249
+ let ScrabbleLetterScore = ScrabbleScore()
250
+ sum = 0
251
+ item = item.toLowerCase()
252
+ for (let i = 0; i < item.length; i++) {
253
+ sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
254
+ }
255
+ return `
256
+ <a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
257
+ <li>
258
+ ${item.toLowerCase()}
259
+ <span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
260
+ </li>
261
+ </a>
262
+ `
263
+ }
264
+ })
265
+ if (ok) {
266
+ wordleSolverData.innerHTML += `
267
+ <div class="allfiveletterswords wordlistContainer">
268
+ <div class="wordListHeading">
269
+ <h3 class="lead">Solve wordle with these words</h3>
270
+ </div>
271
+ <div class="wordList">
272
+ <ul class="ul list-unstyled">
273
+ ${result.join('')}
274
+ </ul>
275
+ </div>
276
+ </div>
277
+ `
278
+ }
279
+ }
280
+
281
+ if (newWordsLength === 0) {
282
+ console.log(true)
283
+ wordleSolvererrorMsg.classList.add('alert-danger')
284
+ wordleSolvererrorMsg.innerHTML = 'Sorry!! No words found'
285
+ } else {
286
+ wordleWordCount.innerHTML = `<strong>Found <span style="color:#20a815">${newWordsLength}</span> matching words for wordle</strong>`
287
+ }
288
+ } catch (error) {
289
+ console.log(error)
290
+ }
291
+ }
292
+ const getLetters = (object) => {
293
+ let letters = []
294
+ if (typeof object === 'string') {
295
+ object = document.querySelectorAll(object)
296
+ }
297
+ for (let item of object) {
298
+ if (item.value.trim().length === 1) {
299
+ letters.push(item.value.toLowerCase())
300
+ }
301
+ }
302
+ return letters
303
+ }
304
+ const getIndexs = (object) => {
305
+ let index = []
306
+ if (typeof object === 'string') {
307
+ object = document.querySelectorAll(object)
308
+ }
309
+ for (let item of object) {
310
+ if (item.value.trim().length === 1) {
311
+ index.push({
312
+ value: item.value.toLowerCase(),
313
+ index: item.dataset.id,
314
+ })
315
+ }
316
+ }
317
+ return index
318
+ }
319
+ document.querySelector(".refineSerach").addEventListener("click", () => {
320
+ const scrollingElement = (document.scrollingElement || document.body);
321
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
322
+ })
323
+ const ScrabbleScore = () => {
324
+ let twl06_sowpods = {
325
+ a: 1,
326
+ e: 1,
327
+ i: 1,
328
+ o: 1,
329
+ u: 1,
330
+ l: 1,
331
+ n: 1,
332
+ r: 1,
333
+ s: 1,
334
+ t: 1,
335
+ d: 2,
336
+ g: 2,
337
+ b: 3,
338
+ c: 3,
339
+ m: 3,
340
+ p: 3,
341
+ f: 4,
342
+ h: 4,
343
+ v: 4,
344
+ w: 4,
345
+ y: 4,
346
+ k: 5,
347
+ j: 8,
348
+ x: 8,
349
+ q: 10,
350
+ z: 10,
351
+ }
352
+ return twl06_sowpods
353
+ }
@@ -19,29 +19,6 @@ let includes = params.get('includes').toLowerCase()
19
19
  let excludes = params.get('excludes').toLowerCase()
20
20
 
21
21
 
22
- // let addMore = document.querySelector('#addMore')
23
-
24
- // addMore.addEventListener('click', (e) => {
25
- // e.preventDefault()
26
- // let div = document.createElement('div')
27
- // div.classList.add('d-flex')
28
- // div.classList.add('mt-2')
29
-
30
- // for (let i = 20; i <= 24; i++) {
31
- // let input = document.createElement('input')
32
- // input.type = 'text'
33
- // input.setAttribute('maxlength', '1')
34
- // input.setAttribute('autocomplete', 'off')
35
- // if (i <= 24) {
36
- // input.setAttribute('tabIndex', i)
37
- // }
38
- // let classes = ['wordleSolver-field', 'greyLetters', 'form-control', 'px-5']
39
- // input.classList.add(...classes)
40
- // input.id = 'greyLetters'
41
- // div.append(input)
42
- // wrapper_div.append(div)
43
- // }
44
- // })
45
22
 
46
23
  let spinner = document.querySelector('.spinner')
47
24
  const wordleSolver = async (value, value2, value3, greenWithIndex) => {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word-games-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-20 00:00:00.000000000 Z
11
+ date: 2024-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -110,6 +110,7 @@ files:
110
110
  - _data/wordgames/en/word-meaning.json
111
111
  - _data/wordgames/en/words_with_friends_word_finder.json
112
112
  - _data/wordgames/hi/four_letter_word_finder.json
113
+ - _data/wordgames/hi/words-with-these-letters-and-2-blanks.json
113
114
  - _data/wordleSolver/en/data.json
114
115
  - _data/wordleSolver/en/resultData.json
115
116
  - _data/xyzPagesData/en/unscramble-letters-jumble.json
@@ -178,6 +179,7 @@ files:
178
179
  - _includes/wordgames/head/head.html
179
180
  - _includes/wordgames/header/blog-header.html
180
181
  - _includes/wordgames/header/header.html
182
+ - _includes/wordgames/header/new-header.html
181
183
  - _includes/wordgames/headings/headings.html
182
184
  - _includes/wordgames/howto/howto.html
183
185
  - _includes/wordgames/infographics/infographics.html