word-games-theme 2.5.5 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/js/wordfinder-home.js +28 -18
- data/assets/js/words-starting-with.js +3 -3
- data/assets/js/xletter-home.js +36 -27
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db8009b82a57d188fc729ce57e6323e65fd76bd38c829fa9fff70a921070fee9
|
|
4
|
+
data.tar.gz: cd0391b5eba53f1601377274aa7deced632b1f359ffa847ec11bd44d52273714
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85768a403ee1aceb690f4bbe5c614d4e33c11025e54064f54725696b4c25635813a6fd4cdb7f1c8998aceeaaefab5d79a2ebd3032471324a0b92300713744d51
|
|
7
|
+
data.tar.gz: 1f0987e0b434536427489bfc5dc2b8574b59f22dc658d5d3b77470c9a76d147d3ab3dac30bcbbac686b8a094f18fabae78abe81ffe3b9806ada984762067597f
|
|
@@ -77,9 +77,11 @@ const loadResource = (FILE_URL, data = {}, async = true, type = "text/javascript
|
|
|
77
77
|
|
|
78
78
|
if (type === "text/javascript") {
|
|
79
79
|
resourceEle = document.createElement("script");
|
|
80
|
+
resourceEle.src = FILE_URL;
|
|
80
81
|
} else if (type === "text/css") {
|
|
81
82
|
resourceEle = document.createElement("link");
|
|
82
83
|
resourceEle.rel = "stylesheet";
|
|
84
|
+
resourceEle.href = FILE_URL;
|
|
83
85
|
} else {
|
|
84
86
|
reject({
|
|
85
87
|
status: false,
|
|
@@ -90,7 +92,6 @@ const loadResource = (FILE_URL, data = {}, async = true, type = "text/javascript
|
|
|
90
92
|
|
|
91
93
|
resourceEle.type = type;
|
|
92
94
|
resourceEle.async = async;
|
|
93
|
-
resourceEle.href = FILE_URL;
|
|
94
95
|
|
|
95
96
|
Object.keys(data).forEach((key) => {
|
|
96
97
|
resourceEle.setAttribute(`data-${key}`, data[key]);
|
|
@@ -108,6 +109,8 @@ const loadResource = (FILE_URL, data = {}, async = true, type = "text/javascript
|
|
|
108
109
|
});
|
|
109
110
|
|
|
110
111
|
if (type === "text/javascript") {
|
|
112
|
+
// console.log(resourceEle);
|
|
113
|
+
// console.log(FILE_URL);
|
|
111
114
|
document.body.appendChild(resourceEle);
|
|
112
115
|
} else if (type === "text/css") {
|
|
113
116
|
document.head.appendChild(resourceEle);
|
|
@@ -191,16 +194,20 @@ formElement.addEventListener("submit", function (e) {
|
|
|
191
194
|
loadResource("/assets/css/wordfinder-result.css", additionalData, true, "text/css")
|
|
192
195
|
.then((data) => {
|
|
193
196
|
console.log("CSS loaded:", data);
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
})
|
|
198
|
+
.then(() => {
|
|
199
|
+
// Load the JavaScript file after the CSS file has loaded
|
|
200
|
+
loadResource("/assets/js/wordfinder.js", additionalData, true, "text/javascript")
|
|
201
|
+
.then((data) => {
|
|
202
|
+
console.log("JavaScript loaded:", data);
|
|
203
|
+
getData(txtBox.value.toLowerCase());
|
|
204
|
+
})
|
|
205
|
+
.catch((error) => {
|
|
206
|
+
console.error("Error loading JavaScript:", error);
|
|
207
|
+
});
|
|
201
208
|
})
|
|
202
209
|
.catch((error) => {
|
|
203
|
-
console.error("Error loading
|
|
210
|
+
console.error("Error loading CSS:", error);
|
|
204
211
|
});
|
|
205
212
|
}
|
|
206
213
|
});
|
|
@@ -216,17 +223,20 @@ function checkQueryParam() {
|
|
|
216
223
|
loadResource("/assets/css/wordfinder-result.css", additionalData, true, "text/css")
|
|
217
224
|
.then((data) => {
|
|
218
225
|
console.log("CSS loaded:", data);
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
226
|
+
})
|
|
227
|
+
.then(() => {
|
|
228
|
+
// Load the JavaScript file after the CSS file has loaded
|
|
229
|
+
loadResource("/assets/js/wordfinder.js", additionalData, true, "text/javascript")
|
|
230
|
+
.then((data) => {
|
|
231
|
+
console.log("JavaScript loaded:", data);
|
|
232
|
+
getData(txtBox.value.toLowerCase());
|
|
233
|
+
})
|
|
234
|
+
.catch((error) => {
|
|
235
|
+
console.error("Error loading JavaScript:", error);
|
|
236
|
+
});
|
|
227
237
|
})
|
|
228
238
|
.catch((error) => {
|
|
229
|
-
console.error("Error loading
|
|
239
|
+
console.error("Error loading CSS:", error);
|
|
230
240
|
});
|
|
231
241
|
}
|
|
232
242
|
}
|
|
@@ -122,9 +122,9 @@ if (lengthValue === '1') {
|
|
|
122
122
|
lengthValue = params.get('length')
|
|
123
123
|
dictonary = params.get('dictionary')
|
|
124
124
|
|
|
125
|
-
gtag('event', 'page_view', {
|
|
126
|
-
|
|
127
|
-
})
|
|
125
|
+
// gtag('event', 'page_view', {
|
|
126
|
+
// page_location: window.location.pathname + location.search,
|
|
127
|
+
// })
|
|
128
128
|
}
|
|
129
129
|
getData(txtBox.value.toLowerCase())
|
|
130
130
|
addFilterCount()
|
data/assets/js/xletter-home.js
CHANGED
|
@@ -73,9 +73,11 @@ const loadResource = (FILE_URL, async = true, type = "text/javascript") => {
|
|
|
73
73
|
|
|
74
74
|
if (type === "text/javascript") {
|
|
75
75
|
resourceEle = document.createElement("script");
|
|
76
|
+
resourceEle.src = FILE_URL;
|
|
76
77
|
} else if (type === "text/css") {
|
|
77
78
|
resourceEle = document.createElement("link");
|
|
78
79
|
resourceEle.rel = "stylesheet";
|
|
80
|
+
resourceEle.href = FILE_URL;
|
|
79
81
|
} else {
|
|
80
82
|
reject({
|
|
81
83
|
status: false,
|
|
@@ -86,7 +88,7 @@ const loadResource = (FILE_URL, async = true, type = "text/javascript") => {
|
|
|
86
88
|
|
|
87
89
|
resourceEle.type = type;
|
|
88
90
|
resourceEle.async = async;
|
|
89
|
-
|
|
91
|
+
|
|
90
92
|
|
|
91
93
|
|
|
92
94
|
resourceEle.addEventListener("load", () => {
|
|
@@ -171,19 +173,23 @@ formElement.addEventListener("submit", function (e) {
|
|
|
171
173
|
const paramName = 'search';
|
|
172
174
|
if (new URLSearchParams(window.location.search).has(paramName)) {
|
|
173
175
|
loadResource("/assets/css/wordfinder-result.css", true, "text/css")
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
.then((data) => {
|
|
177
|
+
console.log("CSS loaded:", data);
|
|
178
|
+
})
|
|
179
|
+
.then(() => {
|
|
180
|
+
// Load the JavaScript file after the CSS file has loaded
|
|
181
|
+
loadResource("/assets/js/xletter-result.js", true, "text/javascript")
|
|
182
|
+
.then((data) => {
|
|
183
|
+
console.log("JavaScript loaded:", data);
|
|
180
184
|
getData(txtBox.value.toLowerCase());
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
})
|
|
186
|
+
.catch((error) => {
|
|
187
|
+
console.error("Error loading JavaScript:", error);
|
|
188
|
+
});
|
|
189
|
+
})
|
|
190
|
+
.catch((error) => {
|
|
191
|
+
console.error("Error loading CSS:", error);
|
|
192
|
+
});
|
|
187
193
|
}
|
|
188
194
|
});
|
|
189
195
|
|
|
@@ -192,21 +198,24 @@ function checkQueryParam() {
|
|
|
192
198
|
const urlParams = new URLSearchParams(window.location.search);
|
|
193
199
|
const paramName = 'search';
|
|
194
200
|
if (urlParams.has(paramName)) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
loadResource("/assets/css/wordfinder-result.css", true, "text/css")
|
|
202
|
+
.then((data) => {
|
|
203
|
+
console.log("CSS loaded:", data);
|
|
204
|
+
})
|
|
205
|
+
.then(() => {
|
|
206
|
+
// Load the JavaScript file after the CSS file has loaded
|
|
207
|
+
loadResource("/assets/js/xletter-result.js", true, "text/javascript")
|
|
208
|
+
.then((data) => {
|
|
209
|
+
console.log("JavaScript loaded:", data);
|
|
203
210
|
getData(txtBox.value.toLowerCase());
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
211
|
+
})
|
|
212
|
+
.catch((error) => {
|
|
213
|
+
console.error("Error loading JavaScript:", error);
|
|
214
|
+
});
|
|
215
|
+
})
|
|
216
|
+
.catch((error) => {
|
|
217
|
+
console.error("Error loading CSS:", error);
|
|
218
|
+
});
|
|
210
219
|
}
|
|
211
220
|
}
|
|
212
221
|
checkQueryParam();
|
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.5.
|
|
4
|
+
version: 2.5.7
|
|
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-02-
|
|
11
|
+
date: 2024-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|