word-games-theme 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebf4ca3a7d48771eb825b22e288e310a6f00eca79c1df25f5244b7f9b9a201a8
|
4
|
+
data.tar.gz: 02c50f6a81adb60845f027edae7ccb5320eacfc746bfa6225be52523092312c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85caf88b096be4a7470129d51eb030e9a3f68db4de1818962f12646955734b523bda8c05a0a345e9904c1e2b8ffdfb2a4988be870f4d8df74bd161a5110d976d
|
7
|
+
data.tar.gz: 70321e62e6ba345e5d2e3f4be89f463fdaeb27fc667fc04549c0c07e644b4f9e663217cccb10fdfe573136d4193b207c0610435dc5e5d36abf76d023e60aae66
|
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
<head>
|
2
3
|
{% assign file = page.fileName %}
|
3
4
|
{% assign lang = page.lang %}
|
@@ -49,8 +50,12 @@
|
|
49
50
|
<title>{{ newtitle }}</title>
|
50
51
|
|
51
52
|
{% include wordgames/seo/seo.html %}
|
52
|
-
|
53
|
+
{%- if page.customLink -%}
|
54
|
+
<link rel="canonical" href="{{site.url | append: page.customLink}}" />
|
55
|
+
{%- else -%}
|
53
56
|
<link rel="canonical" href="{{site.url | append: page.url}}" />
|
57
|
+
{%- endif -%}
|
58
|
+
|
54
59
|
|
55
60
|
{%- if site.keyboard -%}
|
56
61
|
<meta name="keywords" content="{{site.keyboard}}" />
|
@@ -174,4 +179,4 @@
|
|
174
179
|
})
|
175
180
|
}
|
176
181
|
</script>
|
177
|
-
</head>
|
182
|
+
</head>
|
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
{%- if site.noResultPage or page.noResultPage -%}
|
2
3
|
|
3
4
|
<div class="serachSection" data-url="{{site.url}}" data-range="{{page.blanktilerange}}" data-letter="{{page.letter}}"
|
@@ -27,10 +28,10 @@
|
|
27
28
|
</select>
|
28
29
|
</div>
|
29
30
|
|
31
|
+
|
30
32
|
</div>
|
31
33
|
<div class="container" id="result-page-data">
|
32
34
|
{%- include wordgames/advanced-filter/advanced-filter.html -%}
|
33
|
-
|
34
35
|
</div>
|
35
36
|
|
36
37
|
{%- if page.wordle == 'solver' -%}
|
@@ -39,7 +40,11 @@
|
|
39
40
|
class="trywordle" href="/wordle-solver">Try Wordle Solver</a>
|
40
41
|
</div>
|
41
42
|
{%- endif -%}
|
43
|
+
|
44
|
+
|
45
|
+
|
42
46
|
</form>
|
47
|
+
|
43
48
|
</div>
|
44
49
|
</div>
|
45
50
|
|
@@ -95,8 +100,9 @@
|
|
95
100
|
{%- endif -%}
|
96
101
|
|
97
102
|
|
103
|
+
|
98
104
|
{%- if site.noResultPage or page.noResultPage -%}
|
99
105
|
<div class="container" id="containerWd">
|
100
106
|
{% include wordgames/words-data/words-data.html %}
|
101
107
|
</div>
|
102
|
-
{%- endif -%}
|
108
|
+
{%- endif -%}
|
data/_layouts/categories.html
CHANGED
@@ -38,6 +38,8 @@ let sortValue;
|
|
38
38
|
let sortBool = false;
|
39
39
|
let ok = true;
|
40
40
|
|
41
|
+
let worker = new Worker('/assets/js/wordfinder-worker.js');
|
42
|
+
|
41
43
|
textBoxes.forEach(txtBox => {
|
42
44
|
txtBox.addEventListener("input", () => {
|
43
45
|
if (txtBox.value !== '') {
|
@@ -51,6 +53,7 @@ textBoxes.forEach(txtBox => {
|
|
51
53
|
txtBox.classList.remove('blinkBoxShadow');
|
52
54
|
});
|
53
55
|
});
|
56
|
+
|
54
57
|
txtBox.addEventListener('input', (e) => {
|
55
58
|
if (e.target.value === "") {
|
56
59
|
letterCloseButton.style.display = "none"
|
@@ -121,7 +124,6 @@ sortup.addEventListener("click", () => {
|
|
121
124
|
theSelect.style.display = "block";
|
122
125
|
}
|
123
126
|
});
|
124
|
-
|
125
127
|
const getDiff = (text1, text2) => {
|
126
128
|
var diffRange = [];
|
127
129
|
var currentRange = undefined;
|
@@ -143,7 +145,6 @@ const getDiff = (text1, text2) => {
|
|
143
145
|
}
|
144
146
|
return diffRange;
|
145
147
|
};
|
146
|
-
|
147
148
|
const loadResource = (FILE_URL, data = {}, async = true, type = "text/javascript") => {
|
148
149
|
return new Promise((resolve, reject) => {
|
149
150
|
let resourceEle;
|
@@ -196,7 +197,6 @@ function sendPageViewEvent() {
|
|
196
197
|
page_location: window.location.pathname + location.search
|
197
198
|
});
|
198
199
|
}
|
199
|
-
|
200
200
|
function logSubmit(e) {
|
201
201
|
e.preventDefault();
|
202
202
|
if (txtBox.value != "" || startsWith.value != "" || endsWith.value != "" || mustInclude.value != "" || exculdeWith.value != "" || inculdeWith.value != "" || wordLength.value != "") {
|
@@ -303,6 +303,7 @@ function logSubmit(e) {
|
|
303
303
|
"length" +
|
304
304
|
"=" +
|
305
305
|
wordLength.value;
|
306
|
+
|
306
307
|
window.history.pushState({ path: newurl }, "", newurl);
|
307
308
|
|
308
309
|
const params = new URLSearchParams(window.location.search);
|
@@ -337,6 +338,7 @@ function logSubmit(e) {
|
|
337
338
|
console.log("Please Enter Valid Letters.");
|
338
339
|
}
|
339
340
|
}
|
341
|
+
|
340
342
|
let selectedDictionary = document.querySelector(".select_dropDown2");
|
341
343
|
selectedDictionary.addEventListener("change", (e) => {
|
342
344
|
logSubmit(e);
|
@@ -345,7 +347,6 @@ formElement.addEventListener("submit", logSubmit);
|
|
345
347
|
sortingFilter.addEventListener("change", logSubmit);
|
346
348
|
|
347
349
|
// getWords define
|
348
|
-
const worker = new Worker('/assets/js/wordfinder-worker.js');
|
349
350
|
const getData = async (serachValue) => {
|
350
351
|
try {
|
351
352
|
let selectedDictionary = document.querySelector(".select_dropDown2").value;
|
@@ -353,17 +354,17 @@ const getData = async (serachValue) => {
|
|
353
354
|
home_page_search_result = document.querySelector("#home_page_search_result")
|
354
355
|
homePageSearchResult = `/?search=${serachValue}&dictionary=Dictionary&prefix=&contains=&suffix=&exculde=&inculde=&length=`;
|
355
356
|
}
|
356
|
-
// document.querySelector(".main-header").style.height = "auto"
|
357
357
|
document.querySelector(".main-header").style.background = "#fff"
|
358
|
-
// document.querySelector(".heading-h2").remove()
|
359
358
|
document.querySelector(".sortingFilters").style.display = "none"
|
360
359
|
errorMsg.innerHTML = "";
|
361
360
|
wordCount.innerHTML = "";
|
362
361
|
|
363
|
-
|
364
362
|
if (serachValue) {
|
365
363
|
serachValue = serachValue + startsWith.value.toLowerCase() + endsWith.value.toLowerCase() + mustInclude.value.toLowerCase() + inculdeWith.value.toLowerCase() + exculdeWith.value.toLowerCase()
|
366
364
|
}
|
365
|
+
|
366
|
+
const startTime = performance.now();
|
367
|
+
|
367
368
|
worker.postMessage({
|
368
369
|
type: "api",
|
369
370
|
serachValue: serachValue,
|
@@ -373,7 +374,7 @@ const getData = async (serachValue) => {
|
|
373
374
|
worker.onmessage = (event) => {
|
374
375
|
main.innerHTML = "";
|
375
376
|
serachBtn.style.background = 'url(/assets/images/search.svg) no-repeat center center';
|
376
|
-
getWords(serachValue, event.data.data);
|
377
|
+
getWords(startTime, serachValue, event.data.data);
|
377
378
|
}
|
378
379
|
} catch (error) {
|
379
380
|
console.log(error);
|
@@ -407,7 +408,7 @@ let previousID = null;
|
|
407
408
|
let storepreviousIndex = []
|
408
409
|
let moreData = []
|
409
410
|
let data_index = 98;
|
410
|
-
function getWords(serachValue, data) {
|
411
|
+
function getWords(startTime, serachValue, data) {
|
411
412
|
data_index = 98
|
412
413
|
moreData = []
|
413
414
|
storepreviousIndex = []
|
@@ -424,6 +425,7 @@ function getWords(serachValue, data) {
|
|
424
425
|
}
|
425
426
|
|
426
427
|
} else {
|
428
|
+
|
427
429
|
worker.postMessage({
|
428
430
|
type: 'filterwords',
|
429
431
|
data: data,
|
@@ -492,6 +494,11 @@ function getWords(serachValue, data) {
|
|
492
494
|
home_page_search_result.innerHTML = `See words of any length with letters ${serachValue.split("")}`
|
493
495
|
}
|
494
496
|
|
497
|
+
const endTime = performance.now();
|
498
|
+
const timeTaken = endTime - startTime; // Calculate time taken in milliseconds
|
499
|
+
|
500
|
+
// Log the time taken
|
501
|
+
console.log(`Time taken by worker: ${timeTaken.toFixed(2)} ms`);
|
495
502
|
|
496
503
|
main.innerHTML += `
|
497
504
|
<div class="allGroupWords wordlistContainer" id="alpha_${i}">
|
@@ -10,7 +10,6 @@ self.onmessage = async (event) => {
|
|
10
10
|
const data = await response.json();
|
11
11
|
self.postMessage({ data });
|
12
12
|
}
|
13
|
-
|
14
13
|
if (event.data.type === "filterwords") {
|
15
14
|
const { data, serachValue, prefixValue, containsValue, suffixValue, exculdeValue, includeValue, lengthValue, sortingFilter, dictonary } = event.data
|
16
15
|
let newWordsLength = 0;
|
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: 3.2.
|
4
|
+
version: 3.2.3
|
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-
|
11
|
+
date: 2024-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -437,7 +437,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
437
437
|
- !ruby/object:Gem::Version
|
438
438
|
version: '0'
|
439
439
|
requirements: []
|
440
|
-
rubygems_version: 3.3.
|
440
|
+
rubygems_version: 3.3.26
|
441
441
|
signing_key:
|
442
442
|
specification_version: 4
|
443
443
|
summary: Word-Games theme for all word-games-sites
|