word-games-theme 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/page2.html +1 -1
- data/assets/css/home.css +1 -1
- data/assets/js/X-letter.js +9 -28
- 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: 91f38cd796c14426590d0dc108f0921d9c0dc39643699296e752dbd3c06b692e
|
4
|
+
data.tar.gz: 43ac03ec85f3b26a7f1b2fe49facdcfcdb794f3ec045234d78bd7d6f03218dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02f73c0acae6290d166309a05033502939839536dc5114d3707ab4df35639203c5fe6d1f18c71aebae09464e307045cb2c60cce2e571311cf5bba67788571e0b
|
7
|
+
data.tar.gz: a3f83e7746743e0d4ae6b26bdf6e389b73068a2bf2cd79ce0f404a8ea3d3610c8eb48e3f2493927262972543d6e77e8af6b15afb8031a0713a59c4e1090766c7
|
data/_layouts/page2.html
CHANGED
@@ -53,7 +53,7 @@
|
|
53
53
|
{%- include footer/index.html -%}
|
54
54
|
|
55
55
|
|
56
|
-
<script src="/assets/js/X-letter.js"></script>
|
56
|
+
<script src="/assets/js/X-letter.js" data-letter="{{page.letter}}"></script>
|
57
57
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
58
58
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
|
59
59
|
</body>
|
data/assets/css/home.css
CHANGED
data/assets/js/X-letter.js
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
const getScript=document.currentScript
|
4
|
+
const letterLen = getScript.dataset.letter
|
5
|
+
|
1
6
|
let errorMsg = document.querySelector('.errorMsg')
|
2
7
|
let wordCount = document.querySelector('.wordCount')
|
3
8
|
let main = document.querySelector('.main')
|
@@ -46,35 +51,11 @@ function x_with_letters(data) {
|
|
46
51
|
let newWordsLength = 0
|
47
52
|
let filterData = ''
|
48
53
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
window.location.pathname == '/twelve-letter-word-finder/result'
|
53
|
-
) {
|
54
|
-
filterData = data.filter((item) => item.length == 12)
|
55
|
-
} else if (
|
56
|
-
window.location.pathname == '/eleven-letter-word-finder/result'
|
57
|
-
) {
|
58
|
-
filterData = data.filter((item) => item.length == 11)
|
59
|
-
} else if (window.location.pathname == '/ten-letter-word-finder/result') {
|
60
|
-
filterData = data.filter((item) => item.length == 10)
|
61
|
-
} else if (window.location.pathname == '/nine-letter-word-finder/result') {
|
62
|
-
filterData = data.filter((item) => item.length == 9)
|
63
|
-
} else if (window.location.pathname == '/eight-letter-word-finder/result') {
|
64
|
-
filterData = data.filter((item) => item.length == 8)
|
65
|
-
} else if (window.location.pathname == '/seven-letter-word-finder/result') {
|
66
|
-
filterData = data.filter((item) => item.length == 7)
|
67
|
-
} else if (window.location.pathname == '/six-letter-word-finder/result') {
|
68
|
-
filterData = data.filter((item) => item.length == 6)
|
69
|
-
} else if (window.location.pathname == '/five-letter-word-finder/result') {
|
70
|
-
filterData = data.filter((item) => item.length == 5)
|
71
|
-
} else if (window.location.pathname == '/four-letter-word-finder/result') {
|
72
|
-
filterData = data.filter((item) => item.length == 4)
|
73
|
-
} else if (window.location.pathname == '/three-letter-word-finder/result') {
|
74
|
-
filterData = data.filter((item) => item.length == 3)
|
75
|
-
} else if (window.location.pathname == '/two-letter-word-finder/result') {
|
76
|
-
filterData = data.filter((item) => item.length == 2)
|
54
|
+
|
55
|
+
if (letterLen) {
|
56
|
+
filterData = data.filter((item) => item.length == letterLen)
|
77
57
|
}
|
58
|
+
|
78
59
|
|
79
60
|
if (prefixValue) {
|
80
61
|
filterData = filterData.filter((item2) =>
|