word-games-theme 1.4.5 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1f74aff5fdf220427689b464a1be4bff940fb191cdb7038153a5a97b8dd2f95
4
- data.tar.gz: b627179dc0adb7b89592fdcb1d042abffe397faae5c330c0abc8a7bccbb12683
3
+ metadata.gz: 4a31e99d2af002ceff70735d18ca47b53685aa42b68966e65ed012fe5682405e
4
+ data.tar.gz: 5125fd2de9407b60ab682360db16e5d6095413bdaea7462065434c104ca63bc5
5
5
  SHA512:
6
- metadata.gz: 82e282adf10202588fb0358d62f13a1e0c8ace71e4cd1597ca569dfb40a3092c244cdf57d1e40a1ca0579603a581ab018f36c76a559949dbea2b089cd005da50
7
- data.tar.gz: 01a7782ba7fabbb9c429c6c6c89ca963005d8dbe1ad38fe0052677d26e750cdf724d6e93d3099fb1a4db2614e444120c3c350e50efbdaf5f5cd8dc89f0b91571
6
+ metadata.gz: 69cc24d7caaf3429fa3da6a5b1e36e499c9c4f703d24a4fd8cd50faf1d6ad0a41dbcd613ebfdb7ee0e433e67113f3ed481a4cc1b389566902f486f54537eb91f
7
+ data.tar.gz: 883d3b2927ceac65ac88e84a40ff89b1d35db0470ece474644414ab10bbc225fceea6763ddcf04e9c70cba73ad2d8714dbedde8caea50843717cdb1b640b6f3f
@@ -175,7 +175,6 @@
175
175
  {%- endif -%}
176
176
 
177
177
  {% include section/wordGroup.html %}
178
- {% include placeholder-loading.html %}
179
178
 
180
179
  </div>
181
180
  <!-- navbar close -->
@@ -32,9 +32,8 @@
32
32
  <i class="ltr-cls-btn bi bi-x-circle-fill"></i>
33
33
  </div>
34
34
  </div>
35
- <input style="border-radius: {{CustomColor.inputFieldBorder}};
36
- background-color: {{CustomColor.inputButtonBg}};" type="submit" class="serachBtn" id="serach"
37
- value="">
35
+ <input value="" style="border-radius: {{CustomColor.inputFieldBorder}};
36
+ background-color: {{CustomColor.inputButtonBg}};" type="submit" class="serachBtn" id="serach">
38
37
 
39
38
  <div class="dictonaryDropdown">
40
39
  <select class="form-select select_dropDown2" name="dictionary"
@@ -82,7 +82,11 @@
82
82
  if (x.matches) {
83
83
  txtBox.addEventListener("click", () => {
84
84
  const scrollingElement = (document.scrollingElement || document.body || document.documentElement);
85
- scrollingElement.scroll({ top: 200, behavior: 'smooth' });
85
+ scrollingElement.scroll({ top: 150, behavior: 'smooth' });
86
+
87
+ setTimeout(() => {
88
+ scrollingElement.scroll({ top: 150, behavior: 'smooth' });
89
+ }, 100);
86
90
  })
87
91
  } else {
88
92
  console.log("false");
data/_layouts/page.html CHANGED
@@ -77,7 +77,7 @@
77
77
 
78
78
  {%- if page.language -%}
79
79
  <script data-language="{{page.language}}" src="/assets/js/other-lang-wordScrabble.js" crossorigin></script>
80
- {%- elsif page.tool != 'words-that-start-with-the-letters' and page.noAdsRefresh != true-%}
80
+ {%- elsif page.tool != 'words-that-start-with-the-letters' -%}
81
81
  <script defer data-url="{{site.url}}" data-range="{{page.blanktilerange}}" src="/assets/js/wordScrabble-test.js
82
82
  "></script>
83
83
  {%- endif -%}
@@ -74,12 +74,11 @@ txtBox.addEventListener('input', (e) => {
74
74
  }
75
75
  })
76
76
 
77
- let placeholder_loading = document.querySelector(".placeholder_loading")
78
77
  function myFunction(x) {
79
78
  if (x.matches) {
80
79
  txtBox.addEventListener("click", () => {
81
80
  const scrollingElement = (document.scrollingElement || document.body || document.documentElement);
82
- scrollingElement.scroll({ top: 200, behavior: 'smooth' });
81
+ scrollingElement.scroll({ top: 150, behavior: 'smooth' });
83
82
  })
84
83
  } else {
85
84
  console.log("false");
@@ -128,7 +127,7 @@ const getDiff = (text1, text2) => {
128
127
  }
129
128
  const getData = async (serachValue) => {
130
129
  try {
131
- placeholder_loading.style.display = "none"
130
+ // placeholder_loading.style.display = "none"
132
131
  errorMsg.innerHTML = ""
133
132
  wordCount.innerHTML = ""
134
133
  home_page_search_result.innerHTML = ""
@@ -53,12 +53,15 @@ txtBox.focus()
53
53
  txtBox.value = serachValue
54
54
 
55
55
 
56
- let placeholder_loading = document.querySelector(".placeholder_loading")
57
56
  function myFunction(x) {
58
57
  if (x.matches) {
59
58
  txtBox.addEventListener("click", () => {
60
59
  const scrollingElement = (document.scrollingElement || document.body || document.documentElement);
61
- scrollingElement.scroll({ top: 200, behavior: 'smooth' });
60
+ scrollingElement.scroll({ top: 150, behavior: 'smooth' });
61
+
62
+ setTimeout(() => {
63
+ scrollingElement.scroll({ top: 150, behavior: 'smooth' });
64
+ }, 100);
62
65
  })
63
66
  } else {
64
67
  console.log("false");
@@ -138,7 +141,6 @@ const getDiff = (text1, text2) => {
138
141
  // getWords define...
139
142
  const getData = async (serachValue) => {
140
143
  try {
141
- placeholder_loading.style.display = "none"
142
144
  errorMsg.innerHTML = ""
143
145
  wordCount.innerHTML = ""
144
146
  let selectedDictionary = document.querySelector('.select_dropDown2').value
@@ -731,6 +733,7 @@ function addFilterCount() {
731
733
  }
732
734
  }
733
735
  addFilterCount()
736
+
734
737
  // handling of filter on scroll
735
738
  window.onscroll = function () {
736
739
  var section = document.querySelectorAll('.wordlistContainer')
@@ -745,7 +748,7 @@ window.onscroll = function () {
745
748
  var scrollPosition =
746
749
  document.documentElement.scrollTop || document.body.scrollTop
747
750
  for (i in new_sections) {
748
- var sort_val = "alpha";
751
+ let sort_val = document.querySelector('.sort-select').value
749
752
  if (
750
753
  i.split('_')[0] == sort_val &&
751
754
  new_sections[i] &&
@@ -759,30 +762,34 @@ window.onscroll = function () {
759
762
  }
760
763
  }
761
764
 
765
+
762
766
  // Add Filtering
763
- let sections = {}
767
+ let sections = {};
764
768
  function Filtering(id) {
765
- let tabs = document.getElementsByClassName('tab_link')
766
- tabs[0] ? tabs[0].classList.add('active-tab') : ''
769
+ let tabs = document.getElementsByClassName("tab_link");
770
+ tabs[0] ? tabs[0].classList.add("active-tab") : "";
767
771
 
768
772
  Array.from(tabs).map((item) => {
769
- item.classList.remove('active-tab')
770
- })
771
- main.innerHTML += ``
772
- let activeLetter = event.target
773
- activeLetter.classList.add('active-tab')
773
+ item.classList.remove("active-tab");
774
+ });
775
+ main.innerHTML += ``;
776
+ let activeLetter = event.target;
777
+ activeLetter.classList.add("active-tab");
774
778
 
775
- var section = document.querySelectorAll('.wordlistContainer')
779
+ var section = document.querySelectorAll(".allGroupWords");
776
780
  var sort_val = "alpha";
777
-
778
781
  Array.prototype.forEach.call(section, function (e) {
779
782
  if (document.body.clientWidth > 991) {
780
- sections[e.id] = e.offsetTop - 10
783
+ sections[e.id] = e.offsetTop - 10;
781
784
  } else {
782
- sections[e.id] = e.offsetTop - 10
785
+ sections[e.id] = e.offsetTop - 10;
783
786
  }
784
- })
785
- document.documentElement.scrollTop = sections[sort_val + '_' + id] + 5
787
+ });
788
+ document.documentElement.scrollTop = sections[sort_val + "_" + id] + 5;
789
+
790
+ setTimeout(() => {
791
+ document.documentElement.scrollTop = sections[sort_val + "_" + id] + 5;
792
+ }, 150);
786
793
  }
787
794
 
788
795
  // 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.5
4
+ version: 1.4.7
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-19 00:00:00.000000000 Z
11
+ date: 2022-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll