word-games-theme 1.2.8 → 1.3.1

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: 439930c646f078b78274097a7623beb15e273a07c49989dce86160b35b9c9e74
4
+ data.tar.gz: 5bec56f910c682cd4e9dc0559849ff26fcb03f4f418e9078f74cb79dbc058b2c
5
5
  SHA512:
6
- metadata.gz: 3713551f8bc868aebcef3740dbd1abda3c78364c2cd19670a0f98ea7c3ec8956b5d33207322e0a9911a358de3d56affdd201a78ed7153bd71bb59a565ab02a77
7
- data.tar.gz: 01c76607699b5f1e13aa6c50c2cb21a4c9d51dcfd08dadb07d4364138bb54d7134e0f4b3940db19d4cd8062741572a49c9ecc16ece09fb8ece49a0b29a69ce2b
6
+ metadata.gz: 8520f3b809dbbe532a7a3217e4113843b863e6c16154df570f73887be1739ac0aebe1efb40e83889158eee40f31acdfff313966fff40ddcda15a7cef09026c89
7
+ data.tar.gz: 6259cdda810806193260ab741562fed7d6217ce3413a0ae2bdf5b18f38c212e1cadb4724a035f164391f956f6d4345623b6a462f09b4a6beec31bc1b927d0230
@@ -107,7 +107,7 @@
107
107
 
108
108
  {%- include google-analytics.html -%}
109
109
 
110
- {% if page.url != '/' %}
110
+ {% if page.url != '/' and page.lang == "en" %}
111
111
  {% include Monumetric/Monumetric.html %}
112
112
  {% endif %}
113
113
 
@@ -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,8 +4,9 @@
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
 
11
12
  <div class="wordle-time pt-2" style="cursor: pointer;">
@@ -26,37 +27,68 @@
26
27
  <span id="errorMsg"></span>
27
28
  </div>
28
29
  <div class="game-board">
29
- <div class="tile"></div>
30
- <div class="tile"></div>
31
- <div class="tile"></div>
32
- <div class="tile"></div>
33
- <div class="tile"></div>
34
- <div class="tile"></div>
35
- <div class="tile"></div>
36
- <div class="tile"></div>
37
- <div class="tile"></div>
38
- <div class="tile"></div>
39
- <div class="tile"></div>
40
- <div class="tile"></div>
41
- <div class="tile"></div>
42
- <div class="tile"></div>
43
- <div class="tile"></div>
44
- <div class="tile"></div>
45
- <div class="tile"></div>
46
- <div class="tile"></div>
47
- <div class="tile"></div>
48
- <div class="tile"></div>
49
- <div class="tile"></div>
50
- <div class="tile"></div>
51
- <div class="tile"></div>
52
- <div class="tile"></div>
53
- <div class="tile"></div>
54
- <div class="tile"></div>
55
- <div class="tile"></div>
56
- <div class="tile"></div>
57
- <div class="tile"></div>
58
- <div class="tile"></div>
30
+ <input class="tile" maxlength="1"
31
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
32
+ <input class="tile" maxlength="1"
33
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
34
+ <input class="tile" maxlength="1"
35
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
36
+ <input class="tile" maxlength="1"
37
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
38
+ <input class="tile" maxlength="1"
39
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
40
+ <input class="tile" maxlength="1"
41
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
42
+ <input class="tile" maxlength="1"
43
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
44
+ <input class="tile" maxlength="1"
45
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
46
+ <input class="tile" maxlength="1"
47
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
48
+ <input class="tile" maxlength="1"
49
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
50
+ <input class="tile" maxlength="1"
51
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
52
+ <input class="tile" maxlength="1"
53
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
54
+ <input class="tile" maxlength="1"
55
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
56
+ <input class="tile" maxlength="1"
57
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
58
+ <input class="tile" maxlength="1"
59
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
60
+ <input class="tile" maxlength="1"
61
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
62
+ <input class="tile" maxlength="1"
63
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
64
+ <input class="tile" maxlength="1"
65
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
66
+ <input class="tile" maxlength="1"
67
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
68
+ <input class="tile" maxlength="1"
69
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
70
+ <input class="tile" maxlength="1"
71
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
72
+ <input class="tile" maxlength="1"
73
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
74
+ <input class="tile" maxlength="1"
75
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
76
+ <input class="tile" maxlength="1"
77
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
78
+ <input class="tile" maxlength="1"
79
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
80
+ <input class="tile" maxlength="1"
81
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
82
+ <input class="tile" maxlength="1"
83
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
84
+ <input class="tile" maxlength="1"
85
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
86
+ <input class="tile" maxlength="1"
87
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
88
+ <input class="tile" maxlength="1"
89
+ oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);">
59
90
  </div>
91
+
60
92
  <div data-keyboard class="game-keyboard mt-3">
61
93
  <div class="game-keyboard-row">
62
94
  <button role="button" class="key-btn" data-key="Q">Q</button>
@@ -94,10 +126,14 @@
94
126
  </div>
95
127
 
96
128
  </div>
129
+ <h2 class="text-center font-weight-bolder mb-0 my-4">
130
+ <a class="word-generator-link" href="/word-game-generator-online">Make your own wordle</a>
131
+ </h2>
97
132
  <span class="open-popup" data-toggle="modal" data-target="#exampleModal"></span>
98
133
  </div>
99
134
  </div>
100
135
 
136
+
101
137
  <div class="modal fade modalWrapper" id="exampleModal">
102
138
  <div class="modal-dialog" style="max-width:400px">
103
139
  <div class="modal-content">
@@ -128,7 +164,7 @@
128
164
 
129
165
  </div>
130
166
 
131
- <div class="pt-4" style="font-size: 14px;">Share it with your friends</div>
167
+ <div class="pt-4" style="font-size: 14px;">Share this wordle with your friends</div>
132
168
  <div class="social-sharing-icons d-flex">
133
169
  <a class="facebook-share-link" target="_blank">
134
170
  <img class="share-icon" src="/assets/images/facebooks.svg" alt="facebook-share">
@@ -196,4 +232,7 @@
196
232
  </div>
197
233
  </div>
198
234
  </div>
199
- </div>
235
+ </div>
236
+
237
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"
238
+ integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
@@ -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>
data/assets/css/game.css CHANGED
@@ -100,7 +100,7 @@
100
100
  justify-content: center;
101
101
  }
102
102
  .game .game-container .game-board .tile{
103
- caret-color: transparent;
103
+
104
104
  display: flex;
105
105
  justify-content: center;
106
106
  align-items: center;
@@ -117,6 +117,8 @@
117
117
  text-transform: uppercase;
118
118
  transition: transform 240ms linear;
119
119
  }
120
+
121
+
120
122
  .game .game-container .game-board .tile:focus-visible{
121
123
  outline: none !important;
122
124
  }
@@ -399,6 +401,10 @@
399
401
  border-color: #666;
400
402
  }
401
403
  @media (max-width: 768px) {
404
+ .tile{
405
+ caret-color: transparent;
406
+ cursor: default;
407
+ }
402
408
  #create-wordle-form{
403
409
  padding:0 10px;
404
410
  }
@@ -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
@@ -5,7 +5,9 @@ let copy_btn = document.querySelector(".copy-btn")
5
5
 
6
6
 
7
7
  let wordlePlayButton = document.querySelector("#wordle-play-button")
8
-
8
+ let facebookSHareLink = document.querySelector(".facebook-share-link")
9
+ let twitterSHareLink = document.querySelector(".twitter-share-link")
10
+ let whatsappSHareLink = document.querySelector(".whatsapp-share-link")
9
11
 
10
12
  let form = document.querySelector('#create-wordle-form')
11
13
  let openPopup = document.querySelector(".open-popup")
@@ -13,6 +15,7 @@ let openPopup = document.querySelector(".open-popup")
13
15
  const alertContainer = document.querySelector(".alert-container")
14
16
  let errorMsg = document.querySelector("#errorMsg")
15
17
 
18
+
16
19
  customWord.focus()
17
20
 
18
21
 
@@ -45,11 +48,17 @@ const createWordle = (e) => {
45
48
  } else {
46
49
  if (customWord.value.length === 5) {
47
50
  openPopup.click()
48
- copy_btn.innerHTML = "Copy"
51
+ copy_btn.innerHTML = "Copy Link"
49
52
  copy_btn.style.background = "dodgerblue"
50
53
  wordlePlayButton.setAttribute("href", `/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
51
54
  wordleGameLink.setAttribute("href", `/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
52
55
  wordleGameLink.innerHTML = `${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`
56
+
57
+ facebookSHareLink.setAttribute("href",
58
+ `https://www.facebook.com/share.php?u=${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
59
+ twitterSHareLink.setAttribute("href",
60
+ `https://www.twitter.com/compose/tweet?&text=${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
61
+ whatsappSHareLink.setAttribute("href", `whatsapp://send?text=${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
53
62
  }
54
63
  }
55
64
  }
data/assets/js/game.js CHANGED
@@ -31,6 +31,19 @@ let gameResultTime = document.querySelector("#game-result-time")
31
31
  let wordleRunningTimer = document.querySelector("#wordle-running-timer")
32
32
  // wordleRunningTimer.innerHTML = "00:00"
33
33
 
34
+
35
+
36
+ let tile = document.querySelector('.tile')
37
+ let x = window.matchMedia("(min-width: 768px)")
38
+ if (x.matches) {
39
+ tile.focus()
40
+ }
41
+ // function limitKeypress(event, maxLength) {
42
+ // event.target.value = event.target.value.replace(/[^a-zA-Z? ]/g, '')
43
+ // event.target.value = event.target.value.substring(0, maxLength)
44
+ // }
45
+
46
+
34
47
  let second = 0
35
48
  let minutes = 0
36
49
  let clear
@@ -44,7 +57,7 @@ function startTime() {
44
57
  min = checkTime(minutes)
45
58
  sec = checkTime(second)
46
59
 
47
- console.log(min + ":" + sec)
60
+ // console.log(min + ":" + sec)
48
61
 
49
62
  wordleRunningTimer.innerText = min + ":" + sec
50
63
  gameResultTime.innerHTML = "Your game ended :" + " " + min + ":" + sec
@@ -129,19 +142,29 @@ const pressKey = (key) => {
129
142
  nextTile.dataset.letter = key.toLowerCase()
130
143
  nextTile.dataset.state = "active"
131
144
  nextTile.classList.add("popAni")
132
- nextTile.innerText = key
145
+ nextTile.value = key
146
+ let x = window.matchMedia("(min-width: 768px)")
147
+ if (x.matches) {
148
+ nextTile.focus()
149
+ }
150
+
133
151
  nextTile.style.border = "2px solid #a7adc0"
134
152
  }
135
153
  const deleteKey = () => {
136
154
  const activeTiles = getActiveTiles()
137
155
  const lastTile = activeTiles[activeTiles.length - 1]
138
156
  if (lastTile == null) return
139
- lastTile.textContent = ""
157
+ lastTile.value = ""
158
+ let x = window.matchMedia("(min-width: 768px)")
159
+ if (x.matches) {
160
+ lastTile.focus()
161
+ }
140
162
  delete lastTile.dataset.state
141
163
  delete lastTile.dataset.letter
142
164
  lastTile.style.border = "2px solid #dee1e9"
143
165
  lastTile.classList.remove("popAni")
144
166
  }
167
+
145
168
  const handleSubmit = () => {
146
169
  const allTiles = [...getActiveTiles()]
147
170
  if (allTiles.length !== wordLength) {
@@ -179,6 +202,7 @@ const handleSubmit = () => {
179
202
  const evaluateTiles = (allTiles, matchedLettersCount, guessWord) => {
180
203
  let reEvaluate = []
181
204
  allTiles.map((tile, index) => {
205
+ tile.setAttribute("disabled", true)
182
206
  if (targetWord !== guessWord) {
183
207
  setTimeout(() => {
184
208
  tile.classList.add("flip")
@@ -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); //
@@ -367,20 +369,19 @@ function getWords(data) {
367
369
  let allGroupWords = document.getElementById(`alpha_${i}`)
368
370
  let getAllGroupWords = [...main.getElementsByClassName('allGroupWords')]
369
371
 
370
-
371
372
  if (main.dataset.value !== "null") {
372
373
  if (allGroupWords) {
373
374
  Array.from(getAllGroupWords).forEach((item) => {
374
375
  if (item.id.slice(6) <= stringLength.length) {
375
- if (item.nextSibling !== null && item.nextSibling.classList !== undefined && item.nextSibling.classList.contains("mmtwrappos")) {
376
- item.nextSibling.style.display = "block"
377
- }
378
- allGroupWords.innerHTML = ""
376
+ // if (item.nextSibling !== null && item.nextSibling.classList !== undefined && item.nextSibling.classList.contains("mmtwrappos")) {
377
+ // item.nextSibling.style.display = "block"
378
+ // }
379
379
  item.style.display = "block"
380
380
  }
381
381
  else {
382
382
  if (item.nextSibling !== null && item.nextSibling.classList !== undefined && item.nextSibling.classList.contains("mmtwrappos")) {
383
- item.nextSibling.style.display = "none"
383
+ item.nextSibling.style.visibility = "hidden"
384
+ item.nextSibling.style.height = "0"
384
385
  }
385
386
  item.style.display = "none"
386
387
  }
@@ -397,6 +398,7 @@ function getWords(data) {
397
398
  `
398
399
  }
399
400
  else {
401
+ console.log(true)
400
402
  let getAllGroupWords = [...main.getElementsByClassName('allGroupWords')]
401
403
  let allGroupWords = document.createElement("div")
402
404
  allGroupWords.className = "allGroupWords wordlistContainer"
@@ -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.3.1
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-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll