word-games-theme 0.7.6 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/Monumetric/Monumetric.html +2 -2
- data/_includes/section/commonPage.html +4 -4
- data/_includes/section/home2.html +1 -1
- data/_includes/section/wordGroup.html +1 -1
- data/_includes/section/xyzGroup.html +1 -1
- data/_includes/xyzpages/xyz.html +1 -1
- data/_layouts/autogencontent.html +1 -1
- data/_layouts/default.html +12 -16
- data/_layouts/page.html +2 -0
- data/_layouts/page2.html +2 -0
- data/_layouts/xyzpages.html +1 -1
- data/assets/css/advancedFilter.css +2 -2
- data/assets/css/footer.css +1 -1
- data/assets/js/X-letter.js +73 -2
- data/assets/js/wordScrabble.js +2 -0
- data/assets/js/wordleSolver.js +1 -1
- 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: 5b383e2d2ca991f0df8c99706aea73184eed922cad3c6207e9144f3795c3a38d
|
4
|
+
data.tar.gz: b70abbe49809438065ff3f2b8e8e9611633a1ab8cbf292c7f6eae8b344a80f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23a74f922f3fd3a6301aa07618809a0894f7089c0fccce5e2e2e919c909b7d73963ee50527fcada52ced63dc40a0c27f6907dac2b140757f73ec228183f167aa
|
7
|
+
data.tar.gz: ee7afc262a84181335b87320eb085c2cb65ffba4df67805e590acb0ffc5f8e0a2eae530b3b9f50035297bb1e5de01c443ae7f713d265906d8e7093095da61e3f
|
@@ -2,6 +2,6 @@
|
|
2
2
|
<script type="text/javascript" defer delay="{{site.MonumetricID}}" data-cfasync="false"></script>
|
3
3
|
{% endif %}
|
4
4
|
|
5
|
-
{% if jekyll.environment == 'development' and site.MonumetricID %}
|
5
|
+
<!-- {% if jekyll.environment == 'development' and site.MonumetricID %}
|
6
6
|
<script type="text/javascript" delay="{{site.MonumetricID}}"></script>
|
7
|
-
{% endif %}
|
7
|
+
{% endif %} -->
|
@@ -5,16 +5,16 @@
|
|
5
5
|
{%- assign CustomColor = site.data.theme.colors -%}
|
6
6
|
<!-- start commonPage as LandingPage -->
|
7
7
|
|
8
|
-
<div class="container py-3 result_header">
|
8
|
+
<!-- <div class="container py-3 result_header">
|
9
9
|
<nav class="navbar result_page_navbar">
|
10
10
|
<a class="navbar-brand result_header_logo" href="/" title="words with letters">
|
11
11
|
<img src="{{ site.favicon | relative_url }}" alt="{{site.name}}-logo" style="width:35px; height:35px;">
|
12
12
|
</a>
|
13
13
|
</nav>
|
14
|
-
</div>
|
14
|
+
</div> -->
|
15
15
|
<div class="container" id="containerWd">
|
16
16
|
<section class="sticky_nav">
|
17
|
-
<div class="pageHeading text-center">
|
17
|
+
<div class="pageHeading text-center pt-5">
|
18
18
|
<h1 class="heading m-0 pb-0">
|
19
19
|
{{dataToShow.h1}}</h1>
|
20
20
|
{%- if dataToShow.h2 != "" -%}
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<form action="" id='form'>
|
28
28
|
<input style="border-radius: {{CustomColor.inputFieldBorder}}" type="text"
|
29
29
|
placeholder="Enter up to 15 letters?" class="txtBox resultPageTxtBox" value='' name="search"
|
30
|
-
maxlength="15" value required>
|
30
|
+
maxlength="15" value required autocomplete="off">
|
31
31
|
<input
|
32
32
|
style="border-radius: {{CustomColor.inputFieldBorder}}; background-color: {{CustomColor.inputButtonBg}};"
|
33
33
|
type="submit" class="serachBtn resultPageSearchBtn" id="serach" value>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
</div>
|
86
86
|
</div>
|
87
87
|
</form>
|
88
|
-
{%- if page.
|
88
|
+
{%- if page.wordle == 'solver' -%}
|
89
89
|
<h2 class="m-0 mt-4 text-center" style="font-size:16px">
|
90
90
|
<a style="color:#000" href="/wordle-solver">Solve wordle quickly using our wordle solver</a>
|
91
91
|
</h2>
|
data/_includes/xyzpages/xyz.html
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
{%- assign CustomColor = site.data.theme.colors -%}
|
6
6
|
<!-- start commonPage as LandingPage -->
|
7
7
|
<div class="container" id="containerWd">
|
8
|
-
<section class="sticky_nav"
|
8
|
+
<section class="sticky_nav">
|
9
9
|
<div class="pageHeading text-center pt-5">
|
10
10
|
<h1 class="heading m-0 pb-0">
|
11
11
|
{{dataToShow.h1}}</h1>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<link rel="stylesheet"
|
12
12
|
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css" />
|
13
|
-
<script defer src="
|
13
|
+
<script defer src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
14
14
|
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
|
15
15
|
{% include Monumetric/Monumetric.html %}
|
16
16
|
</body>
|
data/_layouts/default.html
CHANGED
@@ -42,16 +42,23 @@
|
|
42
42
|
|
43
43
|
<link rel="stylesheet"
|
44
44
|
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css" />
|
45
|
+
<script src="//cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js"></script>
|
46
|
+
<script>WebFont.load({ google: { families: ['Poppins:400&display=swap'] } })</script>
|
47
|
+
<script>
|
48
|
+
(function () {
|
49
|
+
d = document;
|
50
|
+
c = d.createElement('link');
|
51
|
+
c.href = '//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css';
|
52
|
+
c.rel = 'stylesheet';
|
53
|
+
d.head.appendChild(c);
|
54
|
+
})();
|
55
|
+
</script>
|
45
56
|
<script defer src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
46
|
-
<script defer src="
|
57
|
+
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
|
47
58
|
<script>
|
48
|
-
|
49
59
|
let txtBox = document.querySelector('.txtBox')
|
50
|
-
let focusBorder = document.querySelector('.focus-border')
|
51
|
-
|
52
60
|
txtBox.focus()
|
53
61
|
txtBox.addEventListener('input', (e) => {
|
54
|
-
focusBorder.classList.remove('focus-border')
|
55
62
|
e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
|
56
63
|
let rangeOfBlankTile = '{{ page.blanktilerange }}'
|
57
64
|
if (rangeOfBlankTile === "") {
|
@@ -67,17 +74,6 @@
|
|
67
74
|
}
|
68
75
|
})
|
69
76
|
</script>
|
70
|
-
<script src="//cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js"></script>
|
71
|
-
<script>WebFont.load({ google: { families: ['Poppins:400&display=swap'] } })</script>
|
72
|
-
<script>
|
73
|
-
(function () {
|
74
|
-
d = document;
|
75
|
-
c = d.createElement('link');
|
76
|
-
c.href = '//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css';
|
77
|
-
c.rel = 'stylesheet';
|
78
|
-
d.head.appendChild(c);
|
79
|
-
})();
|
80
|
-
</script>
|
81
77
|
{% include Monumetric/Monumetric.html %}
|
82
78
|
</body>
|
83
79
|
|
data/_layouts/page.html
CHANGED
data/_layouts/page2.html
CHANGED
data/_layouts/xyzpages.html
CHANGED
@@ -95,7 +95,7 @@
|
|
95
95
|
|
96
96
|
<link rel="stylesheet"
|
97
97
|
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css" />
|
98
|
-
<script defer src="
|
98
|
+
<script defer src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
99
99
|
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
|
100
100
|
{% include Monumetric/Monumetric.html %}
|
101
101
|
|
@@ -41,7 +41,7 @@
|
|
41
41
|
background: #fff;
|
42
42
|
position: absolute;
|
43
43
|
z-index: 999;
|
44
|
-
top:
|
44
|
+
top: 100px;
|
45
45
|
right: 150px;
|
46
46
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
47
47
|
padding: 30px 15px;
|
@@ -68,7 +68,7 @@
|
|
68
68
|
.sticky_nav {
|
69
69
|
position: sticky;
|
70
70
|
width: inherit;
|
71
|
-
top:
|
71
|
+
top: 58px;
|
72
72
|
background-color: #fff;
|
73
73
|
z-index: 99;
|
74
74
|
}
|
data/assets/css/footer.css
CHANGED
data/assets/js/X-letter.js
CHANGED
@@ -4,6 +4,7 @@ const getScript=document.currentScript
|
|
4
4
|
const letterLen = getScript.dataset.letter
|
5
5
|
|
6
6
|
let errorMsg = document.querySelector('.errorMsg')
|
7
|
+
let script = document.currentScript
|
7
8
|
let wordCount = document.querySelector('.wordCount')
|
8
9
|
let main = document.querySelector('.main')
|
9
10
|
|
@@ -23,10 +24,43 @@ tab_link_wrapper.style.display = "none"
|
|
23
24
|
let txtBox = document.querySelector('.txtBox')
|
24
25
|
txtBox.focus()
|
25
26
|
txtBox.value = serachValue
|
27
|
+
txtBox.addEventListener('input', (e) => {
|
28
|
+
let rangeOfBlankTile = script.dataset.range
|
29
|
+
e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, '')
|
30
|
+
if (rangeOfBlankTile === '') {
|
31
|
+
rangeOfBlankTile = 5
|
32
|
+
}
|
33
|
+
e.target.value = e.target.value.replace(/ /g, '?')
|
34
|
+
let data = []
|
35
|
+
data = e.target.value.split('').filter((i) => i === '?')
|
36
|
+
if (data.length > rangeOfBlankTile) {
|
37
|
+
e.target.value = e.target.value.replace(/\?$/, '')
|
38
|
+
}
|
39
|
+
})
|
26
40
|
|
27
41
|
var theSelect = document.getElementById('select_dropDown')
|
28
42
|
document.querySelector('.select_dropDown2').value = dictonary
|
29
|
-
|
43
|
+
const getDiff = (text1, text2) => {
|
44
|
+
var diffRange = []
|
45
|
+
var currentRange = undefined
|
46
|
+
for (var i = 0; i < text1.length; i++) {
|
47
|
+
if (text1[i] != text2[i]) {
|
48
|
+
if (currentRange == undefined) {
|
49
|
+
currentRange = [i]
|
50
|
+
}
|
51
|
+
}
|
52
|
+
if (currentRange != undefined && text1[i] == text2[i]) {
|
53
|
+
currentRange.push(i)
|
54
|
+
diffRange.push(currentRange)
|
55
|
+
currentRange = undefined
|
56
|
+
}
|
57
|
+
}
|
58
|
+
if (currentRange != undefined) {
|
59
|
+
currentRange.push(i)
|
60
|
+
diffRange.push(currentRange)
|
61
|
+
}
|
62
|
+
return diffRange
|
63
|
+
}
|
30
64
|
const getData = async (serachValue) => {
|
31
65
|
try {
|
32
66
|
main.innerHTML = `<div class="loader">
|
@@ -160,8 +194,45 @@ function x_with_letters(data) {
|
|
160
194
|
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
161
195
|
}
|
162
196
|
wordLength.value = itemLength
|
197
|
+
|
198
|
+
var text1 = serachValue.replace('?', '')
|
199
|
+
var text2 = item
|
200
|
+
var text3 = item
|
201
|
+
function findIndex(str, char) {
|
202
|
+
const strLength = str.length
|
203
|
+
const indexes = []
|
204
|
+
let newStr = str
|
205
|
+
while (newStr && newStr.indexOf(char) > -1) {
|
206
|
+
indexes.push(newStr.indexOf(char) + strLength - newStr.length)
|
207
|
+
newStr = newStr.substring(newStr.indexOf(char) + 1)
|
208
|
+
newStr = newStr.substring(newStr.indexOf(char) + 1)
|
209
|
+
}
|
210
|
+
return indexes
|
211
|
+
}
|
212
|
+
let chars = text1.split('')
|
213
|
+
let indexs = []
|
214
|
+
chars.map((i) => {
|
215
|
+
let findIndexes = findIndex(text3, i)
|
216
|
+
if (findIndexes.length > 0) {
|
217
|
+
text3 = text3.split('')
|
218
|
+
text3[findIndexes] = '$'
|
219
|
+
text3 = text3.join('')
|
220
|
+
indexs = [...indexs, ...findIndexes]
|
221
|
+
}
|
222
|
+
})
|
223
|
+
let itemHtml = ''
|
224
|
+
text2.split('').map((itemValue, index) => {
|
225
|
+
let check = indexs.find((i) => i === index)
|
226
|
+
if (check !== undefined) {
|
227
|
+
itemHtml += `${itemValue}`
|
228
|
+
} else {
|
229
|
+
itemHtml += `<span class='highlight'>${itemValue}</span>`
|
230
|
+
}
|
231
|
+
})
|
232
|
+
|
233
|
+
|
163
234
|
return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item}">
|
164
|
-
<li>${
|
235
|
+
<li>${itemHtml}
|
165
236
|
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
166
237
|
</li></a>`
|
167
238
|
})
|
data/assets/js/wordScrabble.js
CHANGED
data/assets/js/wordleSolver.js
CHANGED
@@ -55,7 +55,7 @@ const wordleSolver = async (value, value2, value3, greenWithIndex) => {
|
|
55
55
|
}),
|
56
56
|
})
|
57
57
|
const data = await response.json()
|
58
|
-
document.querySelector('#updateTxt').innerHTML = '
|
58
|
+
document.querySelector('#updateTxt').innerHTML = 'Solve'
|
59
59
|
spinner.classList.remove('spinner-border')
|
60
60
|
|
61
61
|
let ok = true
|
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: 0.
|
4
|
+
version: 0.8.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: 2022-01
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|