word-games-theme 2.5.4 → 2.5.5
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/wordfinder-home.js +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9dfb0ef73b39f27d54a383d3e8bcd2c1b2ba3c56a703939b5777741e32fa3c07
|
|
4
|
+
data.tar.gz: 4716ac1c8a0b3e91d1b7e22b0d66d69d916942fced5cb8ad9520ee286d843595
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9605cbc5465ad358d9dad94b559b636801dc5cc5f9d03b928c227178f59741f5e7c6e0f990e99e95fd301b6b540edc98691521350d1f1e69e38a8d604644ebfe
|
|
7
|
+
data.tar.gz: ea1c8aea7c2a1140023a65ba24d73c816db084f65279e8c8ee4f45ea89d3ad5a3045b84e68821cd38e77800fe09fdb6e26708dc2d6141c82874de461fdc18702
|
|
@@ -8,6 +8,9 @@ let exculdeWith = document.getElementById("exculdeWith");
|
|
|
8
8
|
let inculdeWith = document.getElementById("inculdeWith");
|
|
9
9
|
let wordLength = document.getElementById("wordLength");
|
|
10
10
|
|
|
11
|
+
const serachSection = document.querySelector(".serachSection");
|
|
12
|
+
let rangeOfBlankTile = serachSection.dataset.range;
|
|
13
|
+
|
|
11
14
|
// // when typing on input
|
|
12
15
|
txtBox.addEventListener('input', (e) => {
|
|
13
16
|
if (e.target.value === "") {
|
|
@@ -114,6 +117,13 @@ const loadResource = (FILE_URL, data = {}, async = true, type = "text/javascript
|
|
|
114
117
|
const formElement = document.querySelector("#form");
|
|
115
118
|
formElement.addEventListener("submit", function (e) {
|
|
116
119
|
e.preventDefault();
|
|
120
|
+
let quesMark = "?";
|
|
121
|
+
if (rangeOfBlankTile) {
|
|
122
|
+
if (!txtBox.value.includes("?")) {
|
|
123
|
+
txtBox.value = txtBox.value + quesMark.repeat(rangeOfBlankTile); //
|
|
124
|
+
txtBox.value = txtBox.value;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
117
127
|
|
|
118
128
|
document.querySelector(".fillterWrapper").classList.add("hide")
|
|
119
129
|
let selectedDictionary = document.querySelector(".select_dropDown2").value;
|