word-games-theme 0.7.1 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
data/assets/css/home.css CHANGED
@@ -10,6 +10,12 @@
10
10
  background-size: cover;
11
11
  margin-bottom: 20vh;
12
12
  }
13
+ .pageHeading {
14
+ margin-bottom: 2rem;
15
+ }
16
+ .pageHeading > h1 {
17
+ font-size: 30px;
18
+ }
13
19
  .table {
14
20
  height: 5em;
15
21
  overflow: auto;
@@ -24,9 +30,17 @@ input:-webkit-autofill:focus,
24
30
  input:-webkit-autofill:active {
25
31
  transition: background-color 5000s ease-in-out 0s;
26
32
  }
27
-
33
+ .resultPageTxtBox,
34
+ .resultPageSearchBtn {
35
+ height: 50px !important;
36
+ }
37
+ .resultPageDropdown2 {
38
+ height: 49px !important;
39
+ padding: 0 !important;
40
+ }
28
41
  .txtBox {
29
- height: 60px;
42
+ /* text-transform: uppercase; */
43
+ height: 70px;
30
44
  border-radius: 8px;
31
45
  border: solid 1px rgba(0, 0, 0, 0.1);
32
46
  background: #fff;
@@ -39,12 +53,15 @@ input:-webkit-autofill:active {
39
53
  color: var(--txtColor);
40
54
  text-indent: 15px;
41
55
  outline: none;
56
+ position: relative;
42
57
  }
58
+ /* ravi */
43
59
  .txtBox::placeholder {
44
60
  /* Chrome, Firefox, Opera, Safari 10.1+ */
45
61
  color: var(--txtColor);
46
62
  opacity: 0.5; /* Firefox */
47
63
  font-weight: 500 !important;
64
+ text-transform: capitalize;
48
65
  }
49
66
 
50
67
  .txtBox::-ms-input-placeholder {
@@ -63,7 +80,7 @@ input:-webkit-autofill:active {
63
80
  .serachBtn {
64
81
  background: url(../images/search.svg) no-repeat center center;
65
82
  background-size: 35px 35px;
66
- height: 59px;
83
+ height: 70px;
67
84
  width: 59px;
68
85
  border: none;
69
86
  position: absolute;
@@ -121,10 +138,11 @@ input:-webkit-autofill:active {
121
138
  outline: none;
122
139
  }
123
140
  .select_dropDown2 {
141
+ height: 69px;
124
142
  position: absolute;
125
143
  top: 0px;
126
144
  font-size: 15px;
127
- width: 156px;
145
+ width: 142px;
128
146
  overflow: hidden;
129
147
  object-fit: cover;
130
148
  right: 69px;
@@ -177,7 +195,7 @@ input:-webkit-autofill:active {
177
195
  }
178
196
  .active {
179
197
  z-index: 999;
180
- top: 122px;
198
+ top: 90px;
181
199
  background: #fff;
182
200
  box-shadow: 0 0 5px rgb(0 0 0 / 40%);
183
201
  padding: 15px 15px;
@@ -201,6 +219,7 @@ input:-webkit-autofill:active {
201
219
 
202
220
  #containerWd {
203
221
  width: 700px !important;
222
+ padding: 0px;
204
223
  }
205
224
  @media (max-width: 768px) {
206
225
  .wrapper_dropDown {
@@ -208,16 +227,17 @@ input:-webkit-autofill:active {
208
227
  flex-direction: column;
209
228
  }
210
229
  .txtBox {
211
- height: 40px !important;
230
+ height: 50px !important;
212
231
  }
213
232
  .serachBtn {
214
- height: 40px !important;
233
+ height: 50px !important;
215
234
  width: 40px !important;
216
235
  }
217
236
  .advancedFilter .filterButton {
218
237
  top: 60px;
219
238
  }
220
239
  .select_dropDown2 {
240
+ height: 50px;
221
241
  width: 30%;
222
242
  right: 40px;
223
243
  padding: 9.5px 0;
@@ -235,10 +255,12 @@ input:-webkit-autofill:active {
235
255
  z-index: 99;
236
256
  }
237
257
  .pageHeading h1 {
238
- font-size: 2.5rem;
258
+ font-size: 2rem;
259
+ padding-top: 3rem;
239
260
  }
240
261
  #containerWd {
241
262
  width: 100% !important;
263
+ padding: 0px 15px;
242
264
  }
243
265
  .active {
244
266
  top: 102px;
data/assets/css/style.css CHANGED
@@ -1,8 +1,10 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
1
2
  /* styling........ */
2
3
  * {
3
4
  margin: 0;
4
5
  padding: 0;
5
6
  box-sizing: border-box;
7
+ font-family: 'Poppins', sans-serif !important;
6
8
  }
7
9
  :root {
8
10
  --txtColor: #000;
@@ -41,6 +43,7 @@ header {
41
43
  font-size: 2.2rem;
42
44
  color: var(--txtColor) !important;
43
45
  font-weight: 900;
46
+ position: relative;
44
47
  }
45
48
  .navbar-dark .navbar-toggler {
46
49
  outline: none !important;
@@ -57,6 +57,6 @@
57
57
  font-size: 1.4rem;
58
58
  }
59
59
  .pad {
60
- padding-top: 70px !important;
60
+ padding-top: 50px !important;
61
61
  }
62
62
  }
@@ -11,7 +11,9 @@
11
11
  }
12
12
  .forms_data {
13
13
  border: 1px solid rgba(0, 0, 0, 0.1);
14
- padding: 25px;
14
+ padding: 0px 25px;
15
+ padding-top: 15px;
16
+ text-align: center;
15
17
  }
16
18
  .wordleSolver_headings {
17
19
  margin-top: 110px;
@@ -23,8 +25,8 @@
23
25
  font-size: 30px;
24
26
  text-transform: uppercase;
25
27
  text-align: center;
26
- width: 55px;
27
- height: 55px;
28
+ width: 48px;
29
+ height: 48px;
28
30
  line-height: 55px;
29
31
  font-weight: bold;
30
32
  border: 1px solid rgba(0, 0, 0, 0.1);
@@ -53,6 +55,7 @@
53
55
  border-color: #6aaa64;
54
56
  color: #fff;
55
57
  border-radius: 5px;
58
+ width: 100px;
56
59
  font-weight: 900;
57
60
  }
58
61
  .wordlesolver-btn:focus {
@@ -70,10 +73,11 @@
70
73
 
71
74
  .allfiveletterswords {
72
75
  background-color: white !important;
73
- width: auto;
76
+ width: 75%;
77
+ margin: 10px auto;
74
78
  height: auto;
75
79
  box-shadow: 0 0 2px rgb(0 0 0 / 20%);
76
- margin: 10px 0;
80
+ /* margin: 10px 0; */
77
81
  border-radius: 15px;
78
82
  }
79
83
  .allfiveletterswords > .wordListHeading {
@@ -86,6 +90,8 @@
86
90
 
87
91
  #wordleWordCount {
88
92
  font-size: 18px;
93
+ width: 75%;
94
+ margin: 10px auto;
89
95
  }
90
96
 
91
97
  .ws-fcs {
@@ -101,3 +107,28 @@
101
107
  color: #fff !important;
102
108
  background-color: #787c7e !important;
103
109
  }
110
+ .related_post_heading {
111
+ width: 100%;
112
+ font-size: 46px;
113
+ text-align: center;
114
+ font-weight: 800;
115
+ font-stretch: normal;
116
+ font-style: normal;
117
+ line-height: 1.24;
118
+ letter-spacing: normal;
119
+ color: #11304e;
120
+ margin-bottom: 45px;
121
+ padding-top: 75px;
122
+ display: inline-block;
123
+ }
124
+
125
+ #wordleSolvererrorMsg {
126
+ margin: 10px auto;
127
+ width: 75%;
128
+ }
129
+ @media (max-width: 768px) {
130
+ .allfiveletterswords,
131
+ #wordleWordCount {
132
+ width: 80%;
133
+ }
134
+ }
@@ -17,9 +17,11 @@ let includeValue = params.get('include')
17
17
  let lengthValue = params.get('length')
18
18
  let dictonary = params.get('dictionary')
19
19
 
20
- let tab_container = document.querySelector('.tab_container')
20
+ let tab_link_wrapper = document.querySelector('.tab_link_wrapper')
21
+ tab_link_wrapper.style.display = "none"
21
22
 
22
23
  let txtBox = document.querySelector('.txtBox')
24
+ txtBox.focus()
23
25
  txtBox.value = serachValue
24
26
 
25
27
  var theSelect = document.getElementById('select_dropDown')
@@ -46,7 +48,7 @@ getData(serachValue.toLowerCase())
46
48
  function x_with_letters(data) {
47
49
  if (typeof data === 'string') {
48
50
  errorMsg.innerHTML = 'No words found'
49
- wordCount.innerHTML = `<strong> 0 words with letters ${serachValue.split(
51
+ wordCount.innerHTML = `<strong>Found 0 words with letters ${serachValue.split(
50
52
  ''
51
53
  )}</strong>`
52
54
  } else {
@@ -158,21 +160,21 @@ function x_with_letters(data) {
158
160
  sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
159
161
  }
160
162
  wordLength.value = itemLength
161
- return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item}">
163
+ return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item}">
162
164
  <li>${item}
163
165
  <span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
164
166
  </li></a>`
165
167
  })
166
168
 
167
- tab_container.innerHTML += `
168
- <a href="#${itemLength}">
169
- <input type="button" value="${itemLength} Letter" id="Tab${itemLength}" onclick="addFilter(${itemLength})"
170
- class="tab_link">
171
- </a>
172
- `
169
+ // tab_container.innerHTML += `
170
+ // <a href="#${itemLength}">
171
+ // <input type="button" value="${itemLength} Letter" id="Tab${itemLength}" onclick="addFilter(${itemLength})"
172
+ // class="tab_link">
173
+ // </a>
174
+ // `
173
175
 
174
- let tabs = document.getElementsByClassName('tab_link')
175
- tabs[0] ? tabs[0].classList.add('active-tab') : ''
176
+ // let tabs = document.getElementsByClassName('tab_link')
177
+ // tabs[0] ? tabs[0].classList.add('active-tab') : ''
176
178
 
177
179
  main.innerHTML += `
178
180
  <div class="allGroupWords">
@@ -187,7 +189,7 @@ function x_with_letters(data) {
187
189
  </div>
188
190
  `
189
191
  }
190
- wordCount.innerHTML = `<strong>${newWordsLength} words with letters ${serachValue.split(
192
+ wordCount.innerHTML = `<strong>Found ${newWordsLength} words with letters with ${serachValue.split(
191
193
  ''
192
194
  )}</strong>`
193
195
  }
@@ -328,18 +330,18 @@ function sortby(sortBool, data, i) {
328
330
  }
329
331
 
330
332
  // Implement Active class
331
- const addFilter = () => {
332
- let tabs = document.getElementsByClassName('tab_link')
333
- tabs[0] ? tabs[0].classList.add('active-tab') : ''
334
-
335
- Array.from(tabs).map((item) => {
336
- item.classList.remove('active-tab')
337
- })
338
- main.innerHTML += ``
339
- let activeLetter = event.target
340
- // console.log(activeLetter)
341
- activeLetter.classList.add('active-tab')
342
- }
333
+ // const addFilter = () => {
334
+ // let tabs = document.getElementsByClassName('tab_link')
335
+ // tabs[0] ? tabs[0].classList.add('active-tab') : ''
336
+
337
+ // Array.from(tabs).map((item) => {
338
+ // item.classList.remove('active-tab')
339
+ // })
340
+ // main.innerHTML += ``
341
+ // let activeLetter = event.target
342
+ // // console.log(activeLetter)
343
+ // activeLetter.classList.add('active-tab')
344
+ // }
343
345
 
344
346
  // Scrabble Point Counts
345
347
  const ScrabbleScore = () => {
@@ -37,6 +37,7 @@ var sortValue
37
37
  var sortBool = false
38
38
 
39
39
  let txtBox = document.querySelector('.txtBox')
40
+ txtBox.focus()
40
41
  txtBox.value = serachValue
41
42
  txtBox.addEventListener('input', (e) => {
42
43
  let rangeOfBlankTile = script.dataset.range
@@ -105,7 +106,7 @@ if (lengthValue === '1') {
105
106
  function getWords(data) {
106
107
  if (typeof data === 'string') {
107
108
  errorMsg.innerHTML = 'no words found'
108
- wordCount.innerHTML = `<strong> 0 words with letters ${serachValue.split(
109
+ wordCount.innerHTML = `<strong>Found 0 words with letters ${serachValue.split(
109
110
  ''
110
111
  )}</strong>`
111
112
  } else {
@@ -240,7 +241,7 @@ function getWords(data) {
240
241
  for (let i = 0; i < item.length; i++) {
241
242
  sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
242
243
  }
243
- return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
244
+ return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
244
245
  <li>${itemHtml}
245
246
  <span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
246
247
  </li></a>`
@@ -273,7 +274,7 @@ function getWords(data) {
273
274
  if (newWordsLength === 0) {
274
275
  errorMsg.innerHTML = 'no words found'
275
276
  } else {
276
- wordCount.innerHTML = `<strong>${newWordsLength} words with letters ${serachValue.split(
277
+ wordCount.innerHTML = `<strong>Found ${newWordsLength} words with letters with ${serachValue.split(
277
278
  ''
278
279
  )}</strong>`
279
280
  }
@@ -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('#greenLetters')
6
- let yellowLetters = document.querySelectorAll('#yellowLetters')
7
- let greyLetters = document.querySelectorAll('#greyLetters')
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 python in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
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">All 5 Letter Words</h3>
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} Results</strong>`
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.1
4
+ version: 0.7.5
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-18 00:00:00.000000000 Z
11
+ date: 2022-01-28 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
@@ -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
- }