word-games-theme 2.6.9 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/wordgames/advanced-filter/advanced-filter.html +2 -0
- data/_includes/wordgames/header/header.html +1 -1
- data/_includes/wordgames/headings/headings.html +2 -0
- data/_includes/wordgames/search-box/search-box.html +2 -0
- data/_includes/wordgames/xyzpages/xyz-words.html +5 -4
- data/assets/js/wordfinder-home.js +91 -89
- data/assets/js/wordgames-xyz.js +9 -9
- data/assets/js/xletter-home.js +92 -89
- 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: 6211980f468bd7efdc4bf3e06ceb15354885be1a9f3194a41e60efdfef536c5b
|
4
|
+
data.tar.gz: e341aa5d5700467ad2c1e920b77866f8633c9916587aa02415ff34eebdf631a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3298f7f2a8f849e740c51918e0c6d0947f5203c64f2aab6612be1276b6ab7924d5736581c4d4930a20465eee1020c68aa0f4e4a2a3eb08a6cba0249e9af448c
|
7
|
+
data.tar.gz: dc3e8ad7318eb821776787cac506ef8659f80e91cbfcf39c3cfd14ce655e0303d27153bab3fb19fdb55fb089df61b93df3afc07ab0b386e1fed2525f2603f476
|
@@ -19,7 +19,7 @@
|
|
19
19
|
{% endif %}
|
20
20
|
<button id="button-toggle" class="navbar-toggler" type="button" data-toggle="collapse"
|
21
21
|
data-target="#navbarSupportedContent" aria-label="bars-toggle-icon">
|
22
|
-
<img src="/assets/images/hamburger-menu.svg" alt="hamburger-menu">
|
22
|
+
<img src="/assets/images/hamburger-menu.svg" alt="hamburger-menu" width="30px" height="30px">
|
23
23
|
</button>
|
24
24
|
<div class="mobile-top-bar collapse navbar-collapse justify-content-end" id="navbarSupportedContent">
|
25
25
|
<div class="navbar-nav">
|
@@ -1,4 +1,5 @@
|
|
1
1
|
{%- if site.noResultPage or page.noResultPage -%}
|
2
|
+
|
2
3
|
<div class="serachSection" data-url="{{site.url}}" data-range="{{page.blanktilerange}}" data-letter="{{page.letter}}" data-ablank="{{page.ablank}}">
|
3
4
|
<div class="position-relative serachBox">
|
4
5
|
<form id='form' method="GET">
|
@@ -39,6 +40,7 @@
|
|
39
40
|
|
40
41
|
{%- else -%}
|
41
42
|
<div class="container-fluid" id="containerWd">
|
43
|
+
|
42
44
|
<div class="serachSection">
|
43
45
|
<div class="position-relative serachBox">
|
44
46
|
<form action="{% if page.url == '/' %}/result{% else %}{{page.url}}/result{% endif %}" id='form'
|
@@ -76,11 +76,12 @@
|
|
76
76
|
<ul class="ul list-unstyled">
|
77
77
|
{%- for item in scrabblewords %}
|
78
78
|
{%- assign value = item.word -%}
|
79
|
-
<a class="anchor__style" title="Lookup
|
80
|
-
|
81
|
-
|
79
|
+
<a class="anchor__style" title="Lookup {{value}} in Dictionary" target="_blank" href="/word-meaning?search={{item.word}}">
|
80
|
+
<li class="list_word">
|
81
|
+
<span>{{item.word}}</span>
|
82
82
|
<span class="points" value="14" style="position:relative; top:4px; font-size:12px">
|
83
|
-
{{item.points}}
|
83
|
+
{{item.points}}
|
84
|
+
</span>
|
84
85
|
</li>
|
85
86
|
</a>
|
86
87
|
{%- endfor -%}
|
@@ -121,98 +121,100 @@ const loadResource = (FILE_URL, data = {}, async = true, type = "text/javascript
|
|
121
121
|
const formElement = document.querySelector("#form");
|
122
122
|
formElement.addEventListener("submit", function (e) {
|
123
123
|
e.preventDefault();
|
124
|
-
|
125
|
-
|
126
|
-
if (
|
127
|
-
|
128
|
-
|
124
|
+
if (txtBox.value != "" || startsWith.value != "" || endsWith.value != "" || mustInclude.value != "" || exculdeWith.value != "" || inculdeWith.value != "" || wordLength.value != "") {
|
125
|
+
let quesMark = "?";
|
126
|
+
if (rangeOfBlankTile) {
|
127
|
+
if (!txtBox.value.includes("?")) {
|
128
|
+
txtBox.value = txtBox.value + quesMark.repeat(rangeOfBlankTile); //
|
129
|
+
txtBox.value = txtBox.value;
|
130
|
+
}
|
129
131
|
}
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
"
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
page_location: window.location.pathname + location.search,
|
186
|
-
});
|
187
|
-
}
|
188
|
-
|
189
|
-
const paramName = 'search';
|
190
|
-
if (new URLSearchParams(window.location.search).has(paramName)) {
|
191
|
-
const additionalData = {
|
192
|
-
url: "{{site.url}}",
|
193
|
-
range: "{{page.blanktilerange}}"
|
132
|
+
document.querySelector(".fillterWrapper").classList.add("hide")
|
133
|
+
let selectedDictionary = document.querySelector(".select_dropDown2").value;
|
134
|
+
if (history.pushState) {
|
135
|
+
var newurl =
|
136
|
+
window.location.protocol +
|
137
|
+
"//" +
|
138
|
+
window.location.host +
|
139
|
+
window.location.pathname +
|
140
|
+
"?" +
|
141
|
+
"search" +
|
142
|
+
"=" +
|
143
|
+
txtBox.value.toLowerCase() +
|
144
|
+
"&" +
|
145
|
+
"dictionary" +
|
146
|
+
"=" +
|
147
|
+
selectedDictionary +
|
148
|
+
"&" +
|
149
|
+
"prefix" +
|
150
|
+
"=" +
|
151
|
+
startsWith.value +
|
152
|
+
"&" +
|
153
|
+
"contains" +
|
154
|
+
"=" +
|
155
|
+
mustInclude.value +
|
156
|
+
"&" +
|
157
|
+
"suffix" +
|
158
|
+
"=" +
|
159
|
+
endsWith.value +
|
160
|
+
"&" +
|
161
|
+
"exclude" +
|
162
|
+
"=" +
|
163
|
+
exculdeWith.value +
|
164
|
+
"&" +
|
165
|
+
"include" +
|
166
|
+
"=" +
|
167
|
+
inculdeWith.value +
|
168
|
+
"&" +
|
169
|
+
"length" +
|
170
|
+
"=" +
|
171
|
+
wordLength.value;
|
172
|
+
window.history.pushState({ path: newurl }, "", newurl);
|
173
|
+
|
174
|
+
const params = new URLSearchParams(window.location.search);
|
175
|
+
serachValue = params.get("search");
|
176
|
+
prefixValue = params.get("prefix");
|
177
|
+
containsValue = params.get("contains");
|
178
|
+
suffixValue = params.get("suffix");
|
179
|
+
exculdeValue = params.get("exclude");
|
180
|
+
includeValue = params.get("include");
|
181
|
+
lengthValue = params.get("length");
|
182
|
+
dictonary = params.get("dictionary");
|
183
|
+
|
184
|
+
gtag("event", "page_view", {
|
185
|
+
page_location: window.location.pathname + location.search,
|
186
|
+
});
|
194
187
|
}
|
195
|
-
|
196
|
-
if (
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
188
|
+
const paramName = 'search';
|
189
|
+
if (new URLSearchParams(window.location.search).has(paramName)) {
|
190
|
+
const additionalData = {
|
191
|
+
url: "{{site.url}}",
|
192
|
+
range: "{{page.blanktilerange}}"
|
193
|
+
}
|
194
|
+
var loadJs = document.querySelector(".loaded-js");
|
195
|
+
if (loadJs == null) {
|
196
|
+
loadResource("/assets/css/wordfinder-result.css", additionalData, true, "text/css")
|
197
|
+
.then((data) => {
|
198
|
+
console.log("CSS loaded:", data);
|
199
|
+
})
|
200
|
+
.then(() => {
|
201
|
+
// Load the JavaScript file after the CSS file has loaded
|
202
|
+
loadResource("/assets/js/wordfinder.js", additionalData, true, "text/javascript")
|
203
|
+
.then((data) => {
|
204
|
+
console.log("JavaScript loaded:", data);
|
205
|
+
getData(txtBox.value.toLowerCase());
|
206
|
+
})
|
207
|
+
.catch((error) => {
|
208
|
+
console.error("Error loading JavaScript:", error);
|
209
|
+
});
|
210
|
+
})
|
211
|
+
.catch((error) => {
|
212
|
+
console.error("Error loading CSS:", error);
|
213
|
+
});
|
214
|
+
}
|
215
215
|
}
|
216
|
+
} else {
|
217
|
+
console.log("Please Enter Valid Letters.");
|
216
218
|
}
|
217
219
|
});
|
218
220
|
// Now you can use the loadScript function with additional data
|
data/assets/js/wordgames-xyz.js
CHANGED
@@ -106,14 +106,14 @@ function appendData(xyzsortValue, data) {
|
|
106
106
|
points += ScrabbleLetterScore[word[i]] || 0; // for unknown characters
|
107
107
|
}
|
108
108
|
return `
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
109
|
+
<a href="/word-meaning?search=${item.replace(/<\/?[^>]+>/gi, '')}" class="anchor__style" title="Lookup ${item.replace(/<\/?[^>]+>/gi, '')} in Dictionary" target="_blank">
|
110
|
+
<li class="list_word">
|
111
|
+
${item}
|
112
|
+
<span class="points" value="${points}" style="position:relative; top:4px; font-size:12px">${points}</span>
|
113
|
+
</li>
|
114
|
+
</a>
|
115
|
+
`
|
116
|
+
});
|
117
117
|
|
118
118
|
mainContent.innerHTML += `
|
119
119
|
<div class="allGroupWords wordlistContainer" id="alpha_${i}">
|
@@ -384,7 +384,7 @@ formElement.addEventListener("submit", function (e) {
|
|
384
384
|
page_location: window.location.pathname + location.search,
|
385
385
|
});
|
386
386
|
}
|
387
|
-
|
387
|
+
|
388
388
|
|
389
389
|
const paramName = 'search';
|
390
390
|
if (new URLSearchParams(window.location.search).has(paramName)) {
|
data/assets/js/xletter-home.js
CHANGED
@@ -88,7 +88,7 @@ const loadResource = (FILE_URL, async = true, type = "text/javascript") => {
|
|
88
88
|
|
89
89
|
resourceEle.type = type;
|
90
90
|
resourceEle.async = async;
|
91
|
-
|
91
|
+
|
92
92
|
|
93
93
|
|
94
94
|
resourceEle.addEventListener("load", () => {
|
@@ -113,81 +113,84 @@ const formElement = document.querySelector("#form");
|
|
113
113
|
formElement.addEventListener("submit", function (e) {
|
114
114
|
e.preventDefault();
|
115
115
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
116
|
+
if (txtBox.value != "" || startsWith.value != "" || endsWith.value != "" || mustInclude.value != "" || exculdeWith.value != "" || inculdeWith.value != "" || wordLength.value != "") {
|
117
|
+
document.querySelector(".fillterWrapper").classList.add("hide")
|
118
|
+
let selectedDictionary = document.querySelector(".select_dropDown2").value;
|
119
|
+
if (history.pushState) {
|
120
|
+
var newurl =
|
121
|
+
window.location.protocol +
|
122
|
+
"//" +
|
123
|
+
window.location.host +
|
124
|
+
window.location.pathname +
|
125
|
+
"?" +
|
126
|
+
"search" +
|
127
|
+
"=" +
|
128
|
+
txtBox.value.toLowerCase() +
|
129
|
+
"&" +
|
130
|
+
"dictionary" +
|
131
|
+
"=" +
|
132
|
+
selectedDictionary +
|
133
|
+
"&" +
|
134
|
+
"prefix" +
|
135
|
+
"=" +
|
136
|
+
startsWith.value +
|
137
|
+
"&" +
|
138
|
+
"contains" +
|
139
|
+
"=" +
|
140
|
+
mustInclude.value +
|
141
|
+
"&" +
|
142
|
+
"suffix" +
|
143
|
+
"=" +
|
144
|
+
endsWith.value +
|
145
|
+
"&" +
|
146
|
+
"exclude" +
|
147
|
+
"=" +
|
148
|
+
exculdeWith.value +
|
149
|
+
"&" +
|
150
|
+
"include" +
|
151
|
+
"=" +
|
152
|
+
inculdeWith.value +
|
153
|
+
"&" +
|
154
|
+
"length" +
|
155
|
+
"=" +
|
156
|
+
wordLength.value;
|
157
|
+
window.history.pushState({ path: newurl }, "", newurl);
|
158
|
+
|
159
|
+
const params = new URLSearchParams(window.location.search);
|
160
|
+
serachValue = params.get("search");
|
161
|
+
prefixValue = params.get("prefix");
|
162
|
+
containsValue = params.get("contains");
|
163
|
+
suffixValue = params.get("suffix");
|
164
|
+
exculdeValue = params.get("exclude");
|
165
|
+
includeValue = params.get("include");
|
166
|
+
lengthValue = params.get("length");
|
167
|
+
dictonary = params.get("dictionary");
|
168
|
+
|
169
|
+
gtag("event", "page_view", {
|
170
|
+
page_location: window.location.pathname + location.search,
|
171
|
+
});
|
172
|
+
}
|
173
|
+
const paramName = 'search';
|
174
|
+
if (new URLSearchParams(window.location.search).has(paramName)) {
|
175
|
+
|
176
|
+
loadResource("/assets/css/wordfinder-result.css", true, "text/css").then((data) => {
|
177
|
+
console.log("CSS loaded:", data);
|
178
|
+
}).then(() => {
|
179
|
+
// Load the JavaScript file after the CSS file has loaded
|
180
|
+
loadResource("/assets/js/xletter-result.js", true, "text/javascript").then((data) => {
|
181
181
|
console.log("JavaScript loaded:", data);
|
182
182
|
getData(txtBox.value.toLowerCase());
|
183
183
|
})
|
184
|
+
.catch((error) => {
|
185
|
+
console.error("Error loading JavaScript:", error);
|
186
|
+
});
|
187
|
+
})
|
184
188
|
.catch((error) => {
|
185
|
-
console.error("Error loading
|
189
|
+
console.error("Error loading CSS:", error);
|
186
190
|
});
|
187
|
-
}
|
188
|
-
|
189
|
-
|
190
|
-
});
|
191
|
+
}
|
192
|
+
} else {
|
193
|
+
console.log("Please Enter Valid Letters.");
|
191
194
|
}
|
192
195
|
});
|
193
196
|
|
@@ -196,24 +199,24 @@ function checkQueryParam() {
|
|
196
199
|
const urlParams = new URLSearchParams(window.location.search);
|
197
200
|
const paramName = 'search';
|
198
201
|
if (urlParams.has(paramName)) {
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
202
|
+
loadResource("/assets/css/wordfinder-result.css", true, "text/css")
|
203
|
+
.then((data) => {
|
204
|
+
console.log("CSS loaded:", data);
|
205
|
+
})
|
206
|
+
.then(() => {
|
207
|
+
// Load the JavaScript file after the CSS file has loaded
|
208
|
+
loadResource("/assets/js/xletter-result.js", true, "text/javascript")
|
209
|
+
.then((data) => {
|
210
|
+
console.log("JavaScript loaded:", data);
|
211
|
+
getData(txtBox.value.toLowerCase());
|
212
|
+
})
|
213
|
+
.catch((error) => {
|
214
|
+
console.error("Error loading JavaScript:", error);
|
215
|
+
});
|
216
|
+
})
|
217
|
+
.catch((error) => {
|
218
|
+
console.error("Error loading CSS:", error);
|
219
|
+
});
|
217
220
|
}
|
218
221
|
}
|
219
222
|
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.
|
4
|
+
version: 2.7.0
|
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-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|