word-games-theme 3.2.1 → 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: 90469ded1aa53dff6c9531cffb957ee6104266677bcd551b05e7fd92ac0bf52f
4
- data.tar.gz: 3b639517e4baf6799773c9e31f846ab3c4a0fc20ffd925cd73b9f45bdbded657
3
+ metadata.gz: ebf4ca3a7d48771eb825b22e288e310a6f00eca79c1df25f5244b7f9b9a201a8
4
+ data.tar.gz: 02c50f6a81adb60845f027edae7ccb5320eacfc746bfa6225be52523092312c7
5
5
  SHA512:
6
- metadata.gz: 0bd6387037061d7c6d3a25ceddb1b69efb33b9124191b2045b201b06bb2adbf72fda8e54a2e52710dd8e488d9dadb5e5ae7ff99638d2a1c32af485c49f0a4b5a
7
- data.tar.gz: b38532e2689081379a4a11ee821280977036874214deefb33bb0a1c8a7dae9d8d7fb3c2b366832be4975e67dda15343bab97896ed2492e6df46a80c167796c34
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>
@@ -7,7 +7,7 @@
7
7
  <div class="container">
8
8
 
9
9
 
10
- <div class="pageHeading text-center" style="margin:22px 0px">
10
+ <div class="pageHeading text-center my-4">
11
11
  <h1 class="heading pb-0 mb-3">
12
12
  {{dataToShow.h1}}</h1>
13
13
  {%- if dataToShow.h2 != "" -%}
@@ -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 -%}
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: blog
2
+ layout: wordgames-blog
3
3
  ---
4
4
  <div class="container">
5
5
  <div class="row listrecent">
@@ -17,10 +17,7 @@
17
17
 
18
18
  <style>
19
19
  .main-header {
20
- padding-top: 12vh;
21
20
  margin: 0px !important;
22
- height: auto;
23
- /* padding-bottom: 50vh; */
24
21
  background-image: radial-gradient(#e4e4f4 2px, transparent 2px);
25
22
  background-size: 25px 25px;
26
23
  background-color: unset !important;
@@ -30,8 +27,6 @@
30
27
  <style>
31
28
  .main-header {
32
29
  margin: 0px !important;
33
- height: 70vh;
34
- /* padding-bottom: 50vh; */
35
30
  background-image: radial-gradient(#e4e4f4 2px, transparent 2px);
36
31
  background-size: 25px 25px;
37
32
  background-color: unset !important;
@@ -836,6 +836,9 @@ summary::-webkit-details-marker {
836
836
 
837
837
  @media (max-width: 768px) {
838
838
 
839
+ .letter-close-button img{
840
+ width: 30px;
841
+ }
839
842
  .main-header {
840
843
  padding-top: 0rem !important;
841
844
  margin-bottom: 0vh;
@@ -881,7 +884,7 @@ summary::-webkit-details-marker {
881
884
 
882
885
  .advancedFilterOptions {
883
886
  display: block;
884
- margin-top: 1rem;
887
+ margin-top: 5px;
885
888
  }
886
889
 
887
890
  .filterShow {
@@ -1161,6 +1164,7 @@ summary::-webkit-details-marker {
1161
1164
  }
1162
1165
 
1163
1166
 
1167
+
1164
1168
  }
1165
1169
 
1166
1170
  @media screen and (min-width: 1450px) {
@@ -177,14 +177,13 @@ input:-webkit-autofill:active {
177
177
  }
178
178
 
179
179
  .serachSection {
180
- height: auto;
180
+ /* height: auto;
181
181
  position: sticky;
182
182
  top: 68px;
183
- z-index: 99;
183
+ z-index: 99; */
184
184
  box-shadow: 0px 0px 30px #ffffff;
185
- background: white;
185
+ /* background: white; */
186
186
  padding: 4px;
187
-
188
187
  }
189
188
 
190
189
 
@@ -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,27 +354,27 @@ 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").style.display = "none"
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,
370
371
  selectedDictionary: selectedDictionary,
371
- endpoint: `http://127.0.0.1:9000`
372
+ endpoint: `/.netlify/functions`
372
373
  });
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.1
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-10-09 00:00:00.000000000 Z
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.7
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