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.
- checksums.yaml +4 -4
- data/_includes/section/wordGroup.html +7 -0
- data/_includes/word-game/word-game-generator-online.html +17 -1
- data/_includes/word-game/word-game-play.html +18 -4
- data/_includes/wordle-solver/wordle-solver.html +8 -4
- data/_layouts/page.html +5 -1
- data/assets/css/game.css +25 -1
- data/assets/css/wordGroup.css +4 -0
- data/assets/css/wordleSolver.css +18 -1
- data/assets/images/EMDI - Hurts Like This (feat. Veronica Bravo) [NCS Release].mp3 +0 -0
- data/assets/images/timer.svg +47 -0
- data/assets/js/X-letter-test.js +2 -0
- data/assets/js/createWordle.js +16 -0
- data/assets/js/game.js +57 -5
- data/assets/js/noRefreshAds.js +890 -0
- data/assets/js/wordScrabble-test.js +9 -4
- data/assets/js/wordScrabble.js +1 -1
- data/assets/js/wordleSolver.js +36 -22
- data/assets/js/words-starting-with.js +2 -0
- data/assets/js/xyz.js +1 -1
- metadata +5 -2
@@ -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
|
+
}
|
data/assets/js/wordScrabble.js
CHANGED
data/assets/js/wordleSolver.js
CHANGED
@@ -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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
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.
|
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-
|
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
|