word-games-theme 1.4.5 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/js/wordScrabble-test.js +20 -15
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e4378b03b1feda98855bdd1e8698da9cb06441e109b4c1d3d3187df3eba4ff0
|
|
4
|
+
data.tar.gz: fa8041634cdf6f5e23dd80c2bbda9fb4f380cbc61e663f6f7c22b6ee716e14d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b94a3728d3f9b7dafe3e4088eb4092be444a8a0644880729dc6f49c0c65ed20a92c68a6f3e6155d124b40f2f00776ff5db56d140513488e75ec8bbeda7fb9b8f
|
|
7
|
+
data.tar.gz: d5b652984b9c71bb0eea66944a412f0c51b4023030d1a7ea7b6a551ceb0b70b4d38a4033b7f7c2a8d06290b0fb97c4645aa9031b391ce61307f3e4d56fcc6576
|
|
@@ -731,6 +731,7 @@ function addFilterCount() {
|
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
733
|
addFilterCount()
|
|
734
|
+
|
|
734
735
|
// handling of filter on scroll
|
|
735
736
|
window.onscroll = function () {
|
|
736
737
|
var section = document.querySelectorAll('.wordlistContainer')
|
|
@@ -745,7 +746,7 @@ window.onscroll = function () {
|
|
|
745
746
|
var scrollPosition =
|
|
746
747
|
document.documentElement.scrollTop || document.body.scrollTop
|
|
747
748
|
for (i in new_sections) {
|
|
748
|
-
|
|
749
|
+
let sort_val = document.querySelector('.sort-select').value
|
|
749
750
|
if (
|
|
750
751
|
i.split('_')[0] == sort_val &&
|
|
751
752
|
new_sections[i] &&
|
|
@@ -759,30 +760,34 @@ window.onscroll = function () {
|
|
|
759
760
|
}
|
|
760
761
|
}
|
|
761
762
|
|
|
763
|
+
|
|
762
764
|
// Add Filtering
|
|
763
|
-
let sections = {}
|
|
765
|
+
let sections = {};
|
|
764
766
|
function Filtering(id) {
|
|
765
|
-
let tabs = document.getElementsByClassName(
|
|
766
|
-
tabs[0] ? tabs[0].classList.add(
|
|
767
|
+
let tabs = document.getElementsByClassName("tab_link");
|
|
768
|
+
tabs[0] ? tabs[0].classList.add("active-tab") : "";
|
|
767
769
|
|
|
768
770
|
Array.from(tabs).map((item) => {
|
|
769
|
-
item.classList.remove(
|
|
770
|
-
})
|
|
771
|
-
main.innerHTML +=
|
|
772
|
-
let activeLetter = event.target
|
|
773
|
-
activeLetter.classList.add(
|
|
771
|
+
item.classList.remove("active-tab");
|
|
772
|
+
});
|
|
773
|
+
main.innerHTML += ``;
|
|
774
|
+
let activeLetter = event.target;
|
|
775
|
+
activeLetter.classList.add("active-tab");
|
|
774
776
|
|
|
775
|
-
var section = document.querySelectorAll(
|
|
777
|
+
var section = document.querySelectorAll(".allGroupWords");
|
|
776
778
|
var sort_val = "alpha";
|
|
777
|
-
|
|
778
779
|
Array.prototype.forEach.call(section, function (e) {
|
|
779
780
|
if (document.body.clientWidth > 991) {
|
|
780
|
-
sections[e.id] = e.offsetTop - 10
|
|
781
|
+
sections[e.id] = e.offsetTop - 10;
|
|
781
782
|
} else {
|
|
782
|
-
sections[e.id] = e.offsetTop - 10
|
|
783
|
+
sections[e.id] = e.offsetTop - 10;
|
|
783
784
|
}
|
|
784
|
-
})
|
|
785
|
-
document.documentElement.scrollTop = sections[sort_val +
|
|
785
|
+
});
|
|
786
|
+
document.documentElement.scrollTop = sections[sort_val + "_" + id] + 5;
|
|
787
|
+
|
|
788
|
+
setTimeout(() => {
|
|
789
|
+
document.documentElement.scrollTop = sections[sort_val + "_" + id] + 5;
|
|
790
|
+
}, 200);
|
|
786
791
|
}
|
|
787
792
|
|
|
788
793
|
// 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.4.
|
|
4
|
+
version: 1.4.6
|
|
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-09-
|
|
11
|
+
date: 2022-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|