word-games-theme 1.4.2 → 1.4.3

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: fcf1a9918dae39018eb109138069209372d9ed2319aa92566d2dd3af074fb612
4
- data.tar.gz: 9f4e7745334a4914f9cb93464d2abc67d3ce74ade435c5c895eedfc396151c49
3
+ metadata.gz: 40325a69478800b888dd7e6c8983095dbacafc39505e785b1ec859afc1d59b93
4
+ data.tar.gz: 666ccac9ed2218acf8d1650744027f948b2c8c357d65bad78dbd0a63c1a530df
5
5
  SHA512:
6
- metadata.gz: '048d9b540d189dffc22f510975b54c75fae7e92f7db3e2139834f493ac9c887fa500ab23c7468ed49f0923ded8a50233199ad8ba9c88f586037b9ef9096a447d'
7
- data.tar.gz: bb43976c49f8541991f7c0ca2317ec4ee938e01d226ead7b49da5bb192e77b05241bccd91e7eecb758aa4db18ec59e02566ceef9f319acaa5e43d9e3a7e98275
6
+ metadata.gz: baf069f286e4972da993781af6f7809fc23b58bd440ec12633603185978ed9ef753895301dd8a8db01443156f8e6d227a5d6bc072d839df96f4ca2ef62171edd
7
+ data.tar.gz: 42fe25026668e803bd48af49628b9e3c766754619e38ea650edfe43d1bd237f15e44c2c696160fd63371ca13ae012b7dc22c81dc265cf3cda3eafa7fb32d48a1
@@ -154,6 +154,71 @@
154
154
  </nav>
155
155
  <!-- </header> -->
156
156
 
157
+ {%- if page.ezoicTest -%}
158
+
159
+ <style>
160
+ .faux-image-wrapper {
161
+ margin-bottom: 10px;
162
+ position: relative;
163
+ padding-bottom: 100%;
164
+ /* Or height: 200px; */
165
+ }
166
+
167
+ .faux-image {
168
+ background: #dddddd;
169
+ border-radius: 4px;
170
+ height: 100%;
171
+ position: absolute;
172
+ width: 100%;
173
+ }
174
+
175
+ .faux-text {
176
+ background: #dddddd;
177
+ border-radius: 4px;
178
+ height: 20px;
179
+ margin-bottom: 5px;
180
+ }
181
+
182
+ .faux-text.short {
183
+ width: 75%;
184
+ }
185
+
186
+ .faux-text.short2 {
187
+ width: 50%;
188
+ }
189
+
190
+ .shimmer {
191
+ overflow: hidden;
192
+ position: relative;
193
+ }
194
+
195
+ .shimmer::before {
196
+ content: "";
197
+ position: absolute;
198
+ background: linear-gradient(90deg,
199
+ rgba(255, 255, 255, 0) 0%,
200
+ rgba(255, 255, 255, 0.4) 50%,
201
+ rgba(255, 255, 255, 0) 100%);
202
+ height: 100%;
203
+ width: 100%;
204
+ z-index: 1;
205
+ animation: shimmer 1s infinite;
206
+ }
207
+
208
+ @keyframes shimmer {
209
+ 0% {
210
+ transform: translateX(-100%);
211
+ }
212
+
213
+ 100% {
214
+ transform: translateX(100%);
215
+ }
216
+ }
217
+ </style>
218
+
219
+ {%- endif -%}
220
+
221
+
157
222
  <!-- Ezoic - sidebar_floating_1 - sidebar_floating_1 -->
158
223
  <div id="ezoic-pub-ad-placeholder-109"> </div>
159
224
  <!-- End Ezoic - sidebar_floating_1 - sidebar_floating_1 -->
@@ -173,6 +238,18 @@
173
238
  {%- endif -%}
174
239
 
175
240
  {% include section/wordGroup.html %}
241
+
242
+ {%- if page.ezoicTest -%}
243
+ <div class="placeholder_loading placeholder shimmer">
244
+ <div class="faux-image-wrapper">
245
+ <div class="faux-text"></div>
246
+ <div class="faux-text short"></div>
247
+ <div class="faux-text short2"></div>
248
+ </div>
249
+
250
+ </div>
251
+ {%- endif -%}
252
+
176
253
  </div>
177
254
  <!-- navbar close -->
178
255
  <!-- header close -->
data/_layouts/page.html CHANGED
@@ -78,7 +78,7 @@
78
78
  {%- if page.language -%}
79
79
  <script data-language="{{page.language}}" src="/assets/js/other-lang-wordScrabble.js" crossorigin></script>
80
80
  {%- elsif page.tool != 'words-that-start-with-the-letters' and page.noAdsRefresh != true-%}
81
- <script defer data-url="{{site.url}}" data-range="{{page.blanktilerange}}" src="/assets/js/wordScrabble-test.js
81
+ <script defer data-ezoictest="{{page.ezoicTest}}" data-url="{{site.url}}" data-range="{{page.blanktilerange}}" src="/assets/js/wordScrabble-test.js
82
82
  "></script>
83
83
  {%- endif -%}
84
84
  {%- else -%}
@@ -51,6 +51,25 @@ letterCloseButton.addEventListener("click", () => {
51
51
  let txtBox = document.querySelector('.txtBox')
52
52
  txtBox.focus()
53
53
  txtBox.value = serachValue
54
+
55
+
56
+ var placeholder_loading = document.querySelector(".placeholder_loading")
57
+ if (script.dataset.ezoictest) {
58
+ function myFunction(x) {
59
+ if (x.matches) {
60
+ txtBox.addEventListener("click", () => {
61
+ const scrollingElement = (document.scrollingElement || document.body);
62
+ scrollingElement.scroll({ top: 500, behavior: 'smooth' });
63
+ })
64
+ } else {
65
+ console.log("false");
66
+ }
67
+ }
68
+ var x = window.matchMedia("(max-width: 768px)")
69
+ myFunction(x)
70
+ x.addListener(myFunction)
71
+ }
72
+
54
73
  txtBox.addEventListener('input', (e) => {
55
74
  if (e.target.value === "") {
56
75
  letterCloseButton.classList.remove("ltr-cls-btn-commonPage")
@@ -123,6 +142,10 @@ const getData = async (serachValue) => {
123
142
  try {
124
143
  errorMsg.innerHTML = ""
125
144
  wordCount.innerHTML = ""
145
+ if (script.dataset.ezoictest) {
146
+ placeholder_loading.style.display = "none"
147
+ }
148
+
126
149
  let selectedDictionary = document.querySelector('.select_dropDown2').value
127
150
  main.innerHTML = `<div class="loader">
128
151
  <img src='/assets/images/loading.gif'>
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.4.2
4
+ version: 1.4.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: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll