word-games-theme 1.4.2 → 1.4.4

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: 9764e420c7f9491c9993236de3622ff491c49fcf00fae5545c8bec6ffc565ecf
4
+ data.tar.gz: 0d1f2ed390bc37b9afdb5b72ba9c43f06dc57637e7bf0342ecfcd3d336061dc4
5
5
  SHA512:
6
- metadata.gz: '048d9b540d189dffc22f510975b54c75fae7e92f7db3e2139834f493ac9c887fa500ab23c7468ed49f0923ded8a50233199ad8ba9c88f586037b9ef9096a447d'
7
- data.tar.gz: bb43976c49f8541991f7c0ca2317ec4ee938e01d226ead7b49da5bb192e77b05241bccd91e7eecb758aa4db18ec59e02566ceef9f319acaa5e43d9e3a7e98275
6
+ metadata.gz: 16e0afc4666c1993814d8f3258451459c6127a646aa2d4f1a24b8a9c0d247ffe4a8d3726f55d3a09af951ae3ac1efd5ea46d6524c9417b800f7214556473c4bd
7
+ data.tar.gz: 197629448b884f575fbb224c041e4be423bed4e21ae0994264e3afb8533a335ef0da4107fea633d808b42031a355db2b09b2171c3faf74ad87827722f140a7fb
@@ -0,0 +1,8 @@
1
+ <div class="placeholder_loading placeholder shimmer">
2
+ <div class="faux-image-wrapper">
3
+ <div class="faux-text"></div>
4
+ <div class="faux-text short"></div>
5
+ <div class="faux-text short2"></div>
6
+ </div>
7
+
8
+ </div>
@@ -154,6 +154,8 @@
154
154
  </nav>
155
155
  <!-- </header> -->
156
156
 
157
+
158
+
157
159
  <!-- Ezoic - sidebar_floating_1 - sidebar_floating_1 -->
158
160
  <div id="ezoic-pub-ad-placeholder-109"> </div>
159
161
  <!-- End Ezoic - sidebar_floating_1 - sidebar_floating_1 -->
@@ -173,6 +175,8 @@
173
175
  {%- endif -%}
174
176
 
175
177
  {% include section/wordGroup.html %}
178
+ {% include placeholder-loading.html %}
179
+
176
180
  </div>
177
181
  <!-- navbar close -->
178
182
  <!-- header close -->
@@ -78,6 +78,20 @@
78
78
  let focusBorder = document.querySelector('.focus-border')
79
79
  txtBox.focus()
80
80
 
81
+ function myFunction(x) {
82
+ if (x.matches) {
83
+ txtBox.addEventListener("click", () => {
84
+ const scrollingElement = (document.scrollingElement || document.body || document.documentElement);
85
+ scrollingElement.scroll({ top: 200, behavior: 'smooth' });
86
+ })
87
+ } else {
88
+ console.log("false");
89
+ }
90
+ }
91
+ var x = window.matchMedia("(max-width: 768px)")
92
+ myFunction(x)
93
+ x.addListener(myFunction)
94
+
81
95
  txtBox.addEventListener('input', (e) => {
82
96
  if (e.target.value === "") {
83
97
  letterCloseButton.classList.remove("close_ltr_icon")
data/assets/css/style.css CHANGED
@@ -599,4 +599,63 @@ header {
599
599
  z-index: 99999;
600
600
  /* width: 160px;
601
601
  height: 100vh; */
602
+ }
603
+
604
+ /* //placeholder loader */
605
+ .faux-image-wrapper {
606
+ margin-bottom: 10px;
607
+ position: relative;
608
+ padding-bottom: 100%;
609
+ /* Or height: 200px; */
610
+ }
611
+
612
+ .faux-image {
613
+ background: #dddddd;
614
+ border-radius: 4px;
615
+ height: 100%;
616
+ position: absolute;
617
+ width: 100%;
618
+ }
619
+
620
+ .faux-text {
621
+ background: #dddddd;
622
+ border-radius: 4px;
623
+ height: 20px;
624
+ margin-bottom: 5px;
625
+ }
626
+
627
+ .faux-text.short {
628
+ width: 75%;
629
+ }
630
+
631
+ .faux-text.short2 {
632
+ width: 50%;
633
+ }
634
+
635
+ .shimmer {
636
+ overflow: hidden;
637
+ position: relative;
638
+ }
639
+
640
+ .shimmer::before {
641
+ content: "";
642
+ position: absolute;
643
+ background: linear-gradient(90deg,
644
+ rgba(255, 255, 255, 0) 0%,
645
+ rgba(255, 255, 255, 0.4) 50%,
646
+ rgba(255, 255, 255, 0) 100%);
647
+ height: 100%;
648
+ width: 100%;
649
+ z-index: 1;
650
+ animation: shimmer 1s infinite;
651
+ }
652
+
653
+ @keyframes shimmer {
654
+ 0% {
655
+ transform: translateX(-100%);
656
+ }
657
+
658
+ 100% {
659
+ transform: translateX(100%);
660
+ }
602
661
  }
@@ -74,6 +74,21 @@ txtBox.addEventListener('input', (e) => {
74
74
  }
75
75
  })
76
76
 
77
+ let placeholder_loading = document.querySelector(".placeholder_loading")
78
+ function myFunction(x) {
79
+ if (x.matches) {
80
+ txtBox.addEventListener("click", () => {
81
+ const scrollingElement = (document.scrollingElement || document.body || document.documentElement);
82
+ scrollingElement.scroll({ top: 200, behavior: 'smooth' });
83
+ })
84
+ } else {
85
+ console.log("false");
86
+ }
87
+ }
88
+ var x = window.matchMedia("(max-width: 768px)")
89
+ myFunction(x)
90
+ x.addListener(myFunction)
91
+
77
92
  var theSelect = document.getElementById('select_dropDown')
78
93
  const sortup = document.querySelector(".sortup-icon")
79
94
  let bool = false
@@ -113,6 +128,7 @@ const getDiff = (text1, text2) => {
113
128
  }
114
129
  const getData = async (serachValue) => {
115
130
  try {
131
+ placeholder_loading.style.display = "none"
116
132
  errorMsg.innerHTML = ""
117
133
  wordCount.innerHTML = ""
118
134
  home_page_search_result.innerHTML = ""
@@ -51,6 +51,23 @@ letterCloseButton.addEventListener("click", () => {
51
51
  let txtBox = document.querySelector('.txtBox')
52
52
  txtBox.focus()
53
53
  txtBox.value = serachValue
54
+
55
+
56
+ let placeholder_loading = document.querySelector(".placeholder_loading")
57
+ function myFunction(x) {
58
+ if (x.matches) {
59
+ txtBox.addEventListener("click", () => {
60
+ const scrollingElement = (document.scrollingElement || document.body || document.documentElement);
61
+ scrollingElement.scroll({ top: 200, behavior: 'smooth' });
62
+ })
63
+ } else {
64
+ console.log("false");
65
+ }
66
+ }
67
+ var x = window.matchMedia("(max-width: 768px)")
68
+ myFunction(x)
69
+ x.addListener(myFunction)
70
+
54
71
  txtBox.addEventListener('input', (e) => {
55
72
  if (e.target.value === "") {
56
73
  letterCloseButton.classList.remove("ltr-cls-btn-commonPage")
@@ -121,6 +138,7 @@ const getDiff = (text1, text2) => {
121
138
  // getWords define...
122
139
  const getData = async (serachValue) => {
123
140
  try {
141
+ placeholder_loading.style.display = "none"
124
142
  errorMsg.innerHTML = ""
125
143
  wordCount.innerHTML = ""
126
144
  let selectedDictionary = document.querySelector('.select_dropDown2').value
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.4
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-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -156,6 +156,7 @@ files:
156
156
  - _includes/languages/languages.html
157
157
  - _includes/paginationBlogPage.html
158
158
  - _includes/paginationPostPage.html
159
+ - _includes/placeholder-loading.html
159
160
  - _includes/postauthorbio.html
160
161
  - _includes/postbox.html
161
162
  - _includes/script.html