word-games-theme 3.0.1 → 3.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/noindexURLs.json +312 -0
- data/_data/safeaudiokit-noindexURls.json +347 -0
- data/_data/safeimagekit-noindexURls.json +1198 -0
- data/_data/safezipkit-noindexURls.json +238 -0
- data/_data/wordswithletters-noindexURls.json +8780 -0
- data/_layouts/wordgames-home.html +1 -1
- data/assets/js/search-worker.js +10 -0
- data/assets/js/theme.js +15 -1
- metadata +7 -1
data/assets/js/theme.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
---
|
2
2
|
---
|
3
3
|
|
4
|
+
|
5
|
+
|
4
6
|
console.log(document.querySelectorAll('*').length);
|
5
7
|
if ("{{ site.removeBootstrapJs }}" === "true") {
|
6
8
|
const languagesModal = document.querySelector("#staticBackdrop");
|
@@ -72,6 +74,9 @@ if ("{{ site.removeBootstrapJs }}" === "true") {
|
|
72
74
|
|
73
75
|
}
|
74
76
|
|
77
|
+
|
78
|
+
let getScript = document.currentScript
|
79
|
+
let pageLang = getScript.dataset.lang
|
75
80
|
const searchWorker = new Worker('/assets/js/search-worker.js');
|
76
81
|
function fetchData() {
|
77
82
|
return new Promise((resolve, reject) => {
|
@@ -95,9 +100,18 @@ function filterData(data, query) {
|
|
95
100
|
function displayResults(results) {
|
96
101
|
const resultsContainer = document.getElementById('results');
|
97
102
|
resultsContainer.style.display = results.length ? 'block' : 'none';
|
98
|
-
|
103
|
+
|
104
|
+
if(pageLang == "en"){
|
105
|
+
resultsContainer.innerHTML = results.length
|
99
106
|
? results.map(result => `<div class="result-item"><a href="${result.url}">${result.name}</a></div>`).join('')
|
100
107
|
: '<p>No results found</p>';
|
108
|
+
}else{
|
109
|
+
resultsContainer.innerHTML = results.length
|
110
|
+
? results.map(result => `<div class="result-item"><a href="/${pageLang}${result.url}">${result.name}</a></div>`).join('')
|
111
|
+
: '<p>No results found</p>';
|
112
|
+
}
|
113
|
+
|
114
|
+
|
101
115
|
}
|
102
116
|
const searchInput = document.querySelector('.searchBar input');
|
103
117
|
let data;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: word-games-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manpreet-appscms
|
@@ -74,8 +74,12 @@ files:
|
|
74
74
|
- _data/footer/en/data.json
|
75
75
|
- _data/footer/networksites.json
|
76
76
|
- _data/header/en/data.json
|
77
|
+
- _data/noindexURLs.json
|
77
78
|
- _data/rating/rating.json
|
78
79
|
- _data/repeatLetter/en/repeat-letters.json
|
80
|
+
- _data/safeaudiokit-noindexURls.json
|
81
|
+
- _data/safeimagekit-noindexURls.json
|
82
|
+
- _data/safezipkit-noindexURls.json
|
79
83
|
- _data/theme/colors.json
|
80
84
|
- _data/wordfinderstrategy/en/how-to-use-5-letter-word-finder-to-score-high-in-scrabble-words-with-friends.json
|
81
85
|
- _data/wordgames/en/4_letter_words_with_these_letters_and_a_blank.json
|
@@ -113,6 +117,7 @@ files:
|
|
113
117
|
- _data/wordgames/hi/words-with-these-letters-and-2-blanks.json
|
114
118
|
- _data/wordleSolver/en/data.json
|
115
119
|
- _data/wordleSolver/en/resultData.json
|
120
|
+
- _data/wordswithletters-noindexURls.json
|
116
121
|
- _data/xyzPagesData/en/unscramble-letters-jumble.json
|
117
122
|
- _data/xyzPagesData/en/words-with-letters-cheat.json
|
118
123
|
- _includes/Monumetric/Monumetric.html
|
@@ -391,6 +396,7 @@ files:
|
|
391
396
|
- assets/js/resultPage.js
|
392
397
|
- assets/js/scrabble-words.js
|
393
398
|
- assets/js/scrabbleDictonary.js
|
399
|
+
- assets/js/search-worker.js
|
394
400
|
- assets/js/show-more-words.js
|
395
401
|
- assets/js/theme.js
|
396
402
|
- assets/js/wordScrabble-test.js
|