word-games-theme 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/footer/en/data.json +16 -0
- data/_data/header/en/data.json +16 -0
- data/_data/wordgames/en/french-word-unscrambler.json +61 -0
- data/_data/wordgames/en/german-word-unscrambler.json +61 -0
- data/_data/wordgames/en/italian-word-unscrambler.json +61 -0
- data/_data/wordgames/en/spanish-word-unscrambler.json +61 -0
- data/_data/wordleSolver/en/data.json +10 -0
- data/_includes/adBlocker/adBlocker.html +136 -0
- data/_includes/find-words-in-certain-positions/words-in-certain-positions.html +1 -1
- data/_includes/head/index.html +5 -0
- data/_includes/howto.html +63 -0
- data/_includes/script.html +3 -0
- data/_includes/section/commonPage.html +5 -2
- data/_includes/section/feature.html +16 -1
- data/_includes/section/home.html +6 -3
- data/_includes/section/home2.html +5 -2
- data/_includes/section/news.html +9 -0
- data/_includes/section/recent_posts.html +43 -0
- data/_includes/wordle-solver/wordle-solver.html +1 -1
- data/_layouts/autogencontent.html +1 -0
- data/_layouts/blog.html +1 -0
- data/_layouts/default.html +30 -0
- data/_layouts/other-lang-scrabble.html +170 -0
- data/_layouts/page.html +5 -2
- data/_layouts/post.html +1 -0
- data/_layouts/tools.html +1 -0
- data/_layouts/wordMeaning.html +4 -1
- data/_layouts/xyzpages.html +2 -0
- data/assets/css/adBlocker.css +232 -0
- data/assets/css/advancedFilter.css +1 -0
- data/assets/css/config.css +17 -0
- data/assets/css/home.css +3 -3
- data/assets/css/news.css +2 -2
- data/assets/css/style.css +28 -4
- data/assets/css/wordGroup.css +15 -0
- data/assets/css/wordScrabble.css +4 -0
- data/assets/images/abp.svg +41 -0
- data/assets/images/adblock.svg +266 -0
- data/assets/images/uo.svg +41 -0
- data/assets/js/X-letter.js +60 -47
- data/assets/js/adBlocker.js +36 -0
- data/assets/js/other-lang-wordScrabble.js +534 -0
- data/assets/js/wordScrabble.js +19 -4
- data/assets/js/wordleSolver.js +6 -6
- data/assets/js/words-starting-with.js +24 -4
- metadata +17 -2
data/assets/js/X-letter.js
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
---
|
3
|
-
const getScript=document.currentScript
|
1
|
+
const getScript = document.currentScript
|
4
2
|
const letterLen = getScript.dataset.letter
|
5
3
|
const ablank = getScript.dataset.ablank
|
6
4
|
|
@@ -33,15 +31,30 @@ txtBox.focus()
|
|
33
31
|
txtBox.value = serachValue
|
34
32
|
|
35
33
|
|
36
|
-
if(ablank){
|
37
|
-
if(!serachValue.includes("?")){
|
38
|
-
|
39
|
-
|
40
|
-
|
34
|
+
if (ablank) {
|
35
|
+
if (!serachValue.includes("?")) {
|
36
|
+
if (serachValue.length < letterLen) {
|
37
|
+
serachValue = serachValue + '?'
|
38
|
+
}
|
41
39
|
}
|
42
40
|
}
|
43
41
|
|
42
|
+
|
43
|
+
let letterCloseButton = document.querySelector('.letter-close-button-commonPage')
|
44
|
+
if (serachValue) {
|
45
|
+
letterCloseButton.classList.add("ltr-cls-btn-commonPage")
|
46
|
+
}
|
47
|
+
letterCloseButton.addEventListener("click", () => {
|
48
|
+
txtBox.value = ""
|
49
|
+
letterCloseButton.classList.remove("ltr-cls-btn-commonPage")
|
50
|
+
})
|
51
|
+
|
44
52
|
txtBox.addEventListener('input', (e) => {
|
53
|
+
if (e.target.value === "") {
|
54
|
+
letterCloseButton.classList.remove("ltr-cls-btn-commonPage")
|
55
|
+
} else {
|
56
|
+
letterCloseButton.classList.add("ltr-cls-btn-commonPage")
|
57
|
+
}
|
45
58
|
let rangeOfBlankTile = script.dataset.range
|
46
59
|
e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, '')
|
47
60
|
if (rangeOfBlankTile === '') {
|
@@ -180,7 +193,7 @@ function x_with_letters(data) {
|
|
180
193
|
filterData = data
|
181
194
|
}
|
182
195
|
|
183
|
-
|
196
|
+
|
184
197
|
|
185
198
|
if (filterData.length === 0) {
|
186
199
|
main.innerHTML += ''
|
@@ -248,8 +261,8 @@ function x_with_letters(data) {
|
|
248
261
|
itemHtml += `<span class='highlight'>${itemValue}</span>`
|
249
262
|
}
|
250
263
|
})
|
251
|
-
|
252
|
-
|
264
|
+
|
265
|
+
|
253
266
|
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item}">
|
254
267
|
<li>${itemHtml}
|
255
268
|
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
@@ -266,8 +279,8 @@ function x_with_letters(data) {
|
|
266
279
|
// let tabs = document.getElementsByClassName('tab_link')
|
267
280
|
// tabs[0] ? tabs[0].classList.add('active-tab') : ''
|
268
281
|
|
269
|
-
|
270
|
-
|
282
|
+
home_page_search_result.href = homePageSearchResult
|
283
|
+
home_page_search_result.innerHTML = `See words of any length with letters ${serachValue.split("")}`
|
271
284
|
|
272
285
|
|
273
286
|
main.innerHTML += `
|
@@ -340,39 +353,39 @@ function sortPointsby(sortValue, data, i) {
|
|
340
353
|
})
|
341
354
|
const result = newArray.map((item) => {
|
342
355
|
var text1 = serachValue.replace('?', '')
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
}
|
354
|
-
return indexes
|
356
|
+
var text2 = item.words
|
357
|
+
var text3 = item.words
|
358
|
+
function findIndex(str, char) {
|
359
|
+
const strLength = str.length
|
360
|
+
const indexes = []
|
361
|
+
let newStr = str
|
362
|
+
while (newStr && newStr.indexOf(char) > -1) {
|
363
|
+
indexes.push(newStr.indexOf(char) + strLength - newStr.length)
|
364
|
+
newStr = newStr.substring(newStr.indexOf(char) + 1)
|
365
|
+
newStr = newStr.substring(newStr.indexOf(char) + 1)
|
355
366
|
}
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
367
|
+
return indexes
|
368
|
+
}
|
369
|
+
let chars = text1.split('')
|
370
|
+
let indexs = []
|
371
|
+
chars.map((i) => {
|
372
|
+
let findIndexes = findIndex(text3, i)
|
373
|
+
if (findIndexes.length > 0) {
|
374
|
+
text3 = text3.split('')
|
375
|
+
text3[findIndexes] = '$'
|
376
|
+
text3 = text3.join('')
|
377
|
+
indexs = [...indexs, ...findIndexes]
|
378
|
+
}
|
379
|
+
})
|
380
|
+
let itemHtml = ''
|
381
|
+
text2.split('').map((itemValue, index) => {
|
382
|
+
let check = indexs.find((i) => i === index)
|
383
|
+
if (check !== undefined) {
|
384
|
+
itemHtml += `${itemValue}`
|
385
|
+
} else {
|
386
|
+
itemHtml += `<span class='highlight'>${itemValue}</span>`
|
387
|
+
}
|
388
|
+
})
|
376
389
|
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item.words}">
|
377
390
|
<li>${itemHtml}
|
378
391
|
<span class="points" value="${item.points}" style="position:relative; top:4px; font-size:12px"> ${item.points}</span>
|
@@ -440,7 +453,7 @@ function sortby(sortBool, data, i) {
|
|
440
453
|
itemHtml += `<span class='highlight'>${itemValue}</span>`
|
441
454
|
}
|
442
455
|
})
|
443
|
-
|
456
|
+
|
444
457
|
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item}">
|
445
458
|
<li>${itemHtml}
|
446
459
|
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
@@ -505,7 +518,7 @@ function sortby(sortBool, data, i) {
|
|
505
518
|
itemHtml += `<span class='highlight'>${itemValue}</span>`
|
506
519
|
}
|
507
520
|
})
|
508
|
-
|
521
|
+
|
509
522
|
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item}">
|
510
523
|
<li>${itemHtml}
|
511
524
|
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
$(".nav-tabs a.nav-tab-link").click(function () {
|
2
|
+
$(".nav-tabs a.nav-tab-link").removeClass('active');
|
3
|
+
});
|
4
|
+
|
5
|
+
const detect = document.querySelector("#detect");
|
6
|
+
const adsWrapper = document.querySelector(".wrapper");
|
7
|
+
const closePopup = document.getElementsByClassName("closePopup");
|
8
|
+
const extensions = document.querySelector(".extensions")
|
9
|
+
|
10
|
+
const refresh = () => {
|
11
|
+
location.reload()
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
let adsBtn = document.querySelector(".allow-ads-btn")
|
16
|
+
adsBtn.addEventListener("click", () => {
|
17
|
+
extensions.classList.add("show")
|
18
|
+
})
|
19
|
+
|
20
|
+
|
21
|
+
let adClasses = ["ad", "ads", "adsbox", "doubleclick", "ad-placement", "ad-placeholder", "adbadge", "BannerAd"];
|
22
|
+
for (let item of adClasses) {
|
23
|
+
detect.classList.add(item);
|
24
|
+
}
|
25
|
+
|
26
|
+
let getProperty = window.getComputedStyle(detect).getPropertyValue("display");
|
27
|
+
if (!adsWrapper.classList.contains("show")) {
|
28
|
+
getProperty == "none" ? adsWrapper.classList.add("show") : adsWrapper.classList.remove("show");
|
29
|
+
}
|
30
|
+
closePopup[0].addEventListener("click", () => {
|
31
|
+
console.log(true)
|
32
|
+
adsWrapper.classList.remove("show");
|
33
|
+
});
|
34
|
+
closePopup[1].addEventListener("click", () => {
|
35
|
+
extensions.classList.remove("show");
|
36
|
+
});
|