word-games-theme 1.2.7 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -146,6 +146,8 @@ if (lengthValue === '1') {
146
146
  } else {
147
147
  getData(serachValue.toLowerCase())
148
148
  function logSubmit(event) {
149
+ const scrollingElement = (document.scrollingElement || document.body);
150
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
149
151
  if (rangeOfBlankTile) {
150
152
  if (!txtBox.value.includes("?")) {
151
153
  txtBox.value = txtBox.value + quesMark.repeat(rangeOfBlankTile); //
@@ -752,9 +754,9 @@ function Filtering(id) {
752
754
  let activeLetter = event.target
753
755
  activeLetter.classList.add('active-tab')
754
756
 
755
-
756
757
  var section = document.querySelectorAll('.wordlistContainer')
757
758
  var sort_val = document.querySelector('.sort-select').value
759
+
758
760
  Array.prototype.forEach.call(section, function (e) {
759
761
  if (document.body.clientWidth > 991) {
760
762
  sections[e.id] = e.offsetTop - 10
@@ -762,7 +764,6 @@ function Filtering(id) {
762
764
  sections[e.id] = e.offsetTop - 10
763
765
  }
764
766
  })
765
-
766
767
  document.documentElement.scrollTop = sections[sort_val + '_' + id] + 5
767
768
  }
768
769
 
@@ -814,4 +815,4 @@ function findIndex(str, char) {
814
815
  }
815
816
 
816
817
  return indexes
817
- }
818
+ }
@@ -14,29 +14,32 @@ let newWordsLength = 0
14
14
 
15
15
  let errMessage = document.querySelector('.errMessage')
16
16
  let wrapper_div = document.querySelector('.wrapper_div')
17
- let addMore = document.querySelector('#addMore')
18
17
 
19
- addMore.addEventListener('click', (e) => {
20
- e.preventDefault()
21
- let div = document.createElement('div')
22
- div.classList.add('d-flex')
23
- div.classList.add('mt-2')
24
-
25
- for (let i = 20; i <= 24; i++) {
26
- let input = document.createElement('input')
27
- input.type = 'text'
28
- input.setAttribute('maxlength', '1')
29
- input.setAttribute('autocomplete', 'off')
30
- if (i <= 24) {
31
- input.setAttribute('tabIndex', i)
32
- }
33
- let classes = ['wordleSolver-field', 'greyLetters', 'form-control', 'px-5']
34
- input.classList.add(...classes)
35
- input.id = 'greyLetters'
36
- div.append(input)
37
- wrapper_div.append(div)
38
- }
39
- })
18
+
19
+
20
+ // let addMore = document.querySelector('#addMore')
21
+
22
+ // addMore.addEventListener('click', (e) => {
23
+ // e.preventDefault()
24
+ // let div = document.createElement('div')
25
+ // div.classList.add('d-flex')
26
+ // div.classList.add('mt-2')
27
+
28
+ // for (let i = 20; i <= 24; i++) {
29
+ // let input = document.createElement('input')
30
+ // input.type = 'text'
31
+ // input.setAttribute('maxlength', '1')
32
+ // input.setAttribute('autocomplete', 'off')
33
+ // if (i <= 24) {
34
+ // input.setAttribute('tabIndex', i)
35
+ // }
36
+ // let classes = ['wordleSolver-field', 'greyLetters', 'form-control', 'px-5']
37
+ // input.classList.add(...classes)
38
+ // input.id = 'greyLetters'
39
+ // div.append(input)
40
+ // wrapper_div.append(div)
41
+ // }
42
+ // })
40
43
 
41
44
  let spinner = document.querySelector('.spinner')
42
45
  const wordleSolver = async (value, value2, value3, greenWithIndex) => {
@@ -187,8 +190,14 @@ const getIndexs = (object) => {
187
190
  }
188
191
 
189
192
  function handleSubmit(e) {
193
+ document.querySelector(".refineSerach").style.display = "block"
190
194
  e.preventDefault()
191
195
 
196
+ let wordleSolverData = document.querySelector("#wordleSolverData")
197
+ const scrollingElement = (document.scrollingElement || document.body);
198
+
199
+ scrollingElement.scroll({ top: 515, behavior: 'smooth' });
200
+
192
201
  let greenLetter = getLetters('.greenLetters')
193
202
  let yellowLetters = getLetters('.yellowLetters')
194
203
  let greyLetters = getLetters('.greyLetters')
@@ -211,6 +220,11 @@ function handleSubmit(e) {
211
220
  // errMessage.style.display = 'block'
212
221
  // }
213
222
  }
223
+ document.querySelector(".refineSerach").addEventListener("click", () => {
224
+ const scrollingElement = (document.scrollingElement || document.body);
225
+
226
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
227
+ })
214
228
  form.addEventListener('submit', handleSubmit)
215
229
 
216
230
  // Scrabble Point Array
@@ -100,6 +100,8 @@ if (lengthValue === '1') {
100
100
  } else {
101
101
  getData(serachValue.toLowerCase())
102
102
  function logSubmit(event) {
103
+ const scrollingElement = (document.scrollingElement || document.body);
104
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
103
105
  let selectedDictionary = document.querySelector('.select_dropDown2').value
104
106
  event.preventDefault();
105
107
  if (history.pushState) {
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: 1.2.7
4
+ version: 1.3.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-04-23 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -217,6 +217,7 @@ files:
217
217
  - assets/images/Ankita.webp
218
218
  - assets/images/Anushka.webp
219
219
  - assets/images/Arjyahi.webp
220
+ - assets/images/EMDI - Hurts Like This (feat. Veronica Bravo) [NCS Release].mp3
220
221
  - assets/images/Nikita.webp
221
222
  - assets/images/abp.svg
222
223
  - assets/images/adblock.svg
@@ -287,6 +288,7 @@ files:
287
288
  - assets/js/createWordle.js
288
289
  - assets/js/game.js
289
290
  - assets/js/leftNav.js
291
+ - assets/js/noRefreshAds.js
290
292
  - assets/js/other-lang-wordScrabble.js
291
293
  - assets/js/scrabbleDictonary.js
292
294
  - assets/js/wordScrabble-test.js