word-games-theme 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/blog/nav.json +1 -1
- data/_data/header/en/data.json +10 -2
- data/_data/wordgames/en/anagram_word_finder.json +2 -0
- data/_data/wordgames/en/feature_certain_positions.json +54 -0
- data/_data/wordgames/en/find-words-that-start-with-the-letters.json +54 -0
- data/_data/wordgames/en/root.json +10 -2
- data/_data/wordleSolver/en/data.json +6 -0
- data/_includes/Monumetric/Monumetric.html +48 -0
- data/_includes/autogenerated/content.html +1 -4
- data/_includes/cssfile/links.html +12 -0
- data/_includes/custom-head.html +0 -29
- data/_includes/find-words-in-certain-positions/words-in-certain-positions.html +167 -0
- data/_includes/head/index.html +3 -29
- data/_includes/header/blogHeader.html +1 -2
- data/_includes/header/index.html +1 -1
- data/_includes/script.html +16 -12
- data/_includes/section/commonPage.html +105 -101
- data/_includes/section/feature.html +1 -1
- data/_includes/section/home2.html +1 -1
- data/_includes/section/news.html +8 -7
- data/_includes/section/related_categories_post.html +155 -150
- data/_includes/section/wordGroup.html +2 -12
- data/_includes/wordle-solver/wordle-solver.html +2 -3
- data/_layouts/allpages.html +1 -6
- data/_layouts/autogencontent.html +2 -5
- data/_layouts/blog.html +1 -2
- data/_layouts/default.html +18 -21
- data/_layouts/disclaimer.html +5 -2
- data/_layouts/page.html +7 -17
- data/_layouts/page2.html +3 -18
- data/_layouts/post.html +26 -23
- data/_layouts/privacyPolicy.html +2 -1
- data/_layouts/termAndCondition.html +1 -0
- data/_layouts/{wordleSolver.html → tools.html} +18 -11
- data/_layouts/wordMeaning.html +21 -35
- data/_layouts/xyzpages.html +1 -6
- data/assets/css/advancedFilter.css +8 -0
- data/assets/css/content.css +3 -3
- data/assets/css/home.css +58 -41
- data/assets/css/news.css +2 -2
- data/assets/css/style.css +26 -7
- data/assets/css/wordGroup.css +6 -3
- data/assets/css/wordleSolver.css +8 -14
- data/assets/css/wordsInCertainPosition.css +139 -0
- data/assets/images/wordswithletters-logo.png +0 -0
- data/assets/js/X-letter.js +15 -2
- data/assets/js/wordScrabble.js +4 -1
- data/assets/js/wordleSolver.js +25 -18
- data/assets/js/words-in-certain-positions.js +200 -0
- data/assets/js/words-starting-with.js +564 -0
- metadata +11 -3
@@ -0,0 +1,564 @@
|
|
1
|
+
let form = document.querySelector('#form')
|
2
|
+
let wordCount = document.querySelector('.wordCount')
|
3
|
+
let main = document.querySelector('.main')
|
4
|
+
let errorMsg = document.querySelector('.errorMsg')
|
5
|
+
let script = document.currentScript
|
6
|
+
|
7
|
+
// getqueryUrl from form
|
8
|
+
const params = new URLSearchParams(window.location.search)
|
9
|
+
let serachValue = params.get('search').toLowerCase()
|
10
|
+
let prefixValue = params.get('prefix')
|
11
|
+
let containsValue = params.get('contains')
|
12
|
+
let suffixValue = params.get('suffix')
|
13
|
+
let exculdeValue = params.get('exculde')
|
14
|
+
let includeValue = params.get('include')
|
15
|
+
let lengthValue = params.get('length')
|
16
|
+
let dictonary = params.get('dictionary')
|
17
|
+
|
18
|
+
// advanced filter element grabs
|
19
|
+
let tick
|
20
|
+
let startsWith = document.getElementById('startsWith')
|
21
|
+
let mustInclude = document.getElementById('mustInclude')
|
22
|
+
let endsWith = document.getElementById('endsWith')
|
23
|
+
let exculdeWith = document.getElementById('exculdeWith')
|
24
|
+
let inculdeWith = document.getElementById('inculdeWith')
|
25
|
+
let wordLength = document.getElementById('wordLength')
|
26
|
+
|
27
|
+
let ok = true
|
28
|
+
|
29
|
+
let tab_container = document.querySelector('.tab_container')
|
30
|
+
var sortValue
|
31
|
+
var sortBool = false
|
32
|
+
|
33
|
+
let txtBox = document.querySelector('.txtBox')
|
34
|
+
txtBox.focus()
|
35
|
+
txtBox.value = serachValue
|
36
|
+
|
37
|
+
var theSelect = document.getElementById('select_dropDown')
|
38
|
+
document.querySelector('.select_dropDown2').value = dictonary
|
39
|
+
// getWords define...
|
40
|
+
const getData = async (serachValue) => {
|
41
|
+
try {
|
42
|
+
let selectedDictionary = document.querySelector('.select_dropDown2').value
|
43
|
+
main.innerHTML = `<div class="loader">
|
44
|
+
<img src='/assets/images/loading.gif'>
|
45
|
+
<div style="font-weight:900;font-size:14px" >Finding words - Powered by wordswithletters.org</div>
|
46
|
+
</div>`
|
47
|
+
/// loader
|
48
|
+
const response = await fetch(
|
49
|
+
`/.netlify/functions/wordsStartingWith?name=${serachValue}&selecteddictionary=${selectedDictionary}`
|
50
|
+
)
|
51
|
+
let data = await response.json()
|
52
|
+
data = data.slice(0,1500)
|
53
|
+
main.innerHTML = ''
|
54
|
+
wordsStartingWith(data)
|
55
|
+
//wordsStartingWith calling...
|
56
|
+
} catch (error) {
|
57
|
+
console.log(error)
|
58
|
+
}
|
59
|
+
}
|
60
|
+
//getData calling...
|
61
|
+
if (lengthValue === '1') {
|
62
|
+
errorMsg.innerHTML = 'words length should be more than 1'
|
63
|
+
} else {
|
64
|
+
getData(serachValue.toLowerCase())
|
65
|
+
}
|
66
|
+
|
67
|
+
// wordsStartingWith function define...
|
68
|
+
function wordsStartingWith(data) {
|
69
|
+
if (typeof data === 'string') {
|
70
|
+
errorMsg.innerHTML = 'no words found'
|
71
|
+
wordCount.innerHTML = `<strong>Found 0 words with letters ${serachValue.split(
|
72
|
+
''
|
73
|
+
)}</strong>`
|
74
|
+
} else {
|
75
|
+
let newWordsLength = 0
|
76
|
+
|
77
|
+
// sort eventlistener
|
78
|
+
theSelect.addEventListener('change', () => {
|
79
|
+
sortValue = theSelect[theSelect.selectedIndex].text
|
80
|
+
if (sortValue == 'Z-A') {
|
81
|
+
sortBool = true
|
82
|
+
sortby(sortBool, data)
|
83
|
+
} else {
|
84
|
+
sortBool = false
|
85
|
+
sortby(sortBool, data)
|
86
|
+
}
|
87
|
+
if (sortValue == 'Points') {
|
88
|
+
sortBool = true
|
89
|
+
sortPointsby(sortBool, data)
|
90
|
+
}
|
91
|
+
})
|
92
|
+
|
93
|
+
for (let i = 15; i >= 0; i--) {
|
94
|
+
let newdata = data.filter((item) => item.length === i)
|
95
|
+
|
96
|
+
if (prefixValue) {
|
97
|
+
newdata = newdata.filter((item2) =>
|
98
|
+
item2.startsWith(prefixValue.toLowerCase())
|
99
|
+
)
|
100
|
+
startsWith.classList.add('tick')
|
101
|
+
startsWith.value = prefixValue
|
102
|
+
}
|
103
|
+
if (containsValue) {
|
104
|
+
newdata = newdata.filter((item) =>
|
105
|
+
item.includes(containsValue.toLowerCase())
|
106
|
+
)
|
107
|
+
mustInclude.classList.add('tick')
|
108
|
+
mustInclude.value = containsValue
|
109
|
+
}
|
110
|
+
if (suffixValue) {
|
111
|
+
newdata = newdata.filter((item) =>
|
112
|
+
item.endsWith(suffixValue.toLowerCase())
|
113
|
+
)
|
114
|
+
endsWith.classList.add('tick')
|
115
|
+
endsWith.value = suffixValue
|
116
|
+
}
|
117
|
+
|
118
|
+
if (exculdeValue) {
|
119
|
+
let data = []
|
120
|
+
newdata.map((item) => {
|
121
|
+
let check = false
|
122
|
+
for (let e = 0; e < exculdeValue.length; e++) {
|
123
|
+
const element = exculdeValue[e]
|
124
|
+
if (item.includes(element)) {
|
125
|
+
check = true
|
126
|
+
break
|
127
|
+
} else {
|
128
|
+
check = false
|
129
|
+
}
|
130
|
+
}
|
131
|
+
if (check === false) {
|
132
|
+
data.push(item)
|
133
|
+
}
|
134
|
+
})
|
135
|
+
exculdeWith.classList.add('tick')
|
136
|
+
exculdeWith.value = exculdeValue
|
137
|
+
newdata = data
|
138
|
+
}
|
139
|
+
if (includeValue) {
|
140
|
+
let data = []
|
141
|
+
newdata.map((item) => {
|
142
|
+
let check = false
|
143
|
+
for (let e = 0; e < includeValue.length; e++) {
|
144
|
+
const element = includeValue[e]
|
145
|
+
if (!item.includes(element)) {
|
146
|
+
check = true
|
147
|
+
break
|
148
|
+
} else {
|
149
|
+
check = false
|
150
|
+
}
|
151
|
+
}
|
152
|
+
if (check === false) {
|
153
|
+
data.push(item)
|
154
|
+
}
|
155
|
+
})
|
156
|
+
inculdeWith.classList.add('tick')
|
157
|
+
inculdeWith.value = includeValue
|
158
|
+
newdata = data
|
159
|
+
}
|
160
|
+
|
161
|
+
if (lengthValue) {
|
162
|
+
newdata = newdata.filter((item) => item.length == lengthValue)
|
163
|
+
wordLength.classList.add('tick')
|
164
|
+
wordLength.value = lengthValue
|
165
|
+
}
|
166
|
+
|
167
|
+
if (newdata.length === 0) {
|
168
|
+
main.innerHTML += ''
|
169
|
+
} else {
|
170
|
+
newWordsLength += newdata.length
|
171
|
+
const result = newdata.map((item) => {
|
172
|
+
if (item.length === 1) {
|
173
|
+
ok = false
|
174
|
+
newWordsLength = newWordsLength - 1
|
175
|
+
} else {
|
176
|
+
let ScrabbleLetterScore = ScrabbleScore()
|
177
|
+
sum = 0
|
178
|
+
item = item.toLowerCase()
|
179
|
+
for (let i = 0; i < item.length; i++) {
|
180
|
+
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
181
|
+
}
|
182
|
+
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
|
183
|
+
<li style="width:auto !important">${item}
|
184
|
+
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
185
|
+
</li></a>`
|
186
|
+
}
|
187
|
+
})
|
188
|
+
|
189
|
+
if (ok) {
|
190
|
+
tab_container.innerHTML += `
|
191
|
+
<input type="button" id="Tab_${i}" onclick="Filtering(${i})" value="${i} Letter"
|
192
|
+
class="tab_link cursorPointer" />
|
193
|
+
`
|
194
|
+
let tabs = document.getElementsByClassName('tab_link')
|
195
|
+
tabs[0] ? tabs[0].classList.add('active-tab') : ''
|
196
|
+
main.innerHTML += `
|
197
|
+
<div class="allGroupWords wordlistContainer" id="alpha_${i}">
|
198
|
+
<div class="wordListHeading">
|
199
|
+
<h3 class="lead">${i} Letter Words</h3>
|
200
|
+
</div>
|
201
|
+
<div class="wordList">
|
202
|
+
<ul class="ul list-unstyled">
|
203
|
+
${result.join('')}
|
204
|
+
</ul>
|
205
|
+
</div>
|
206
|
+
</div>
|
207
|
+
`
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
if (newWordsLength === 0) {
|
213
|
+
errorMsg.innerHTML = 'no words found'
|
214
|
+
} else {
|
215
|
+
wordCount.innerHTML = `<strong>Found ${newWordsLength} words with letters with ${serachValue.split(
|
216
|
+
''
|
217
|
+
)}</strong>`
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
// sorting by points
|
223
|
+
function sortPointsby(sortValue, data) {
|
224
|
+
main.innerHTML = ''
|
225
|
+
if (sortValue) {
|
226
|
+
let newWordsLength = 0
|
227
|
+
for (let i = 15; i >= 0; i--) {
|
228
|
+
var newdata = data.filter((item) => item.length === i)
|
229
|
+
console.log(newdata)
|
230
|
+
if (newdata.length === 0) {
|
231
|
+
main.innerHTML += ''
|
232
|
+
} else {
|
233
|
+
newWordsLength += newdata.length
|
234
|
+
var newArray = []
|
235
|
+
newdata.map((item) => {
|
236
|
+
if (item.length === 1) {
|
237
|
+
ok = false
|
238
|
+
newWordsLength = newWordsLength - 1
|
239
|
+
} else {
|
240
|
+
let ScrabbleLetterScore = ScrabbleScore()
|
241
|
+
let points = 0
|
242
|
+
item = item.toLowerCase()
|
243
|
+
for (let i = 0; i < item.length; i++) {
|
244
|
+
points += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
245
|
+
}
|
246
|
+
const value = {
|
247
|
+
words: item,
|
248
|
+
points: points,
|
249
|
+
}
|
250
|
+
newArray.push(value)
|
251
|
+
}
|
252
|
+
})
|
253
|
+
|
254
|
+
newArray.sort(function (a, b) {
|
255
|
+
return b.points - a.points
|
256
|
+
})
|
257
|
+
|
258
|
+
const result = newArray.map((item) => {
|
259
|
+
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item.words}">
|
260
|
+
<li style="width:auto !important">${item.words}
|
261
|
+
<span class="points" value="${item.points}" style="position:relative; top:4px; font-size:12px"> ${item.points}</span>
|
262
|
+
</li></a>`
|
263
|
+
})
|
264
|
+
|
265
|
+
main.innerHTML += `
|
266
|
+
<div class="allGroupWords wordlistContainer" id="alpha_${i}">
|
267
|
+
<div class="wordListHeading">
|
268
|
+
<h3 class="lead">${i} Letter Words</h3>
|
269
|
+
</div>
|
270
|
+
<div class="wordList">
|
271
|
+
<ul class="ul list-unstyled">
|
272
|
+
${result.join('')}
|
273
|
+
</ul>
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
`
|
277
|
+
}
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
// sort by aplhabets
|
282
|
+
function sortby(sortBool, data) {
|
283
|
+
if (sortBool) {
|
284
|
+
main.innerHTML = ''
|
285
|
+
data.reverse()
|
286
|
+
let newWordsLength = 0
|
287
|
+
for (let i = 15; i >= 0; i--) {
|
288
|
+
var newdata = data.filter((item) => item.length === i)
|
289
|
+
|
290
|
+
if (newdata.length === 0) {
|
291
|
+
main.innerHTML += ''
|
292
|
+
} else {
|
293
|
+
newWordsLength += newdata.length
|
294
|
+
|
295
|
+
const result = newdata.map((item) => {
|
296
|
+
if (item.length === 1) {
|
297
|
+
ok = false
|
298
|
+
newWordsLength = newWordsLength - 1
|
299
|
+
} else {
|
300
|
+
let ScrabbleLetterScore = ScrabbleScore()
|
301
|
+
let sum = 0
|
302
|
+
item = item.toLowerCase()
|
303
|
+
for (let i = 0; i < item.length; i++) {
|
304
|
+
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
305
|
+
}
|
306
|
+
|
307
|
+
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
|
308
|
+
<li style="width:auto !important">${item}
|
309
|
+
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
310
|
+
</li></a>`
|
311
|
+
}
|
312
|
+
})
|
313
|
+
|
314
|
+
main.innerHTML += `
|
315
|
+
<div class="allGroupWords wordlistContainer" id="alpha_${i}">
|
316
|
+
<div class="wordListHeading">
|
317
|
+
<h3 class="lead">${i} Letter Words</h3>
|
318
|
+
</div>
|
319
|
+
<div class="wordList">
|
320
|
+
<ul class="ul list-unstyled">
|
321
|
+
${result.join('')}
|
322
|
+
</ul>
|
323
|
+
</div>
|
324
|
+
</div>
|
325
|
+
`
|
326
|
+
}
|
327
|
+
}
|
328
|
+
} else {
|
329
|
+
main.innerHTML = ''
|
330
|
+
data.sort()
|
331
|
+
for (let i = 15; i >= 0; i--) {
|
332
|
+
var newdata = data.filter((item) => item.length === i)
|
333
|
+
if (newdata.length === 0) {
|
334
|
+
main.innerHTML += ''
|
335
|
+
} else {
|
336
|
+
const result = newdata.map((item) => {
|
337
|
+
if (item.length === 1) {
|
338
|
+
ok = false
|
339
|
+
} else {
|
340
|
+
let ScrabbleLetterScore = ScrabbleScore()
|
341
|
+
let sum = 0
|
342
|
+
item = item.toLowerCase()
|
343
|
+
for (let i = 0; i < item.length; i++) {
|
344
|
+
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
345
|
+
}
|
346
|
+
|
347
|
+
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
|
348
|
+
<li style="width:auto !important">${item}
|
349
|
+
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
350
|
+
</li></a>`
|
351
|
+
}
|
352
|
+
})
|
353
|
+
main.innerHTML += `
|
354
|
+
<div class="allGroupWords wordlistContainer" id="alpha_${i}">
|
355
|
+
<div class="wordListHeading">
|
356
|
+
<h3 class="lead">${i} Letter Words</h3>
|
357
|
+
</div>
|
358
|
+
<div class="wordList">
|
359
|
+
<ul class="ul list-unstyled">
|
360
|
+
${result.join('')}
|
361
|
+
</ul>
|
362
|
+
</div>
|
363
|
+
</div>
|
364
|
+
`
|
365
|
+
}
|
366
|
+
}
|
367
|
+
}
|
368
|
+
}
|
369
|
+
// Scrabble Point Array
|
370
|
+
const ScrabbleScore = () => {
|
371
|
+
let twl06_sowpods = {
|
372
|
+
a: 1,
|
373
|
+
e: 1,
|
374
|
+
i: 1,
|
375
|
+
o: 1,
|
376
|
+
u: 1,
|
377
|
+
l: 1,
|
378
|
+
n: 1,
|
379
|
+
r: 1,
|
380
|
+
s: 1,
|
381
|
+
t: 1,
|
382
|
+
d: 2,
|
383
|
+
g: 2,
|
384
|
+
b: 3,
|
385
|
+
c: 3,
|
386
|
+
m: 3,
|
387
|
+
p: 3,
|
388
|
+
f: 4,
|
389
|
+
h: 4,
|
390
|
+
v: 4,
|
391
|
+
w: 4,
|
392
|
+
y: 4,
|
393
|
+
k: 5,
|
394
|
+
j: 8,
|
395
|
+
x: 8,
|
396
|
+
q: 10,
|
397
|
+
z: 10,
|
398
|
+
}
|
399
|
+
|
400
|
+
let wwfScore = {
|
401
|
+
a: 1,
|
402
|
+
b: 4,
|
403
|
+
c: 4,
|
404
|
+
d: 2,
|
405
|
+
e: 1,
|
406
|
+
f: 4,
|
407
|
+
g: 3,
|
408
|
+
h: 3,
|
409
|
+
i: 1,
|
410
|
+
j: 10,
|
411
|
+
k: 5,
|
412
|
+
l: 2,
|
413
|
+
m: 4,
|
414
|
+
n: 2,
|
415
|
+
o: 1,
|
416
|
+
p: 4,
|
417
|
+
q: 10,
|
418
|
+
r: 1,
|
419
|
+
s: 1,
|
420
|
+
t: 1,
|
421
|
+
u: 2,
|
422
|
+
v: 5,
|
423
|
+
w: 4,
|
424
|
+
x: 8,
|
425
|
+
y: 3,
|
426
|
+
z: 10,
|
427
|
+
}
|
428
|
+
|
429
|
+
if (dictonary === 'wwf') {
|
430
|
+
return wwfScore
|
431
|
+
} else {
|
432
|
+
return twl06_sowpods
|
433
|
+
}
|
434
|
+
}
|
435
|
+
//Handling of filter counter in advanced filter
|
436
|
+
function addFilterCount() {
|
437
|
+
let filter_val = document.getElementsByClassName('filter_val')
|
438
|
+
let filter = document.querySelector('.filter_count')
|
439
|
+
let filter_count = 0
|
440
|
+
|
441
|
+
filter_val[0].value = prefixValue
|
442
|
+
filter_val[1].value = containsValue
|
443
|
+
filter_val[2].value = suffixValue
|
444
|
+
filter_val[3].value = exculdeValue
|
445
|
+
filter_val[4].value = includeValue
|
446
|
+
filter_val[5].value = lengthValue
|
447
|
+
|
448
|
+
for (var i = 0; i <= 4; i++) {
|
449
|
+
if (filter_val[i].value != '') {
|
450
|
+
filter_count += 1
|
451
|
+
}
|
452
|
+
if (filter_count === 0) {
|
453
|
+
filter.style.display = 'none'
|
454
|
+
} else {
|
455
|
+
filter.style.display = 'inline-block'
|
456
|
+
}
|
457
|
+
|
458
|
+
filter.innerHTML = filter_count
|
459
|
+
}
|
460
|
+
}
|
461
|
+
addFilterCount()
|
462
|
+
|
463
|
+
// handling of filter on scroll
|
464
|
+
window.onscroll = function () {
|
465
|
+
var section = document.querySelectorAll('.wordlistContainer')
|
466
|
+
let new_sections = {}
|
467
|
+
Array.prototype.forEach.call(section, function (e) {
|
468
|
+
if (document.body.clientWidth > 991) {
|
469
|
+
new_sections[e.id] = e.offsetTop - 10
|
470
|
+
} else {
|
471
|
+
new_sections[e.id] = e.offsetTop - 10
|
472
|
+
}
|
473
|
+
})
|
474
|
+
var scrollPosition =
|
475
|
+
document.documentElement.scrollTop || document.body.scrollTop
|
476
|
+
for (i in new_sections) {
|
477
|
+
let sort_val = document.querySelector('.sort-select').value
|
478
|
+
if (
|
479
|
+
i.split('_')[0] == sort_val &&
|
480
|
+
new_sections[i] &&
|
481
|
+
new_sections[i] <= scrollPosition
|
482
|
+
) {
|
483
|
+
document.querySelector('.active-tab').classList.remove('active-tab')
|
484
|
+
var active_now = document.querySelector('#Tab_' + i.split('_')[1])
|
485
|
+
active_now.classList.add('active-tab')
|
486
|
+
// active_now.scrollIntoView()
|
487
|
+
}
|
488
|
+
}
|
489
|
+
}
|
490
|
+
// Add Filtering
|
491
|
+
let sections = {}
|
492
|
+
function Filtering(id) {
|
493
|
+
let tabs = document.getElementsByClassName('tab_link')
|
494
|
+
tabs[0] ? tabs[0].classList.add('active-tab') : ''
|
495
|
+
|
496
|
+
Array.from(tabs).map((item) => {
|
497
|
+
item.classList.remove('active-tab')
|
498
|
+
})
|
499
|
+
main.innerHTML += ``
|
500
|
+
let activeLetter = event.target
|
501
|
+
activeLetter.classList.add('active-tab')
|
502
|
+
|
503
|
+
var section = document.querySelectorAll('.wordlistContainer')
|
504
|
+
var sort_val = document.querySelector('.sort-select').value
|
505
|
+
Array.prototype.forEach.call(section, function (e) {
|
506
|
+
if (document.body.clientWidth > 991) {
|
507
|
+
sections[e.id] = e.offsetTop - 10
|
508
|
+
} else {
|
509
|
+
sections[e.id] = e.offsetTop - 10
|
510
|
+
}
|
511
|
+
})
|
512
|
+
|
513
|
+
document.body.scrollTop = sections[sort_val + '_' + id] + 5
|
514
|
+
}
|
515
|
+
// next && previous functionality
|
516
|
+
let prev = document.getElementById('prev')
|
517
|
+
let next = document.getElementById('next')
|
518
|
+
|
519
|
+
if (prev) {
|
520
|
+
prev.onclick = scroll_Right
|
521
|
+
}
|
522
|
+
if (next) {
|
523
|
+
next.onclick = scroll_Left
|
524
|
+
}
|
525
|
+
window.addEventListener('resize', function () {
|
526
|
+
scroll_visible()
|
527
|
+
})
|
528
|
+
window.addEventListener('scroll', function () {
|
529
|
+
scroll_visible()
|
530
|
+
})
|
531
|
+
function scroll_visible() {
|
532
|
+
let tab_container = document.querySelector('#tab-container')
|
533
|
+
|
534
|
+
if (tab_container) {
|
535
|
+
if (tab_container.clientWidth === tab_container.scrollWidth) {
|
536
|
+
prev.style.display = 'none'
|
537
|
+
next.style.display = 'none'
|
538
|
+
} else {
|
539
|
+
prev.style.display = 'block'
|
540
|
+
next.style.display = 'block'
|
541
|
+
}
|
542
|
+
}
|
543
|
+
}
|
544
|
+
scroll_visible()
|
545
|
+
|
546
|
+
function scroll_Left() {
|
547
|
+
tab_container.scrollLeft += 130
|
548
|
+
}
|
549
|
+
function scroll_Right() {
|
550
|
+
tab_container.scrollLeft -= 130
|
551
|
+
}
|
552
|
+
function findIndex(str, char) {
|
553
|
+
const strLength = str.length
|
554
|
+
const indexes = []
|
555
|
+
let newStr = str
|
556
|
+
|
557
|
+
while (newStr && newStr.indexOf(char) > -1) {
|
558
|
+
indexes.push(newStr.indexOf(char) + strLength - newStr.length)
|
559
|
+
newStr = newStr.substring(newStr.indexOf(char) + 1)
|
560
|
+
newStr = newStr.substring(newStr.indexOf(char) + 1)
|
561
|
+
}
|
562
|
+
|
563
|
+
return indexes
|
564
|
+
}
|
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: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manpreet-appscms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -80,6 +80,8 @@ files:
|
|
80
80
|
- _data/wordgames/en/anagram_word_finder.json
|
81
81
|
- _data/wordgames/en/eight_letter_word_finder.json
|
82
82
|
- _data/wordgames/en/eleven_letter_word_finder.json
|
83
|
+
- _data/wordgames/en/feature_certain_positions.json
|
84
|
+
- _data/wordgames/en/find-words-that-start-with-the-letters.json
|
83
85
|
- _data/wordgames/en/five_letter_word_finder.json
|
84
86
|
- _data/wordgames/en/four_letter_word_finder.json
|
85
87
|
- _data/wordgames/en/jumble_word_finder.json
|
@@ -109,9 +111,11 @@ files:
|
|
109
111
|
- _includes/authors/authors.html
|
110
112
|
- _includes/autogenerated/content.html
|
111
113
|
- _includes/autogenerated/footer.html
|
114
|
+
- _includes/cssfile/links.html
|
112
115
|
- _includes/custom-head.html
|
113
116
|
- _includes/disqus_comments.html
|
114
117
|
- _includes/filterWords/index.html
|
118
|
+
- _includes/find-words-in-certain-positions/words-in-certain-positions.html
|
115
119
|
- _includes/footer/index.html
|
116
120
|
- _includes/google-analytics.html
|
117
121
|
- _includes/head/index.html
|
@@ -152,8 +156,8 @@ files:
|
|
152
156
|
- _layouts/post.html
|
153
157
|
- _layouts/privacyPolicy.html
|
154
158
|
- _layouts/termAndCondition.html
|
159
|
+
- _layouts/tools.html
|
155
160
|
- _layouts/wordMeaning.html
|
156
|
-
- _layouts/wordleSolver.html
|
157
161
|
- _layouts/xyzpages.html
|
158
162
|
- assets/css/HomePageblog.css
|
159
163
|
- assets/css/about.css
|
@@ -168,6 +172,7 @@ files:
|
|
168
172
|
- assets/css/style.css
|
169
173
|
- assets/css/wordGroup.css
|
170
174
|
- assets/css/wordleSolver.css
|
175
|
+
- assets/css/wordsInCertainPosition.css
|
171
176
|
- assets/images/Ankita.webp
|
172
177
|
- assets/images/Anushka.webp
|
173
178
|
- assets/images/Arjyahi.webp
|
@@ -215,6 +220,7 @@ files:
|
|
215
220
|
- assets/images/window-close.svg
|
216
221
|
- assets/images/word-games-logo.svg
|
217
222
|
- assets/images/word-games-logo.webp
|
223
|
+
- assets/images/wordswithletters-logo.png
|
218
224
|
- assets/images/yellow_bg.png
|
219
225
|
- assets/js/TopScroll.js
|
220
226
|
- assets/js/X-letter.js
|
@@ -224,6 +230,8 @@ files:
|
|
224
230
|
- assets/js/scrabbleDictonary.js
|
225
231
|
- assets/js/wordScrabble.js
|
226
232
|
- assets/js/wordleSolver.js
|
233
|
+
- assets/js/words-in-certain-positions.js
|
234
|
+
- assets/js/words-starting-with.js
|
227
235
|
- assets/js/xyz.js
|
228
236
|
homepage: https://github.com/Contenttool/word-games-theme
|
229
237
|
licenses:
|