word-games-theme 2.1.1 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/wordgames/en/root.json +0 -8
- data/_data/xyzPagesData/en/words-with-letters-cheat.json +23 -0
- data/_includes/infographics/infographics.html +100 -336
- data/_includes/section/xyzGroup.html +1 -1
- data/_layouts/xyzpages.html +7 -0
- data/assets/css/style.css +134 -10
- data/assets/js/xyz.js +179 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d31015138dae42fd83da65b8e3a233de79d647d7270ec996086fdf6f65f927
|
4
|
+
data.tar.gz: e58b403d3632d43efbc30383dcdd8da5362ae9c1419ae03ab9c4491b9a41f3f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '058a633ba4d6b31e7c305c7d9d8f112d62d1e6f77f2b8a5d85973dfd142d8e3d7601a5bd00ec84c48233451cd2d7e514ccc58772d6a894407a9f763b50ecc7dc'
|
7
|
+
data.tar.gz: 7e95a86217610e79124d43d226980c21ab45c3a00a061510cc3f44fed8bc75cd3a498572d816e615ebd4c12eeba6e408f6a74ed25344d64dfb8af57d5c0ea3c7
|
@@ -23,14 +23,6 @@
|
|
23
23
|
"image": "/assets/images/2.png",
|
24
24
|
"description": "5 benefits of using wake me up at 4:45 am tool"
|
25
25
|
},
|
26
|
-
{
|
27
|
-
"image": "/assets/images/3.png",
|
28
|
-
"description": "Additional features of wake me up at 4:45 am tool"
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"image": "/assets/images/3.png",
|
32
|
-
"description": "Additional features of wake me up at 4:45 am tool"
|
33
|
-
},
|
34
26
|
{
|
35
27
|
"image": "/assets/images/3.png",
|
36
28
|
"description": "Additional features of wake me up at 4:45 am tool"
|
@@ -363,6 +363,29 @@
|
|
363
363
|
}
|
364
364
|
]
|
365
365
|
],
|
366
|
+
"infographics": [
|
367
|
+
{
|
368
|
+
"image": "/assets/images/1.png",
|
369
|
+
"description": "How to set alarm on wake me up at 4:45 am tool"
|
370
|
+
},
|
371
|
+
{
|
372
|
+
"image": "/assets/images/2.png",
|
373
|
+
"description": "5 benefits of using wake me up at 4:45 am tool"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"image": "/assets/images/3.png",
|
377
|
+
"description": "Additional features of wake me up at 4:45 am tool"
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"image": "/assets/images/3.png",
|
381
|
+
"description": "Additional features of wake me up at 4:45 am tool"
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"image": "/assets/images/3.png",
|
385
|
+
"description": "Additional features of wake me up at 4:45 am tool"
|
386
|
+
}
|
387
|
+
|
388
|
+
],
|
366
389
|
"featureList": [
|
367
390
|
{
|
368
391
|
"feature_heading": "Free to use",
|
@@ -1,342 +1,106 @@
|
|
1
|
-
<!-- <style>
|
2
|
-
/* Reset default browser styles */
|
3
|
-
|
4
|
-
.infographic {
|
5
|
-
display: flex;
|
6
|
-
justify-content: space-between;
|
7
|
-
align-items: center;
|
8
|
-
margin: 50px auto;
|
9
|
-
max-width: 800px;
|
10
|
-
}
|
11
|
-
.infographic-item {
|
12
|
-
flex-basis: 30%;
|
13
|
-
text-align: center;
|
14
|
-
/* background-color: #404040; */
|
15
|
-
/* border-radius: 10px; */
|
16
|
-
/* padding: 30px; */
|
17
|
-
}
|
18
|
-
|
19
|
-
.infographic-item img {
|
20
|
-
max-width: 100%;
|
21
|
-
height: auto;
|
22
|
-
border-radius: 8px;
|
23
|
-
margin-bottom: 10px;
|
24
|
-
box-shadow: 15px 15px 40px rgba(0, 0, 0, 50%);
|
25
|
-
}
|
26
|
-
|
27
|
-
.infographic-item h3 {
|
28
|
-
font-size: 20px;
|
29
|
-
margin-bottom: 10px;
|
30
|
-
color: #fff;
|
31
|
-
}
|
32
|
-
|
33
|
-
.infographic-item p {
|
34
|
-
font-size: 16px;
|
35
|
-
margin-bottom: 0px;
|
36
|
-
}
|
37
|
-
|
38
|
-
@media (max-width: 600px) {
|
39
|
-
.infographic {
|
40
|
-
flex-wrap: wrap;
|
41
|
-
}
|
42
|
-
|
43
|
-
.infographic-item {
|
44
|
-
flex-basis: 100%;
|
45
|
-
margin-bottom: 30px;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
</style>
|
49
|
-
<div class="infographics_section">
|
50
|
-
<h3 class="text-center w-100 mb-5"><b>Other useful information</b></h3>
|
51
|
-
<div class="infographic">
|
52
|
-
{%- for item in dataToShow.infographics -%}
|
53
|
-
<div class="infographic-item">
|
54
|
-
<img src="{{item.image}}" alt="Image 1">
|
55
|
-
<p class="infographic-desc">{{item.description | capitalize }}</p>
|
56
|
-
</div>
|
57
|
-
{%- endfor -%}
|
58
|
-
</div>
|
59
1
|
|
60
2
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
{
|
3
|
+
<div class="inforgraphics_section">
|
4
|
+
<h3 class="text-center w-100 mb-5" style="font-size:22px"><b>Other useful information</b></h3>
|
5
|
+
<div class="wrapper">
|
6
|
+
<svg id="left" fill="#000000" viewBox="-12 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <title>angle-left</title> <path d="M7.28 23.28c-0.2 0-0.44-0.080-0.6-0.24l-6.44-6.44c-0.32-0.32-0.32-0.84 0-1.2l6.44-6.44c0.32-0.32 0.84-0.32 1.2 0 0.32 0.32 0.32 0.84 0 1.2l-5.8 5.84 5.84 5.84c0.32 0.32 0.32 0.84 0 1.2-0.16 0.16-0.44 0.24-0.64 0.24z"></path> </g></svg>
|
7
|
+
<div class="carousel">
|
8
|
+
<div class="carousel-inner">
|
9
|
+
{%- for item in dataToShow.infographics -%}
|
10
|
+
<div class="slide">
|
11
|
+
<img src="{{ item.image }}" alt="img" draggable="false">
|
12
|
+
<p class="infographic-desc">{{ item.description | capitalize }}</p>
|
71
13
|
</div>
|
14
|
+
{% endfor %}
|
72
15
|
</div>
|
73
16
|
</div>
|
74
|
-
<
|
75
|
-
<button class="btn-slide next"><i class="fas fa-3x fa-chevron-circle-right"></i></button>
|
76
|
-
</div>
|
77
|
-
<div class="dots-container">
|
78
|
-
{%- for item in featureData.infographics -%}
|
79
|
-
<span class="dot active" data-slide="{{ forloop.index0 }}"></span>
|
80
|
-
{%- endfor -%}
|
81
|
-
</div> -->
|
82
|
-
<!-- </div> -->
|
83
|
-
|
84
|
-
<!-- <script>
|
85
|
-
function Slider() {
|
86
|
-
const carouselSlides = document.querySelectorAll('.slide');
|
87
|
-
const btnPrev = document.querySelector('.prev');
|
88
|
-
const btnNext = document.querySelector('.next');
|
89
|
-
const dotsSlide = document.querySelector('.dots-container');
|
90
|
-
let currentSlide = 0;
|
91
|
-
|
92
|
-
const activeDot = function (slide) {
|
93
|
-
document.querySelectorAll('.dot').forEach(dot => dot.classList.remove('active'));
|
94
|
-
document.querySelector(`.dot[data-slide="${slide}"]`).classList.add('active');
|
95
|
-
};
|
96
|
-
activeDot(currentSlide);
|
97
|
-
|
98
|
-
const changeSlide = function (slides) {
|
99
|
-
carouselSlides.forEach((slide, index) => (slide.style.transform = `translateX(${100 * (index - slides)}%)`));
|
100
|
-
};
|
101
|
-
changeSlide(currentSlide);
|
102
|
-
|
103
|
-
btnNext.addEventListener('click', function () {
|
104
|
-
currentSlide++;
|
105
|
-
if (carouselSlides.length - 1 < currentSlide) {
|
106
|
-
currentSlide = 0;
|
107
|
-
};
|
108
|
-
changeSlide(currentSlide);
|
109
|
-
activeDot(currentSlide);
|
110
|
-
});
|
111
|
-
btnPrev.addEventListener('click', function () {
|
112
|
-
currentSlide--;
|
113
|
-
if (0 >= currentSlide) {
|
114
|
-
currentSlide = 0;
|
115
|
-
};
|
116
|
-
changeSlide(currentSlide);
|
117
|
-
activeDot(currentSlide);
|
118
|
-
});
|
119
|
-
|
120
|
-
dotsSlide.addEventListener('click', function (e) {
|
121
|
-
if (e.target.classList.contains('dot')) {
|
122
|
-
const slide = e.target.dataset.slide;
|
123
|
-
changeSlide(slide);
|
124
|
-
activeDot(slide);
|
125
|
-
}
|
126
|
-
});
|
127
|
-
};
|
128
|
-
Slider();
|
129
|
-
</script> -->
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<style>
|
144
|
-
.infographics-wrapper {
|
145
|
-
display: flex;
|
146
|
-
align-items: center;
|
147
|
-
justify-content: center;
|
148
|
-
overflow-x: hidden;
|
149
|
-
overflow-y: hidden;
|
150
|
-
height: 130vh;
|
151
|
-
}
|
152
|
-
|
153
|
-
.infographics-wrapper .container {
|
154
|
-
width: 100%;
|
155
|
-
height: 100%;
|
156
|
-
display: flex;
|
157
|
-
transform-style: preserve-3d;
|
158
|
-
align-items: center;
|
159
|
-
flex-direction: column;
|
160
|
-
}
|
161
|
-
|
162
|
-
.infographics-wrapper .cards {
|
163
|
-
position: relative;
|
164
|
-
width: 300px;
|
165
|
-
height: 300px;
|
166
|
-
margin-bottom: 20px;
|
167
|
-
perspective: 1000px;
|
168
|
-
transform-style: preserve-3d;
|
169
|
-
}
|
170
|
-
|
171
|
-
.infographics-wrapper .cards label {
|
172
|
-
position: absolute;
|
173
|
-
width: 300px;
|
174
|
-
left: 0;
|
175
|
-
right: 0;
|
176
|
-
margin: auto;
|
177
|
-
cursor: pointer;
|
178
|
-
transition: transform 0.55s ease;
|
179
|
-
}
|
180
|
-
|
181
|
-
.infographics-wrapper .cards .card {
|
182
|
-
position: relative;
|
183
|
-
height: 100%;
|
184
|
-
background-color: #323444;
|
185
|
-
border-radius: 10px;
|
186
|
-
padding: 5px;
|
187
|
-
}
|
188
|
-
|
189
|
-
.infographics-wrapper .card .image {
|
190
|
-
display: flex;
|
191
|
-
justify-content: space-between;
|
192
|
-
}
|
193
|
-
|
194
|
-
.infographics-wrapper .card .image img {
|
195
|
-
border-radius: 5px;
|
196
|
-
box-shadow: 15px 15px 40px rgba(0, 0, 0, 50%);
|
197
|
-
margin-top: 23px;
|
198
|
-
width: 86%;
|
199
|
-
object-fit: cover;
|
200
|
-
}
|
201
|
-
|
202
|
-
.infographics-wrapper .card .image .dots {
|
203
|
-
text-align: center;
|
204
|
-
}
|
205
|
-
|
206
|
-
.dots div {
|
207
|
-
width: 10px;
|
208
|
-
height: 10px;
|
209
|
-
border-radius: 50%;
|
210
|
-
margin-bottom: 10px;
|
211
|
-
}
|
212
|
-
|
213
|
-
.dots div:nth-child(1) {
|
214
|
-
background-color: var(--current-color1);
|
215
|
-
}
|
216
|
-
|
217
|
-
.dots div:nth-child(2) {
|
218
|
-
background-color: #5B85F9;
|
219
|
-
}
|
220
|
-
|
221
|
-
.dots div:nth-child(3) {
|
222
|
-
|
223
|
-
background-color: #000;
|
224
|
-
}
|
225
|
-
|
226
|
-
.card .infos {
|
227
|
-
display: block;
|
228
|
-
text-align: end;
|
229
|
-
padding-top: 2rem;
|
230
|
-
}
|
231
|
-
|
232
|
-
.infos span {
|
233
|
-
|
234
|
-
display: block;
|
235
|
-
}
|
236
|
-
|
237
|
-
.infos .name {
|
238
|
-
font-size: 30px;
|
239
|
-
color: var(--current-color1);
|
240
|
-
letter-spacing: 8px;
|
241
|
-
margin-bottom: 20px;
|
242
|
-
padding-left: 25%;
|
243
|
-
transition: all .6s ease;
|
244
|
-
}
|
245
|
-
|
246
|
-
.infos .lorem {
|
247
|
-
font-size: 15px;
|
248
|
-
color: #ECEAED;
|
249
|
-
|
250
|
-
text-align: center;
|
251
|
-
}
|
252
|
-
|
253
|
-
#s1:checked~.cards #slide4,
|
254
|
-
#s2:checked~.cards #slide5,
|
255
|
-
#s3:checked~.cards #slide1,
|
256
|
-
#s4:checked~.cards #slide2,
|
257
|
-
#s5:checked~.cards #slide3 {
|
258
|
-
transform: translate3d(-70%, 0, -220px);
|
259
|
-
--current-color1: #ECEAED;
|
260
|
-
--current-color2: #404457;
|
261
|
-
}
|
262
|
-
|
263
|
-
#s1:checked~.cards #slide5,
|
264
|
-
#s2:checked~.cards #slide1,
|
265
|
-
#s3:checked~.cards #slide2,
|
266
|
-
#s4:checked~.cards #slide3,
|
267
|
-
#s5:checked~.cards #slide4 {
|
268
|
-
|
269
|
-
transform: translate3d(-35%, 0, -120px);
|
270
|
-
--current-color1: #ECEAED;
|
271
|
-
--current-color2: #404457;
|
272
|
-
}
|
273
|
-
|
274
|
-
#s1:checked~.cards #slide1,
|
275
|
-
#s2:checked~.cards #slide2,
|
276
|
-
#s3:checked~.cards #slide3,
|
277
|
-
#s4:checked~.cards #slide4,
|
278
|
-
#s5:checked~.cards #slide5 {
|
279
|
-
transform: translate3d(0, 0, 0);
|
280
|
-
--current-color1: #fad00c;
|
281
|
-
--current-color2: #ECEAED;
|
282
|
-
}
|
283
|
-
|
284
|
-
#s1:checked~.cards #slide2,
|
285
|
-
#s2:checked~.cards #slide3,
|
286
|
-
#s3:checked~.cards #slide4,
|
287
|
-
#s4:checked~.cards #slide5,
|
288
|
-
#s5:checked~.cards #slide1 {
|
289
|
-
|
290
|
-
transform: translate3d(35%, 0, -120px);
|
291
|
-
--current-color1: #ECEAED;
|
292
|
-
--current-color2: #404457;
|
293
|
-
}
|
294
|
-
|
295
|
-
#s1:checked~.cards #slide3,
|
296
|
-
#s2:checked~.cards #slide4,
|
297
|
-
#s3:checked~.cards #slide5,
|
298
|
-
#s4:checked~.cards #slide1,
|
299
|
-
#s5:checked~.cards #slide2 {
|
300
|
-
transform: translate3d(70%, 0, -220px);
|
301
|
-
--current-color1: #ECEAED;
|
302
|
-
--current-color2: #404457;
|
303
|
-
}
|
304
|
-
|
305
|
-
@media (max-width:768px) {
|
306
|
-
.infographics-wrapper .cards label{
|
307
|
-
left: -100px;
|
308
|
-
}
|
309
|
-
|
310
|
-
}
|
311
|
-
</style>
|
312
|
-
|
313
|
-
<div class="infographics-wrapper">
|
314
|
-
<div class="container">
|
315
|
-
<h3 class="text-center w-100 mb-5 mt-5" style="font-size:20px"><b>Other useful information</b></h3>
|
316
|
-
<input type="radio" name="slider" class="d-none" id="s1" checked>
|
317
|
-
<input type="radio" name="slider" class="d-none" id="s2">
|
318
|
-
<input type="radio" name="slider" class="d-none" id="s3">
|
319
|
-
<input type="radio" name="slider" class="d-none" id="s4">
|
320
|
-
<input type="radio" name="slider" class="d-none" id="s5">
|
321
|
-
<div class="cards">
|
322
|
-
|
323
|
-
{%- for item in dataToShow.infographics -%}
|
324
|
-
<label for="s{{ forloop.index }}" id="slide{{ forloop.index }}">
|
325
|
-
<div class="card">
|
326
|
-
<div class="image">
|
327
|
-
<img src="{{item.image}}" alt="">
|
328
|
-
<div class="dots">
|
329
|
-
<div class="dot1"></div>
|
330
|
-
<div class="dot2"></div>
|
331
|
-
<div class="dot3"></div>
|
332
|
-
</div>
|
333
|
-
</div>
|
334
|
-
<div class="infos">
|
335
|
-
<span class="lorem">{{item.description | capitalize }}</span>
|
336
|
-
</div>
|
337
|
-
</div>
|
338
|
-
</label>
|
339
|
-
{%- endfor -%}
|
340
|
-
</div>
|
17
|
+
<svg id="right" fill="#000000" viewBox="-12 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <title>angle-right</title> <path d="M0.88 23.28c-0.2 0-0.44-0.080-0.6-0.24-0.32-0.32-0.32-0.84 0-1.2l5.76-5.84-5.8-5.84c-0.32-0.32-0.32-0.84 0-1.2 0.32-0.32 0.84-0.32 1.2 0l6.44 6.44c0.16 0.16 0.24 0.36 0.24 0.6s-0.080 0.44-0.24 0.6l-6.4 6.44c-0.2 0.16-0.4 0.24-0.6 0.24z"></path> </g></svg>
|
341
18
|
</div>
|
342
|
-
</div>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<script>
|
22
|
+
const carousel = document.querySelector(".carousel-inner"),
|
23
|
+
firstImg = carousel.querySelectorAll("img")[0],
|
24
|
+
arrowIcons = document.querySelectorAll(".wrapper svg")
|
25
|
+
|
26
|
+
const numImages = carousel.querySelectorAll("img").length;
|
27
|
+
const isMobile = window.matchMedia("(max-width: 767px)").matches; // Check if screen width is less than or equal to 767px
|
28
|
+
|
29
|
+
if (numImages > 3) {
|
30
|
+
arrowIcons[1].style.display = "block"
|
31
|
+
} else {
|
32
|
+
arrowIcons[0].style.display = "none";
|
33
|
+
arrowIcons[1].style.display = "none";
|
34
|
+
}
|
35
|
+
|
36
|
+
let isDragStart = false, isDragging = false, prevPageX, prevScrollLeft, positionDiff;
|
37
|
+
const showHideIcons = () => {
|
38
|
+
let scrollWidth = carousel.scrollWidth - carousel.clientWidth; // getting max scrollable width
|
39
|
+
arrowIcons[0].style.display = carousel.scrollLeft == 0 ? "none" : "block";
|
40
|
+
arrowIcons[1].style.display = carousel.scrollLeft == scrollWidth ? "none" : "block";
|
41
|
+
}
|
42
|
+
|
43
|
+
arrowIcons.forEach(icon => {
|
44
|
+
icon.addEventListener("click", () => {
|
45
|
+
let firstImgWidth = firstImg.clientWidth + 40;
|
46
|
+
const scrollAmount = icon.id === "left" ? -firstImgWidth : firstImgWidth;
|
47
|
+
carousel.scrollBy({
|
48
|
+
left: scrollAmount,
|
49
|
+
behavior: "smooth",
|
50
|
+
});
|
51
|
+
setTimeout(() => showHideIcons(), 60); // calling showHideIcons after 60ms
|
52
|
+
});
|
53
|
+
});
|
54
|
+
|
55
|
+
// const autoSlide = () => {
|
56
|
+
// // if there is no image left to scroll then return from here
|
57
|
+
// if (carousel.scrollLeft - (carousel.scrollWidth - carousel.clientWidth) > -1 || carousel.scrollLeft <= 0) return;
|
58
|
+
|
59
|
+
// positionDiff = Math.abs(positionDiff); // making positionDiff value to positive
|
60
|
+
// let firstImgWidth = firstImg.clientWidth + 14;
|
61
|
+
// // getting difference value that needs to add or reduce from carousel left to take middle img center
|
62
|
+
// let valDifference = firstImgWidth - positionDiff;
|
63
|
+
|
64
|
+
// if (carousel.scrollLeft > prevScrollLeft) { // if user is scrolling to the right
|
65
|
+
// return carousel.scrollLeft += positionDiff > firstImgWidth / 3 ? valDifference : -positionDiff;
|
66
|
+
// }
|
67
|
+
// // if user is scrolling to the left
|
68
|
+
// carousel.scrollLeft -= positionDiff > firstImgWidth / 3 ? valDifference : -positionDiff;
|
69
|
+
// }
|
70
|
+
|
71
|
+
// const dragStart = (e) => {
|
72
|
+
// // updatating global variables value on mouse down event
|
73
|
+
// isDragStart = true;
|
74
|
+
// prevPageX = e.pageX || e.touches[0].pageX;
|
75
|
+
// prevScrollLeft = carousel.scrollLeft;
|
76
|
+
// }
|
77
|
+
|
78
|
+
// const dragging = (e) => {
|
79
|
+
// // scrolling images/carousel to left according to mouse pointer
|
80
|
+
// if (!isDragStart) return;
|
81
|
+
// e.preventDefault();
|
82
|
+
// isDragging = true;
|
83
|
+
// carousel.classList.add("dragging");
|
84
|
+
// positionDiff = (e.pageX || e.touches[0].pageX) - prevPageX;
|
85
|
+
// carousel.scrollLeft = prevScrollLeft - positionDiff;
|
86
|
+
// showHideIcons();
|
87
|
+
// }
|
88
|
+
|
89
|
+
// const dragStop = () => {
|
90
|
+
// isDragStart = false;
|
91
|
+
// carousel.classList.remove("dragging");
|
92
|
+
|
93
|
+
// if (!isDragging) return;
|
94
|
+
// isDragging = false;
|
95
|
+
// autoSlide();
|
96
|
+
// }
|
97
|
+
|
98
|
+
// carousel.addEventListener("mousedown", dragStart);
|
99
|
+
// carousel.addEventListener("touchstart", dragStart);
|
100
|
+
|
101
|
+
// document.addEventListener("mousemove", dragging);
|
102
|
+
// carousel.addEventListener("touchmove", dragging);
|
103
|
+
|
104
|
+
// document.addEventListener("mouseup", dragStop);
|
105
|
+
// carousel.addEventListener("touchend", dragStop);
|
106
|
+
</script>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
{%- assign value = item.word -%}
|
31
31
|
<a class="anchor__style" title="Lookup python in Dictionary" target="_blank"
|
32
32
|
href="/word-meaning?search={{item.word}}">
|
33
|
-
<li>{{item.word}}
|
33
|
+
<li class="list_word">{{item.word}}
|
34
34
|
<span class="points" value="14" style="position:relative; top:4px; font-size:12px">
|
35
35
|
{{item.points}}</span>
|
36
36
|
</li>
|
data/_layouts/xyzpages.html
CHANGED
@@ -104,6 +104,13 @@
|
|
104
104
|
{% endif %}
|
105
105
|
{% endif %}
|
106
106
|
|
107
|
+
|
108
|
+
{%- include Rating/rating.html -%}
|
109
|
+
|
110
|
+
{%- if dataToShow.infographics.size > 0 -%}
|
111
|
+
{%- include infographics/infographics.html -%}
|
112
|
+
{%- endif -%}
|
113
|
+
|
107
114
|
{%- include share/socialshare.html -%}
|
108
115
|
|
109
116
|
{% include adBlocker/adBlocker.html %}
|
data/assets/css/style.css
CHANGED
@@ -32,9 +32,11 @@ body {
|
|
32
32
|
top: 65px;
|
33
33
|
position: fixed;
|
34
34
|
}
|
35
|
+
|
35
36
|
.wordgametheme-sidebar-left {
|
36
37
|
left: 75px;
|
37
38
|
}
|
39
|
+
|
38
40
|
.wordgametheme-sidebar-right {
|
39
41
|
right: 75px;
|
40
42
|
}
|
@@ -102,9 +104,10 @@ header {
|
|
102
104
|
transition: all 0.2s linear;
|
103
105
|
}
|
104
106
|
|
105
|
-
.show{
|
106
|
-
display: grid
|
107
|
+
.show {
|
108
|
+
display: grid;
|
107
109
|
}
|
110
|
+
|
108
111
|
.top_tool_bar {
|
109
112
|
height: 540px;
|
110
113
|
overflow-x: hidden;
|
@@ -317,6 +320,7 @@ header {
|
|
317
320
|
font-style: normal;
|
318
321
|
outline: none;
|
319
322
|
}
|
323
|
+
|
320
324
|
.angle-arrow2 {
|
321
325
|
background: url(/assets/images/angle-arrow-down.svg) no-repeat center center;
|
322
326
|
background-size: contain;
|
@@ -616,6 +620,92 @@ header {
|
|
616
620
|
padding: 6px;
|
617
621
|
}
|
618
622
|
|
623
|
+
/* infographicss css */
|
624
|
+
|
625
|
+
.inforgraphics_section {
|
626
|
+
width: 100%;
|
627
|
+
padding: 50px 0px 50px 0px;
|
628
|
+
border-top: 1px solid rgb(224, 224, 224);
|
629
|
+
display: flex;
|
630
|
+
flex-direction: column;
|
631
|
+
align-items: center;
|
632
|
+
}
|
633
|
+
|
634
|
+
.inforgraphics_section .wrapper {
|
635
|
+
display: flex;
|
636
|
+
max-width: 700px;
|
637
|
+
position: relative;
|
638
|
+
}
|
639
|
+
|
640
|
+
.inforgraphics_section .wrapper svg {
|
641
|
+
top: 50%;
|
642
|
+
height: 44px;
|
643
|
+
width: 44px;
|
644
|
+
color: #343F4F;
|
645
|
+
cursor: pointer;
|
646
|
+
font-size: 1.15rem;
|
647
|
+
position: absolute;
|
648
|
+
text-align: center;
|
649
|
+
line-height: 44px;
|
650
|
+
background: #eee;
|
651
|
+
border-radius: 50%;
|
652
|
+
transform: translateY(-50%);
|
653
|
+
transition: transform 0.1s linear;
|
654
|
+
}
|
655
|
+
|
656
|
+
.inforgraphics_section .wrapper svg:active {
|
657
|
+
transform: translateY(-50%) scale(0.9);
|
658
|
+
}
|
659
|
+
|
660
|
+
.inforgraphics_section .wrapper svg:hover {
|
661
|
+
background: #f2f2f2;
|
662
|
+
}
|
663
|
+
|
664
|
+
.inforgraphics_section .wrapper svg:first-child {
|
665
|
+
left: 0px;
|
666
|
+
display: none;
|
667
|
+
z-index: 999;
|
668
|
+
}
|
669
|
+
|
670
|
+
.inforgraphics_section .wrapper svg:last-child {
|
671
|
+
right: 0px;
|
672
|
+
}
|
673
|
+
|
674
|
+
.carousel {
|
675
|
+
display: flex;
|
676
|
+
max-width: 700px;
|
677
|
+
overflow-x: scroll;
|
678
|
+
scroll-snap-type: x mandatory;
|
679
|
+
scroll-behavior: smooth;
|
680
|
+
}
|
681
|
+
|
682
|
+
.carousel-inner {
|
683
|
+
display: flex;
|
684
|
+
flex-wrap: nowrap;
|
685
|
+
}
|
686
|
+
|
687
|
+
.slide {
|
688
|
+
flex: 0 0 calc(100% / 3);
|
689
|
+
scroll-snap-align: start;
|
690
|
+
padding: 20px;
|
691
|
+
}
|
692
|
+
|
693
|
+
.carousel img {
|
694
|
+
width: 100%;
|
695
|
+
object-fit: contain;
|
696
|
+
max-width: 100%;
|
697
|
+
height: auto;
|
698
|
+
border-radius: 8px;
|
699
|
+
}
|
700
|
+
|
701
|
+
.carousel-inner p {
|
702
|
+
text-align: center;
|
703
|
+
margin: 10px 0;
|
704
|
+
font-size: 14px;
|
705
|
+
white-space: normal;
|
706
|
+
word-wrap: break-word;
|
707
|
+
}
|
708
|
+
|
619
709
|
/* social icons css */
|
620
710
|
.social-icons {
|
621
711
|
position: fixed;
|
@@ -942,7 +1032,36 @@ header {
|
|
942
1032
|
/* youtube video how css */
|
943
1033
|
.how-to-video-wrapper .youtubeVideoPlayer {
|
944
1034
|
width: 100%;
|
945
|
-
}
|
1035
|
+
}
|
1036
|
+
|
1037
|
+
/* infographics css */
|
1038
|
+
.inforgraphics_section .wrapper {
|
1039
|
+
max-width: 100%;
|
1040
|
+
}
|
1041
|
+
.carousel-inner p {
|
1042
|
+
font-size: 20px;
|
1043
|
+
}
|
1044
|
+
.inforgraphics_section .wrapper svg:first-child {
|
1045
|
+
left: 0;
|
1046
|
+
z-index: 99;
|
1047
|
+
}
|
1048
|
+
.inforgraphics_section .wrapper svg:last-child {
|
1049
|
+
right: 0;
|
1050
|
+
z-index: 99;
|
1051
|
+
display: block !important;
|
1052
|
+
}
|
1053
|
+
|
1054
|
+
.carousel {
|
1055
|
+
overflow-x: hidden;
|
1056
|
+
}
|
1057
|
+
.carousel img{
|
1058
|
+
height: 600px;
|
1059
|
+
}
|
1060
|
+
|
1061
|
+
.slide {
|
1062
|
+
flex: 0 0 100%;
|
1063
|
+
margin-right: 0;
|
1064
|
+
}
|
946
1065
|
|
947
1066
|
/* footer css for mobile */
|
948
1067
|
.footer-section .language-drop-down-item {
|
@@ -955,10 +1074,12 @@ header {
|
|
955
1074
|
}
|
956
1075
|
|
957
1076
|
@media (max-width: 992px) {
|
1077
|
+
|
958
1078
|
.wordgametheme-sidebar-right,
|
959
1079
|
.wordgametheme-sidebar-left {
|
960
1080
|
display: none;
|
961
1081
|
}
|
1082
|
+
|
962
1083
|
.navbar-nav {
|
963
1084
|
margin-left: 0rem;
|
964
1085
|
}
|
@@ -974,19 +1095,22 @@ header {
|
|
974
1095
|
}
|
975
1096
|
|
976
1097
|
|
977
|
-
@media screen and (min-width: 1450px){
|
978
|
-
.wordgametheme-sidebar-left{
|
1098
|
+
@media screen and (min-width: 1450px) {
|
1099
|
+
.wordgametheme-sidebar-left {
|
979
1100
|
left: 194px !important;
|
980
1101
|
}
|
981
|
-
|
1102
|
+
|
1103
|
+
.wordgametheme-sidebar-right {
|
982
1104
|
right: 194px !important;
|
983
1105
|
}
|
984
1106
|
}
|
985
|
-
|
986
|
-
|
1107
|
+
|
1108
|
+
@media screen and (min-width: 1920px) {
|
1109
|
+
.wordgametheme-sidebar-left {
|
987
1110
|
left: 313px !important;
|
988
1111
|
}
|
989
|
-
|
1112
|
+
|
1113
|
+
.wordgametheme-sidebar-right {
|
990
1114
|
right: 313px !important;
|
991
1115
|
}
|
992
|
-
}
|
1116
|
+
}
|
data/assets/js/xyz.js
CHANGED
@@ -107,3 +107,182 @@ const close = document.querySelector('.times')
|
|
107
107
|
close.addEventListener('click', () => {
|
108
108
|
fillterWrapper.classList.add('hide')
|
109
109
|
})
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
// sorting for words
|
114
|
+
theSelect.addEventListener("change", () => {
|
115
|
+
sortValue = theSelect[theSelect.selectedIndex].text;
|
116
|
+
let list_word = document.getElementsByClassName("list_word")
|
117
|
+
let data = []
|
118
|
+
Array.from(list_word).forEach(item => {
|
119
|
+
item.removeChild(item.lastElementChild);
|
120
|
+
data.push(item.innerHTML.replace(/\s/g, ''))
|
121
|
+
})
|
122
|
+
if (sortValue == "Z-A") {
|
123
|
+
sortBool = "Z-A";
|
124
|
+
sortby(sortBool, data);
|
125
|
+
} else if (sortValue == "Points") {
|
126
|
+
sortBool = "Points";
|
127
|
+
sortPointsby(sortBool, data);
|
128
|
+
} else {
|
129
|
+
sortBool = "A-Z";
|
130
|
+
sortby(sortBool, data);
|
131
|
+
}
|
132
|
+
});
|
133
|
+
|
134
|
+
// sort by aplhabets
|
135
|
+
function sortby(sortValue, data) {
|
136
|
+
if (sortValue === "Z-A") {
|
137
|
+
appendData(sortValue, data.reverse())
|
138
|
+
}
|
139
|
+
else if (sortValue === "A-Z") {
|
140
|
+
appendData(sortValue, data.sort())
|
141
|
+
}
|
142
|
+
}
|
143
|
+
// sorting by points
|
144
|
+
function sortPointsby(sortValue, data) {
|
145
|
+
if (sortValue === "Points") {
|
146
|
+
let newArray = [];
|
147
|
+
data.map((item) => {
|
148
|
+
if (item.length === 1) {
|
149
|
+
ok = false;
|
150
|
+
} else {
|
151
|
+
let ScrabbleLetterScore = ScrabbleScore();
|
152
|
+
let points = 0;
|
153
|
+
let word = item.replace(/<\/?[^>]+>/gi, '')
|
154
|
+
for (let i = 0; i < word.length; i++) {
|
155
|
+
points += ScrabbleLetterScore[word[i]] || 0;
|
156
|
+
}
|
157
|
+
const value = {
|
158
|
+
words: item,
|
159
|
+
points: points,
|
160
|
+
};
|
161
|
+
newArray.push(value);
|
162
|
+
}
|
163
|
+
});
|
164
|
+
newArray.sort(function (a, b) {
|
165
|
+
return b.points - a.points;
|
166
|
+
});
|
167
|
+
appendData(sortValue, newArray)
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
function appendData(sortValue, data) {
|
172
|
+
main.innerHTML = "";
|
173
|
+
let newWordsLength = 0;
|
174
|
+
for (let i = 15; i > 0; i--) {
|
175
|
+
let newdata
|
176
|
+
if (sortValue === "Points") {
|
177
|
+
newdata = data.filter((item) => item.words.replace(/<\/?[^>]+>/gi, '').length === i)
|
178
|
+
} else {
|
179
|
+
newdata = data.filter((item) => item.replace(/<\/?[^>]+>/gi, '').length === i)
|
180
|
+
}
|
181
|
+
if (newdata.length === 0) {
|
182
|
+
main.innerHTML += "";
|
183
|
+
} else {
|
184
|
+
newWordsLength += newdata.length;
|
185
|
+
const result = newdata.map((item) => {
|
186
|
+
let ScrabbleLetterScore = ScrabbleScore();
|
187
|
+
let points = 0;
|
188
|
+
let word
|
189
|
+
if (sortValue === "Points") {
|
190
|
+
word = item.words.replace(/<\/?[^>]+>/gi, '')
|
191
|
+
item = item.words
|
192
|
+
} else {
|
193
|
+
word = item.replace(/<\/?[^>]+>/gi, '')
|
194
|
+
}
|
195
|
+
for (let i = 0; i < word.length; i++) {
|
196
|
+
points += ScrabbleLetterScore[word[i]] || 0; // for unknown characters
|
197
|
+
}
|
198
|
+
return `
|
199
|
+
<a class="anchor__style" title="Lookup ${item.replace(/<\/?[^>]+>/gi, '')} in Dictionary" target="_blank"
|
200
|
+
href="/word-meaning?search=${item.replace(/<\/?[^>]+>/gi, '')}">
|
201
|
+
<li class="list_word">
|
202
|
+
${item}
|
203
|
+
<span class="points" value="${points}" style="position:relative; top:4px; font-size:12px">${points}</span>
|
204
|
+
</li>
|
205
|
+
</a>
|
206
|
+
`});
|
207
|
+
|
208
|
+
main.innerHTML += `
|
209
|
+
<div class="allGroupWords wordlistContainer" id="alpha_${i}">
|
210
|
+
<div class="wordListHeading">
|
211
|
+
<h3 class="lead">${i} Letter Words</h3>
|
212
|
+
</div>
|
213
|
+
<div class="wordList">
|
214
|
+
<ul class="ul list-unstyled">
|
215
|
+
${result.join('')}
|
216
|
+
</ul>
|
217
|
+
</div>
|
218
|
+
</div>
|
219
|
+
`
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
// Scrabble Point Array
|
224
|
+
const ScrabbleScore = () => {
|
225
|
+
let twl06_sowpods = {
|
226
|
+
a: 1,
|
227
|
+
e: 1,
|
228
|
+
i: 1,
|
229
|
+
o: 1,
|
230
|
+
u: 1,
|
231
|
+
l: 1,
|
232
|
+
n: 1,
|
233
|
+
r: 1,
|
234
|
+
s: 1,
|
235
|
+
t: 1,
|
236
|
+
d: 2,
|
237
|
+
g: 2,
|
238
|
+
b: 3,
|
239
|
+
c: 3,
|
240
|
+
m: 3,
|
241
|
+
p: 3,
|
242
|
+
f: 4,
|
243
|
+
h: 4,
|
244
|
+
v: 4,
|
245
|
+
w: 4,
|
246
|
+
y: 4,
|
247
|
+
k: 5,
|
248
|
+
j: 8,
|
249
|
+
x: 8,
|
250
|
+
q: 10,
|
251
|
+
z: 10,
|
252
|
+
};
|
253
|
+
|
254
|
+
let wwfScore = {
|
255
|
+
a: 1,
|
256
|
+
b: 4,
|
257
|
+
c: 4,
|
258
|
+
d: 2,
|
259
|
+
e: 1,
|
260
|
+
f: 4,
|
261
|
+
g: 3,
|
262
|
+
h: 3,
|
263
|
+
i: 1,
|
264
|
+
j: 10,
|
265
|
+
k: 5,
|
266
|
+
l: 2,
|
267
|
+
m: 4,
|
268
|
+
n: 2,
|
269
|
+
o: 1,
|
270
|
+
p: 4,
|
271
|
+
q: 10,
|
272
|
+
r: 1,
|
273
|
+
s: 1,
|
274
|
+
t: 1,
|
275
|
+
u: 2,
|
276
|
+
v: 5,
|
277
|
+
w: 4,
|
278
|
+
x: 8,
|
279
|
+
y: 3,
|
280
|
+
z: 10,
|
281
|
+
};
|
282
|
+
|
283
|
+
// if (dictonary === "wwf") {
|
284
|
+
// return wwfScore;
|
285
|
+
// } else {
|
286
|
+
return twl06_sowpods;
|
287
|
+
// }
|
288
|
+
};
|
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: 2.1.
|
4
|
+
version: 2.1.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: 2023-06-
|
11
|
+
date: 2023-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|