word-games-theme 3.1.7 → 3.1.9

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: 7fa2406055437122d81742761683b7db80529e7f9d184938d7092013abd50dc5
4
- data.tar.gz: 67415bbf7fc661a25fa34160efcf755ec0ce21fccd70edb3fac7451418479b0f
3
+ metadata.gz: f9f938394f0109c43b6fc08a5b6cdef3216dae44ba3d8c462ad037dc43f5fdcf
4
+ data.tar.gz: 37a8a78700dd92a4dc72f48aea9213d2234222e2257bc0fc465767c006ed85a9
5
5
  SHA512:
6
- metadata.gz: 481366818601e894397279fd9b79e541be45ce6354b113c616700d82b944247ebe08354375e5eaa3769753ac5185675d9a2376e54e2b13fd03dc93b968deec5b
7
- data.tar.gz: 740f6d7bb98fe1e93ae515c3daafb37082da11aa2ea2a7d9b7b05fad00a965ef0e99b04e565ce3db17f4a5a0650b770ef265e114502993c47df339e20ae5a67f
6
+ metadata.gz: 7c0febd106b82c0bdb3f8b5b1799db5e3309004402f9d9d486443666caa6e9efb8461a519272d288f08151ababc97ef99d68600691d2c0c440acd57caee7a373
7
+ data.tar.gz: 8c37e6ac4abc42816d97e73a439f99f2aa5c8aec2ebb355763aadcbb3a8d5d13ce005678e92ecae3ec574040d7c9d65e99e87ce272f5bf7cfb88797cc6d8298c
@@ -36,17 +36,21 @@
36
36
  .dropdown-content a:hover {
37
37
  background-color: #f1f1f1;
38
38
  }
39
+
39
40
  .show {
40
41
  display: block;
41
42
  }
43
+
42
44
  .tooltip-container {
43
45
  position: relative;
44
46
  display: inline-block;
45
47
  }
48
+
46
49
  .startsWith {
47
50
  position: relative;
48
51
  display: inline-block;
49
52
  }
53
+
50
54
  .arrow-down {
51
55
  display: none;
52
56
  width: 0;
@@ -63,12 +67,14 @@
63
67
  left: calc(50% - 10px);
64
68
  /* Center the larger arrow */
65
69
  }
70
+
66
71
  @media (max-width: 768px) {
67
- .dropdown-content, .arrow-down {
72
+
73
+ .dropdown-content,
74
+ .arrow-down {
68
75
  display: none !important;
69
76
  }
70
77
  }
71
-
72
78
  </style>
73
79
 
74
80
  <div class="advancedFilterOptions" onclick="advancedFilterToggle()">
@@ -79,11 +85,10 @@
79
85
  </div>
80
86
 
81
87
  <div class="fillterWrapper my-5 filterShow">
82
-
83
88
  <div class="startsWith">
84
- <input onclick="showDropdown('startsWithDropdown', this)" onkeyup="filterDropdown('startsWithDropdown', this.value)"
85
- class="filter_val textBoxes" autocomplete="off" type="text" id="startsWith" placeholder="Starts with"
86
- value="" name="prefix">
89
+ <input onclick="showDropdown('startsWithDropdown', this)"
90
+ onkeyup="filterDropdown('startsWithDropdown', this.value)" class="filter_val textBoxes" autocomplete="off"
91
+ type="text" id="startsWith" placeholder="Starts with" value="" name="prefix">
87
92
  <div class="filter-tooltip" data-tip="Find words that start with these letters(AB-&gt; Able)"
88
93
  id="Find words that start with these letters(AB-&gt; Able)">
89
94
  <img width="30px" height="30px" src="/assets/images/questionmark.svg" alt="Question Mark" />
@@ -101,9 +106,9 @@
101
106
  <div class="arrow-down"></div>
102
107
  </div>
103
108
  <div class="mustInclude">
104
- <input onclick="showDropdown('mustIncludeDropdown', this)" onkeyup="filterDropdown('mustIncludeDropdown', this.value)"
105
- class="filter_val textBoxes" autocomplete="off" type="text" id="mustInclude" placeholder="Contains"
106
- name="contains">
109
+ <input onclick="showDropdown('mustIncludeDropdown', this)"
110
+ onkeyup="filterDropdown('mustIncludeDropdown', this.value)" class="filter_val textBoxes" autocomplete="off"
111
+ type="text" id="mustInclude" placeholder="Contains" name="contains">
107
112
  <div class="filter-tooltip" data-tip="Words that contain letters in this order(ab)"
108
113
  id="Words that contain letters in this order(ab)">
109
114
  <img width="30px" height="30px" src="/assets/images/questionmark.svg" alt="Question Mark" />
@@ -111,9 +116,9 @@
111
116
  <div class="arrow-down"></div>
112
117
  </div>
113
118
  <div class="wordLength same">
114
- <input onclick="showDropdown('wordLengthDropdown',this)" onkeyup="filterDropdown('wordLengthDropdown', this.value)"
115
- autocomplete="off" type="number" class="filter_val textBoxes" id="wordLength" placeholder="Length"
116
- name="length" value="{{page.letter}}">
119
+ <input onclick="showDropdown('wordLengthDropdown',this)"
120
+ onkeyup="filterDropdown('wordLengthDropdown', this.value)" autocomplete="off" type="number"
121
+ class="filter_val textBoxes" id="wordLength" placeholder="Length" name="length" value="{{page.letter}}">
117
122
 
118
123
  <div class="filter-tooltip" data-toggle="tooltip" data-placement="top"
119
124
  data-tip="Filter for words with this length" id="Filter for words with this length">
@@ -122,9 +127,9 @@
122
127
  <div class="arrow-down"></div>
123
128
  </div>
124
129
  <div class="inculdeWith">
125
- <input onclick="showDropdown('inculdeWithDropdown',this)" onkeyup="filterDropdown('inculdeWithDropdown', this.value)"
126
- class="filter_val textBoxes" autocomplete="off" type="text" id="inculdeWith" placeholder="Include" value=""
127
- name="include">
130
+ <input onclick="showDropdown('inculdeWithDropdown',this)"
131
+ onkeyup="filterDropdown('inculdeWithDropdown', this.value)" class="filter_val textBoxes" autocomplete="off"
132
+ type="text" id="inculdeWith" placeholder="Include" value="" name="include">
128
133
  <div class="filter-tooltip" data-toggle="tooltip" data-placement="top"
129
134
  data-tip="Only words that contain the letters you enter here"
130
135
  id="Only words that contain the letters you enter here">
@@ -134,9 +139,9 @@
134
139
 
135
140
  </div>
136
141
  <div class="exculdeWith">
137
- <input onclick="showDropdown('exculdeWithDropdown',this)" onkeyup="filterDropdown('exculdeWithDropdown', this.value)"
138
- class="filter_val textBoxes" autocomplete="off" type="text" id="exculdeWith" placeholder="Exclude" value=""
139
- name="exclude">
142
+ <input onclick="showDropdown('exculdeWithDropdown',this)"
143
+ onkeyup="filterDropdown('exculdeWithDropdown', this.value)" class="filter_val textBoxes" autocomplete="off"
144
+ type="text" id="exculdeWith" placeholder="Exclude" value="" name="exclude">
140
145
  <div class="filter-tooltip" data-toggle="tooltip" data-placement="top"
141
146
  data-tip="Only words that not contain the letters you enter here"
142
147
  id="Only words that not contain the letters you enter here">
@@ -311,7 +316,7 @@
311
316
  filterShow.classList.toggle("d-flex")
312
317
  }
313
318
 
314
- function showDropdown(id,input) {
319
+ function showDropdown(id, input) {
315
320
  document.querySelectorAll('.dropdown-content').forEach(function (dropdown) {
316
321
  dropdown.style.display = 'none';
317
322
  });
@@ -319,9 +324,9 @@
319
324
  arrow.style.display = 'none';
320
325
  });
321
326
  let dropdown = document.getElementById(id);
322
-
327
+
323
328
  let arrow = input.parentElement.querySelector('.arrow-down');
324
-
329
+
325
330
  if (arrow) {
326
331
  arrow.style.display = "block"
327
332
  }
@@ -341,10 +346,10 @@
341
346
  function handleItemClick(event) {
342
347
  event.preventDefault();
343
348
  const selectedValue = event.target.getAttribute('data-value');
344
- console.log(selectedValue);
349
+ console.log(selectedValue.toLowerCase());
345
350
  const dropdownId = event.target.closest('.dropdown-content').id;
346
351
  const inputId = dropdownId.replace('Dropdown', '');
347
- document.getElementById(inputId).value = selectedValue;
352
+ document.getElementById(inputId).value = selectedValue.toLowerCase();
348
353
  document.getElementById(dropdownId).classList.remove('show');
349
354
  document.getElementById(dropdownId).style.display = "none"
350
355
  let arrow = document.getElementById(inputId).parentElement.querySelector('.arrow-down');
@@ -355,6 +360,22 @@
355
360
  item.addEventListener('click', handleItemClick);
356
361
  });
357
362
 
363
+ // window.onclick = function(event) {
364
+ // if (!event.target.matches('.filter_val')) {
365
+ // const dropdowns = document.getElementsByClassName("dropdown-content");
366
+ // for (let i = 0; i < dropdowns.length; i++) {
367
+ // dropdowns[i].style.display = "none";
368
+ // }
369
+ // const arrowDown = document.getElementsByClassName("arrow-down");
370
+ // for (let i = 0; i < arrowDown.length; i++) {
371
+ // arrowDown[i].style.display = "none";
372
+ // }
373
+
374
+
375
+ // }
376
+ // }
377
+
378
+
358
379
 
359
380
 
360
381
 
@@ -363,7 +363,7 @@ const getData = async (serachValue) => {
363
363
 
364
364
 
365
365
  if (serachValue) {
366
- serachValue = serachValue + startsWith.value + endsWith.value + mustInclude.value + inculdeWith.value + exculdeWith.value
366
+ serachValue = serachValue + startsWith.value.toLowerCase() + endsWith.value.toLowerCase() + mustInclude.value.toLowerCase() + inculdeWith.value.toLowerCase() + exculdeWith.value.toLowerCase()
367
367
  }
368
368
  worker.postMessage({
369
369
  type: "api",
@@ -589,7 +589,7 @@ async function showMoreWords(e) {
589
589
  let ScrabbleLetterScore = ScrabbleScore();
590
590
 
591
591
  if (serachValue) {
592
- serachValue = serachValue + startsWith.value + endsWith.value + mustInclude.value + inculdeWith.value + exculdeWith.value
592
+ serachValue = serachValue + startsWith.value.toLowerCase() + endsWith.value.toLowerCase() + mustInclude.value.toLowerCase() + inculdeWith.value.toLowerCase() + exculdeWith.value.toLowerCase()
593
593
  }
594
594
  if (serachValue) {
595
595
  var text1 = serachValue.replace("?", "");
@@ -89,11 +89,10 @@ self.onmessage = async (event) => {
89
89
  } else {
90
90
  newWordsLength += newdata.length;
91
91
  newdata = sortWords(serachValue, sortingFilter, newdata, dictonary);
92
- console.log(newdata);
93
92
 
94
93
  let result = newdata.map((item) => {
95
94
  let itemHtml = "";
96
- let ScrabbleLetterScore = ScrabbleScore();
95
+ let ScrabbleLetterScore = ScrabbleScore(dictonary);
97
96
  let sum = 0
98
97
 
99
98
  if (serachValue) {
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: 3.1.7
4
+ version: 3.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms