word-games-theme 0.4.9 → 0.5.3
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 +4 -4
- data/_includes/Monumetric/Monumetric.html +3 -0
- data/_includes/custom-head.html +1 -0
- data/_includes/head/index.html +3 -0
- data/_layouts/default.html +5 -3
- data/_layouts/page.html +1 -1
- data/assets/js/wordScrabble.js +4 -4
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61b969d093744e52b653bbdc248039e0913955167a7245ba4ea24446885a8880
|
|
4
|
+
data.tar.gz: b34055cce8bfa9a5aad2f57e006fe752d25f5937e495125b9352e473a9e11729
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f62bbbfff51e89383e0bf26189a3405ea4866b25408b552beec79bd075b84f65612faff5775552aea286476676c10613c55d7a58f4d38ccccefd19e132634d1
|
|
7
|
+
data.tar.gz: 6ffbce6988095fee049ed74a5b19b27ffc76e3933133f6323a556160e7d0ce519daf46bfbca98011a243ae670bbc7fc9c4c52e7de5a9921645da8f46c71d40e7
|
data/_includes/custom-head.html
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
<link rel="stylesheet" href="{{'/assets/css/blog.css' | relative_url }}">
|
|
29
29
|
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
|
|
30
30
|
|
|
31
|
+
{% include Monumetric/Monumetric.html %}
|
|
31
32
|
{% include adsense/adsense.html %}
|
|
32
33
|
{%- include google-analytics.html -%}
|
|
33
34
|
</head>
|
data/_includes/head/index.html
CHANGED
|
@@ -41,6 +41,8 @@
|
|
|
41
41
|
{%- endunless -%}
|
|
42
42
|
{{ page.title}}</title>
|
|
43
43
|
|
|
44
|
+
|
|
45
|
+
|
|
44
46
|
<script>
|
|
45
47
|
if ('serviceWorker' in navigator) {
|
|
46
48
|
window.addEventListener('load', () => {
|
|
@@ -104,6 +106,7 @@
|
|
|
104
106
|
{%- include Rating/structureddata.html -%}
|
|
105
107
|
{%- endif -%}
|
|
106
108
|
</script>
|
|
109
|
+
{% include Monumetric/Monumetric.html %}
|
|
107
110
|
{% include adsense/adsense.html %}
|
|
108
111
|
{%- include google-analytics.html -%}
|
|
109
112
|
</head>
|
data/_layouts/default.html
CHANGED
|
@@ -44,13 +44,15 @@
|
|
|
44
44
|
let txtBox = document.querySelector('.txtBox')
|
|
45
45
|
txtBox.addEventListener('input', (e) => {
|
|
46
46
|
e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, "")
|
|
47
|
-
let rangeOfBlankTile = '{{ page.
|
|
48
|
-
if (rangeOfBlankTile ===
|
|
49
|
-
rangeOfBlankTile =
|
|
47
|
+
let rangeOfBlankTile = '{{ page.blanktilerange }}'
|
|
48
|
+
if (rangeOfBlankTile === "") {
|
|
49
|
+
rangeOfBlankTile = 5
|
|
50
50
|
}
|
|
51
51
|
e.target.value = e.target.value.replace(/ /g, '?')
|
|
52
52
|
let data = []
|
|
53
53
|
data = e.target.value.split('').filter((i) => i === '?')
|
|
54
|
+
console.log(data.length)
|
|
55
|
+
console.log(rangeOfBlankTile)
|
|
54
56
|
if (data.length > rangeOfBlankTile) {
|
|
55
57
|
e.target.value = e.target.value.replace(/\?$/, '')
|
|
56
58
|
}
|
data/_layouts/page.html
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
{%- include footer/index.html -%}
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
<script data-range="{{page.
|
|
61
|
+
<script data-range="{{page.blanktilerange}}" src="/assets/js/wordScrabble.js"></script>
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
data/assets/js/wordScrabble.js
CHANGED
|
@@ -34,11 +34,11 @@ var sortBool = false
|
|
|
34
34
|
|
|
35
35
|
let txtBox = document.querySelector('.txtBox')
|
|
36
36
|
txtBox.value = serachValue
|
|
37
|
-
txtBox.addEventListener('
|
|
37
|
+
txtBox.addEventListener('input', (e) => {
|
|
38
38
|
let rangeOfBlankTile = script.dataset.range
|
|
39
39
|
e.target.value = e.target.value.replace(/[^a-zA-Z? ]/g, '')
|
|
40
|
-
if (rangeOfBlankTile ===
|
|
41
|
-
rangeOfBlankTile =
|
|
40
|
+
if (rangeOfBlankTile === '') {
|
|
41
|
+
rangeOfBlankTile = 5
|
|
42
42
|
}
|
|
43
43
|
e.target.value = e.target.value.replace(/ /g, '?')
|
|
44
44
|
let data = []
|
|
@@ -80,7 +80,7 @@ const getData = async (serachValue) => {
|
|
|
80
80
|
</div>`
|
|
81
81
|
/// loader
|
|
82
82
|
const response = await fetch(
|
|
83
|
-
|
|
83
|
+
`http://localhost:9000/getWords?name=${serachValue}&selecteddictionary=${selectedDictionary}`
|
|
84
84
|
)
|
|
85
85
|
const data = await response.json()
|
|
86
86
|
main.innerHTML = ''
|
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
|
+
version: 0.5.3
|
|
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-
|
|
11
|
+
date: 2021-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -98,6 +98,7 @@ files:
|
|
|
98
98
|
- _data/wordgames/en/words_with_friends_word_finder.json
|
|
99
99
|
- _data/xyzPagesData/en/unscramble-letters-jumble.json
|
|
100
100
|
- _data/xyzPagesData/en/words-with-letters-cheat.json
|
|
101
|
+
- _includes/Monumetric/Monumetric.html
|
|
101
102
|
- _includes/Rating/rating.html
|
|
102
103
|
- _includes/Rating/structureddata.html
|
|
103
104
|
- _includes/WordPointTables/table.html
|