word-games-theme 2.7.4 → 2.7.6

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: c5dcf51effe8c8b89666e41f8a387a79898e3a9ad90cf90cfbee626ba1a90250
4
- data.tar.gz: 42f9455e91e702a63d53529a4189d4ea3b1825b075bd970f42b89c61918b2cab
3
+ metadata.gz: 7859ebebf36acb74fcdacf52a408efb75ee3ec586f63a91192eea49eb431d8d8
4
+ data.tar.gz: 5d74bc2fac7a4b8f6fee1d98609650bcb1171ccc65eab09d47f2edb46894340a
5
5
  SHA512:
6
- metadata.gz: 4613519eefd5d8514e6af9a8e66b97052599a19b2a2d2b26f80065e5dfb98395cc63125f0ef3990cab8c07fb993dc6ba36d6be28621a9c510d72964e422ecffc
7
- data.tar.gz: 3459327044b4cca4e137a1c1ff67a08b4a260640f4cc858d292d5110207aacc9e7857d4119e3b6c3197ba9579c858200712cfb101b3319a1f7234fe2bd290e52
6
+ metadata.gz: 98a1de7dc7bb94375485402a049520c17328120205bae7cb4d66518e5d7a838bfffd81d5d30feb12172c51a404a7465f662b2fb8894fc5b9659716f527664f81
7
+ data.tar.gz: a32fa98e4a6087c3ca13aa256a37bea5c5adfbdeca1e1b0e33e780ff262565905cbb50de189edb6a9d795e166087fb4f9e4ff10be1b1a3fbf181ee4485b33805
@@ -14,7 +14,9 @@
14
14
  <img width="40px" height="40px" src="/assets/images/close-button.svg" alt="close-btn">
15
15
  </div>
16
16
  </div>
17
- <input style="background-color: {{CustomColor.inputButtonBg}};" type="submit" class="serachBtn" id="serach">
17
+ <div class="search-btn-container">
18
+ <input style="background-color: {{CustomColor.inputButtonBg}};" type="submit" class="serachBtn" id="serach">
19
+ </div>
18
20
  <div class="dictonaryDropdown">
19
21
  <select class="form-select select_dropDown2" name="dictionary" aria-label="Default select example">
20
22
  <option value="Dictionary">Dictionary</option>
@@ -131,7 +131,7 @@ input[type="number"] {
131
131
  color: transparent;
132
132
  background-color: var(--primary-color) !important;
133
133
  background: url(/assets/images/search.svg) no-repeat center center;
134
- background-size: 35px 35px;
134
+ background-size: 35px 35px !important;
135
135
  height: 64px;
136
136
  width: 112px;
137
137
  border: none;
@@ -910,7 +910,7 @@ summary::-webkit-details-marker {
910
910
  height: 50px !important;
911
911
  width: 50px !important;
912
912
  top: 10px;
913
- background-size: 20px 20px;
913
+ background-size: 20px 20px !important;
914
914
  right: 24px;
915
915
  }
916
916
 
@@ -72,6 +72,8 @@ const getDiff = (text1, text2) => {
72
72
  };
73
73
 
74
74
  let authorsLists = document.querySelector(".authors-list")
75
+ let serachBtn = document.querySelector(".serachBtn")
76
+ let searchBtnContainer = document.querySelector(".search-btn-container")
75
77
 
76
78
  // getWords define...
77
79
  const getData = async (serachValue) => {
@@ -97,6 +99,9 @@ const getData = async (serachValue) => {
97
99
  errorMsg.innerHTML = "";
98
100
  wordCount.innerHTML = "";
99
101
  let selectedDictionary = document.querySelector(".select_dropDown2").value;
102
+
103
+ serachBtn.style.background = 'url(/assets/images/spinner.gif) no-repeat center center';
104
+
100
105
  main.innerHTML = `<main class="placeholder-loader">
101
106
  <ul class="o-vertical-spacing o-vertical-spacing--l">
102
107
  <li class="blog-post o-media">
@@ -126,15 +131,21 @@ const getData = async (serachValue) => {
126
131
  </ul>
127
132
  </main>`;
128
133
  /// loader
134
+
135
+ const startTime = performance.now();
129
136
  let response
130
137
  if (serachValue) {
131
138
  response = await fetch(`/.netlify/functions/getWords?name=${serachValue}&selecteddictionary=${selectedDictionary}`);
132
139
  } else {
133
140
  response = await fetch(`/.netlify/functions/getData?&selecteddictionary=${selectedDictionary}`)
134
141
  }
142
+ const endTime = performance.now();
143
+ const duration = endTime - startTime;
144
+ console.log(`API response time: ${duration} milliseconds`);
135
145
 
136
146
  const data = await response.json();
137
147
  main.innerHTML = "";
148
+ serachBtn.style.background = 'url(/assets/images/search.svg) no-repeat center center';
138
149
  getWords(data);
139
150
  //getWords calling...
140
151
  } catch (error) {
@@ -145,11 +156,8 @@ const getData = async (serachValue) => {
145
156
  if (lengthValue === "1") {
146
157
  errorMsg.innerHTML = "words length should be more than 1";
147
158
  } else {
148
- getData(serachValue.toLowerCase());
149
159
  function logSubmit(event) {
150
160
  document.querySelector(".fillterWrapper").classList.add("hide")
151
-
152
-
153
161
  const scrollingElement = document.scrollingElement || document.body;
154
162
  scrollingElement.scroll({ top: 0, behavior: "smooth" });
155
163
  // if (rangeOfBlankTile) {
@@ -235,7 +243,7 @@ let data_index = 25;
235
243
  function getWords(data) {
236
244
  data_index = 25
237
245
  moreData = []
238
- storepreviousIndex =[]
246
+ storepreviousIndex = []
239
247
  main.innerHTML = "";
240
248
  lengthSelect.innerHTML = ""
241
249
  document.querySelector(".sortingFilters").style.display = "flex"
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: 2.7.4
4
+ version: 2.7.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: 2024-04-16 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll