word-games-theme 0.7.6 → 0.8.0

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: 9adcfe3ae7ab46a19ebac83046fda24451d54fc15a937098374b7a1b5553c7a6
4
- data.tar.gz: b292eda1987c21b23d6b368993e4a2dfe21fd25dbefd4b8c6a9728cfc41e6bc1
3
+ metadata.gz: 5b383e2d2ca991f0df8c99706aea73184eed922cad3c6207e9144f3795c3a38d
4
+ data.tar.gz: b70abbe49809438065ff3f2b8e8e9611633a1ab8cbf292c7f6eae8b344a80f9e
5
5
  SHA512:
6
- metadata.gz: 51cf6fafe5297d7e4fffb8a477af30aa33db80c35205ade0895d3fc557fb6427797304ecd36ab3f18fec02bc89240ebaa95789e9c74ce896ae96c11a2562c3f3
7
- data.tar.gz: f4c0196446b60232dae552956ae40e3072e4ef30d5c630ee9a8b3353fcc867bb3774204aafd062dc0a7a92f79e28722202abcac50c81277f66234462161b9ba2
6
+ metadata.gz: 23a74f922f3fd3a6301aa07618809a0894f7089c0fccce5e2e2e919c909b7d73963ee50527fcada52ced63dc40a0c27f6907dac2b140757f73ec228183f167aa
7
+ data.tar.gz: ee7afc262a84181335b87320eb085c2cb65ffba4df67805e590acb0ffc5f8e0a2eae530b3b9f50035297bb1e5de01c443ae7f713d265906d8e7093095da61e3f
@@ -2,6 +2,6 @@
2
2
  <script type="text/javascript" defer delay="{{site.MonumetricID}}" data-cfasync="false"></script>
3
3
  {% endif %}
4
4
 
5
- {% if jekyll.environment == 'development' and site.MonumetricID %}
5
+ <!-- {% if jekyll.environment == 'development' and site.MonumetricID %}
6
6
  <script type="text/javascript" delay="{{site.MonumetricID}}"></script>
7
- {% endif %}
7
+ {% endif %} -->
@@ -5,16 +5,16 @@
5
5
  {%- assign CustomColor = site.data.theme.colors -%}
6
6
  <!-- start commonPage as LandingPage -->
7
7
 
8
- <div class="container py-3 result_header">
8
+ <!-- <div class="container py-3 result_header">
9
9
  <nav class="navbar result_page_navbar">
10
10
  <a class="navbar-brand result_header_logo" href="/" title="words with letters">
11
11
  <img src="{{ site.favicon | relative_url }}" alt="{{site.name}}-logo" style="width:35px; height:35px;">
12
12
  </a>
13
13
  </nav>
14
- </div>
14
+ </div> -->
15
15
  <div class="container" id="containerWd">
16
16
  <section class="sticky_nav">
17
- <div class="pageHeading text-center">
17
+ <div class="pageHeading text-center pt-5">
18
18
  <h1 class="heading m-0 pb-0">
19
19
  {{dataToShow.h1}}</h1>
20
20
  {%- if dataToShow.h2 != "" -%}
@@ -27,7 +27,7 @@
27
27
  <form action="" id='form'>
28
28
  <input style="border-radius: {{CustomColor.inputFieldBorder}}" type="text"
29
29
  placeholder="Enter up to 15 letters?" class="txtBox resultPageTxtBox" value='' name="search"
30
- maxlength="15" value required>
30
+ maxlength="15" value required autocomplete="off">
31
31
  <input
32
32
  style="border-radius: {{CustomColor.inputFieldBorder}}; background-color: {{CustomColor.inputButtonBg}};"
33
33
  type="submit" class="serachBtn resultPageSearchBtn" id="serach" value>
@@ -85,7 +85,7 @@
85
85
  </div>
86
86
  </div>
87
87
  </form>
88
- {%- if page.letter == 5 -%}
88
+ {%- if page.wordle == 'solver' -%}
89
89
  <h2 class="m-0 mt-4 text-center" style="font-size:16px">
90
90
  <a style="color:#000" href="/wordle-solver">Solve wordle quickly using our wordle solver</a>
91
91
  </h2>
@@ -1,4 +1,4 @@
1
- <div class="row pad" style="padding:0px .2rem 5rem .2rem">
1
+ <div class="row pad" style="padding:60px .2rem 5rem .2rem">
2
2
  <div class="col-md-12">
3
3
  <div class="wordCount"></div>
4
4
  <div class="main"></div>
@@ -8,7 +8,7 @@
8
8
  box-shadow: 0 1px 0 rgb(0 0 0 / 10%);
9
9
  }
10
10
  </style>
11
- <div class="row pad" style="padding:0px .2rem 5rem .2rem">
11
+ <div class="row pad" style="padding:60px .2rem 5rem .2rem">
12
12
  <div class=" col-md-12">
13
13
  <div class="wordCount">
14
14
  <strong>
@@ -5,7 +5,7 @@
5
5
  {%- assign CustomColor = site.data.theme.colors -%}
6
6
  <!-- start commonPage as LandingPage -->
7
7
  <div class="container" id="containerWd">
8
- <section class="sticky_nav" style="top:60px">
8
+ <section class="sticky_nav">
9
9
  <div class="pageHeading text-center pt-5">
10
10
  <h1 class="heading m-0 pb-0">
11
11
  {{dataToShow.h1}}</h1>
@@ -10,7 +10,7 @@
10
10
 
11
11
  <link rel="stylesheet"
12
12
  href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css" />
13
- <script defer src=" https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
13
+ <script defer src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
14
14
  <script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
15
15
  {% include Monumetric/Monumetric.html %}
16
16
  </body>
@@ -42,16 +42,23 @@
42
42
 
43
43
  <link rel="stylesheet"
44
44
  href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css" />
45
+ <script src="//cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js"></script>
46
+ <script>WebFont.load({ google: { families: ['Poppins:400&display=swap'] } })</script>
47
+ <script>
48
+ (function () {
49
+ d = document;
50
+ c = d.createElement('link');
51
+ c.href = '//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css';
52
+ c.rel = 'stylesheet';
53
+ d.head.appendChild(c);
54
+ })();
55
+ </script>
45
56
  <script defer src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
46
- <script defer src=" https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
57
+ <script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
47
58
  <script>
48
-
49
59
  let txtBox = document.querySelector('.txtBox')
50
- let focusBorder = document.querySelector('.focus-border')
51
-
52
60
  txtBox.focus()
53
61
  txtBox.addEventListener('input', (e) => {
54
- focusBorder.classList.remove('focus-border')
55
62
  e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
56
63
  let rangeOfBlankTile = '{{ page.blanktilerange }}'
57
64
  if (rangeOfBlankTile === "") {
@@ -67,17 +74,6 @@
67
74
  }
68
75
  })
69
76
  </script>
70
- <script src="//cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js"></script>
71
- <script>WebFont.load({ google: { families: ['Poppins:400&display=swap'] } })</script>
72
- <script>
73
- (function () {
74
- d = document;
75
- c = d.createElement('link');
76
- c.href = '//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css';
77
- c.rel = 'stylesheet';
78
- d.head.appendChild(c);
79
- })();
80
- </script>
81
77
  {% include Monumetric/Monumetric.html %}
82
78
  </body>
83
79
 
data/_layouts/page.html CHANGED
@@ -49,6 +49,8 @@
49
49
 
50
50
  <body>
51
51
 
52
+ {%- include header/index.html -%}
53
+
52
54
  {%- include section/commonPage.html -%}
53
55
 
54
56
  {%- include share/socialshare.html -%}
data/_layouts/page2.html CHANGED
@@ -45,6 +45,8 @@
45
45
 
46
46
  <body>
47
47
 
48
+ {%- include header/index.html -%}
49
+
48
50
  {%- include section/commonPage.html -%}
49
51
 
50
52
 
@@ -95,7 +95,7 @@
95
95
 
96
96
  <link rel="stylesheet"
97
97
  href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css" />
98
- <script defer src=" https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
98
+ <script defer src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
99
99
  <script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
100
100
  {% include Monumetric/Monumetric.html %}
101
101
 
@@ -41,7 +41,7 @@
41
41
  background: #fff;
42
42
  position: absolute;
43
43
  z-index: 999;
44
- top: 140px;
44
+ top: 100px;
45
45
  right: 150px;
46
46
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
47
47
  padding: 30px 15px;
@@ -68,7 +68,7 @@
68
68
  .sticky_nav {
69
69
  position: sticky;
70
70
  width: inherit;
71
- top: 0px;
71
+ top: 58px;
72
72
  background-color: #fff;
73
73
  z-index: 99;
74
74
  }
@@ -272,7 +272,7 @@ hr {
272
272
  }
273
273
 
274
274
  .footer-section {
275
- padding: 5px 0px;
275
+ padding: 50px 0px;
276
276
  background-color: #f8f9fa;
277
277
  margin-top: 3rem;
278
278
  }
@@ -4,6 +4,7 @@ const getScript=document.currentScript
4
4
  const letterLen = getScript.dataset.letter
5
5
 
6
6
  let errorMsg = document.querySelector('.errorMsg')
7
+ let script = document.currentScript
7
8
  let wordCount = document.querySelector('.wordCount')
8
9
  let main = document.querySelector('.main')
9
10
 
@@ -23,10 +24,43 @@ tab_link_wrapper.style.display = "none"
23
24
  let txtBox = document.querySelector('.txtBox')
24
25
  txtBox.focus()
25
26
  txtBox.value = serachValue
27
+ txtBox.addEventListener('input', (e) => {
28
+ let rangeOfBlankTile = script.dataset.range
29
+ e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, '')
30
+ if (rangeOfBlankTile === '') {
31
+ rangeOfBlankTile = 5
32
+ }
33
+ e.target.value = e.target.value.replace(/ /g, '?')
34
+ let data = []
35
+ data = e.target.value.split('').filter((i) => i === '?')
36
+ if (data.length > rangeOfBlankTile) {
37
+ e.target.value = e.target.value.replace(/\?$/, '')
38
+ }
39
+ })
26
40
 
27
41
  var theSelect = document.getElementById('select_dropDown')
28
42
  document.querySelector('.select_dropDown2').value = dictonary
29
-
43
+ const getDiff = (text1, text2) => {
44
+ var diffRange = []
45
+ var currentRange = undefined
46
+ for (var i = 0; i < text1.length; i++) {
47
+ if (text1[i] != text2[i]) {
48
+ if (currentRange == undefined) {
49
+ currentRange = [i]
50
+ }
51
+ }
52
+ if (currentRange != undefined && text1[i] == text2[i]) {
53
+ currentRange.push(i)
54
+ diffRange.push(currentRange)
55
+ currentRange = undefined
56
+ }
57
+ }
58
+ if (currentRange != undefined) {
59
+ currentRange.push(i)
60
+ diffRange.push(currentRange)
61
+ }
62
+ return diffRange
63
+ }
30
64
  const getData = async (serachValue) => {
31
65
  try {
32
66
  main.innerHTML = `<div class="loader">
@@ -160,8 +194,45 @@ function x_with_letters(data) {
160
194
  sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
161
195
  }
162
196
  wordLength.value = itemLength
197
+
198
+ var text1 = serachValue.replace('?', '')
199
+ var text2 = item
200
+ var text3 = item
201
+ function findIndex(str, char) {
202
+ const strLength = str.length
203
+ const indexes = []
204
+ let newStr = str
205
+ while (newStr && newStr.indexOf(char) > -1) {
206
+ indexes.push(newStr.indexOf(char) + strLength - newStr.length)
207
+ newStr = newStr.substring(newStr.indexOf(char) + 1)
208
+ newStr = newStr.substring(newStr.indexOf(char) + 1)
209
+ }
210
+ return indexes
211
+ }
212
+ let chars = text1.split('')
213
+ let indexs = []
214
+ chars.map((i) => {
215
+ let findIndexes = findIndex(text3, i)
216
+ if (findIndexes.length > 0) {
217
+ text3 = text3.split('')
218
+ text3[findIndexes] = '$'
219
+ text3 = text3.join('')
220
+ indexs = [...indexs, ...findIndexes]
221
+ }
222
+ })
223
+ let itemHtml = ''
224
+ text2.split('').map((itemValue, index) => {
225
+ let check = indexs.find((i) => i === index)
226
+ if (check !== undefined) {
227
+ itemHtml += `${itemValue}`
228
+ } else {
229
+ itemHtml += `<span class='highlight'>${itemValue}</span>`
230
+ }
231
+ })
232
+
233
+
163
234
  return `<a class="anchor__style" title="Lookup ${item} in Dictionary" target="_blank" href="/word-meaning?search=${item}">
164
- <li>${item}
235
+ <li>${itemHtml}
165
236
  <span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
166
237
  </li></a>`
167
238
  })
@@ -321,6 +321,8 @@ function sortPointsby(sortValue, data) {
321
321
  var text1 = serachValue.replace('?', '')
322
322
  var text2 = item.words
323
323
  var text3 = item.words
324
+
325
+
324
326
  function findIndex(str, char) {
325
327
  const strLength = str.length
326
328
  const indexes = []
@@ -55,7 +55,7 @@ const wordleSolver = async (value, value2, value3, greenWithIndex) => {
55
55
  }),
56
56
  })
57
57
  const data = await response.json()
58
- document.querySelector('#updateTxt').innerHTML = 'Update'
58
+ document.querySelector('#updateTxt').innerHTML = 'Solve'
59
59
  spinner.classList.remove('spinner-border')
60
60
 
61
61
  let ok = true
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: 0.7.6
4
+ version: 0.8.0
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-01-28 00:00:00.000000000 Z
11
+ date: 2022-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll