word-games-theme 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/footer/en/data.json +37 -53
- data/_data/footer/networksites.json +4 -4
- data/_data/wordleSolver/en/data.json +2 -0
- data/_includes/footer/index.html +59 -2
- data/_includes/section/blog.html +40 -18
- data/_includes/section/commonPage.html +13 -5
- data/_includes/section/feature.html +9 -8
- data/_includes/section/home.html +10 -3
- data/_includes/section/home2.html +8 -5
- data/_includes/section/related_categories_post.html +13 -4
- data/_includes/section/wordGroup.html +1 -1
- data/_includes/section/xyzGroup.html +1 -1
- data/_includes/wordle-solver/wordle-solver.html +42 -27
- data/_layouts/default.html +8 -2
- data/_layouts/page.html +0 -1
- data/_layouts/page2.html +0 -1
- data/_layouts/wordMeaning.html +3 -0
- data/_layouts/wordleSolver.html +7 -0
- data/_layouts/xyzpages.html +7 -2
- data/assets/css/advancedFilter.css +19 -3
- data/assets/css/feature.css +6 -6
- data/assets/css/footer.css +158 -2
- data/assets/css/home.css +68 -7
- data/assets/css/wordGroup.css +1 -1
- data/assets/css/wordleSolver.css +24 -3
- data/assets/js/X-letter.js +4 -3
- data/assets/js/wordScrabble.js +4 -3
- data/assets/js/wordleSolver.js +18 -8
- metadata +2 -3
- data/_data/footer/hi/data.json +0 -69
data/assets/js/wordleSolver.js
CHANGED
@@ -2,11 +2,11 @@ console.log('wordle solver ...')
|
|
2
2
|
|
3
3
|
let form = document.querySelector('[name=verify')
|
4
4
|
|
5
|
-
let greenLetters = document.querySelectorAll('
|
6
|
-
let yellowLetters = document.querySelectorAll('
|
7
|
-
let greyLetters = document.querySelectorAll('
|
5
|
+
let greenLetters = document.querySelectorAll('.greenLetters')
|
6
|
+
let yellowLetters = document.querySelectorAll('.yellowLetters')
|
7
|
+
let greyLetters = document.querySelectorAll('.greyLetters')
|
8
8
|
let wordleSolverData = document.getElementById('wordleSolverData')
|
9
|
-
|
9
|
+
greenLetters[0].focus()
|
10
10
|
let wordleWordCount = document.querySelector('#wordleWordCount')
|
11
11
|
let wordleSolvererrorMsg = document.querySelector('#wordleSolvererrorMsg')
|
12
12
|
let wordlesolver_submit = document.getElementById('wordlesolver_submit')
|
@@ -38,9 +38,12 @@ addMore.addEventListener('click', (e) => {
|
|
38
38
|
}
|
39
39
|
})
|
40
40
|
|
41
|
+
let spinner = document.querySelector('.spinner')
|
41
42
|
const wordleSolver = async (value, value2, value3, greenWithIndex) => {
|
42
43
|
try {
|
43
44
|
let result = ''
|
45
|
+
document.querySelector('#updateTxt').innerHTML = ''
|
46
|
+
spinner.classList.add('spinner-border')
|
44
47
|
wordleWordCount.innerHTML = 'Searching for best possible letters...'
|
45
48
|
let response = await fetch('/.netlify/functions/wordleSolver', {
|
46
49
|
method: 'POST',
|
@@ -52,6 +55,8 @@ const wordleSolver = async (value, value2, value3, greenWithIndex) => {
|
|
52
55
|
}),
|
53
56
|
})
|
54
57
|
const data = await response.json()
|
58
|
+
document.querySelector('#updateTxt').innerHTML = 'Update'
|
59
|
+
spinner.classList.remove('spinner-border')
|
55
60
|
|
56
61
|
let ok = true
|
57
62
|
if (data.length === 0) {
|
@@ -59,10 +64,13 @@ const wordleSolver = async (value, value2, value3, greenWithIndex) => {
|
|
59
64
|
wordleSolverData.innerHTML = ''
|
60
65
|
wordleSolvererrorMsg.classList.add('alert-danger')
|
61
66
|
wordleSolvererrorMsg.innerHTML = 'Sorry!! No words found'
|
67
|
+
wordleWordCount.style.display = 'none'
|
68
|
+
// console.log(wordleWordCount)
|
62
69
|
} else {
|
70
|
+
wordleWordCount.style.display = 'block'
|
71
|
+
wordleSolverData.innerHTML = ''
|
63
72
|
wordleSolvererrorMsg.classList.remove('alert-danger')
|
64
73
|
wordleSolvererrorMsg.innerHTML = ''
|
65
|
-
wordleSolverData.innerHTML = ''
|
66
74
|
newWordsLength = ''
|
67
75
|
newWordsLength += data.length
|
68
76
|
result = data.map((item) => {
|
@@ -77,7 +85,7 @@ const wordleSolver = async (value, value2, value3, greenWithIndex) => {
|
|
77
85
|
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
78
86
|
}
|
79
87
|
return `
|
80
|
-
<a class="anchor__style" title="Lookup
|
88
|
+
<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
|
81
89
|
<li>
|
82
90
|
${item.toLowerCase()}
|
83
91
|
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
@@ -90,7 +98,7 @@ const wordleSolver = async (value, value2, value3, greenWithIndex) => {
|
|
90
98
|
wordleSolverData.innerHTML += `
|
91
99
|
<div class="allfiveletterswords wordlistContainer">
|
92
100
|
<div class="wordListHeading">
|
93
|
-
<h3 class="lead">
|
101
|
+
<h3 class="lead">Solve wordle with these words</h3>
|
94
102
|
</div>
|
95
103
|
<div class="wordList">
|
96
104
|
<ul class="ul list-unstyled">
|
@@ -101,11 +109,13 @@ const wordleSolver = async (value, value2, value3, greenWithIndex) => {
|
|
101
109
|
`
|
102
110
|
}
|
103
111
|
}
|
112
|
+
|
104
113
|
if (newWordsLength === 0) {
|
114
|
+
console.log(true)
|
105
115
|
wordleSolvererrorMsg.classList.add('alert-danger')
|
106
116
|
wordleSolvererrorMsg.innerHTML = 'Sorry!! No words found'
|
107
117
|
} else {
|
108
|
-
wordleWordCount.innerHTML = `<strong>${newWordsLength}
|
118
|
+
wordleWordCount.innerHTML = `<strong>Found <span style="color:#6aaa64">${newWordsLength}</span> matching words for wordle</strong>`
|
109
119
|
}
|
110
120
|
} catch (error) {
|
111
121
|
console.log(error)
|
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.7.
|
4
|
+
version: 0.7.4
|
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-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -72,7 +72,6 @@ files:
|
|
72
72
|
- _data/content/en/python.json
|
73
73
|
- _data/content/en/react.json
|
74
74
|
- _data/footer/en/data.json
|
75
|
-
- _data/footer/hi/data.json
|
76
75
|
- _data/footer/networksites.json
|
77
76
|
- _data/header/en/data.json
|
78
77
|
- _data/theme/colors.json
|
data/_data/footer/hi/data.json
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"logo":"https://sta1.pdfdoctor.com/1/2962/logo.png.png",
|
3
|
-
"heading":"We make PDF easy.",
|
4
|
-
"company":[
|
5
|
-
{
|
6
|
-
"name":"About",
|
7
|
-
"url":"/about"
|
8
|
-
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"name":"Help",
|
12
|
-
"url":"/help"
|
13
|
-
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"name":"Blog",
|
17
|
-
"url":"/blog"
|
18
|
-
|
19
|
-
}
|
20
|
-
],
|
21
|
-
"product":[
|
22
|
-
{
|
23
|
-
"name":"Pricing",
|
24
|
-
"url":"/pricing"
|
25
|
-
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"name":"Team",
|
29
|
-
"url":"/team"
|
30
|
-
},
|
31
|
-
{
|
32
|
-
"name":"Developers",
|
33
|
-
"url":"/developers"
|
34
|
-
|
35
|
-
}
|
36
|
-
],
|
37
|
-
"social":[
|
38
|
-
{
|
39
|
-
"logo":"/assets/facebook.svg",
|
40
|
-
"url": "/",
|
41
|
-
"title":"abc"
|
42
|
-
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"logo":"/assets/youtube.svg",
|
46
|
-
"url": "/",
|
47
|
-
"title":"abc"
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"logo":"/assets/instagram.svg",
|
51
|
-
"url": "/",
|
52
|
-
"title":"abc"
|
53
|
-
|
54
|
-
},
|
55
|
-
{
|
56
|
-
"logo":"/assets/linkdin.svg",
|
57
|
-
"url": "/",
|
58
|
-
"title":"abc"
|
59
|
-
|
60
|
-
},
|
61
|
-
{
|
62
|
-
"logo":"/assets/twitter.svg",
|
63
|
-
"url": "/",
|
64
|
-
"title":"abc"
|
65
|
-
|
66
|
-
}
|
67
|
-
],
|
68
|
-
"messege": "© 2021 pdf AG — Made with love for the people of the internet."
|
69
|
-
}
|