word-games-theme 1.2.8 → 1.2.9

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: 53d7707482f0a46782dc9a1717b4fecfafe42fa78b4626e0d0128a676427abd2
4
- data.tar.gz: 951baf40d5df9e24f7934c30d5ebe48bcd2b3455edb4b69bf27bf97c5601e465
3
+ metadata.gz: 98f98ff3a0c60ec091d2d9abb0e04844173b2c88758ad5aa640930f0d2e61446
4
+ data.tar.gz: 573ab1d026595a4f0e2df9e0954ea265c30c813dafdc1bf099245691ab53725e
5
5
  SHA512:
6
- metadata.gz: 3713551f8bc868aebcef3740dbd1abda3c78364c2cd19670a0f98ea7c3ec8956b5d33207322e0a9911a358de3d56affdd201a78ed7153bd71bb59a565ab02a77
7
- data.tar.gz: 01c76607699b5f1e13aa6c50c2cb21a4c9d51dcfd08dadb07d4364138bb54d7134e0f4b3940db19d4cd8062741572a49c9ecc16ece09fb8ece49a0b29a69ce2b
6
+ metadata.gz: fbc64047dfff498dd603f17be663e4c3470b6a587fc141468ed746e5e2dd7419ea3f97d39fae0ace8ed21603507a5e8b26d813f799b57a027ae32dba23769719
7
+ data.tar.gz: 52277d026a2de45716592f50df0b714ca73d0eab68c374689d2fbc6c2a0710fed8a825e05b6c67c5aa5846f3296c495d00aa424592c611d94ab5a3e6957e9c4b
@@ -28,12 +28,27 @@
28
28
  </button>
29
29
  </div>
30
30
  <div class="modal-body text-center" style="padding:5rem 0">
31
- <h3 class="font-weight-bolder mb-4">Share this Word's Link</h3>
31
+
32
32
  <div class="wordle-game-play-links">
33
33
  <a style="font-size: 13px;" class="wordle-game-link"></a>
34
34
  <br><br>
35
35
  <a id="wordle-play-button" class="btn game-play-btn mt-2">Play Game</a>
36
36
  <button type="button" class="btn copy-btn mt-2">Copy Link</button>
37
+
38
+ <h3 class="font-weight-bolder mt-5">Share this wordle with your friends</h3>
39
+ <div class="social-sharing-icons d-flex">
40
+ <a class="facebook-share-link" target="_blank">
41
+ <img class="share-icon" src="/assets/images/facebooks.svg" alt="facebook-share">
42
+ </a>
43
+ <a class="twitter-share-link" target="_blank">
44
+ <img class="share-icon" src="/assets/images/twitters.svg" alt="twitter-share">
45
+ </a>
46
+
47
+ <a class="whatsapp-share-link" data-action="share/whatsapp/share" target="_blank"><img
48
+ class="share-icon" src="/assets/images/whatsapp.svg" alt="whatsapp-share"> </a>
49
+
50
+
51
+ </div>
37
52
  <!-- <button type="button" class="btn btn-primary">Play Random Word</button> -->
38
53
  </div>
39
54
  </div>
@@ -4,10 +4,13 @@
4
4
  <div class="pt-2" style="cursor: pointer;" data-toggle="modal" data-target="#how-to-play-wordle">
5
5
  <i style="font-size:18px" class="bi bi-question-circle"></i>
6
6
  </div>
7
+
7
8
  <h1 class="text-center font-weight-bolder mb-0 my-4">
8
- <a class="word-generator-link" href="/word-game-generator-online"> Make your own wordle </a>
9
+ <a class="word-generator-link" href="/word-game-generator-online">Guess the word in six tries </a>
9
10
  </h1>
10
11
 
12
+
13
+
11
14
  <div class="wordle-time pt-2" style="cursor: pointer;">
12
15
  <i class="bi bi-stopwatch" style="font-size: 18px;"></i>
13
16
  </div>
@@ -97,6 +100,9 @@
97
100
  <span class="open-popup" data-toggle="modal" data-target="#exampleModal"></span>
98
101
  </div>
99
102
  </div>
103
+ <h2 class="text-center font-weight-bolder mb-0 my-4">
104
+ <a class="word-generator-link" href="/word-game-generator-online"> Make your own wordle </a>
105
+ </h2>
100
106
 
101
107
  <div class="modal fade modalWrapper" id="exampleModal">
102
108
  <div class="modal-dialog" style="max-width:400px">
@@ -85,9 +85,9 @@
85
85
 
86
86
 
87
87
  </div>
88
- <button type="button" data-toggle="tooltip" data-placement="top" title="Add more greyletters fields"
88
+ <!-- <button type="button" data-toggle="tooltip" data-placement="top" title="Add more greyletters fields"
89
89
  id="addMore"><i class="bi bi-plus"></i>
90
- </button>
90
+ </button> -->
91
91
  <div class="form-group text-right">
92
92
  <div class="col-md-4 p-0" style="margin: 0 0 0 auto;">
93
93
  <button type="submit" id="wordlesolver_submit" class="btn wordlesolver-btn mt-3">
@@ -105,13 +105,17 @@
105
105
  <a href="/word-game-generator-online"
106
106
  onclick="gtag('event', 'click', {'event_category': 'Link click', 'event_label': 'Make Your Own Wordle'});"
107
107
  class="createWordleLink text-white">
108
-
109
108
  <span class="text-white">
110
109
  Make your own wordle game
111
110
  </span>
112
-
113
111
  </a>
112
+
113
+
114
+ <button type="submit" class="btn refineSerach mt-3">
115
+ Refine search
116
+ </button>
114
117
  <div id="wordleWordCount"></div>
118
+
115
119
  <div id="wordleSolverData"></div>
116
120
  <div class="alert" role="alert" id="wordleSolvererrorMsg" style="font-size: 15px; padding:15px"></div>
117
121
  </div>
@@ -120,6 +120,23 @@
120
120
  margin: 10px auto;
121
121
  width: 75%;
122
122
  }
123
+ .refineSerach{
124
+ text-align: center;
125
+ display: none;
126
+ box-shadow: 0 0 1px rgb(0 0 0 / 10%);
127
+ border: none;
128
+ padding: 10px 15px;
129
+ width: 320px;
130
+ background: #20a815;
131
+ border-radius: 20px;
132
+ font-size: 15px;
133
+ margin-bottom: 2rem;
134
+ margin:5px auto;
135
+ color:#fff;
136
+ }
137
+ .refineSerach:hover{
138
+ color:#fff !important
139
+ }
123
140
  .createWordleLink{
124
141
  text-align: center;
125
142
  display: block;
@@ -127,7 +144,7 @@
127
144
  border: none;
128
145
  padding: 10px 15px;
129
146
  width: 320px;
130
- background: rgb(118, 118, 118);
147
+ background: #90ee90;
131
148
  border-radius: 20px;
132
149
  font-size: 15px;
133
150
  margin-bottom: 2rem;
@@ -139,6 +139,8 @@ quesMark = "?"
139
139
 
140
140
 
141
141
  function logSubmit(event) {
142
+ const scrollingElement = (document.scrollingElement || document.body);
143
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
142
144
  if (ablank) {
143
145
  if (!txtBox.value.includes("?")) {
144
146
  txtBox.value = txtBox.value + quesMark
@@ -13,6 +13,11 @@ let openPopup = document.querySelector(".open-popup")
13
13
  const alertContainer = document.querySelector(".alert-container")
14
14
  let errorMsg = document.querySelector("#errorMsg")
15
15
 
16
+ let facebookSHareLink = document.querySelector(".facebook-share-link")
17
+ let twitterSHareLink = document.querySelector(".twitter-share-link")
18
+ let whatsappSHareLink = document.querySelector(".whatsapp-share-link")
19
+
20
+
16
21
  customWord.focus()
17
22
 
18
23
 
@@ -50,6 +55,12 @@ const createWordle = (e) => {
50
55
  wordlePlayButton.setAttribute("href", `/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
51
56
  wordleGameLink.setAttribute("href", `/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
52
57
  wordleGameLink.innerHTML = `${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`
58
+
59
+ facebookSHareLink.setAttribute("href",
60
+ `https://www.facebook.com/share.php?u=${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
61
+ twitterSHareLink.setAttribute("href",
62
+ `https://www.twitter.com/compose/tweet?&text=${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
63
+ whatsappSHareLink.setAttribute("href", `whatsapp://send?text=${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
53
64
  }
54
65
  }
55
66
  }
@@ -148,6 +148,8 @@ if (lengthValue === '1') {
148
148
  } else {
149
149
  getData(serachValue.toLowerCase())
150
150
  function logSubmit(event) {
151
+ const scrollingElement = (document.scrollingElement || document.body);
152
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
151
153
  if (rangeOfBlankTile) {
152
154
  if (!txtBox.value.includes("?")) {
153
155
  txtBox.value = txtBox.value + quesMark.repeat(rangeOfBlankTile); //
@@ -373,14 +375,16 @@ function getWords(data) {
373
375
  Array.from(getAllGroupWords).forEach((item) => {
374
376
  if (item.id.slice(6) <= stringLength.length) {
375
377
  if (item.nextSibling !== null && item.nextSibling.classList !== undefined && item.nextSibling.classList.contains("mmtwrappos")) {
376
- item.nextSibling.style.display = "block"
378
+ item.nextSibling.style.visibility = "visible"
379
+ item.nextSibling.style.height = "auto"
377
380
  }
378
381
  allGroupWords.innerHTML = ""
379
382
  item.style.display = "block"
380
383
  }
381
384
  else {
382
385
  if (item.nextSibling !== null && item.nextSibling.classList !== undefined && item.nextSibling.classList.contains("mmtwrappos")) {
383
- item.nextSibling.style.display = "none"
386
+ item.nextSibling.style.visibility = "hidden"
387
+ item.nextSibling.style.height = "0"
384
388
  }
385
389
  item.style.display = "none"
386
390
  }
@@ -146,6 +146,8 @@ if (lengthValue === '1') {
146
146
  } else {
147
147
  getData(serachValue.toLowerCase())
148
148
  function logSubmit(event) {
149
+ const scrollingElement = (document.scrollingElement || document.body);
150
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
149
151
  if (rangeOfBlankTile) {
150
152
  if (!txtBox.value.includes("?")) {
151
153
  txtBox.value = txtBox.value + quesMark.repeat(rangeOfBlankTile); //
@@ -14,29 +14,32 @@ let newWordsLength = 0
14
14
 
15
15
  let errMessage = document.querySelector('.errMessage')
16
16
  let wrapper_div = document.querySelector('.wrapper_div')
17
- let addMore = document.querySelector('#addMore')
18
17
 
19
- addMore.addEventListener('click', (e) => {
20
- e.preventDefault()
21
- let div = document.createElement('div')
22
- div.classList.add('d-flex')
23
- div.classList.add('mt-2')
24
-
25
- for (let i = 20; i <= 24; i++) {
26
- let input = document.createElement('input')
27
- input.type = 'text'
28
- input.setAttribute('maxlength', '1')
29
- input.setAttribute('autocomplete', 'off')
30
- if (i <= 24) {
31
- input.setAttribute('tabIndex', i)
32
- }
33
- let classes = ['wordleSolver-field', 'greyLetters', 'form-control', 'px-5']
34
- input.classList.add(...classes)
35
- input.id = 'greyLetters'
36
- div.append(input)
37
- wrapper_div.append(div)
38
- }
39
- })
18
+
19
+
20
+ // let addMore = document.querySelector('#addMore')
21
+
22
+ // addMore.addEventListener('click', (e) => {
23
+ // e.preventDefault()
24
+ // let div = document.createElement('div')
25
+ // div.classList.add('d-flex')
26
+ // div.classList.add('mt-2')
27
+
28
+ // for (let i = 20; i <= 24; i++) {
29
+ // let input = document.createElement('input')
30
+ // input.type = 'text'
31
+ // input.setAttribute('maxlength', '1')
32
+ // input.setAttribute('autocomplete', 'off')
33
+ // if (i <= 24) {
34
+ // input.setAttribute('tabIndex', i)
35
+ // }
36
+ // let classes = ['wordleSolver-field', 'greyLetters', 'form-control', 'px-5']
37
+ // input.classList.add(...classes)
38
+ // input.id = 'greyLetters'
39
+ // div.append(input)
40
+ // wrapper_div.append(div)
41
+ // }
42
+ // })
40
43
 
41
44
  let spinner = document.querySelector('.spinner')
42
45
  const wordleSolver = async (value, value2, value3, greenWithIndex) => {
@@ -187,8 +190,14 @@ const getIndexs = (object) => {
187
190
  }
188
191
 
189
192
  function handleSubmit(e) {
193
+ document.querySelector(".refineSerach").style.display = "block"
190
194
  e.preventDefault()
191
195
 
196
+ let wordleSolverData = document.querySelector("#wordleSolverData")
197
+ const scrollingElement = (document.scrollingElement || document.body);
198
+
199
+ scrollingElement.scroll({ top: 515, behavior: 'smooth' });
200
+
192
201
  let greenLetter = getLetters('.greenLetters')
193
202
  let yellowLetters = getLetters('.yellowLetters')
194
203
  let greyLetters = getLetters('.greyLetters')
@@ -211,6 +220,11 @@ function handleSubmit(e) {
211
220
  // errMessage.style.display = 'block'
212
221
  // }
213
222
  }
223
+ document.querySelector(".refineSerach").addEventListener("click", () => {
224
+ const scrollingElement = (document.scrollingElement || document.body);
225
+
226
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
227
+ })
214
228
  form.addEventListener('submit', handleSubmit)
215
229
 
216
230
  // Scrabble Point Array
@@ -100,6 +100,8 @@ if (lengthValue === '1') {
100
100
  } else {
101
101
  getData(serachValue.toLowerCase())
102
102
  function logSubmit(event) {
103
+ const scrollingElement = (document.scrollingElement || document.body);
104
+ scrollingElement.scroll({ top: 0, behavior: 'smooth' });
103
105
  let selectedDictionary = document.querySelector('.select_dropDown2').value
104
106
  event.preventDefault();
105
107
  if (history.pushState) {
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.2.8
4
+ version: 1.2.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: 2022-04-29 00:00:00.000000000 Z
11
+ date: 2022-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll