word-games-theme 1.0.7 → 1.0.8

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: 4b51d0acac8acc2476503093fb40e98852a23fac7334fdd3b416e03933ce7216
4
- data.tar.gz: 67695d6c784f641d2d272f92c8847f7b0eba3d4d4836693621e202ed6397160a
3
+ metadata.gz: 53499f3e9def218a757cf03340035c4737d3417efe0f66c119691b4e08d49317
4
+ data.tar.gz: 6980f30a3e60d54fbe1eca9d0246bdf8dae7e51df08e69c72e1626e50321dbb0
5
5
  SHA512:
6
- metadata.gz: 07d732876f363d7a9af8395fc7b955f873d1d0f39958c5f11a048c97743410f9fd896ec2d0e7413e498dc714f32994190b96e889afa85f3acb91c40c82222e6d
7
- data.tar.gz: 0ff82f29c0f5c1b0ffe109d99e85e5044a464ecd5afc0a72d4fcb9948e5edb1b947c53d31e70e12f637614d18c74e2df7a8ea02dda7a889fe181f88240510041
6
+ metadata.gz: 31b1f8dbc498634f5a4b30373445af0703ce8bf333625b092a3457234df12ce6f4916ccfa9c3cc3aba2fc3d02117895156358c83327985da0efdaefd5762390c
7
+ data.tar.gz: 92d3c5266bfff4f577a57248393f6fcbc8734e9bbf1862b4962045092e83002748ebbe53fc8edcf637d204ccc37ec8ed1bd00f1e5026afd61d991653a5b921ed
@@ -87,7 +87,7 @@
87
87
  e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
88
88
  let rangeOfBlankTile = '{{ page.blanktilerange }}'
89
89
  if (rangeOfBlankTile === "") {
90
- rangeOfBlankTile = 5
90
+ rangeOfBlankTile = 3
91
91
  }
92
92
  e.target.value = e.target.value.replace(/ /g, '?')
93
93
  let data = []
data/_layouts/page2.html CHANGED
@@ -52,8 +52,8 @@
52
52
  {%- include footer/index.html -%}
53
53
 
54
54
  {%- include script.html -%}
55
- <script src="/assets/js/X-letter.js" data-url="{{site.url}}" data-letter="{{page.letter}}"
56
- data-ablank="{{page.ablank}}"></script>
55
+ <script src="/assets/js/X-letter.js" data-url="{{site.url}}" data-range="{{page.blanktilerange}}"
56
+ data-letter="{{page.letter}}" data-ablank="{{page.ablank}}"></script>
57
57
  </body>
58
58
 
59
59
  </html>
Binary file
@@ -33,8 +33,9 @@ txtBox.value = serachValue
33
33
 
34
34
  if (ablank) {
35
35
  if (!serachValue.includes("?")) {
36
- if (serachValue.length < letterLen) {
36
+ if (serachValue.length <= letterLen) {
37
37
  serachValue = serachValue + '?'
38
+ txtBox.value = serachValue
38
39
  }
39
40
  }
40
41
  }
@@ -58,11 +59,12 @@ txtBox.addEventListener('input', (e) => {
58
59
  let rangeOfBlankTile = script.dataset.range
59
60
  e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, '')
60
61
  if (rangeOfBlankTile === '') {
61
- rangeOfBlankTile = 5
62
+ rangeOfBlankTile = 3
62
63
  }
63
64
  e.target.value = e.target.value.replace(/ /g, '?')
64
65
  let data = []
65
66
  data = e.target.value.split('').filter((i) => i === '?')
67
+ // console.log(data)
66
68
  if (data.length > rangeOfBlankTile) {
67
69
  e.target.value = e.target.value.replace(/\?$/, '')
68
70
  }
@@ -169,7 +171,7 @@ function x_with_letters(data) {
169
171
  filterData.map((item) => {
170
172
  let check = false
171
173
  for (let e = 0; e < exculdeValue.length; e++) {
172
- const element = exculdeValue[e]
174
+ const element = exculdeValue[e].toLowerCase()
173
175
  if (item.includes(element)) {
174
176
  check = true
175
177
  break
@@ -191,7 +193,7 @@ function x_with_letters(data) {
191
193
  filterData.map((item) => {
192
194
  let check = false
193
195
  for (let e = 0; e < includeValue.length; e++) {
194
- const element = includeValue[e]
196
+ const element = includeValue[e].toLowerCase()
195
197
  if (!item.includes(element)) {
196
198
  check = true
197
199
  break
@@ -192,7 +192,7 @@ function getWords(data) {
192
192
  newdata.map((item) => {
193
193
  let check = false
194
194
  for (let e = 0; e < exculdeValue.length; e++) {
195
- const element = exculdeValue[e]
195
+ const element = exculdeValue[e].toLowerCase()
196
196
  if (item.includes(element)) {
197
197
  check = true
198
198
  break
@@ -213,7 +213,7 @@ function getWords(data) {
213
213
  newdata.map((item) => {
214
214
  let check = false
215
215
  for (let e = 0; e < includeValue.length; e++) {
216
- const element = includeValue[e]
216
+ const element = includeValue[e].toLowerCase()
217
217
  if (!item.includes(element)) {
218
218
  check = true
219
219
  break
@@ -245,6 +245,8 @@ function getWords(data) {
245
245
  var text2 = item
246
246
  var text3 = item
247
247
  let chars = text1.split('')
248
+
249
+
248
250
  let indexs = []
249
251
  chars.map((i) => {
250
252
  let findIndexes = findIndex(text3, i)
@@ -252,12 +254,14 @@ function getWords(data) {
252
254
  text3 = text3.split('')
253
255
  text3[findIndexes] = '$'
254
256
  text3 = text3.join('')
257
+
255
258
  indexs = [...indexs, ...findIndexes]
256
259
  }
257
260
  })
258
261
  let itemHtml = ''
259
262
  text2.split('').map((itemValue, index) => {
260
263
  let check = indexs.find((i) => i === index)
264
+
261
265
  if (check !== undefined) {
262
266
  itemHtml += `${itemValue}`
263
267
  } else {
@@ -664,7 +668,7 @@ window.onscroll = function () {
664
668
  document.querySelector('.active-tab').classList.remove('active-tab')
665
669
  var active_now = document.querySelector('#Tab_' + i.split('_')[1])
666
670
  active_now.classList.add('active-tab')
667
- // active_now.scrollIntoView()
671
+ active_now.scrollIntoView({ block: 'nearest' })
668
672
  }
669
673
  }
670
674
  }
@@ -682,6 +686,7 @@ function Filtering(id) {
682
686
  let activeLetter = event.target
683
687
  activeLetter.classList.add('active-tab')
684
688
 
689
+
685
690
  var section = document.querySelectorAll('.wordlistContainer')
686
691
  var sort_val = document.querySelector('.sort-select').value
687
692
  Array.prototype.forEach.call(section, function (e) {
@@ -713,7 +718,6 @@ window.addEventListener('scroll', function () {
713
718
  })
714
719
  function scroll_visible() {
715
720
  let tab_container = document.querySelector('#tab-container')
716
-
717
721
  if (tab_container) {
718
722
  if (tab_container.clientWidth === tab_container.scrollWidth) {
719
723
  prev.style.display = 'none'
@@ -739,8 +743,8 @@ function findIndex(str, char) {
739
743
 
740
744
  while (newStr && newStr.indexOf(char) > -1) {
741
745
  indexes.push(newStr.indexOf(char) + strLength - newStr.length)
742
- newStr = newStr.substring(newStr.indexOf(char) + 1)
743
- newStr = newStr.substring(newStr.indexOf(char) + 1)
746
+ newStr = newStr.substring(newStr.indexOf(char) + 5)
747
+ newStr = newStr.substring(newStr.indexOf(char) + 5)
744
748
  }
745
749
 
746
750
  return indexes
data/assets/js/xyz.js CHANGED
@@ -11,7 +11,6 @@ tabs[0] ? tabs[0].classList.add('active-tab') : ''
11
11
  // handling of filter on scroll
12
12
  window.onscroll = function () {
13
13
  var section = document.querySelectorAll('.allGroupWords')
14
- console.log(section)
15
14
  let new_sections = {}
16
15
  Array.prototype.forEach.call(section, function (e) {
17
16
  if (document.body.clientWidth > 991) {
@@ -32,7 +31,7 @@ window.onscroll = function () {
32
31
  document.querySelector('.active-tab').classList.remove('active-tab')
33
32
  var active_now = document.querySelector('#Tab_' + i.split('_')[1])
34
33
  active_now.classList.add('active-tab')
35
- // active_now.scrollIntoView()
34
+ active_now.scrollIntoView({ block: 'nearest' })
36
35
  }
37
36
  }
38
37
  }
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: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-07 00:00:00.000000000 Z
11
+ date: 2022-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -204,6 +204,7 @@ files:
204
204
  - assets/images/hero-media-illustration-light.svg
205
205
  - assets/images/instagram-square.svg
206
206
  - assets/images/keshav.webp
207
+ - assets/images/krutika.jpeg
207
208
  - assets/images/left_obj_01 (1).svg
208
209
  - assets/images/left_obj_01.png
209
210
  - assets/images/left_obj_01.svg