word-games-theme 2.6.8 → 2.6.9

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: 137fe43b5869a4d3dbbd7b1a67da8b8cd3dbf58e76db6eb2c425f57b114edfb8
4
- data.tar.gz: 85cfa82687767c010b3286fef9afc21bdbb969d036291b73a15c4fdd602c0c97
3
+ metadata.gz: 5084b4dc9c2614ed9647ca741c03ee93e8fbcefce6fa8dfe5565c42bf663a915
4
+ data.tar.gz: ffedbb712145c2b34631d237383d8ac5686d24f9f4819d696e416bde015a1605
5
5
  SHA512:
6
- metadata.gz: 8f05e34319a8114f9e5e66e4275b9944226e648929d55c3b3e8ab4faabade67587d551af5e89b7188393e4746ab3a8c793c9d84619fe78947e2980ae5b1af23c
7
- data.tar.gz: 2c21976c0eb1e9f0f28dc62dea0df68d0fcc3902c80338752f9e1474926043b88284568c5ef7e70a9a26df1539bc48760f375beea915bffaea669bfa1ec3beff
6
+ metadata.gz: 367fe83fe2f0445ba6925ba7b7979b2cee0fcbd0db0d76e9eb3799382043607450a75ec7094c78e8282e53a84060c2f6557cc8ddda578ba0e4828f8b391f9c9a
7
+ data.tar.gz: 6c3f8413ff16050e37cc3f9603151682391a1c8b6c4e74e61f369c5e9f2bce6e76a4f445cf879f0d020d33363a16d84e24116efcb2b9a903342b7d329811282b
@@ -6,9 +6,9 @@
6
6
  <div class="txt-box-container" style="position: relative;">
7
7
  <input type="text"
8
8
  placeholder="{% if page.size > 15 %}Enter up to {{page.size}} letters?{% else %}Enter up to 15 letters?{% endif %}"
9
- class="txtBox" value='' name="search"
9
+ class="txtBox" name="search"
10
10
  maxlength="{% if page.size > 15 %}{{page.size}}{% else %}15?{% endif %}"
11
- autocomplete="off">
11
+ autocomplete="off" value="{{page.value}}">
12
12
  <div class="letter-close-button">
13
13
  <img width="40px" height="40px" src="/assets/images/close-button.svg" alt="close-btn">
14
14
  </div>
@@ -14,7 +14,7 @@
14
14
  <div class="wordCount"><strong>
15
15
  {{dataToShow.wordLength}}
16
16
  </strong></div>
17
-
17
+
18
18
  <div class="d-none tab_link_wrapper" style="position: relative;">
19
19
  <div id="tab-scroll" class="tab-scroll flex-row">
20
20
  <input type="button" name="" id="prev" class="prev tabsBg noOutline cursorPointer" value=" "
@@ -41,7 +41,7 @@
41
41
  </div>
42
42
  <div class="wrapper_dropDown mt-3 d-flex justify-content-end" style="gap:10px;">
43
43
  <div class="letter-length">
44
- <select class="form-select length-select" onchange="Filtering(2)">
44
+ <select class="form-select length-select xyz-length-select" onchange="Filtering(2)">
45
45
  <option selected="true" hidden>Letter Length</option>
46
46
  {%- for scrabblewords in dataToShow.words-%}
47
47
  {%- for item in scrabblewords %}
@@ -50,12 +50,10 @@
50
50
  {%- endif -%}
51
51
  {%- endfor -%}
52
52
  {%- endfor -%}
53
-
54
-
55
53
  </select>
56
54
  </div>
57
55
  <div id="sort-select">
58
- <select class="form-select sort-select" id="select_dropDown">
56
+ <select class="form-select xyz_select_dropDown sort-select" id="select_dropDown">
59
57
  <option selected="true" hidden id="alpha" value="alpha">Sort by</option>
60
58
  <option id="alpha" value="alpha">A-Z</option>
61
59
  <option id="alpha" value="alpha">Z-A</option>
@@ -65,7 +63,7 @@
65
63
  </div>
66
64
  </div>
67
65
 
68
- <div class="main">
66
+ <div class="xyz-main-content main">
69
67
  {%- for scrabblewords in dataToShow.words-%}
70
68
  {%- for item in scrabblewords %}
71
69
  {%- if forloop.index == 1 -%}
@@ -1,75 +1,12 @@
1
1
  {% assign file = page.fileName %}
2
2
  {% assign lang = page.lang %}
3
3
  {% assign dataToShow = site.data.[page.folderName][lang][file] %}
4
-
5
4
  {%- assign CustomColor = site.data.theme.colors -%}
6
-
7
- <style>
8
- .sticky_nav {
9
- position: sticky;
10
- width: inherit;
11
- top: 58px;
12
- background-color: #fff;
13
- z-index: 99;
14
- }
15
- </style>
16
5
  <!-- start commonPage as LandingPage -->
17
- <section class="sticky_nav">
18
- <div class="pageHeading text-center pt-5">
19
- <h1 class="heading m-0 pb-0">
20
- {{dataToShow.h1}}</h1>
21
- {%- if dataToShow.h2 -%}
22
- <h2>
23
- {{dataToShow.h2}}</h2>
24
- {%- endif -%}
25
- </div>
26
- <div class="serachSection">
27
- <div class="position-relative serachBox">
28
- <form action="{{page.url}}/result" id='form'>
29
- <div class="container" id="containerWd">
30
- <input style="border-radius: {{CustomColor.inputFieldBorder}}" type="text"
31
- placeholder="Enter up to 15 letters?" class="txtBox" name="search" maxlength="15"
32
- value={{page.value}} required>
33
- <input
34
- style="border-radius: {{CustomColor.inputFieldBorder}}; background-color: {{CustomColor.inputButtonBg}};"
35
- type="submit" class="serachBtn" id="serach" value>
36
- <div class="letter-close-button">
37
- <svg width="40px" height="40px" viewBox="0 0 24 24" fill="none"
38
- xmlns="http://www.w3.org/2000/svg">
39
- <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
40
- <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
41
- <g id="SVGRepo_iconCarrier">
42
- <path
43
- d="M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM15.36 14.3C15.65 14.59 15.65 15.07 15.36 15.36C15.21 15.51 15.02 15.58 14.83 15.58C14.64 15.58 14.45 15.51 14.3 15.36L12 13.06L9.7 15.36C9.55 15.51 9.36 15.58 9.17 15.58C8.98 15.58 8.79 15.51 8.64 15.36C8.35 15.07 8.35 14.59 8.64 14.3L10.94 12L8.64 9.7C8.35 9.41 8.35 8.93 8.64 8.64C8.93 8.35 9.41 8.35 9.7 8.64L12 10.94L14.3 8.64C14.59 8.35 15.07 8.35 15.36 8.64C15.65 8.93 15.65 9.41 15.36 9.7L13.06 12L15.36 14.3Z"
44
- fill="#292D32"></path>
45
- </g>
46
- </svg>
47
- </div>
48
- <span class="d-none focus-border">
49
- <i></i>
50
- </span>
51
- <div class="dictonaryDropdown">
52
- <!-- <div class="dictonaryDropdown"> -->
53
- <select class="form-select select_dropDown2" name="dictionary"
54
- aria-label="Default select example">
55
- <option value="Dictionary">Dictionary</option>
56
- <option value="twl06" id="twl06">TWL06 (US, Canada, Thailand)</option>
57
- <option selected value="sowpods" id="sowpods">SOWPODS (Uk and Others)</option>
58
- <option value="wwf" id="wwf">Enable (Words With Friends)</option>
59
- </select>
60
- <!-- </div> -->
61
- </div>
62
- </div>
63
-
64
- <div class="container">
65
- {%- include wordgames/advanced-filter/advanced-filter.html -%}
66
- </div>
67
-
68
-
69
- </form>
70
- </div>
71
- </div>
72
- </section>
6
+ <div class="main-header m-0">
7
+ {% include wordgames/headings/headings.html %}
8
+ {% include wordgames/search-box/search-box.html %}
9
+ </div>
73
10
  <div class="container" id="containerWd">
74
11
  {% include wordgames/xyzpages/xyz-words.html %}
75
12
  </div>
@@ -93,6 +93,7 @@
93
93
  <div class="wordgametheme-sidebar-right"></div>
94
94
  {%- endif -%}
95
95
 
96
+
96
97
  {%- include wordgames/xyzpages/xyz.html -%}
97
98
 
98
99
  {% include wordgames/featurehighlights/featurehighlights.html %}
@@ -110,8 +111,6 @@
110
111
 
111
112
  {%- include wordgames/rating/rating.html -%}
112
113
 
113
- <!-- {%- include share/socialshare.html -%} -->
114
-
115
114
  {% include wordgames/adblocker/adblocker.html %}
116
115
 
117
116
  {% include wordgames/xyzpages/xyzFooter.html %}
@@ -119,7 +118,6 @@
119
118
 
120
119
  <script defer src="/assets/js/wordgames-xyz.js"></script>
121
120
  <script defer src="/assets/js/theme.js"></script>
122
- <script defer src="/assets/js/wordgames-home.js"></script>
123
121
 
124
122
  {%- include wordgames/scripts/scripts.html -%}
125
123
  </body>
@@ -1,69 +1,64 @@
1
- let main = document.querySelector('.main')
2
- let tab_container = document.querySelector('.tab_container')
3
- var sortValue
4
- var sortBool = false
5
- var theSelect = document.getElementById('select_dropDown')
6
- let lengthSelect = document.querySelector(".length-select");
7
-
8
- // Add Filtering
9
- let sections = {}
1
+
2
+ let mainContent = document.querySelector('.xyz-main-content')
3
+ let xyzsortValue
4
+ let xyzsortBool = false
5
+ let thexyzSelect = document.querySelector('.xyz_select_dropDown')
6
+ let xyzlengthSelect = document.querySelector(".xyz-length-select");
7
+
8
+ let wordSections = {}
10
9
  function Filtering(id) {
11
- id = lengthSelect.value
12
- main.innerHTML += ``
10
+ id = xyzlengthSelect.value
11
+ mainContent.innerHTML += ``
13
12
  var section = document.querySelectorAll('.allGroupWords')
14
13
  var sort_val = "alpha";
15
14
  Array.prototype.forEach.call(section, function (e) {
16
15
  if (document.body.clientWidth > 991) {
17
- sections[e.id] = e.offsetTop - 10
16
+ wordSections[e.id] = e.offsetTop - 10
18
17
  } else {
19
- sections[e.id] = e.offsetTop - 10
18
+ wordSections[e.id] = e.offsetTop - 10
20
19
  }
21
20
  })
22
21
  console.log(sort_val + '_' + id);
23
- document.documentElement.scrollTop = sections[sort_val + '_' + id] + 5
22
+ document.documentElement.scrollTop = wordSections[sort_val + '_' + id] + 5
24
23
  }
25
-
26
-
27
-
28
24
  // sorting for words
29
- theSelect.addEventListener("change", () => {
30
- sortValue = theSelect[theSelect.selectedIndex].text;
25
+ thexyzSelect.addEventListener("change", () => {
26
+ xyzsortValue = thexyzSelect[thexyzSelect.selectedIndex].text;
31
27
  let list_word = document.getElementsByClassName("list_word")
32
28
  let data = []
33
29
  Array.from(list_word).forEach(item => {
34
30
  item.removeChild(item.lastElementChild);
35
31
  data.push(item.innerHTML.replace(/\s/g, ''))
36
32
  })
37
- if (sortValue == "Z-A") {
38
- sortBool = "Z-A";
39
- sortby(sortBool, data);
40
- } else if (sortValue == "Points") {
41
- sortBool = "Points";
42
- sortPointsby(sortBool, data);
33
+ if (xyzsortValue == "Z-A") {
34
+ xyzsortBool = "Z-A";
35
+ sortby(xyzsortBool, data);
36
+ } else if (xyzsortValue == "Points") {
37
+ xyzsortBool = "Points";
38
+ sortPointsby(xyzsortBool, data);
43
39
  } else {
44
- sortBool = "A-Z";
45
- sortby(sortBool, data);
40
+ xyzsortBool = "A-Z";
41
+ sortby(xyzsortBool, data);
46
42
  }
47
43
  });
48
-
49
44
  // sort by aplhabets
50
- function sortby(sortValue, data) {
51
- if (sortValue === "Z-A") {
52
- appendData(sortValue, data.reverse())
45
+ function sortby(xyzsortValue, data) {
46
+ if (xyzsortValue === "Z-A") {
47
+ appendData(xyzsortValue, data.reverse())
53
48
  }
54
- else if (sortValue === "A-Z") {
55
- appendData(sortValue, data.sort())
49
+ else if (xyzsortValue === "A-Z") {
50
+ appendData(xyzsortValue, data.sort())
56
51
  }
57
52
  }
58
53
  // sorting by points
59
- function sortPointsby(sortValue, data) {
60
- if (sortValue === "Points") {
54
+ function sortPointsby(xyzsortValue, data) {
55
+ if (xyzsortValue === "Points") {
61
56
  let newArray = [];
62
57
  data.map((item) => {
63
58
  if (item.length === 1) {
64
59
  ok = false;
65
60
  } else {
66
- let ScrabbleLetterScore = ScrabbleScore();
61
+ let ScrabbleLetterScore = xyzScrabbleScore();
67
62
  let points = 0;
68
63
  let word = item.replace(/<\/?[^>]+>/gi, '')
69
64
  for (let i = 0; i < word.length; i++) {
@@ -79,29 +74,29 @@ function sortPointsby(sortValue, data) {
79
74
  newArray.sort(function (a, b) {
80
75
  return b.points - a.points;
81
76
  });
82
- appendData(sortValue, newArray)
77
+ appendData(xyzsortValue, newArray)
83
78
  }
84
79
  }
85
80
 
86
- function appendData(sortValue, data) {
87
- main.innerHTML = "";
81
+ function appendData(xyzsortValue, data) {
82
+ mainContent.innerHTML = "";
88
83
  let newWordsLength = 0;
89
84
  for (let i = 15; i > 0; i--) {
90
85
  let newdata
91
- if (sortValue === "Points") {
86
+ if (xyzsortValue === "Points") {
92
87
  newdata = data.filter((item) => item.words.replace(/<\/?[^>]+>/gi, '').length === i)
93
88
  } else {
94
89
  newdata = data.filter((item) => item.replace(/<\/?[^>]+>/gi, '').length === i)
95
90
  }
96
91
  if (newdata.length === 0) {
97
- main.innerHTML += "";
92
+ mainContent.innerHTML += "";
98
93
  } else {
99
94
  newWordsLength += newdata.length;
100
95
  const result = newdata.map((item) => {
101
- let ScrabbleLetterScore = ScrabbleScore();
96
+ let ScrabbleLetterScore = xyzScrabbleScore();
102
97
  let points = 0;
103
98
  let word
104
- if (sortValue === "Points") {
99
+ if (xyzsortValue === "Points") {
105
100
  word = item.words.replace(/<\/?[^>]+>/gi, '')
106
101
  item = item.words
107
102
  } else {
@@ -120,7 +115,7 @@ function appendData(sortValue, data) {
120
115
  </a>
121
116
  `});
122
117
 
123
- main.innerHTML += `
118
+ mainContent.innerHTML += `
124
119
  <div class="allGroupWords wordlistContainer" id="alpha_${i}">
125
120
  <div class="wordListHeading">
126
121
  <h3 class="lead">${i} Letter Words</h3>
@@ -136,7 +131,7 @@ function appendData(sortValue, data) {
136
131
  }
137
132
  }
138
133
  // Scrabble Point Array
139
- const ScrabbleScore = () => {
134
+ const xyzScrabbleScore = () => {
140
135
  let twl06_sowpods = {
141
136
  a: 1,
142
137
  e: 1,
@@ -201,3 +196,255 @@ const ScrabbleScore = () => {
201
196
  return twl06_sowpods;
202
197
  // }
203
198
  };
199
+
200
+
201
+
202
+
203
+
204
+ let txtBox = document.querySelector('.txtBox')
205
+ let letterCloseButton = document.querySelector('.letter-close-button')
206
+ let startsWith = document.getElementById("startsWith");
207
+ let mustInclude = document.getElementById("mustInclude");
208
+ let endsWith = document.getElementById("endsWith");
209
+ let exculdeWith = document.getElementById("exculdeWith");
210
+ let inculdeWith = document.getElementById("inculdeWith");
211
+ let wordLength = document.getElementById("wordLength");
212
+ const serachSection = document.querySelector(".serachSection");
213
+ let rangeOfBlankTile = serachSection.dataset.range;
214
+
215
+ // // when typing on input
216
+ txtBox.addEventListener('input', (e) => {
217
+ if (e.target.value === "") {
218
+ letterCloseButton.style.display = "none"
219
+ }
220
+ else {
221
+ letterCloseButton.style.display = "block"
222
+ }
223
+ e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
224
+ let rangeOfBlankTile = 3
225
+ if (rangeOfBlankTile === "") {
226
+ rangeOfBlankTile = 3
227
+ }
228
+ e.target.value = e.target.value.replace(/ /g, '?')
229
+ let data = []
230
+ data = e.target.value.split('').filter((i) => i === '?')
231
+ if (data.length > rangeOfBlankTile) {
232
+ e.target.value = e.target.value.replace(/\?$/, '')
233
+ }
234
+ })
235
+ letterCloseButton.addEventListener("click", () => {
236
+ txtBox.value = ""
237
+ letterCloseButton.style.display = "none"
238
+ })
239
+ //tooltips for advanced filter
240
+ const filterInputs = document.querySelectorAll('.filter_val');
241
+ Array.from(filterInputs).forEach((item) => {
242
+ item.addEventListener("input", (e) => {
243
+ const inputValue = e.target.value;
244
+ const parentElement = e.target.parentElement;
245
+ const imgElement = parentElement.querySelector('img');
246
+ const tooltipElement = parentElement.querySelector('.filter-tooltip');
247
+
248
+ if (inputValue == "") {
249
+ imgElement.src = "/assets/images/questionmark.svg"
250
+ setTimeout(() => {
251
+ item.nextElementSibling.setAttribute("data-tip", item.nextElementSibling.id)
252
+ }, 100);
253
+ tooltipElement.style.setProperty('--tooltip-padding', '0.5rem');
254
+ tooltipElement.style.setProperty('--tooltip-border-style', 'soild');
255
+
256
+ } else {
257
+ item.nextElementSibling.removeAttribute("data-tip")
258
+ imgElement.src = "/assets/images/close-btn.svg"
259
+ tooltipElement.style.setProperty('--tooltip-padding', '0');
260
+ tooltipElement.style.setProperty('--tooltip-border-style', 'none');
261
+ }
262
+ item.nextElementSibling.addEventListener("click", () => {
263
+ e.target.value = ""
264
+ imgElement.src = "/assets/images/questionmark.svg"
265
+ setTimeout(() => {
266
+ item.nextElementSibling.setAttribute("data-tip", item.nextElementSibling.id)
267
+ }, 100);
268
+ tooltipElement.style.setProperty('--tooltip-padding', '0.5rem');
269
+ tooltipElement.style.setProperty('--tooltip-border-style', 'soild');
270
+ })
271
+ })
272
+ })
273
+ const loadResource = (FILE_URL, data = {}, async = true, type = "text/javascript") => {
274
+ return new Promise((resolve, reject) => {
275
+ let resourceEle;
276
+
277
+ if (type === "text/javascript") {
278
+ resourceEle = document.createElement("script");
279
+ resourceEle.src = FILE_URL;
280
+ resourceEle.classList.add("loaded-js");
281
+ } else if (type === "text/css") {
282
+ resourceEle = document.createElement("link");
283
+ resourceEle.rel = "stylesheet";
284
+ resourceEle.href = FILE_URL;
285
+ } else {
286
+ reject({
287
+ status: false,
288
+ message: `Unsupported resource type: ${type}`,
289
+ });
290
+ return;
291
+ }
292
+
293
+ resourceEle.type = type;
294
+ resourceEle.async = async;
295
+
296
+ Object.keys(data).forEach((key) => {
297
+ resourceEle.setAttribute(`data-${key}`, data[key]);
298
+ });
299
+
300
+ resourceEle.addEventListener("load", () => {
301
+ resolve({ status: true });
302
+ });
303
+
304
+ resourceEle.addEventListener("error", () => {
305
+ reject({
306
+ status: false,
307
+ message: `Failed to load the resource ${FILE_URL}`,
308
+ });
309
+ });
310
+
311
+ if (type === "text/javascript") {
312
+ // console.log(resourceEle);
313
+ // console.log(FILE_URL);
314
+ document.body.appendChild(resourceEle);
315
+ } else if (type === "text/css") {
316
+ document.head.appendChild(resourceEle);
317
+ }
318
+ });
319
+ };
320
+ const formElement = document.querySelector("#form");
321
+ formElement.addEventListener("submit", function (e) {
322
+ e.preventDefault();
323
+ document.querySelector(".xyzPad").style.display = "none"
324
+ let quesMark = "?";
325
+ if (rangeOfBlankTile) {
326
+ if (!txtBox.value.includes("?")) {
327
+ txtBox.value = txtBox.value + quesMark.repeat(rangeOfBlankTile); //
328
+ txtBox.value = txtBox.value;
329
+ }
330
+ }
331
+ document.querySelector(".fillterWrapper").classList.add("hide")
332
+ let selectedDictionary = document.querySelector(".select_dropDown2").value;
333
+ if (history.pushState) {
334
+ var newurl =
335
+ window.location.protocol +
336
+ "//" +
337
+ window.location.host +
338
+ window.location.pathname +
339
+ "?" +
340
+ "search" +
341
+ "=" +
342
+ txtBox.value.toLowerCase() +
343
+ "&" +
344
+ "dictionary" +
345
+ "=" +
346
+ selectedDictionary +
347
+ "&" +
348
+ "prefix" +
349
+ "=" +
350
+ startsWith.value +
351
+ "&" +
352
+ "contains" +
353
+ "=" +
354
+ mustInclude.value +
355
+ "&" +
356
+ "suffix" +
357
+ "=" +
358
+ endsWith.value +
359
+ "&" +
360
+ "exclude" +
361
+ "=" +
362
+ exculdeWith.value +
363
+ "&" +
364
+ "include" +
365
+ "=" +
366
+ inculdeWith.value +
367
+ "&" +
368
+ "length" +
369
+ "=" +
370
+ wordLength.value;
371
+ window.history.pushState({ path: newurl }, "", newurl);
372
+
373
+ const params = new URLSearchParams(window.location.search);
374
+ serachValue = params.get("search");
375
+ prefixValue = params.get("prefix");
376
+ containsValue = params.get("contains");
377
+ suffixValue = params.get("suffix");
378
+ exculdeValue = params.get("exclude");
379
+ includeValue = params.get("include");
380
+ lengthValue = params.get("length");
381
+ dictonary = params.get("dictionary");
382
+
383
+ gtag("event", "page_view", {
384
+ page_location: window.location.pathname + location.search,
385
+ });
386
+ }
387
+
388
+
389
+ const paramName = 'search';
390
+ if (new URLSearchParams(window.location.search).has(paramName)) {
391
+ const additionalData = {
392
+ url: "{{site.url}}",
393
+ range: "{{page.blanktilerange}}"
394
+ }
395
+ var loadJs = document.querySelector(".loaded-js");
396
+ if (loadJs == null) {
397
+ loadResource("/assets/css/wordfinder-result.css", additionalData, true, "text/css")
398
+ .then((data) => {
399
+ console.log("CSS loaded:", data);
400
+ })
401
+ .then(() => {
402
+ // Load the JavaScript file after the CSS file has loaded
403
+ loadResource("/assets/js/wordfinder.js", additionalData, true, "text/javascript")
404
+ .then((data) => {
405
+ console.log("JavaScript loaded:", data);
406
+ getData(txtBox.value.toLowerCase());
407
+ })
408
+ .catch((error) => {
409
+ console.error("Error loading JavaScript:", error);
410
+ });
411
+ })
412
+ .catch((error) => {
413
+ console.error("Error loading CSS:", error);
414
+ });
415
+ }
416
+ }
417
+ });
418
+ // Now you can use the loadScript function with additional data
419
+ function checkQueryParam() {
420
+ const urlParams = new URLSearchParams(window.location.search);
421
+ const paramName = 'search';
422
+ if (urlParams.has(paramName)) {
423
+ document.querySelector(".xyzPad").style.display = "none"
424
+ const additionalData = {
425
+ url: "{{site.url}}",
426
+ range: "{{page.blanktilerange}}"
427
+ };
428
+ loadResource("/assets/css/wordfinder-result.css", additionalData, true, "text/css")
429
+ .then((data) => {
430
+ console.log("CSS loaded:", data);
431
+ })
432
+ .then(() => {
433
+ // Load the JavaScript file after the CSS file has loaded
434
+ loadResource("/assets/js/wordfinder.js", additionalData, true, "text/javascript")
435
+ .then((data) => {
436
+ console.log("JavaScript loaded:", data);
437
+ getData(txtBox.value.toLowerCase());
438
+ })
439
+ .catch((error) => {
440
+ console.error("Error loading JavaScript:", error);
441
+ });
442
+ })
443
+ .catch((error) => {
444
+ console.error("Error loading CSS:", error);
445
+ });
446
+ }
447
+ }
448
+ checkQueryParam();
449
+
450
+
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.6.8
4
+ version: 2.6.9
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-03-16 00:00:00.000000000 Z
11
+ date: 2024-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll