word-games-theme 1.2.6 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ const getScript = document.currentScript
5
5
  let form = document.querySelector('#form')
6
6
  let wordCount = document.querySelector('.wordCount')
7
7
  let main = document.querySelector('.main')
8
+ // let loader = document.querySelector(".main-loader")
8
9
  let errorMsg = document.querySelector('.errorMsg')
9
10
  let script = document.currentScript
10
11
 
@@ -145,6 +146,8 @@ if (lengthValue === '1') {
145
146
  } else {
146
147
  getData(serachValue.toLowerCase())
147
148
  function logSubmit(event) {
149
+ const scrollingElement = (document.scrollingElement || document.body);
150
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
148
151
  if (rangeOfBlankTile) {
149
152
  if (!txtBox.value.includes("?")) {
150
153
  txtBox.value = txtBox.value + quesMark.repeat(rangeOfBlankTile); //
@@ -359,6 +362,8 @@ function getWords(data) {
359
362
  `
360
363
  let tabs = document.getElementsByClassName('tab_link')
361
364
  tabs[0] ? tabs[0].classList.add('active-tab') : ''
365
+
366
+
362
367
  main.innerHTML += `
363
368
  <div class="allGroupWords wordlistContainer" id="alpha_${i}">
364
369
  <div class="wordListHeading">
@@ -371,6 +376,7 @@ function getWords(data) {
371
376
  </div>
372
377
  </div>
373
378
  `
379
+
374
380
  }
375
381
  }
376
382
  }
@@ -748,9 +754,9 @@ function Filtering(id) {
748
754
  let activeLetter = event.target
749
755
  activeLetter.classList.add('active-tab')
750
756
 
751
-
752
757
  var section = document.querySelectorAll('.wordlistContainer')
753
758
  var sort_val = document.querySelector('.sort-select').value
759
+
754
760
  Array.prototype.forEach.call(section, function (e) {
755
761
  if (document.body.clientWidth > 991) {
756
762
  sections[e.id] = e.offsetTop - 10
@@ -758,8 +764,7 @@ function Filtering(id) {
758
764
  sections[e.id] = e.offsetTop - 10
759
765
  }
760
766
  })
761
-
762
- document.body.scrollTop = sections[sort_val + '_' + id] + 5
767
+ document.documentElement.scrollTop = sections[sort_val + '_' + id] + 5
763
768
  }
764
769
 
765
770
  // next && previous functionality
@@ -810,4 +815,4 @@ function findIndex(str, char) {
810
815
  }
811
816
 
812
817
  return indexes
813
- }
818
+ }
@@ -697,7 +697,7 @@ function Filtering(id) {
697
697
  }
698
698
  })
699
699
 
700
- document.body.scrollTop = sections[sort_val + '_' + id] + 5
700
+ document.documentElement.scrollTop = sections[sort_val + '_' + id] + 5
701
701
  }
702
702
 
703
703
  // next && previous functionality
@@ -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) {
data/assets/js/xyz.js CHANGED
@@ -59,7 +59,7 @@ function filterLinks(id) {
59
59
  }
60
60
  })
61
61
 
62
- document.body.scrollTop = sections[sort_val + '_' + id] + 5
62
+ document.documentElement.scrollTop = sections[sort_val + '_' + id] + 5
63
63
  }
64
64
 
65
65
  // next && previous functionality
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.6
4
+ version: 1.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: 2022-04-21 00:00:00.000000000 Z
11
+ date: 2022-05-12 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
@@ -262,6 +263,7 @@ files:
262
263
  - assets/images/star.png
263
264
  - assets/images/star.svg
264
265
  - assets/images/test.png
266
+ - assets/images/timer.svg
265
267
  - assets/images/twitter-square.svg
266
268
  - assets/images/twitter.svg
267
269
  - assets/images/twitter2.svg
@@ -286,6 +288,7 @@ files:
286
288
  - assets/js/createWordle.js
287
289
  - assets/js/game.js
288
290
  - assets/js/leftNav.js
291
+ - assets/js/noRefreshAds.js
289
292
  - assets/js/other-lang-wordScrabble.js
290
293
  - assets/js/scrabbleDictonary.js
291
294
  - assets/js/wordScrabble-test.js