appscms-tools-theme 4.0.2 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/about/en/about.json +16 -16
- data/_data/blog/nav.json +13 -13
- data/_data/blog/relatedblogs.json +6932 -6932
- data/_data/download/en/download.json +73 -73
- data/_data/feature/en/3_shop_posters.json +361 -361
- data/_data/feature/en/allele-frequency.json +321 -321
- data/_data/feature/en/batch-conversion.json +153 -153
- data/_data/feature/en/compress-pdf.json +308 -308
- data/_data/feature/en/devtools.json +299 -299
- data/_data/feature/en/face-detection.json +123 -123
- data/_data/feature/en/split-pdf.json +176 -176
- data/_data/feature/en/theframe.json +126 -126
- data/_data/feature/hi/compress-pdf.json +162 -162
- data/_data/feature/tr/compress-pdf.json +161 -161
- data/_data/footer/en/data.json +167 -167
- data/_data/header/en/data.json +174 -174
- data/_data/home/en/en.json +381 -381
- data/_data/home/en/photoeffects.json +97 -97
- data/_data/home/en/posters.json +322 -322
- data/_data/home-1/en/en.json +308 -308
- data/_includes/appscms/customblog/pageRelatedPosts.html +84 -84
- data/_includes/appscms/customblog/recentposts.html +67 -67
- data/_includes/appscms/customblog/relatedBlogs.html +83 -83
- data/_includes/appscms/customblog/relatedposts.html +196 -200
- data/_includes/appscms/extras/appscms-postbox.html +65 -0
- data/_includes/appscms/featurePageAuthors/featurePageAuthors.html +97 -97
- data/_includes/appscms/featurehighlight/featurehighlight.html +1 -1
- data/_includes/appscms/head/bloghead.html +238 -238
- data/_includes/appscms/infographics/infographics.html +109 -109
- data/_includes/appscms/recent-posts/recent_posts.html +92 -90
- data/_includes/appscms/recent-posts/related_categories_post.html +198 -198
- data/_includes/author_bio.html +41 -41
- data/_includes/authorpagehead/index.html +47 -47
- data/_includes/authors/authors.html +117 -117
- data/_includes/batch-conversion.html +141 -141
- data/_includes/cssfile/links.html +54 -54
- data/_includes/custom-head.html +138 -138
- data/_includes/customCode.html +1 -1
- data/_includes/customScripts.html +1 -1
- data/_includes/customblog/pageRelatedPosts.html +87 -87
- data/_includes/customblog/relatedBlogs.html +86 -86
- data/_includes/dropdown/langdropdown.html +32 -32
- data/_includes/feature.html +39 -39
- data/_includes/featurePageAuthors/featurePageAuthors.html +97 -97
- data/_includes/footer/index.html +538 -538
- data/_includes/google-analytics.html +32 -32
- data/_includes/head/index.html +623 -623
- data/_includes/header/blogHeader.html +34 -34
- data/_includes/header/index.html +192 -192
- data/_includes/infographics/infographics.html +230 -230
- data/_includes/paginationBlogPage.html +70 -70
- data/_includes/script.html +557 -557
- data/_includes/share/socialshare.html +21 -21
- data/_includes/userTracking.html +43 -43
- data/_layouts/aboutUs.html +98 -98
- data/_layouts/allAuthors.html +131 -131
- data/_layouts/appscms-about.html +163 -163
- data/_layouts/appscms-audio.html +33 -33
- data/_layouts/appscms-author.html +408 -408
- data/_layouts/appscms-authors.html +132 -132
- data/_layouts/appscms-calculator.html +93 -93
- data/_layouts/appscms-categories.html +26 -0
- data/_layouts/appscms-contact.html +132 -132
- data/_layouts/appscms-disclaimer.html +124 -124
- data/_layouts/appscms-download.html +289 -289
- data/_layouts/appscms-feature-result.html +94 -94
- data/_layouts/appscms-help.html +25 -25
- data/_layouts/appscms-imagekit.html +113 -113
- data/_layouts/appscms-post.html +243 -243
- data/_layouts/appscms-privacy-policy.html +781 -781
- data/_layouts/appscms-terms-and-conditions.html +646 -646
- data/_layouts/appscms-video.html +33 -33
- data/_layouts/audio.html +33 -33
- data/_layouts/author.html +408 -408
- data/_layouts/batch.html +177 -177
- data/_layouts/blog.html +131 -131
- data/_layouts/calculator.html +99 -99
- data/_layouts/devtools.html +57 -57
- data/_layouts/feature-1.html +406 -406
- data/_layouts/feature.html +434 -434
- data/_layouts/featureResultPage.html +80 -80
- data/_layouts/frame.html +222 -222
- data/_layouts/home.html +300 -300
- data/_layouts/imagekit.html +303 -303
- data/_layouts/photo-effects-home.html +190 -190
- data/_layouts/post.html +233 -233
- data/assets/app.js +75 -75
- data/assets/css/appscms-blog.css +500 -500
- data/assets/css/appscms-home.css +5 -5
- data/assets/css/appscms-imagekit.css +854 -854
- data/assets/css/appscms-variables.css +18 -18
- data/assets/css/blog.css +509 -509
- data/assets/css/calculators.css +46 -46
- data/assets/css/devtools.css +105 -105
- data/assets/css/feature-1.css +293 -293
- data/assets/css/imagekit copy.css +848 -848
- data/assets/css/tools.css +1817 -1817
- data/assets/images/digipaint.svg +6 -6
- data/assets/images/logo.svg +2 -2
- data/assets/images/manthink.svg +3552 -3552
- data/assets/js/batch.js +256 -256
- data/assets/js/devtools.js +81 -81
- data/assets/js/sharePage.js +65 -65
- data/assets/js/usageTracking.js +143 -143
- data/assets/js/usageTrackingEvents.js +6 -6
- metadata +4 -2
@@ -1,231 +1,231 @@
|
|
1
|
-
<style>
|
2
|
-
.inforgraphics_section {
|
3
|
-
width: 100%;
|
4
|
-
padding: 50px 0px 50px 0px;
|
5
|
-
border-top: 1px solid rgb(224, 224, 224);
|
6
|
-
display: flex;
|
7
|
-
flex-direction: column;
|
8
|
-
align-items: center;
|
9
|
-
}
|
10
|
-
|
11
|
-
.inforgraphics_section .wrapper {
|
12
|
-
display: flex;
|
13
|
-
max-width: 700px;
|
14
|
-
position: relative;
|
15
|
-
}
|
16
|
-
|
17
|
-
.inforgraphics_section .wrapper i {
|
18
|
-
top: 50%;
|
19
|
-
height: 44px;
|
20
|
-
width: 44px;
|
21
|
-
color: #343F4F;
|
22
|
-
cursor: pointer;
|
23
|
-
font-size: 1.15rem;
|
24
|
-
position: absolute;
|
25
|
-
text-align: center;
|
26
|
-
line-height: 44px;
|
27
|
-
background: #eee;
|
28
|
-
border-radius: 50%;
|
29
|
-
transform: translateY(-50%);
|
30
|
-
transition: transform 0.1s linear;
|
31
|
-
}
|
32
|
-
|
33
|
-
.inforgraphics_section .wrapper i:active {
|
34
|
-
transform: translateY(-50%) scale(0.9);
|
35
|
-
}
|
36
|
-
|
37
|
-
.inforgraphics_section .wrapper i:hover {
|
38
|
-
background: #f2f2f2;
|
39
|
-
}
|
40
|
-
|
41
|
-
.inforgraphics_section .wrapper i:first-child {
|
42
|
-
left: 0px;
|
43
|
-
display: none;
|
44
|
-
z-index: 999;
|
45
|
-
}
|
46
|
-
|
47
|
-
.inforgraphics_section .wrapper i:last-child {
|
48
|
-
right: 0px;
|
49
|
-
}
|
50
|
-
|
51
|
-
.carousel {
|
52
|
-
display: flex;
|
53
|
-
max-width: 700px;
|
54
|
-
overflow-x: scroll;
|
55
|
-
scroll-snap-type: x mandatory;
|
56
|
-
scroll-behavior: smooth;
|
57
|
-
}
|
58
|
-
|
59
|
-
.carousel-inner {
|
60
|
-
display: flex;
|
61
|
-
flex-wrap: nowrap;
|
62
|
-
}
|
63
|
-
|
64
|
-
.slide {
|
65
|
-
flex: 0 0 calc(100% / 3);
|
66
|
-
scroll-snap-align: start;
|
67
|
-
padding: 20px;
|
68
|
-
}
|
69
|
-
|
70
|
-
.carousel img {
|
71
|
-
width: 100%;
|
72
|
-
object-fit: contain;
|
73
|
-
max-width: 100%;
|
74
|
-
height: auto;
|
75
|
-
border-radius: 8px;
|
76
|
-
}
|
77
|
-
|
78
|
-
.carousel-inner p {
|
79
|
-
text-align: center;
|
80
|
-
margin: 10px 0;
|
81
|
-
font-size: 14px;
|
82
|
-
white-space: normal;
|
83
|
-
word-wrap: break-word;
|
84
|
-
}
|
85
|
-
|
86
|
-
@media screen and (max-width: 768px) {
|
87
|
-
.inforgraphics_section .wrapper {
|
88
|
-
max-width: 100%;
|
89
|
-
}
|
90
|
-
|
91
|
-
|
92
|
-
.carousel-inner p {
|
93
|
-
font-size: 20px;
|
94
|
-
}
|
95
|
-
|
96
|
-
.inforgraphics_section .wrapper i:first-child {
|
97
|
-
left: 0;
|
98
|
-
/* margin-left: 14px; */
|
99
|
-
z-index: 99;
|
100
|
-
}
|
101
|
-
|
102
|
-
.inforgraphics_section .wrapper i:last-child {
|
103
|
-
right: 0;
|
104
|
-
z-index: 99;
|
105
|
-
display: block !important;
|
106
|
-
}
|
107
|
-
|
108
|
-
.carousel {
|
109
|
-
overflow-x: hidden;
|
110
|
-
}
|
111
|
-
|
112
|
-
.slide {
|
113
|
-
flex: 0 0 100%;
|
114
|
-
margin-right: 0;
|
115
|
-
}
|
116
|
-
}
|
117
|
-
</style>
|
118
|
-
|
119
|
-
<div class="inforgraphics_section">
|
120
|
-
<h3 class="text-center w-100 mb-5"><b>Other useful information</b></h3>
|
121
|
-
<div class="wrapper">
|
122
|
-
<i id="left" class="fas fa-angle-left"></i>
|
123
|
-
<div class="carousel">
|
124
|
-
<div class="carousel-inner">
|
125
|
-
{%- if homeData.infographics -%}
|
126
|
-
{% for item in homeData.infographics %}
|
127
|
-
<div class="slide">
|
128
|
-
<img src="{{ item.image }}" alt="img" draggable="false">
|
129
|
-
<p class="infographic-desc">{{ item.description | capitalize }}</p>
|
130
|
-
</div>
|
131
|
-
{% endfor %}
|
132
|
-
{%- else -%}
|
133
|
-
{% for item in featureData.infographics %}
|
134
|
-
<div class="slide">
|
135
|
-
<img src="{{ item.image }}" alt="img" draggable="false">
|
136
|
-
<p class="infographic-desc">{{ item.description | capitalize }}</p>
|
137
|
-
</div>
|
138
|
-
{% endfor %}
|
139
|
-
{%- endif -%}
|
140
|
-
</div>
|
141
|
-
</div>
|
142
|
-
<i id="right" class="fas fa-angle-right"></i>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<script>
|
147
|
-
const carousel = document.querySelector(".carousel-inner"),
|
148
|
-
firstImg = carousel.querySelectorAll("img")[0],
|
149
|
-
arrowIcons = document.querySelectorAll(".wrapper i")
|
150
|
-
|
151
|
-
const numImages = carousel.querySelectorAll("img").length;
|
152
|
-
const isMobile = window.matchMedia("(max-width: 767px)").matches; // Check if screen width is less than or equal to 767px
|
153
|
-
|
154
|
-
if (numImages > 3) {
|
155
|
-
arrowIcons[1].style.display = "block"
|
156
|
-
} else {
|
157
|
-
arrowIcons[0].style.display = "none";
|
158
|
-
arrowIcons[1].style.display = "none";
|
159
|
-
}
|
160
|
-
|
161
|
-
let isDragStart = false, isDragging = false, prevPageX, prevScrollLeft, positionDiff;
|
162
|
-
const showHideIcons = () => {
|
163
|
-
let scrollWidth = carousel.scrollWidth - carousel.clientWidth; // getting max scrollable width
|
164
|
-
arrowIcons[0].style.display = carousel.scrollLeft == 0 ? "none" : "block";
|
165
|
-
arrowIcons[1].style.display = carousel.scrollLeft == scrollWidth ? "none" : "block";
|
166
|
-
}
|
167
|
-
|
168
|
-
arrowIcons.forEach(icon => {
|
169
|
-
icon.addEventListener("click", () => {
|
170
|
-
let firstImgWidth = firstImg.clientWidth + 40;
|
171
|
-
const scrollAmount = icon.id === "left" ? -firstImgWidth : firstImgWidth;
|
172
|
-
carousel.scrollBy({
|
173
|
-
left: scrollAmount,
|
174
|
-
behavior: "smooth",
|
175
|
-
});
|
176
|
-
setTimeout(() => showHideIcons(), 60); // calling showHideIcons after 60ms
|
177
|
-
});
|
178
|
-
});
|
179
|
-
|
180
|
-
// const autoSlide = () => {
|
181
|
-
// // if there is no image left to scroll then return from here
|
182
|
-
// if (carousel.scrollLeft - (carousel.scrollWidth - carousel.clientWidth) > -1 || carousel.scrollLeft <= 0) return;
|
183
|
-
|
184
|
-
// positionDiff = Math.abs(positionDiff); // making positionDiff value to positive
|
185
|
-
// let firstImgWidth = firstImg.clientWidth + 14;
|
186
|
-
// // getting difference value that needs to add or reduce from carousel left to take middle img center
|
187
|
-
// let valDifference = firstImgWidth - positionDiff;
|
188
|
-
|
189
|
-
// if (carousel.scrollLeft > prevScrollLeft) { // if user is scrolling to the right
|
190
|
-
// return carousel.scrollLeft += positionDiff > firstImgWidth / 3 ? valDifference : -positionDiff;
|
191
|
-
// }
|
192
|
-
// // if user is scrolling to the left
|
193
|
-
// carousel.scrollLeft -= positionDiff > firstImgWidth / 3 ? valDifference : -positionDiff;
|
194
|
-
// }
|
195
|
-
|
196
|
-
// const dragStart = (e) => {
|
197
|
-
// // updatating global variables value on mouse down event
|
198
|
-
// isDragStart = true;
|
199
|
-
// prevPageX = e.pageX || e.touches[0].pageX;
|
200
|
-
// prevScrollLeft = carousel.scrollLeft;
|
201
|
-
// }
|
202
|
-
|
203
|
-
// const dragging = (e) => {
|
204
|
-
// // scrolling images/carousel to left according to mouse pointer
|
205
|
-
// if (!isDragStart) return;
|
206
|
-
// e.preventDefault();
|
207
|
-
// isDragging = true;
|
208
|
-
// carousel.classList.add("dragging");
|
209
|
-
// positionDiff = (e.pageX || e.touches[0].pageX) - prevPageX;
|
210
|
-
// carousel.scrollLeft = prevScrollLeft - positionDiff;
|
211
|
-
// showHideIcons();
|
212
|
-
// }
|
213
|
-
|
214
|
-
// const dragStop = () => {
|
215
|
-
// isDragStart = false;
|
216
|
-
// carousel.classList.remove("dragging");
|
217
|
-
|
218
|
-
// if (!isDragging) return;
|
219
|
-
// isDragging = false;
|
220
|
-
// autoSlide();
|
221
|
-
// }
|
222
|
-
|
223
|
-
// carousel.addEventListener("mousedown", dragStart);
|
224
|
-
// carousel.addEventListener("touchstart", dragStart);
|
225
|
-
|
226
|
-
// document.addEventListener("mousemove", dragging);
|
227
|
-
// carousel.addEventListener("touchmove", dragging);
|
228
|
-
|
229
|
-
// document.addEventListener("mouseup", dragStop);
|
230
|
-
// carousel.addEventListener("touchend", dragStop);
|
1
|
+
<style>
|
2
|
+
.inforgraphics_section {
|
3
|
+
width: 100%;
|
4
|
+
padding: 50px 0px 50px 0px;
|
5
|
+
border-top: 1px solid rgb(224, 224, 224);
|
6
|
+
display: flex;
|
7
|
+
flex-direction: column;
|
8
|
+
align-items: center;
|
9
|
+
}
|
10
|
+
|
11
|
+
.inforgraphics_section .wrapper {
|
12
|
+
display: flex;
|
13
|
+
max-width: 700px;
|
14
|
+
position: relative;
|
15
|
+
}
|
16
|
+
|
17
|
+
.inforgraphics_section .wrapper i {
|
18
|
+
top: 50%;
|
19
|
+
height: 44px;
|
20
|
+
width: 44px;
|
21
|
+
color: #343F4F;
|
22
|
+
cursor: pointer;
|
23
|
+
font-size: 1.15rem;
|
24
|
+
position: absolute;
|
25
|
+
text-align: center;
|
26
|
+
line-height: 44px;
|
27
|
+
background: #eee;
|
28
|
+
border-radius: 50%;
|
29
|
+
transform: translateY(-50%);
|
30
|
+
transition: transform 0.1s linear;
|
31
|
+
}
|
32
|
+
|
33
|
+
.inforgraphics_section .wrapper i:active {
|
34
|
+
transform: translateY(-50%) scale(0.9);
|
35
|
+
}
|
36
|
+
|
37
|
+
.inforgraphics_section .wrapper i:hover {
|
38
|
+
background: #f2f2f2;
|
39
|
+
}
|
40
|
+
|
41
|
+
.inforgraphics_section .wrapper i:first-child {
|
42
|
+
left: 0px;
|
43
|
+
display: none;
|
44
|
+
z-index: 999;
|
45
|
+
}
|
46
|
+
|
47
|
+
.inforgraphics_section .wrapper i:last-child {
|
48
|
+
right: 0px;
|
49
|
+
}
|
50
|
+
|
51
|
+
.carousel {
|
52
|
+
display: flex;
|
53
|
+
max-width: 700px;
|
54
|
+
overflow-x: scroll;
|
55
|
+
scroll-snap-type: x mandatory;
|
56
|
+
scroll-behavior: smooth;
|
57
|
+
}
|
58
|
+
|
59
|
+
.carousel-inner {
|
60
|
+
display: flex;
|
61
|
+
flex-wrap: nowrap;
|
62
|
+
}
|
63
|
+
|
64
|
+
.slide {
|
65
|
+
flex: 0 0 calc(100% / 3);
|
66
|
+
scroll-snap-align: start;
|
67
|
+
padding: 20px;
|
68
|
+
}
|
69
|
+
|
70
|
+
.carousel img {
|
71
|
+
width: 100%;
|
72
|
+
object-fit: contain;
|
73
|
+
max-width: 100%;
|
74
|
+
height: auto;
|
75
|
+
border-radius: 8px;
|
76
|
+
}
|
77
|
+
|
78
|
+
.carousel-inner p {
|
79
|
+
text-align: center;
|
80
|
+
margin: 10px 0;
|
81
|
+
font-size: 14px;
|
82
|
+
white-space: normal;
|
83
|
+
word-wrap: break-word;
|
84
|
+
}
|
85
|
+
|
86
|
+
@media screen and (max-width: 768px) {
|
87
|
+
.inforgraphics_section .wrapper {
|
88
|
+
max-width: 100%;
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
.carousel-inner p {
|
93
|
+
font-size: 20px;
|
94
|
+
}
|
95
|
+
|
96
|
+
.inforgraphics_section .wrapper i:first-child {
|
97
|
+
left: 0;
|
98
|
+
/* margin-left: 14px; */
|
99
|
+
z-index: 99;
|
100
|
+
}
|
101
|
+
|
102
|
+
.inforgraphics_section .wrapper i:last-child {
|
103
|
+
right: 0;
|
104
|
+
z-index: 99;
|
105
|
+
display: block !important;
|
106
|
+
}
|
107
|
+
|
108
|
+
.carousel {
|
109
|
+
overflow-x: hidden;
|
110
|
+
}
|
111
|
+
|
112
|
+
.slide {
|
113
|
+
flex: 0 0 100%;
|
114
|
+
margin-right: 0;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
</style>
|
118
|
+
|
119
|
+
<div class="inforgraphics_section">
|
120
|
+
<h3 class="text-center w-100 mb-5"><b>Other useful information</b></h3>
|
121
|
+
<div class="wrapper">
|
122
|
+
<i id="left" class="fas fa-angle-left"></i>
|
123
|
+
<div class="carousel">
|
124
|
+
<div class="carousel-inner">
|
125
|
+
{%- if homeData.infographics -%}
|
126
|
+
{% for item in homeData.infographics %}
|
127
|
+
<div class="slide">
|
128
|
+
<img src="{{ item.image }}" alt="img" draggable="false">
|
129
|
+
<p class="infographic-desc">{{ item.description | capitalize }}</p>
|
130
|
+
</div>
|
131
|
+
{% endfor %}
|
132
|
+
{%- else -%}
|
133
|
+
{% for item in featureData.infographics %}
|
134
|
+
<div class="slide">
|
135
|
+
<img src="{{ item.image }}" alt="img" draggable="false">
|
136
|
+
<p class="infographic-desc">{{ item.description | capitalize }}</p>
|
137
|
+
</div>
|
138
|
+
{% endfor %}
|
139
|
+
{%- endif -%}
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
<i id="right" class="fas fa-angle-right"></i>
|
143
|
+
</div>
|
144
|
+
</div>
|
145
|
+
|
146
|
+
<script>
|
147
|
+
const carousel = document.querySelector(".carousel-inner"),
|
148
|
+
firstImg = carousel.querySelectorAll("img")[0],
|
149
|
+
arrowIcons = document.querySelectorAll(".wrapper i")
|
150
|
+
|
151
|
+
const numImages = carousel.querySelectorAll("img").length;
|
152
|
+
const isMobile = window.matchMedia("(max-width: 767px)").matches; // Check if screen width is less than or equal to 767px
|
153
|
+
|
154
|
+
if (numImages > 3) {
|
155
|
+
arrowIcons[1].style.display = "block"
|
156
|
+
} else {
|
157
|
+
arrowIcons[0].style.display = "none";
|
158
|
+
arrowIcons[1].style.display = "none";
|
159
|
+
}
|
160
|
+
|
161
|
+
let isDragStart = false, isDragging = false, prevPageX, prevScrollLeft, positionDiff;
|
162
|
+
const showHideIcons = () => {
|
163
|
+
let scrollWidth = carousel.scrollWidth - carousel.clientWidth; // getting max scrollable width
|
164
|
+
arrowIcons[0].style.display = carousel.scrollLeft == 0 ? "none" : "block";
|
165
|
+
arrowIcons[1].style.display = carousel.scrollLeft == scrollWidth ? "none" : "block";
|
166
|
+
}
|
167
|
+
|
168
|
+
arrowIcons.forEach(icon => {
|
169
|
+
icon.addEventListener("click", () => {
|
170
|
+
let firstImgWidth = firstImg.clientWidth + 40;
|
171
|
+
const scrollAmount = icon.id === "left" ? -firstImgWidth : firstImgWidth;
|
172
|
+
carousel.scrollBy({
|
173
|
+
left: scrollAmount,
|
174
|
+
behavior: "smooth",
|
175
|
+
});
|
176
|
+
setTimeout(() => showHideIcons(), 60); // calling showHideIcons after 60ms
|
177
|
+
});
|
178
|
+
});
|
179
|
+
|
180
|
+
// const autoSlide = () => {
|
181
|
+
// // if there is no image left to scroll then return from here
|
182
|
+
// if (carousel.scrollLeft - (carousel.scrollWidth - carousel.clientWidth) > -1 || carousel.scrollLeft <= 0) return;
|
183
|
+
|
184
|
+
// positionDiff = Math.abs(positionDiff); // making positionDiff value to positive
|
185
|
+
// let firstImgWidth = firstImg.clientWidth + 14;
|
186
|
+
// // getting difference value that needs to add or reduce from carousel left to take middle img center
|
187
|
+
// let valDifference = firstImgWidth - positionDiff;
|
188
|
+
|
189
|
+
// if (carousel.scrollLeft > prevScrollLeft) { // if user is scrolling to the right
|
190
|
+
// return carousel.scrollLeft += positionDiff > firstImgWidth / 3 ? valDifference : -positionDiff;
|
191
|
+
// }
|
192
|
+
// // if user is scrolling to the left
|
193
|
+
// carousel.scrollLeft -= positionDiff > firstImgWidth / 3 ? valDifference : -positionDiff;
|
194
|
+
// }
|
195
|
+
|
196
|
+
// const dragStart = (e) => {
|
197
|
+
// // updatating global variables value on mouse down event
|
198
|
+
// isDragStart = true;
|
199
|
+
// prevPageX = e.pageX || e.touches[0].pageX;
|
200
|
+
// prevScrollLeft = carousel.scrollLeft;
|
201
|
+
// }
|
202
|
+
|
203
|
+
// const dragging = (e) => {
|
204
|
+
// // scrolling images/carousel to left according to mouse pointer
|
205
|
+
// if (!isDragStart) return;
|
206
|
+
// e.preventDefault();
|
207
|
+
// isDragging = true;
|
208
|
+
// carousel.classList.add("dragging");
|
209
|
+
// positionDiff = (e.pageX || e.touches[0].pageX) - prevPageX;
|
210
|
+
// carousel.scrollLeft = prevScrollLeft - positionDiff;
|
211
|
+
// showHideIcons();
|
212
|
+
// }
|
213
|
+
|
214
|
+
// const dragStop = () => {
|
215
|
+
// isDragStart = false;
|
216
|
+
// carousel.classList.remove("dragging");
|
217
|
+
|
218
|
+
// if (!isDragging) return;
|
219
|
+
// isDragging = false;
|
220
|
+
// autoSlide();
|
221
|
+
// }
|
222
|
+
|
223
|
+
// carousel.addEventListener("mousedown", dragStart);
|
224
|
+
// carousel.addEventListener("touchstart", dragStart);
|
225
|
+
|
226
|
+
// document.addEventListener("mousemove", dragging);
|
227
|
+
// carousel.addEventListener("touchmove", dragging);
|
228
|
+
|
229
|
+
// document.addEventListener("mouseup", dragStop);
|
230
|
+
// carousel.addEventListener("touchend", dragStop);
|
231
231
|
</script>
|
@@ -1,70 +1,70 @@
|
|
1
|
-
<!-- pagination -->
|
2
|
-
<div class="bottompagination">
|
3
|
-
<div class="pointerup"><i class="fa fa-caret-up"></i></div>
|
4
|
-
<span class="navigation" role="navigation"></span>
|
5
|
-
</div>
|
6
|
-
|
7
|
-
{%- if page.layout == "blog-1" -%} {%- assign color = site.data.blog.blog.color
|
8
|
-
-%} {% if paginator.total_pages > 1 %}
|
9
|
-
<div class="blog-pagination">
|
10
|
-
{% if paginator.previous_page %}
|
11
|
-
<a
|
12
|
-
style="color: {{color}}; font-weight: 900;"
|
13
|
-
href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"
|
14
|
-
>« Prev</a
|
15
|
-
>
|
16
|
-
{% else %}
|
17
|
-
<span class="text-muted">« Prev</span>
|
18
|
-
{% endif %} {% for page in (1..paginator.total_pages) %} {% if page ==
|
19
|
-
paginator.page %}
|
20
|
-
<span class="webjeda text-muted">{{ page }}</span>
|
21
|
-
{% elsif page == 1 %}
|
22
|
-
<a href="/blog" style="color: {{color}}; font-weight: 900;">{{ page }}</a>
|
23
|
-
{% else %}
|
24
|
-
<a
|
25
|
-
style="color: {{color}}; font-weight: 900;"
|
26
|
-
href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}"
|
27
|
-
>{{ page }}</a
|
28
|
-
>
|
29
|
-
{% endif %} {% endfor %} {% if paginator.next_page %}
|
30
|
-
<a
|
31
|
-
style="color:{{color}}; font-weight: 900;"
|
32
|
-
href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"
|
33
|
-
>Next »</a
|
34
|
-
>
|
35
|
-
{% else %}
|
36
|
-
<span class="text-muted">Next »</span>
|
37
|
-
{% endif %}
|
38
|
-
</div>
|
39
|
-
{% endif %} {%- else -%} {% if paginator.total_pages > 1 %}
|
40
|
-
<div class="blog-pagination">
|
41
|
-
{% if paginator.previous_page %}
|
42
|
-
<a
|
43
|
-
style="color: #000; font-weight: 900"
|
44
|
-
href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"
|
45
|
-
>« Prev</a
|
46
|
-
>
|
47
|
-
{% else %}
|
48
|
-
<span class="text-muted">« Prev</span>
|
49
|
-
{% endif %} {% for page in (1..paginator.total_pages) %} {% if page ==
|
50
|
-
paginator.page %}
|
51
|
-
<span class="webjeda text-muted">{{ page }}</span>
|
52
|
-
{% elsif page == 1 %}
|
53
|
-
<a href="/blog" style="color: #000; font-weight: 900">{{ page }}</a>
|
54
|
-
{% else %}
|
55
|
-
<a
|
56
|
-
style="color: #000; font-weight: 900"
|
57
|
-
href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}"
|
58
|
-
>{{ page }}</a
|
59
|
-
>
|
60
|
-
{% endif %} {% endfor %} {% if paginator.next_page %}
|
61
|
-
<a
|
62
|
-
style="color: #000; font-weight: 900"
|
63
|
-
href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"
|
64
|
-
>Next »</a
|
65
|
-
>
|
66
|
-
{% else %}
|
67
|
-
<span class="text-muted">Next »</span>
|
68
|
-
{% endif %}
|
69
|
-
</div>
|
70
|
-
{% endif %} {%- endif -%}
|
1
|
+
<!-- pagination -->
|
2
|
+
<div class="bottompagination">
|
3
|
+
<div class="pointerup"><i class="fa fa-caret-up"></i></div>
|
4
|
+
<span class="navigation" role="navigation"></span>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
{%- if page.layout == "blog-1" -%} {%- assign color = site.data.blog.blog.color
|
8
|
+
-%} {% if paginator.total_pages > 1 %}
|
9
|
+
<div class="blog-pagination">
|
10
|
+
{% if paginator.previous_page %}
|
11
|
+
<a
|
12
|
+
style="color: {{color}}; font-weight: 900;"
|
13
|
+
href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"
|
14
|
+
>« Prev</a
|
15
|
+
>
|
16
|
+
{% else %}
|
17
|
+
<span class="text-muted">« Prev</span>
|
18
|
+
{% endif %} {% for page in (1..paginator.total_pages) %} {% if page ==
|
19
|
+
paginator.page %}
|
20
|
+
<span class="webjeda text-muted">{{ page }}</span>
|
21
|
+
{% elsif page == 1 %}
|
22
|
+
<a href="/blog" style="color: {{color}}; font-weight: 900;">{{ page }}</a>
|
23
|
+
{% else %}
|
24
|
+
<a
|
25
|
+
style="color: {{color}}; font-weight: 900;"
|
26
|
+
href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}"
|
27
|
+
>{{ page }}</a
|
28
|
+
>
|
29
|
+
{% endif %} {% endfor %} {% if paginator.next_page %}
|
30
|
+
<a
|
31
|
+
style="color:{{color}}; font-weight: 900;"
|
32
|
+
href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"
|
33
|
+
>Next »</a
|
34
|
+
>
|
35
|
+
{% else %}
|
36
|
+
<span class="text-muted">Next »</span>
|
37
|
+
{% endif %}
|
38
|
+
</div>
|
39
|
+
{% endif %} {%- else -%} {% if paginator.total_pages > 1 %}
|
40
|
+
<div class="blog-pagination">
|
41
|
+
{% if paginator.previous_page %}
|
42
|
+
<a
|
43
|
+
style="color: #000; font-weight: 900"
|
44
|
+
href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"
|
45
|
+
>« Prev</a
|
46
|
+
>
|
47
|
+
{% else %}
|
48
|
+
<span class="text-muted">« Prev</span>
|
49
|
+
{% endif %} {% for page in (1..paginator.total_pages) %} {% if page ==
|
50
|
+
paginator.page %}
|
51
|
+
<span class="webjeda text-muted">{{ page }}</span>
|
52
|
+
{% elsif page == 1 %}
|
53
|
+
<a href="/blog" style="color: #000; font-weight: 900">{{ page }}</a>
|
54
|
+
{% else %}
|
55
|
+
<a
|
56
|
+
style="color: #000; font-weight: 900"
|
57
|
+
href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}"
|
58
|
+
>{{ page }}</a
|
59
|
+
>
|
60
|
+
{% endif %} {% endfor %} {% if paginator.next_page %}
|
61
|
+
<a
|
62
|
+
style="color: #000; font-weight: 900"
|
63
|
+
href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"
|
64
|
+
>Next »</a
|
65
|
+
>
|
66
|
+
{% else %}
|
67
|
+
<span class="text-muted">Next »</span>
|
68
|
+
{% endif %}
|
69
|
+
</div>
|
70
|
+
{% endif %} {%- endif -%}
|