word-games-theme 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/js/wordScrabble.js +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c2a4b50b961889554d8dddb9455edfd87cb5ae2de520e9aab5c822897906cee
|
4
|
+
data.tar.gz: 0ea5605247677c54d9d4eee2d497f06c9ff7a734a2e5de28042a46e289b9d414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71f14fe698bd7a039af43d7c0ad4f3dd57b184ff3feac594c2e2dc5e6ca888dfd63bdc32b0e11c4e961e7f778d0e9cd2be745aec38da62a765d7fda9469f39d8
|
7
|
+
data.tar.gz: 817d3aa0a4d7e803f19dfe6681882c4cccf13a2a3d734dfe8388ca8e9702c26b69dc741f3b665972244eca341bb8159eb858639531fb8f12d8acf5c332cff85b
|
data/assets/js/wordScrabble.js
CHANGED
@@ -11,7 +11,7 @@ let script = document.currentScript
|
|
11
11
|
|
12
12
|
// getqueryUrl from form
|
13
13
|
const params = new URLSearchParams(window.location.search)
|
14
|
-
let serachValue = params.get('search')
|
14
|
+
let serachValue = params.get('search').toLowerCase()
|
15
15
|
let prefixValue = params.get('prefix')
|
16
16
|
let containsValue = params.get('contains')
|
17
17
|
let suffixValue = params.get('suffix')
|
@@ -80,7 +80,7 @@ const getData = async (serachValue) => {
|
|
80
80
|
</div>`
|
81
81
|
/// loader
|
82
82
|
const response = await fetch(
|
83
|
-
|
83
|
+
`./netlify/functions/getWords?name=${serachValue}&selecteddictionary=${selectedDictionary}`
|
84
84
|
)
|
85
85
|
const data = await response.json()
|
86
86
|
main.innerHTML = ''
|
@@ -193,7 +193,7 @@ function getWords(data) {
|
|
193
193
|
for (let i = 0; i < item.length; i++) {
|
194
194
|
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
195
195
|
}
|
196
|
-
return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item}">
|
196
|
+
return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
|
197
197
|
<li>${itemHtml}
|
198
198
|
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
199
199
|
</li></a>`
|
@@ -376,7 +376,7 @@ function sortby(sortBool, data) {
|
|
376
376
|
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
377
377
|
}
|
378
378
|
|
379
|
-
return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item}">
|
379
|
+
return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
|
380
380
|
<li>${itemHtml}
|
381
381
|
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
382
382
|
</li></a>`
|
@@ -439,7 +439,7 @@ function sortby(sortBool, data) {
|
|
439
439
|
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
440
440
|
}
|
441
441
|
|
442
|
-
return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item}">
|
442
|
+
return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item.toLowerCase()}">
|
443
443
|
<li>${itemHtml}
|
444
444
|
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
445
445
|
</li></a>`
|
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.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manpreet-appscms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|