word-games-theme 0.1.8 → 0.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3976dad51e5e74120be8b6e1bcf4b51fb3e23afb25de567f718f1f58d2839ed9
4
- data.tar.gz: 398941a0a09418f72b4fd57f9ab25d9441db1c04aeca76a04d0bbfd1a6394332
3
+ metadata.gz: 91f38cd796c14426590d0dc108f0921d9c0dc39643699296e752dbd3c06b692e
4
+ data.tar.gz: 43ac03ec85f3b26a7f1b2fe49facdcfcdb794f3ec045234d78bd7d6f03218dd4
5
5
  SHA512:
6
- metadata.gz: d9d27ac4af67cf3156fcc97e9f70f44c6e011b4c1a3efd2f65dce2166bb025856875eaa51278ac1cce9bba3feba7d670d32a7525207cf71927c40fa67b7d6cea
7
- data.tar.gz: 7beb03979c8a65c8e654245e90886b79c9c58b199a25017f5cdca4d9e5797201280499c97e0522bcaf94d5a8cc3949c36cd10e8791af0a89c9611af355027d0a
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
@@ -97,7 +97,7 @@ input:-webkit-autofill:active {
97
97
  right: 9px;
98
98
  margin: -3px 0;
99
99
  cursor: pointer;
100
- z-index: 9999;
100
+ /* z-index: 9999; */
101
101
  }
102
102
  #select_dropDown {
103
103
  background: #f8f9fa;
@@ -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
- if (window.location.pathname == '/thirteen-letter-word-finder/result') {
50
- filterData = data.filter((item) => item.length == 13)
51
- } else if (
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) =>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word-games-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms