word-games-theme 2.2.8 → 2.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/wordgames/xyzpages/xyz-words.html +11 -9
- data/_includes/wordgames/xyzpages/xyz.html +18 -5
- data/_includes/wordgames/xyzpages/xyzFooter.html +5 -4
- data/_layouts/wordgames-home.html +1 -1
- data/_layouts/wordgames-xyz.html +6 -6
- data/assets/css/wordgames-home.css +3 -0
- data/assets/js/wordgames-xyz.js +203 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9304bdd4b753f3f7514c7e63ec29a24b08a21e2ed6f5f81f82ab8b38e12d01af
|
4
|
+
data.tar.gz: 5dd0289e3a291968a56ea7a8e5a5bf570d0ed117b8632d516b8e80efd2db033c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00067cd7f07c26bb31203025634dfd4efe84f27097222d07178a07fe261db7eef8699102dad38199e811d17d58f27f54950e382ec5cb1429cff23e61b2eed8b8
|
7
|
+
data.tar.gz: bc661f99237b2a91e0a8fdd4c4719ff794190d1dec410feeebb9ff91cd225005de86307ab8d2538ca8491d115972e544214608643b1b54ec21f59094237df39b
|
@@ -14,14 +14,7 @@
|
|
14
14
|
<div class="wordCount"><strong>
|
15
15
|
{{dataToShow.wordLength}}
|
16
16
|
</strong></div>
|
17
|
-
|
18
|
-
<div class="filter-icon" onclick="myFunction()">
|
19
|
-
<i class="bi bi-filter"></i>
|
20
|
-
</div>
|
21
|
-
<div class="sortup-icon">
|
22
|
-
<i class="bi bi-sort-up"></i>
|
23
|
-
</div>
|
24
|
-
</div>
|
17
|
+
|
25
18
|
<div class="d-none tab_link_wrapper" style="position: relative;">
|
26
19
|
<div id="tab-scroll" class="tab-scroll flex-row">
|
27
20
|
<input type="button" name="" id="prev" class="prev tabsBg noOutline cursorPointer" value=" "
|
@@ -48,8 +41,17 @@
|
|
48
41
|
</div>
|
49
42
|
<div class="wrapper_dropDown mt-3 d-flex justify-content-end" style="gap:10px;">
|
50
43
|
<div class="letter-length">
|
51
|
-
<select class="form-select length-select">
|
44
|
+
<select class="form-select length-select" onchange="Filtering(2)">
|
52
45
|
<option selected="true" hidden>Letter Length</option>
|
46
|
+
{%- for scrabblewords in dataToShow.words-%}
|
47
|
+
{%- for item in scrabblewords %}
|
48
|
+
{%- if forloop.index == 1 -%}
|
49
|
+
<option class="tab_link cursorPointer" id="Tab_{{item.i}}" value="{{item.i}}">{{item.i}} Letter</option>
|
50
|
+
{%- endif -%}
|
51
|
+
{%- endfor -%}
|
52
|
+
{%- endfor -%}
|
53
|
+
|
54
|
+
|
53
55
|
</select>
|
54
56
|
</div>
|
55
57
|
<div id="sort-select">
|
@@ -14,7 +14,6 @@
|
|
14
14
|
}
|
15
15
|
</style>
|
16
16
|
<!-- start commonPage as LandingPage -->
|
17
|
-
|
18
17
|
<section class="sticky_nav">
|
19
18
|
<div class="pageHeading text-center pt-5">
|
20
19
|
<h1 class="heading m-0 pb-0">
|
@@ -34,6 +33,21 @@
|
|
34
33
|
<input
|
35
34
|
style="border-radius: {{CustomColor.inputFieldBorder}}; background-color: {{CustomColor.inputButtonBg}};"
|
36
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>
|
37
51
|
<div class="dictonaryDropdown">
|
38
52
|
<!-- <div class="dictonaryDropdown"> -->
|
39
53
|
<select class="form-select select_dropDown2" name="dictionary"
|
@@ -45,18 +59,17 @@
|
|
45
59
|
</select>
|
46
60
|
<!-- </div> -->
|
47
61
|
</div>
|
48
|
-
|
49
62
|
</div>
|
50
63
|
|
51
64
|
<div class="container">
|
52
65
|
{%- include wordgames/advanced-filter/advanced-filter.html -%}
|
53
66
|
</div>
|
54
|
-
|
55
|
-
{% include wordgames/xyzpages/xyz-words.html %}
|
56
|
-
</div>
|
67
|
+
|
57
68
|
|
58
69
|
</form>
|
59
70
|
</div>
|
60
71
|
</div>
|
61
72
|
</section>
|
73
|
+
<div class="container" id="containerWd">
|
74
|
+
{% include wordgames/xyzpages/xyz-words.html %}
|
62
75
|
</div>
|
@@ -47,13 +47,14 @@
|
|
47
47
|
</div>
|
48
48
|
</div>
|
49
49
|
|
50
|
-
<div class="row m-0 py-3" style="background-color:
|
50
|
+
<div class="row m-0 py-3" style="background-color: white;">
|
51
51
|
<div class="col-12">
|
52
52
|
<div class="text-center px-md-5 px-0 footer__flexbox">
|
53
|
-
<p
|
54
|
-
|
53
|
+
<p style="font-size:18px"
|
54
|
+
class="m-0 text-black">{{site.copyright_text}}</p>
|
55
|
+
<!-- <p class="m-0"><a class="footer__link" href="/privacy-policy">Privacy Policy</a>
|
55
56
|
<a class="footer__link" href="/terms-and-conditions">| Terms of Use</a>
|
56
|
-
</p>
|
57
|
+
</p> -->
|
57
58
|
</div>
|
58
59
|
</div>
|
59
60
|
</div>
|
@@ -2,7 +2,6 @@
|
|
2
2
|
<html lang="en">
|
3
3
|
|
4
4
|
{%- include wordgames/head/head.html -%}
|
5
|
-
|
6
5
|
<body>
|
7
6
|
{%- include wordgames/header/header.html -%}
|
8
7
|
|
@@ -72,6 +71,7 @@
|
|
72
71
|
{%- endif -%}
|
73
72
|
<script defer src="/assets/js/theme.js"></script>
|
74
73
|
<script defer src="/assets/js/wordgames-home.js"></script>
|
74
|
+
|
75
75
|
</body>
|
76
76
|
|
77
77
|
</html>
|
data/_layouts/wordgames-xyz.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
{%- include wordgames/head/head.html -%}
|
4
4
|
<style>
|
5
5
|
.main_row {
|
6
|
-
background-color: #
|
6
|
+
background-color: #000;
|
7
7
|
color: var(--txtColor1);
|
8
8
|
font-size: 12px;
|
9
9
|
}
|
@@ -93,10 +93,8 @@
|
|
93
93
|
<div class="wordgametheme-sidebar-right"></div>
|
94
94
|
{%- endif -%}
|
95
95
|
|
96
|
-
|
97
96
|
{%- include wordgames/xyzpages/xyz.html -%}
|
98
97
|
|
99
|
-
|
100
98
|
{% include wordgames/featurehighlights/featurehighlights.html %}
|
101
99
|
{%- include wordgames/howto/howto.html -%}
|
102
100
|
|
@@ -112,14 +110,16 @@
|
|
112
110
|
|
113
111
|
{%- include wordgames/rating/rating.html -%}
|
114
112
|
|
115
|
-
{%- include share/socialshare.html -%}
|
113
|
+
<!-- {%- include share/socialshare.html -%} -->
|
116
114
|
|
117
115
|
{% include wordgames/adblocker/adblocker.html %}
|
118
116
|
|
119
|
-
{% include xyzpages/xyzFooter.html %}
|
117
|
+
{% include wordgames/xyzpages/xyzFooter.html %}
|
120
118
|
|
121
119
|
|
122
|
-
<script defer src="/assets/js/xyz.js"></script>
|
120
|
+
<script defer src="/assets/js/wordgames-xyz.js"></script>
|
121
|
+
<script defer src="/assets/js/theme.js"></script>
|
122
|
+
<script defer src="/assets/js/wordgames-home.js"></script>
|
123
123
|
|
124
124
|
{%- include wordgames/scripts/scripts.html -%}
|
125
125
|
</body>
|
@@ -0,0 +1,203 @@
|
|
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 = {}
|
10
|
+
function Filtering(id) {
|
11
|
+
id = lengthSelect.value
|
12
|
+
main.innerHTML += ``
|
13
|
+
var section = document.querySelectorAll('.allGroupWords')
|
14
|
+
var sort_val = "alpha";
|
15
|
+
Array.prototype.forEach.call(section, function (e) {
|
16
|
+
if (document.body.clientWidth > 991) {
|
17
|
+
sections[e.id] = e.offsetTop - 10
|
18
|
+
} else {
|
19
|
+
sections[e.id] = e.offsetTop - 10
|
20
|
+
}
|
21
|
+
})
|
22
|
+
console.log(sort_val + '_' + id);
|
23
|
+
document.documentElement.scrollTop = sections[sort_val + '_' + id] + 5
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
// sorting for words
|
29
|
+
theSelect.addEventListener("change", () => {
|
30
|
+
sortValue = theSelect[theSelect.selectedIndex].text;
|
31
|
+
let list_word = document.getElementsByClassName("list_word")
|
32
|
+
let data = []
|
33
|
+
Array.from(list_word).forEach(item => {
|
34
|
+
item.removeChild(item.lastElementChild);
|
35
|
+
data.push(item.innerHTML.replace(/\s/g, ''))
|
36
|
+
})
|
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);
|
43
|
+
} else {
|
44
|
+
sortBool = "A-Z";
|
45
|
+
sortby(sortBool, data);
|
46
|
+
}
|
47
|
+
});
|
48
|
+
|
49
|
+
// sort by aplhabets
|
50
|
+
function sortby(sortValue, data) {
|
51
|
+
if (sortValue === "Z-A") {
|
52
|
+
appendData(sortValue, data.reverse())
|
53
|
+
}
|
54
|
+
else if (sortValue === "A-Z") {
|
55
|
+
appendData(sortValue, data.sort())
|
56
|
+
}
|
57
|
+
}
|
58
|
+
// sorting by points
|
59
|
+
function sortPointsby(sortValue, data) {
|
60
|
+
if (sortValue === "Points") {
|
61
|
+
let newArray = [];
|
62
|
+
data.map((item) => {
|
63
|
+
if (item.length === 1) {
|
64
|
+
ok = false;
|
65
|
+
} else {
|
66
|
+
let ScrabbleLetterScore = ScrabbleScore();
|
67
|
+
let points = 0;
|
68
|
+
let word = item.replace(/<\/?[^>]+>/gi, '')
|
69
|
+
for (let i = 0; i < word.length; i++) {
|
70
|
+
points += ScrabbleLetterScore[word[i]] || 0;
|
71
|
+
}
|
72
|
+
const value = {
|
73
|
+
words: item,
|
74
|
+
points: points,
|
75
|
+
};
|
76
|
+
newArray.push(value);
|
77
|
+
}
|
78
|
+
});
|
79
|
+
newArray.sort(function (a, b) {
|
80
|
+
return b.points - a.points;
|
81
|
+
});
|
82
|
+
appendData(sortValue, newArray)
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
function appendData(sortValue, data) {
|
87
|
+
main.innerHTML = "";
|
88
|
+
let newWordsLength = 0;
|
89
|
+
for (let i = 15; i > 0; i--) {
|
90
|
+
let newdata
|
91
|
+
if (sortValue === "Points") {
|
92
|
+
newdata = data.filter((item) => item.words.replace(/<\/?[^>]+>/gi, '').length === i)
|
93
|
+
} else {
|
94
|
+
newdata = data.filter((item) => item.replace(/<\/?[^>]+>/gi, '').length === i)
|
95
|
+
}
|
96
|
+
if (newdata.length === 0) {
|
97
|
+
main.innerHTML += "";
|
98
|
+
} else {
|
99
|
+
newWordsLength += newdata.length;
|
100
|
+
const result = newdata.map((item) => {
|
101
|
+
let ScrabbleLetterScore = ScrabbleScore();
|
102
|
+
let points = 0;
|
103
|
+
let word
|
104
|
+
if (sortValue === "Points") {
|
105
|
+
word = item.words.replace(/<\/?[^>]+>/gi, '')
|
106
|
+
item = item.words
|
107
|
+
} else {
|
108
|
+
word = item.replace(/<\/?[^>]+>/gi, '')
|
109
|
+
}
|
110
|
+
for (let i = 0; i < word.length; i++) {
|
111
|
+
points += ScrabbleLetterScore[word[i]] || 0; // for unknown characters
|
112
|
+
}
|
113
|
+
return `
|
114
|
+
<a class="anchor__style" title="Lookup ${item.replace(/<\/?[^>]+>/gi, '')} in Dictionary" target="_blank"
|
115
|
+
href="/word-meaning?search=${item.replace(/<\/?[^>]+>/gi, '')}">
|
116
|
+
<li class="list_word">
|
117
|
+
${item}
|
118
|
+
<span class="points" value="${points}" style="position:relative; top:4px; font-size:12px">${points}</span>
|
119
|
+
</li>
|
120
|
+
</a>
|
121
|
+
`});
|
122
|
+
|
123
|
+
main.innerHTML += `
|
124
|
+
<div class="allGroupWords wordlistContainer" id="alpha_${i}">
|
125
|
+
<div class="wordListHeading">
|
126
|
+
<h3 class="lead">${i} Letter Words</h3>
|
127
|
+
</div>
|
128
|
+
<div class="wordList">
|
129
|
+
<ul class="ul list-unstyled">
|
130
|
+
${result.join('')}
|
131
|
+
</ul>
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
`
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
// Scrabble Point Array
|
139
|
+
const ScrabbleScore = () => {
|
140
|
+
let twl06_sowpods = {
|
141
|
+
a: 1,
|
142
|
+
e: 1,
|
143
|
+
i: 1,
|
144
|
+
o: 1,
|
145
|
+
u: 1,
|
146
|
+
l: 1,
|
147
|
+
n: 1,
|
148
|
+
r: 1,
|
149
|
+
s: 1,
|
150
|
+
t: 1,
|
151
|
+
d: 2,
|
152
|
+
g: 2,
|
153
|
+
b: 3,
|
154
|
+
c: 3,
|
155
|
+
m: 3,
|
156
|
+
p: 3,
|
157
|
+
f: 4,
|
158
|
+
h: 4,
|
159
|
+
v: 4,
|
160
|
+
w: 4,
|
161
|
+
y: 4,
|
162
|
+
k: 5,
|
163
|
+
j: 8,
|
164
|
+
x: 8,
|
165
|
+
q: 10,
|
166
|
+
z: 10,
|
167
|
+
};
|
168
|
+
|
169
|
+
let wwfScore = {
|
170
|
+
a: 1,
|
171
|
+
b: 4,
|
172
|
+
c: 4,
|
173
|
+
d: 2,
|
174
|
+
e: 1,
|
175
|
+
f: 4,
|
176
|
+
g: 3,
|
177
|
+
h: 3,
|
178
|
+
i: 1,
|
179
|
+
j: 10,
|
180
|
+
k: 5,
|
181
|
+
l: 2,
|
182
|
+
m: 4,
|
183
|
+
n: 2,
|
184
|
+
o: 1,
|
185
|
+
p: 4,
|
186
|
+
q: 10,
|
187
|
+
r: 1,
|
188
|
+
s: 1,
|
189
|
+
t: 1,
|
190
|
+
u: 2,
|
191
|
+
v: 5,
|
192
|
+
w: 4,
|
193
|
+
x: 8,
|
194
|
+
y: 3,
|
195
|
+
z: 10,
|
196
|
+
};
|
197
|
+
|
198
|
+
// if (dictonary === "wwf") {
|
199
|
+
// return wwfScore;
|
200
|
+
// } else {
|
201
|
+
return twl06_sowpods;
|
202
|
+
// }
|
203
|
+
};
|
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.2.
|
4
|
+
version: 2.2.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: 2023-
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -384,6 +384,7 @@ files:
|
|
384
384
|
- assets/js/wordgames-home.js
|
385
385
|
- assets/js/wordgames-result.js
|
386
386
|
- assets/js/wordgames-xletter.js
|
387
|
+
- assets/js/wordgames-xyz.js
|
387
388
|
- assets/js/wordleSolver.js
|
388
389
|
- assets/js/wordleSolverResult.js
|
389
390
|
- assets/js/words-in-certain-positions.js
|