word-games-theme 2.1.6 → 2.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/blog/share.yml +1 -1
- data/_data/footer/en/data.json +20 -18
- data/_data/header/en/data.json +1 -0
- data/_data/rating/rating.json +47 -0
- data/_data/wordgames/en/root.json +5 -2
- data/_includes/script.html +0 -2
- data/_includes/wordgames/advanced-filter/advanced-filter.html +56 -0
- data/_includes/wordgames/authorpagehead/authorpagehead.html +40 -0
- data/_includes/wordgames/faqs/faqs.html +44 -0
- data/_includes/wordgames/featurehighlights/featurehighlights.html +76 -0
- data/_includes/wordgames/footer/footer.html +277 -0
- data/_includes/wordgames/head/bloghead.html +78 -0
- data/_includes/wordgames/head/head.html +148 -0
- data/_includes/wordgames/header/blog-header.html +51 -0
- data/_includes/wordgames/header/header.html +51 -0
- data/_includes/wordgames/headings/headings.html +14 -0
- data/_includes/wordgames/howto/howto.html +73 -0
- data/_includes/wordgames/infographics/infographics.html +131 -0
- data/_includes/wordgames/paginations/blog-pagination.html +44 -0
- data/_includes/wordgames/paginations/post-pagination.html +24 -0
- data/_includes/wordgames/rating/rating.html +124 -0
- data/_includes/wordgames/rating/structureddata.html +53 -0
- data/_includes/wordgames/recent-posts/recent-posts.html +104 -0
- data/_includes/wordgames/related-posts/related-posts.html +203 -0
- data/_includes/wordgames/result-page/result-page.html +95 -0
- data/_includes/wordgames/scripts/scripts.html +66 -0
- data/_includes/wordgames/search-box/search-box.html +49 -0
- data/_includes/wordgames/seo/seo.html +58 -0
- data/_includes/wordgames/words-data/words-data.html +58 -0
- data/_includes/wordgames/words-point-table/words-point-table.html +106 -0
- data/_layouts/wordgames-about.html +194 -0
- data/_layouts/wordgames-author.html +408 -0
- data/_layouts/wordgames-authors.html +138 -0
- data/_layouts/wordgames-autogencontent.html +0 -0
- data/_layouts/wordgames-blog.html +94 -0
- data/_layouts/wordgames-disclaimer.html +148 -0
- data/_layouts/wordgames-home.html +78 -0
- data/_layouts/wordgames-post.html +215 -0
- data/_layouts/wordgames-privacy-policy.html +640 -0
- data/_layouts/wordgames-result.html +38 -0
- data/_layouts/wordgames-terms-and-conditions.html +569 -0
- data/_layouts/wordgames-tools.html +0 -0
- data/_layouts/wordgames-word-meaning.html +180 -0
- data/_layouts/wordgames-xyz.html +0 -0
- data/_layouts/wordgames.categories.html +0 -0
- data/assets/css/wordgames-blog.css +431 -0
- data/assets/css/wordgames-home.css +948 -0
- data/assets/css/wordgames-result.css +498 -0
- data/assets/css/wordgames-theme.css +227 -0
- data/assets/css/wordgames-variables.css +20 -0
- data/assets/images/background.svg +80 -0
- data/assets/images/close-btn.svg +16 -0
- data/assets/images/facebook-icon.svg +9 -0
- data/assets/images/facebook.svg +10 -1
- data/assets/images/how-to.svg +1 -0
- data/assets/images/idea.svg +113 -0
- data/assets/images/instagram.svg +1 -1
- data/assets/images/logo wordswithletter final black.svg +95 -0
- data/assets/images/logo.svg +106 -0
- data/assets/images/minus-btn.svg +14 -0
- data/assets/images/plus btn.svg +16 -0
- data/assets/images/questionmark.svg +17 -0
- data/assets/images/search.svg +16 -1
- data/assets/images/twitter.svg +1 -1
- data/assets/images/wordfinder-favicon.svg +69 -0
- data/assets/images/wordfinder-pink.svg +82 -0
- data/assets/images/wordfinder-result-logo.svg +105 -0
- data/assets/images/words with letters logo white text.svg +95 -0
- data/assets/js/X-letter-test.js +2 -2
- data/assets/js/default.js +2 -2
- data/assets/js/repeat-letters.js +2 -2
- data/assets/js/scrabble-words.js +885 -0
- data/assets/js/theme.js +2 -1
- data/assets/js/wordScrabble-test.js +2 -2
- data/assets/js/wordgames-home.js +82 -0
- data/assets/js/wordgames-result.js +885 -0
- data/assets/js/wordgames-xletter.js +740 -0
- metadata +65 -2
data/assets/js/theme.js
CHANGED
@@ -85,8 +85,8 @@ function mobileScrollTop(x) {
|
|
85
85
|
}
|
86
86
|
}
|
87
87
|
var x = window.matchMedia("(max-width: 768px)");
|
88
|
-
mobileScrollTop(x);
|
89
|
-
x.addListener(mobileScrollTop);
|
88
|
+
// mobileScrollTop(x);
|
89
|
+
// x.addListener(mobileScrollTop);
|
90
90
|
|
91
91
|
let rangeOfBlankTile = script.dataset.range;
|
92
92
|
let quesMark = "?";
|
@@ -0,0 +1,82 @@
|
|
1
|
+
let letterCloseButton = document.querySelector('.letter-close-button')
|
2
|
+
let txtBox = document.querySelector('.txtBox')
|
3
|
+
let focusBorder = document.querySelector('.focus-border')
|
4
|
+
txtBox.focus()
|
5
|
+
|
6
|
+
function myFunction(x) {
|
7
|
+
if (x.matches) {
|
8
|
+
txtBox.addEventListener("click", () => {
|
9
|
+
document.documentElement.scrollTop = 200
|
10
|
+
setTimeout(() => {
|
11
|
+
document.documentElement.scrollTop = 200
|
12
|
+
}, 150);
|
13
|
+
})
|
14
|
+
} else {
|
15
|
+
console.log("false");
|
16
|
+
}
|
17
|
+
}
|
18
|
+
var x = window.matchMedia("(max-width: 768px)")
|
19
|
+
// myFunction(x)
|
20
|
+
// x.addListener(myFunction)
|
21
|
+
|
22
|
+
txtBox.addEventListener('input', (e) => {
|
23
|
+
if (e.target.value === "") {
|
24
|
+
letterCloseButton.style.display = "none"
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
letterCloseButton.style.display = "block"
|
28
|
+
}
|
29
|
+
focusBorder.classList.remove("focus-border")
|
30
|
+
|
31
|
+
e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
|
32
|
+
let rangeOfBlankTile = 3
|
33
|
+
if (rangeOfBlankTile === "") {
|
34
|
+
rangeOfBlankTile = 3
|
35
|
+
}
|
36
|
+
e.target.value = e.target.value.replace(/ /g, '?')
|
37
|
+
let data = []
|
38
|
+
data = e.target.value.split('').filter((i) => i === '?')
|
39
|
+
if (data.length > rangeOfBlankTile) {
|
40
|
+
e.target.value = e.target.value.replace(/\?$/, '')
|
41
|
+
}
|
42
|
+
})
|
43
|
+
letterCloseButton.addEventListener("click", () => {
|
44
|
+
txtBox.value = ""
|
45
|
+
letterCloseButton.style.display = "none"
|
46
|
+
})
|
47
|
+
|
48
|
+
const filterInputs = document.querySelectorAll('.filter_val');
|
49
|
+
Array.from(filterInputs).forEach((item) => {
|
50
|
+
item.addEventListener("input", (e) => {
|
51
|
+
const inputValue = e.target.value;
|
52
|
+
const parentElement = e.target.parentElement;
|
53
|
+
const imgElement = parentElement.querySelector('img');
|
54
|
+
const tooltipElement = parentElement.querySelector('.filter-tooltip');
|
55
|
+
|
56
|
+
if (inputValue == "") {
|
57
|
+
imgElement.src = "/assets/images/questionmark.svg"
|
58
|
+
setTimeout(() => {
|
59
|
+
item.nextElementSibling.setAttribute("data-tip", item.nextElementSibling.id)
|
60
|
+
}, 100);
|
61
|
+
tooltipElement.style.setProperty('--tooltip-padding', '0.5rem');
|
62
|
+
tooltipElement.style.setProperty('--tooltip-border-style', 'soild');
|
63
|
+
|
64
|
+
} else {
|
65
|
+
item.nextElementSibling.removeAttribute("data-tip")
|
66
|
+
imgElement.src = "/assets/images/close-btn.svg"
|
67
|
+
tooltipElement.style.setProperty('--tooltip-padding', '0');
|
68
|
+
tooltipElement.style.setProperty('--tooltip-border-style', 'none');
|
69
|
+
}
|
70
|
+
item.nextElementSibling.addEventListener("click", () => {
|
71
|
+
e.target.value = ""
|
72
|
+
imgElement.src = "/assets/images/questionmark.svg"
|
73
|
+
setTimeout(() => {
|
74
|
+
item.nextElementSibling.setAttribute("data-tip", item.nextElementSibling.id)
|
75
|
+
}, 100);
|
76
|
+
tooltipElement.style.setProperty('--tooltip-padding', '0.5rem');
|
77
|
+
tooltipElement.style.setProperty('--tooltip-border-style', 'soild');
|
78
|
+
})
|
79
|
+
})
|
80
|
+
})
|
81
|
+
|
82
|
+
|