word-games-theme 1.1.9 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe36b5d0a120a2e943e5b9fed18999aec7f35333e819831ead69920980ea69f0
4
- data.tar.gz: 6132160c1c91429986c47fd27cb05639a95c123f2eef724495e98140d5e58db1
3
+ metadata.gz: e3170f3a7c2eefec51e8e0d8770a88794c17274b956d1a55a70f56c69e578be5
4
+ data.tar.gz: b809324eb4135002cf3e1960bb198de3bb46fbb12b589e4ef1838e50ce7b8189
5
5
  SHA512:
6
- metadata.gz: 437f3d4bb31f11473369b3615aba5b8f2d186c20f3458f8d5b22806c24113148c52fa3813052b314a20499d74071b57509d7eef1237cd48f32b5b6fa7e63693f
7
- data.tar.gz: 1c35f8cdcf7add4847d552de0edf67f1820a2e2086744eef5becd62669d8e19a3fd5c3774e1e92e752ed59b7bcbf4dbe3a4258aefdee1fe44730a1243733b7ec
6
+ metadata.gz: 0a5bc6bc85e5b2151d050a554efd65691d07e0a12df259b8f7734ab645e82626fe811fcf379ea62e43b1f45a50ade06872821b297f0482e939f3d01fc5b57ce7
7
+ data.tar.gz: 9a37056f80fd4033ab905d6339b5c247d76aed47d14456c62f55bae1bf2c25a29422485b7691c98140b41bbe685a232159cd884290d6449fb79b38bf68f45f32
@@ -0,0 +1,58 @@
1
+ {
2
+ "title": "Create your own wordle game, share with your friends and challenge them !",
3
+ "h1": "Choose a five letter word to create wordle game",
4
+ "h2": "Enter word and submit to get link to the game for sharing",
5
+ "meta": "Quickly create wordle game from your word for free and share with your friends.",
6
+ "featureNo": "02",
7
+ "feature_title": "Features",
8
+ "blogNo": "03",
9
+ "blog_title": "Blog",
10
+ "FaqNo": "04",
11
+ "Faq_title": "FAQ",
12
+ "aboutNo": "05",
13
+ "about_title": "About",
14
+ "featureList": [
15
+ {
16
+ "feature_heading": "",
17
+ "feature_text": "",
18
+ "fa_class": "../assets/images/star.svg"
19
+ },
20
+ {
21
+ "feature_heading": "",
22
+ "feature_text": "",
23
+ "fa_class": "../assets/images/star.svg"
24
+ },
25
+ {
26
+ "feature_heading": "",
27
+ "feature_text": "",
28
+ "fa_class": "../assets/images/star.svg"
29
+ },
30
+ {
31
+ "feature_heading": "",
32
+ "feature_text": "",
33
+ "fa_class": "../assets/images/star.svg"
34
+ },
35
+ {
36
+ "feature_heading": "",
37
+ "feature_text": "",
38
+ "fa_class": "../assets/images/star.svg"
39
+ },
40
+ {
41
+ "feature_heading": "",
42
+ "feature_text": "",
43
+ "fa_class": "../assets/images/star.svg"
44
+ }
45
+ ],
46
+ "faqList": [
47
+ {
48
+ "Question": "",
49
+ "Answer": ""
50
+ }
51
+ ],
52
+ "jsfilepaths": [
53
+ "/assets/js/wordGame.js"
54
+ ],
55
+ "cssfilepaths": [
56
+ "/assets/css/wordGame.css"
57
+ ]
58
+ }
@@ -5,23 +5,7 @@
5
5
  window.dataLayer = window.dataLayer || [];
6
6
  function gtag() { dataLayer.push(arguments); }
7
7
  gtag('js', new Date());
8
-
9
8
  gtag('config', '{{ GA_ID }}');
10
-
11
- (function (i, s, o, g, r, a, m) {
12
- i['GoogleAnalyticsObject'] = r;
13
- i[r] = i[r] || function () {
14
- (i[r].q = i[r].q || []).push(arguments)
15
- }, i[r].l = 1 * new Date();
16
- a = s.createElement(o),
17
- m = s.getElementsByTagName(o)[0];
18
- a.async = 1;
19
- a.src = g;
20
- m.parentNode.insertBefore(a, m)
21
- })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
22
- ga('create', '{{ GA_ID }}', 'auto')
23
- ga('send', 'pageview')
24
-
25
9
  </script>
26
10
  {% endif %}
27
11
 
@@ -32,22 +16,7 @@
32
16
  window.dataLayer = window.dataLayer || [];
33
17
  function gtag() { dataLayer.push(arguments); }
34
18
  gtag('js', new Date());
35
-
36
19
  gtag('config', '{{ GA_ID }}');
37
-
38
- (function (i, s, o, g, r, a, m) {
39
- i['GoogleAnalyticsObject'] = r;
40
- i[r] = i[r] || function () {
41
- (i[r].q = i[r].q || []).push(arguments)
42
- }, i[r].l = 1 * new Date();
43
- a = s.createElement(o),
44
- m = s.getElementsByTagName(o)[0];
45
- a.async = 1;
46
- a.src = g;
47
- m.parentNode.insertBefore(a, m)
48
- })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
49
- ga('create', '{{ GA_ID }}', 'auto')
50
- ga('send', 'pageview')
51
20
  </script>
52
21
 
53
22
  {% endif %}
@@ -155,7 +155,8 @@
155
155
  <div class="container" id="containerWd">
156
156
  {%- if page.layout == "page2" -%}
157
157
 
158
- <a id="home_page_search_result" onclick="ga('send', 'event', 'Link click', 'click', 'Home Page Search Result')"></a>
158
+ <a id="home_page_search_result"
159
+ onclick="gtag('event', 'click', {'event_category': 'Link click', 'event_label': 'Home Page Search Result'});"></a>
159
160
 
160
161
  {%- endif -%}
161
162
 
@@ -0,0 +1,157 @@
1
+ <button class="open-popup" style="display: none;" data-toggle="modal" data-target="#exampleModal"></button>
2
+
3
+ <div class="word-game-container">
4
+ <div class="word-game">
5
+ <table class="word-game-rows">
6
+ <tbody>
7
+ <tr class="row">
8
+ <td>
9
+ <input data-id="0" type="text" autocomplete="off" tabindex="0" class="row-letter" maxlength="1"
10
+ id="first" onkeyup="move(this,'second')">
11
+ </td>
12
+ <td> <input data-id="1" type="text" autocomplete="off" tabindex="1" class="row-letter" maxlength="1"
13
+ id="second" onkeyup="move(this,'third')"></td>
14
+ <td>
15
+ <input data-id="2" type="text" autocomplete="off" tabindex="2" class="row-letter" maxlength="1"
16
+ id="third" onkeyup="move(this,'fourth')">
17
+ </td>
18
+ <td><input data-id="3" type="text" autocomplete="off" tabindex="3" class="row-letter" maxlength="1"
19
+ id="fourth" onkeyup="move(this,'fivth')"></td>
20
+ <td>
21
+ <input data-id="4" type="text" autocomplete="off" tabindex="4" class="row-letter" maxlength="1"
22
+ id="fivth" onkeyup="move(this,'six')">
23
+ </td>
24
+
25
+ </tr>
26
+ <tr class="row">
27
+ <td><input class="row-letter" maxlength="1" type="text"></td>
28
+ <td><input class="row-letter" maxlength="1" type="text"></td>
29
+ <td><input class="row-letter" maxlength="1" type="text"></td>
30
+ <td><input class="row-letter" maxlength="1" type="text"></td>
31
+ <td><input class="row-letter" maxlength="1" type="text"></td>
32
+ </tr>
33
+ <tr class="row">
34
+ <td><input class="row-letter" maxlength="1" type="text"></td>
35
+ <td><input class="row-letter" maxlength="1" type="text"></td>
36
+ <td><input class="row-letter" maxlength="1" type="text"></td>
37
+ <td><input class="row-letter" maxlength="1" type="text"></td>
38
+ <td><input class="row-letter" maxlength="1" type="text"></td>
39
+ </tr>
40
+ <tr class="row">
41
+ <td><input class="row-letter" maxlength="1" type="text"></td>
42
+ <td><input class="row-letter" maxlength="1" type="text"></td>
43
+ <td><input class="row-letter" maxlength="1" type="text"></td>
44
+ <td><input class="row-letter" maxlength="1" type="text"></td>
45
+ <td><input class="row-letter" maxlength="1" type="text"></td>
46
+ </tr>
47
+ <tr class="row">
48
+ <td><input class="row-letter" maxlength="1" type="text"></td>
49
+ <td><input class="row-letter" maxlength="1" type="text"></td>
50
+ <td><input class="row-letter" maxlength="1" type="text"></td>
51
+ <td><input class="row-letter" maxlength="1" type="text"></td>
52
+ <td><input class="row-letter" maxlength="1" type="text"></td>
53
+ </tr>
54
+ <tr class="row">
55
+ <td><input class="row-letter" maxlength="1" type="text"></td>
56
+ <td><input class="row-letter" maxlength="1" type="text"></td>
57
+ <td><input class="row-letter" maxlength="1" type="text"></td>
58
+ <td><input class="row-letter" maxlength="1" type="text"></td>
59
+ <td><input class="row-letter" maxlength="1" type="text"></td>
60
+ </tr>
61
+ </tbody>
62
+ </table>
63
+
64
+ <div class="Game-keyboard my-5">
65
+ <div class="Game-keyboard-row">
66
+ <div tabindex="-1" role="button" class="Game-keyboard-button">Q</div>
67
+ <div tabindex="-1" role="button" class="Game-keyboard-button">W</div>
68
+ <div tabindex="-1" role="button" class="Game-keyboard-button">E</div>
69
+ <div tabindex="-1" role="button" class="Game-keyboard-button">R</div>
70
+ <div tabindex="-1" role="button" class="Game-keyboard-button">T</div>
71
+ <div tabindex="-1" role="button" class="Game-keyboard-button letter-absent">Y</div>
72
+ <div tabindex="-1" role="button" class="Game-keyboard-button">U</div>
73
+ <div tabindex="-1" role="button" class="Game-keyboard-button">I</div>
74
+ <div tabindex="-1" role="button" class="Game-keyboard-button letter-absent">O</div>
75
+ <div tabindex="-1" role="button" class="Game-keyboard-button letter-elsewhere">P</div>
76
+ </div>
77
+ <div class="Game-keyboard-row">
78
+ <div tabindex="-1" role="button" class="Game-keyboard-button">A</div>
79
+ <div tabindex="-1" role="button" class="Game-keyboard-button">S</div>
80
+ <div tabindex="-1" role="button" class="Game-keyboard-button">D</div>
81
+ <div tabindex="-1" role="button" class="Game-keyboard-button">F</div>
82
+ <div tabindex="-1" role="button" class="Game-keyboard-button">G</div>
83
+ <div tabindex="-1" role="button" class="Game-keyboard-button letter-absent">H</div>
84
+ <div tabindex="-1" role="button" class="Game-keyboard-button">J</div>
85
+ <div tabindex="-1" role="button" class="Game-keyboard-button">K</div>
86
+ <div tabindex="-1" role="button" class="Game-keyboard-button">L</div>
87
+ </div>
88
+ <div class="Game-keyboard-row">
89
+ <div tabindex="-1" role="button" class="Game-keyboard-button Game-keyboard-button-wide">⌫</div>
90
+ <div tabindex="-1" role="button" class="Game-keyboard-button">Z</div>
91
+ <div tabindex="-1" role="button" class="Game-keyboard-button">X</div>
92
+ <div tabindex="-1" role="button" class="Game-keyboard-button">C</div>
93
+ <div tabindex="-1" role="button" class="Game-keyboard-button">V</div>
94
+ <div tabindex="-1" role="button" class="Game-keyboard-button">B</div>
95
+ <div tabindex="-1" role="button" class="Game-keyboard-button letter-absent">N</div>
96
+ <div tabindex="-1" role="button" class="Game-keyboard-button">M</div>
97
+ <div tabindex="-1" role="button" class="Game-keyboard-button Game-keyboard-button-wide">Enter</div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ {%- if page.popup -%}
103
+ <!-- Button trigger modal -->
104
+
105
+ <div class="modal fade modalWrapper" id="exampleModal">
106
+ <div class="modal-dialog">
107
+ <div class="modal-content">
108
+ <div class="modal-header p-0">
109
+ <!-- <h5 class="modal-title" id="staticBackdropLabel">Modal title</h5> -->
110
+ <button type="button" class="close" data-dismiss="modal">
111
+ <span class="times-icon">&times;</span>
112
+ </button>
113
+ </div>
114
+ <div class="modal-body text-center py-5">
115
+ <h3 class="font-weight-bolder mb-0">Make Custom Wordle</h3>
116
+ <h5>Word can be of length 5</h5>
117
+
118
+ <div class="wordle-game-generator">
119
+ <input type="text" class="form-control custom-word" placeholder="Enter Custom Word Up to 5 letters?"
120
+ name="custom-word">
121
+ <button type="button" class="btn generate-word-game-link">Generate Link</button>
122
+ <a href="#" class="word-game-link"></a>
123
+ <button type="button" class="btn copy-btn">Copy Link</button>
124
+ <!-- <button type="button" class="btn btn-primary">Play Random Word</button> -->
125
+ </div>
126
+
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ {%- endif -%}
132
+
133
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"
134
+ integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
135
+
136
+ <script>
137
+ let rowLetter = document.getElementsByClassName("row-letter")
138
+ rowLetter[0].focus()
139
+ $(document).on('keypress', 'input', function (e) {
140
+ if (e.which === 32) {
141
+ e.preventDefault();
142
+ var $next = $('[tabIndex=' + (+this.tabIndex + 1) + ']');
143
+
144
+ if (!$next.length) {
145
+ $next = $('[tabIndex=1]');
146
+ }
147
+ $next.focus().click();
148
+ }
149
+ });
150
+
151
+
152
+ function move(first, last) {
153
+ if (first.value.length) {
154
+ document.getElementById(last).focus()
155
+ }
156
+ }
157
+ </script>
data/_layouts/tools.html CHANGED
@@ -12,7 +12,7 @@
12
12
  {%- include header/index.html -%}
13
13
 
14
14
  {%- if homeData.h1 or homeData.h2 -%}
15
- <div class="tools_headings" style="margin:20px 0px">
15
+ <div class="tools_headings" style="margin-top:20px">
16
16
  <div class="container">
17
17
  <div class="pageHeading text-center">
18
18
  <h1 class="heading pb-0 mb-3">{{homeData.h1}}</h1>
@@ -0,0 +1,99 @@
1
+ .active{
2
+ display: block;
3
+ }
4
+ .close{
5
+ background-color: transparent;
6
+ border:none;
7
+ outline: none;
8
+ }
9
+ .times-icon{
10
+ font-size: 25px;
11
+ }
12
+ .modal-header .close{
13
+ margin: -1rem 0rem -1rem auto !important
14
+ }
15
+ .modal-dialog {
16
+ max-width: 450px !important;
17
+ margin: 0rem auto !important;
18
+ top: 60px !important;
19
+ }
20
+ .custom-word{
21
+ width: 60%;
22
+ margin: 15px auto;
23
+ padding: 2rem 10px;
24
+ text-align: center;
25
+ font-size: 12px;
26
+ text-transform: uppercase;
27
+
28
+ }
29
+ ::placeholder{
30
+ text-transform: capitalize ;
31
+ }
32
+ .generate-word-game-link,.copy-btn{
33
+ background-color: dodgerblue;
34
+ border: dodgerblue;
35
+ color: #fff;
36
+ padding: 10px;
37
+ width: 120px;
38
+ border-radius: 5px;
39
+ font-size: 12px;
40
+ }
41
+ .copy-btn{
42
+ display: none;
43
+ }
44
+
45
+ .generate-word-game-link:hover,.copy-btn:hover{
46
+ color:#fff !important
47
+ }
48
+ .word-game-rows,.Game-keyboard{
49
+ display: flex;
50
+ flex-direction: column;
51
+ width: 50%;
52
+ margin:0rem auto
53
+ }
54
+ .row{
55
+ justify-content: center;
56
+ align-items: center;
57
+ margin:0 !important
58
+
59
+ }
60
+ .row-letter{
61
+ text-align: center;
62
+ border:2px solid #d3d6da;
63
+ border-radius: 5px;
64
+ color: #363535;
65
+ flex: 1 1;
66
+ font-size: 28px;
67
+ font-weight: 700;
68
+ height: 64px;
69
+ margin: 3px;
70
+ max-width: 64px;
71
+ text-transform: uppercase;
72
+ }
73
+ .Game-keyboard-row{
74
+ display: flex;
75
+ flex-direction: row;
76
+ justify-content: center;
77
+ }
78
+ .Game-keyboard-button {
79
+ align-items: center;
80
+ background-color: #d3d6da;
81
+ border: 2px solid transparent;
82
+ border-radius: 4px;
83
+ color: inherit;
84
+ cursor: pointer;
85
+ display: flex;
86
+ font-size: 16px;
87
+ font-weight: 900;
88
+ justify-content: center;
89
+ margin: 3px;
90
+ min-height: 40px;
91
+ padding: 15px;
92
+ text-decoration: inherit;
93
+ }
94
+
95
+ .word-game-link{
96
+ display: none;
97
+ font-size: 14px;
98
+ padding: 14px;
99
+ }
@@ -165,7 +165,9 @@ function logSubmit(event) {
165
165
  lengthValue = params.get('length')
166
166
  dictonary = params.get('dictionary')
167
167
 
168
- ga('send', 'pageview', window.location.pathname + location.search)
168
+ gtag('event', 'page_view', {
169
+ page_location: window.location.pathname + location.search,
170
+ })
169
171
  }
170
172
  getData(txtBox.value.toLowerCase())
171
173
  addFilterCount()
@@ -0,0 +1,42 @@
1
+ console.log("word game : connected")
2
+
3
+ let modalWrapper = document.querySelector(".modalWrapper")
4
+ let closeBtn = document.querySelector(".close")
5
+ let customWord = document.querySelector(".custom-word")
6
+ let generateLinkButton = document.querySelector(".generate-word-game-link")
7
+ let wordGameLink = document.querySelector(".word-game-link")
8
+ let copy_btn = document.querySelector(".copy-btn")
9
+
10
+
11
+ let game
12
+
13
+ let openPopup = document.querySelector(".open-popup")
14
+ window.onload = function () {
15
+ openPopup.click()
16
+ }
17
+
18
+ generateLinkButton.addEventListener("click", () => {
19
+ generateLinkButton.style.display = "none"
20
+ copy_btn.style.display = "inline-block"
21
+ wordGameLink.style.display = "block"
22
+ wordGameLink.innerHTML = `${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value)}`
23
+ wordGameLink.setAttribute("href", `/word-game-play?q=${btoa(customWord.value)}`)
24
+ })
25
+
26
+ const copyToClipboard = (str) => {
27
+ try {
28
+ const el = document.createElement('textarea')
29
+ el.value = str
30
+ document.body.appendChild(el)
31
+ el.select()
32
+ document.execCommand('copy')
33
+ document.body.removeChild(el)
34
+ copy_btn.innerHTML = "Copied"
35
+ // copy_btn.setAttribute('data-tooltip', 'Copied !')
36
+ } catch (error) {
37
+ console.log(error)
38
+ }
39
+ }
40
+ copy_btn.addEventListener('click', () => {
41
+ copyToClipboard(wordGameLink.innerHTML)
42
+ })
@@ -172,8 +172,9 @@ if (lengthValue === '1') {
172
172
  lengthValue = params.get('length')
173
173
  dictonary = params.get('dictionary')
174
174
 
175
- // console.log('/result' + location.search)
176
- ga('send', 'pageview', window.location.pathname + location.search)
175
+ gtag('event', 'page_view', {
176
+ page_location: window.location.pathname + location.search,
177
+ })
177
178
  }
178
179
  getData(txtBox.value.toLowerCase())
179
180
  addFilterCount()
@@ -184,9 +185,6 @@ if (lengthValue === '1') {
184
185
  selectedDictionary.addEventListener("change", ((e) => {
185
186
  logSubmit(e)
186
187
  }))
187
-
188
-
189
-
190
188
  applyBtn.addEventListener('submit', logSubmit)
191
189
  form.addEventListener('submit', logSubmit);
192
190
  }
@@ -121,7 +121,9 @@ if (lengthValue === '1') {
121
121
  lengthValue = params.get('length')
122
122
  dictonary = params.get('dictionary')
123
123
 
124
- ga('send', 'pageview', window.location.pathname + location.search)
124
+ gtag('event', 'page_view', {
125
+ page_location: window.location.pathname + location.search,
126
+ })
125
127
  }
126
128
  getData(txtBox.value.toLowerCase())
127
129
  addFilterCount()
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.1.9
4
+ version: 1.2.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-04-12 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -105,6 +105,7 @@ files:
105
105
  - _data/wordgames/en/two_letter_word_finder.json
106
106
  - _data/wordgames/en/unscramble_letters_to_make_words.json
107
107
  - _data/wordgames/en/unscramble_words_and_jumble_solver.json
108
+ - _data/wordgames/en/word-game-generator-online.json
108
109
  - _data/wordgames/en/word-meaning.json
109
110
  - _data/wordgames/en/words_with_friends_word_finder.json
110
111
  - _data/wordgames/es/four_letter_word_finder.json
@@ -171,6 +172,7 @@ files:
171
172
  - _includes/section/xyzGroup.html
172
173
  - _includes/seo.html
173
174
  - _includes/share/socialshare.html
175
+ - _includes/word-game/word-game-generator-online.html
174
176
  - _includes/wordfinderstrategy/content.html
175
177
  - _includes/wordle-solver/wordle-solver.html
176
178
  - _includes/xyzpages/xyz.html
@@ -203,6 +205,7 @@ files:
203
205
  - assets/css/home.css
204
206
  - assets/css/news.css
205
207
  - assets/css/style.css
208
+ - assets/css/wordGame.css
206
209
  - assets/css/wordGroup.css
207
210
  - assets/css/wordScrabble.css
208
211
  - assets/css/wordleSolver.css
@@ -272,6 +275,7 @@ files:
272
275
  - assets/js/leftNav.js
273
276
  - assets/js/other-lang-wordScrabble.js
274
277
  - assets/js/scrabbleDictonary.js
278
+ - assets/js/wordGame.js
275
279
  - assets/js/wordScrabble-test.js
276
280
  - assets/js/wordScrabble.js
277
281
  - assets/js/wordleSolver.js