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 +4 -4
- data/_includes/wordgames/search-box/search-box.html +3 -1
- data/assets/css/wordgames-home.css +2 -2
- data/assets/js/wordfinder.js +12 -4
- 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: 7859ebebf36acb74fcdacf52a408efb75ee3ec586f63a91192eea49eb431d8d8
|
4
|
+
data.tar.gz: 5d74bc2fac7a4b8f6fee1d98609650bcb1171ccc65eab09d47f2edb46894340a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
<
|
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
|
|
data/assets/js/wordfinder.js
CHANGED
@@ -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
|
+
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-
|
11
|
+
date: 2024-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|