appscms-tools-theme 5.2.8 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/.DS_Store +0 -0
- data/_includes/appscms/.DS_Store +0 -0
- data/_includes/appscms/infographics/infographics.html +328 -160
- data/_layouts/appscms-feature.html +100 -93
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de059ca0360d8bc321b63e66c9c3a4e92673f10009126d24560805c5399b2717
|
|
4
|
+
data.tar.gz: 00c15b9f9638c2c6e2420b73507a59f950cf10986ba81dd89878916e7929b683
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9348d2b33c63a3f84c143e0b1084d6fd538fdb6eca160680bc74e5c7039eb3cd1e32bc2b9d53ebf515a921b4c94192acef689cc11ffd4e4ccbe7a9f52bd30dd
|
|
7
|
+
data.tar.gz: ac1608a6f8ed9bc7f5f5f8847863146434c89f416c049913453b4ed6603ee782326806adb9f51d9b9da7d4d5c1e1cf29f7b2c46845e9270d8447fb052302b819
|
data/_includes/.DS_Store
CHANGED
|
Binary file
|
data/_includes/appscms/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1,64 +1,126 @@
|
|
|
1
1
|
<style>
|
|
2
|
-
.
|
|
2
|
+
.infographics-container {
|
|
3
|
+
padding: 40px 0;
|
|
4
|
+
}
|
|
5
|
+
.infographics-h2 {
|
|
6
|
+
font-size: 28px;
|
|
7
|
+
font-weight: 700;
|
|
8
|
+
text-align: center;
|
|
9
|
+
margin-bottom: 10px;
|
|
10
|
+
color: #333;
|
|
11
|
+
}
|
|
12
|
+
.infographics-description {
|
|
13
|
+
text-align: center;
|
|
14
|
+
color: #666;
|
|
15
|
+
margin-bottom: 30px;
|
|
16
|
+
}
|
|
17
|
+
.infographics-section {
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
.infographics-arrow {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 50%;
|
|
23
|
+
transform: translateY(-50%);
|
|
24
|
+
width: 40px;
|
|
25
|
+
height: 40px;
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
background: #fff;
|
|
28
|
+
border: 1px solid #e0e0e0;
|
|
29
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
z-index: 10;
|
|
35
|
+
transition: all 0.2s ease;
|
|
36
|
+
}
|
|
37
|
+
.infographics-arrow:hover {
|
|
38
|
+
background: #f5f5f5;
|
|
39
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
40
|
+
}
|
|
41
|
+
.infographics-arrow-left {
|
|
42
|
+
left: -50px;
|
|
43
|
+
}
|
|
44
|
+
.infographics-arrow-right {
|
|
45
|
+
right: -50px;
|
|
46
|
+
}
|
|
47
|
+
.infographics-carousel {
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
}
|
|
50
|
+
.infographics-row {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-wrap: nowrap;
|
|
53
|
+
transition: transform 0.3s ease;
|
|
54
|
+
}
|
|
55
|
+
.infographic-card {
|
|
56
|
+
flex: 0 0 33.333%;
|
|
57
|
+
max-width: 33.333%;
|
|
58
|
+
padding: 0 12px;
|
|
59
|
+
}
|
|
60
|
+
.infographic-card-inner {
|
|
61
|
+
background: #fff;
|
|
62
|
+
border-radius: 12px;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
65
|
+
transition: all 0.3s ease;
|
|
66
|
+
height: 100%;
|
|
67
|
+
}
|
|
68
|
+
.infographic-card-inner:hover {
|
|
69
|
+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
|
70
|
+
transform: translateY(-5px);
|
|
71
|
+
}
|
|
72
|
+
.infographic-img-wrapper {
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 200px;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
position: relative;
|
|
78
|
+
}
|
|
79
|
+
.infographic-img-wrapper .magnify-icon {
|
|
3
80
|
position: absolute;
|
|
4
81
|
top: 50%;
|
|
82
|
+
left: 50%;
|
|
83
|
+
transform: translate(-50%, -50%);
|
|
5
84
|
width: 50px;
|
|
6
85
|
height: 50px;
|
|
7
|
-
background: rgba(
|
|
8
|
-
color: #fff;
|
|
9
|
-
border: none;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
font-size: 24px;
|
|
12
|
-
text-align: center;
|
|
13
|
-
line-height: 50px;
|
|
86
|
+
background: rgba(255, 255, 255, 0.95);
|
|
14
87
|
border-radius: 50%;
|
|
15
|
-
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
opacity: 0;
|
|
92
|
+
transition: all 0.3s ease;
|
|
93
|
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
16
94
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
95
|
+
.infographic-img-wrapper .magnify-icon svg {
|
|
96
|
+
width: 24px;
|
|
97
|
+
height: 24px;
|
|
98
|
+
color: #333;
|
|
20
99
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
right: 10px;
|
|
100
|
+
.infographic-img-wrapper:hover .magnify-icon {
|
|
101
|
+
opacity: 1;
|
|
24
102
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.
|
|
28
|
-
top: 30%;
|
|
29
|
-
width: 40px;
|
|
30
|
-
height: 40px;
|
|
31
|
-
font-size: 20px;
|
|
32
|
-
line-height: 40px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.modal-arrow-btn.prev {
|
|
36
|
-
left: 5px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.modal-arrow-btn.next {
|
|
40
|
-
right: 5px;
|
|
41
|
-
}
|
|
103
|
+
.infographic-img-wrapper:hover .infographic-img {
|
|
104
|
+
transform: scale(1.05);
|
|
105
|
+
filter: brightness(0.8);
|
|
42
106
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
.modal-arrow-btn.next {
|
|
57
|
-
right: 3px;
|
|
58
|
-
}
|
|
107
|
+
.infographic-img {
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: 100%;
|
|
110
|
+
object-fit: cover;
|
|
111
|
+
transition: all 0.3s ease;
|
|
112
|
+
}
|
|
113
|
+
.infographic-desc {
|
|
114
|
+
padding: 15px;
|
|
115
|
+
font-size: 14px;
|
|
116
|
+
font-weight: 500;
|
|
117
|
+
color: #333;
|
|
118
|
+
text-align: center;
|
|
119
|
+
border-top: 1px solid #f0f0f0;
|
|
59
120
|
}
|
|
60
121
|
|
|
61
|
-
|
|
122
|
+
/* Modal styles */
|
|
123
|
+
.infographic-modal {
|
|
62
124
|
position: fixed;
|
|
63
125
|
z-index: 1000;
|
|
64
126
|
left: 0;
|
|
@@ -66,152 +128,258 @@
|
|
|
66
128
|
width: 100%;
|
|
67
129
|
height: 100%;
|
|
68
130
|
overflow: auto;
|
|
69
|
-
background-color: rgba(
|
|
131
|
+
background-color: rgba(0, 0, 0, 0.9);
|
|
70
132
|
opacity: 0;
|
|
71
133
|
visibility: hidden;
|
|
72
|
-
|
|
73
|
-
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
|
|
134
|
+
transition: opacity 0.3s ease, visibility 0s linear 0.3s;
|
|
74
135
|
}
|
|
75
|
-
|
|
76
|
-
.modal1.show {
|
|
136
|
+
.infographic-modal.show {
|
|
77
137
|
opacity: 1;
|
|
78
138
|
visibility: visible;
|
|
79
|
-
|
|
80
|
-
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
|
|
139
|
+
transition: opacity 0.3s ease, visibility 0s;
|
|
81
140
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
margin-top: 20px;
|
|
89
|
-
opacity: 0;
|
|
90
|
-
transform: translateY(-20px);
|
|
91
|
-
transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
|
|
141
|
+
.infographic-modal-content {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
height: 100%;
|
|
146
|
+
padding: 20px;
|
|
92
147
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
148
|
+
.infographic-modal-img {
|
|
149
|
+
max-width: 90%;
|
|
150
|
+
max-height: 90vh;
|
|
151
|
+
object-fit: contain;
|
|
152
|
+
border-radius: 8px;
|
|
97
153
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
154
|
+
.infographic-modal-close {
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: 20px;
|
|
157
|
+
right: 30px;
|
|
158
|
+
font-size: 40px;
|
|
159
|
+
color: #fff;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
transition: color 0.2s ease;
|
|
162
|
+
z-index: 1001;
|
|
102
163
|
}
|
|
103
|
-
|
|
104
|
-
|
|
164
|
+
.infographic-modal-close:hover {
|
|
165
|
+
color: #ccc;
|
|
166
|
+
}
|
|
167
|
+
.infographic-modal-arrow {
|
|
105
168
|
position: absolute;
|
|
106
|
-
top:
|
|
107
|
-
|
|
108
|
-
|
|
169
|
+
top: 50%;
|
|
170
|
+
transform: translateY(-50%);
|
|
171
|
+
width: 50px;
|
|
172
|
+
height: 50px;
|
|
173
|
+
background: rgba(255, 255, 255, 0.2);
|
|
109
174
|
color: #fff;
|
|
175
|
+
border: none;
|
|
110
176
|
cursor: pointer;
|
|
177
|
+
font-size: 24px;
|
|
178
|
+
border-radius: 50%;
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
justify-content: center;
|
|
182
|
+
transition: background 0.2s ease;
|
|
183
|
+
}
|
|
184
|
+
.infographic-modal-arrow:hover {
|
|
185
|
+
background: rgba(255, 255, 255, 0.4);
|
|
186
|
+
}
|
|
187
|
+
.infographic-modal-arrow.prev {
|
|
188
|
+
left: 20px;
|
|
189
|
+
}
|
|
190
|
+
.infographic-modal-arrow.next {
|
|
191
|
+
right: 20px;
|
|
111
192
|
}
|
|
112
193
|
|
|
113
|
-
|
|
114
|
-
|
|
194
|
+
@media (max-width: 991px) {
|
|
195
|
+
.infographic-card {
|
|
196
|
+
flex: 0 0 50%;
|
|
197
|
+
max-width: 50%;
|
|
198
|
+
}
|
|
199
|
+
.infographics-arrow-left {
|
|
200
|
+
left: -25px;
|
|
201
|
+
}
|
|
202
|
+
.infographics-arrow-right {
|
|
203
|
+
right: -25px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
@media (max-width: 767px) {
|
|
207
|
+
.infographic-card {
|
|
208
|
+
flex: 0 0 100%;
|
|
209
|
+
max-width: 100%;
|
|
210
|
+
}
|
|
211
|
+
.infographics-arrow-left {
|
|
212
|
+
left: 10px;
|
|
213
|
+
}
|
|
214
|
+
.infographics-arrow-right {
|
|
215
|
+
right: 10px;
|
|
216
|
+
}
|
|
217
|
+
.infographics-arrow {
|
|
218
|
+
background: rgba(255, 255, 255, 0.9);
|
|
219
|
+
}
|
|
220
|
+
.infographic-modal-arrow {
|
|
221
|
+
width: 40px;
|
|
222
|
+
height: 40px;
|
|
223
|
+
font-size: 20px;
|
|
224
|
+
}
|
|
225
|
+
.infographic-modal-arrow.prev {
|
|
226
|
+
left: 10px;
|
|
227
|
+
}
|
|
228
|
+
.infographic-modal-arrow.next {
|
|
229
|
+
right: 10px;
|
|
230
|
+
}
|
|
115
231
|
}
|
|
116
232
|
</style>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<
|
|
233
|
+
|
|
234
|
+
{%- if pageData.infographics -%}
|
|
235
|
+
<div class="infographics-container">
|
|
236
|
+
<p class="infographics-h2">Other useful information</p>
|
|
237
|
+
<p class="infographics-description">Explore our visual guides and infographics</p>
|
|
238
|
+
|
|
239
|
+
<div class="container">
|
|
240
|
+
<div class="row">
|
|
241
|
+
<div class="col-md-10 mx-auto">
|
|
242
|
+
<div class="infographics-section">
|
|
243
|
+
<button class="infographics-arrow infographics-arrow-left" id="infographicsLeft">
|
|
244
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
245
|
+
<path d="m15 18-6-6 6-6"></path>
|
|
246
|
+
</svg>
|
|
247
|
+
</button>
|
|
248
|
+
|
|
249
|
+
<div class="infographics-carousel">
|
|
250
|
+
<div class="infographics-row" id="infographicsRow">
|
|
251
|
+
{% for item in pageData.infographics %}
|
|
252
|
+
<div class="infographic-card">
|
|
253
|
+
<div class="infographic-card-inner">
|
|
254
|
+
<div class="infographic-img-wrapper" data-index="{{ forloop.index0 }}">
|
|
255
|
+
<img loading="lazy" src="{{ item.image }}" alt="{{ item.alt }}" class="infographic-img" draggable="false" />
|
|
256
|
+
<div class="magnify-icon">
|
|
257
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
258
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
259
|
+
<path d="m21 21-4.35-4.35"></path>
|
|
260
|
+
<path d="M11 8v6"></path>
|
|
261
|
+
<path d="M8 11h6"></path>
|
|
262
|
+
</svg>
|
|
263
|
+
</div>
|
|
264
|
+
</div>
|
|
265
|
+
<p class="infographic-desc">{{ item.description | capitalize }}</p>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
{% endfor %}
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
<button class="infographics-arrow infographics-arrow-right" id="infographicsRight">
|
|
273
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
274
|
+
<path d="m9 18 6-6-6-6"></path>
|
|
275
|
+
</svg>
|
|
276
|
+
</button>
|
|
128
277
|
</div>
|
|
129
|
-
{% endfor %} {%- endif -%}
|
|
130
278
|
</div>
|
|
131
279
|
</div>
|
|
132
|
-
<i id="right" class="fas fa-angle-right"></i>
|
|
133
280
|
</div>
|
|
134
281
|
</div>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
<
|
|
139
|
-
<
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
282
|
+
|
|
283
|
+
<!-- Full Preview Modal -->
|
|
284
|
+
<div id="infographicModal" class="infographic-modal">
|
|
285
|
+
<span class="infographic-modal-close" id="modalClose">×</span>
|
|
286
|
+
<button class="infographic-modal-arrow prev" id="modalPrev">❮</button>
|
|
287
|
+
<button class="infographic-modal-arrow next" id="modalNext">❯</button>
|
|
288
|
+
<div class="infographic-modal-content">
|
|
289
|
+
<img id="modalImage" class="infographic-modal-img" src="" alt="Infographic Preview" />
|
|
143
290
|
</div>
|
|
144
291
|
</div>
|
|
145
292
|
|
|
146
|
-
|
|
147
293
|
<script>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
294
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
295
|
+
const infographicsRow = document.getElementById('infographicsRow');
|
|
296
|
+
const leftBtn = document.getElementById('infographicsLeft');
|
|
297
|
+
const rightBtn = document.getElementById('infographicsRight');
|
|
298
|
+
const cards = document.querySelectorAll('.infographic-card');
|
|
299
|
+
const modal = document.getElementById('infographicModal');
|
|
300
|
+
const modalImg = document.getElementById('modalImage');
|
|
301
|
+
const modalClose = document.getElementById('modalClose');
|
|
302
|
+
const modalPrev = document.getElementById('modalPrev');
|
|
303
|
+
const modalNext = document.getElementById('modalNext');
|
|
159
304
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
modal_array_of_images = Array.from(document.querySelectorAll('.infographic-img'));
|
|
163
|
-
}
|
|
305
|
+
let currentModalIndex = 0;
|
|
306
|
+
const images = Array.from(document.querySelectorAll('.infographic-img'));
|
|
164
307
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
308
|
+
// Carousel navigation
|
|
309
|
+
rightBtn.addEventListener('click', () => {
|
|
310
|
+
const firstCard = infographicsRow.querySelector('.infographic-card:first-child');
|
|
311
|
+
if (firstCard) {
|
|
312
|
+
infographicsRow.appendChild(firstCard.cloneNode(true));
|
|
313
|
+
firstCard.remove();
|
|
314
|
+
attachCardListeners();
|
|
172
315
|
}
|
|
316
|
+
});
|
|
173
317
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
318
|
+
leftBtn.addEventListener('click', () => {
|
|
319
|
+
const lastCard = infographicsRow.querySelector('.infographic-card:last-child');
|
|
320
|
+
if (lastCard) {
|
|
321
|
+
infographicsRow.insertBefore(lastCard.cloneNode(true), infographicsRow.firstChild);
|
|
322
|
+
lastCard.remove();
|
|
323
|
+
attachCardListeners();
|
|
178
324
|
}
|
|
325
|
+
});
|
|
179
326
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
327
|
+
// Modal functions
|
|
328
|
+
function openModal(index) {
|
|
329
|
+
currentModalIndex = index;
|
|
330
|
+
modalImg.src = images[currentModalIndex].src;
|
|
331
|
+
modal.classList.add('show');
|
|
332
|
+
document.body.style.overflow = 'hidden';
|
|
333
|
+
}
|
|
186
334
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
e.stopPropagation();
|
|
192
|
-
if (modal_btn.classList.contains('prev')) {
|
|
193
|
-
current_modal_img = (current_modal_img > 0) ? current_modal_img - 1 : modal_array_of_images.length - 1;
|
|
194
|
-
} else {
|
|
195
|
-
current_modal_img = (current_modal_img < modal_array_of_images.length - 1) ? current_modal_img + 1 : 0;
|
|
196
|
-
}
|
|
197
|
-
updateModalImage();
|
|
198
|
-
});
|
|
199
|
-
});
|
|
335
|
+
function closeModal() {
|
|
336
|
+
modal.classList.remove('show');
|
|
337
|
+
document.body.style.overflow = '';
|
|
338
|
+
}
|
|
200
339
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
340
|
+
function showPrev() {
|
|
341
|
+
currentModalIndex = (currentModalIndex > 0) ? currentModalIndex - 1 : images.length - 1;
|
|
342
|
+
modalImg.src = images[currentModalIndex].src;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
function showNext() {
|
|
346
|
+
currentModalIndex = (currentModalIndex < images.length - 1) ? currentModalIndex + 1 : 0;
|
|
347
|
+
modalImg.src = images[currentModalIndex].src;
|
|
348
|
+
}
|
|
205
349
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
350
|
+
// Attach click listeners to cards
|
|
351
|
+
function attachCardListeners() {
|
|
352
|
+
document.querySelectorAll('.infographic-img-wrapper').forEach((wrapper) => {
|
|
353
|
+
wrapper.onclick = function() {
|
|
354
|
+
const img = this.querySelector('.infographic-img');
|
|
355
|
+
const index = images.findIndex(i => i.src === img.src);
|
|
356
|
+
openModal(index >= 0 ? index : 0);
|
|
357
|
+
};
|
|
211
358
|
});
|
|
359
|
+
}
|
|
212
360
|
|
|
213
|
-
|
|
214
|
-
|
|
361
|
+
// Event listeners
|
|
362
|
+
modalClose.addEventListener('click', closeModal);
|
|
363
|
+
modalPrev.addEventListener('click', (e) => { e.stopPropagation(); showPrev(); });
|
|
364
|
+
modalNext.addEventListener('click', (e) => { e.stopPropagation(); showNext(); });
|
|
365
|
+
|
|
366
|
+
modal.addEventListener('click', (e) => {
|
|
367
|
+
if (e.target === modal || e.target === document.querySelector('.infographic-modal-content')) {
|
|
368
|
+
closeModal();
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
// Keyboard navigation
|
|
373
|
+
document.addEventListener('keydown', (e) => {
|
|
374
|
+
if (modal.classList.contains('show')) {
|
|
375
|
+
if (e.key === 'Escape') closeModal();
|
|
376
|
+
if (e.key === 'ArrowLeft') showPrev();
|
|
377
|
+
if (e.key === 'ArrowRight') showNext();
|
|
378
|
+
}
|
|
215
379
|
});
|
|
216
380
|
|
|
217
|
-
|
|
381
|
+
// Initialize
|
|
382
|
+
attachCardListeners();
|
|
383
|
+
});
|
|
384
|
+
</script>
|
|
385
|
+
{%- endif -%}
|
|
@@ -2,100 +2,107 @@
|
|
|
2
2
|
= page.folderName %} {% assign pageData = site.data[folder][lang][file] %} {%-
|
|
3
3
|
assign boxColor = site.data[page.folderName][page.lang][page.fileName].color -%}
|
|
4
4
|
|
|
5
|
-
<!
|
|
5
|
+
<!doctype html>
|
|
6
6
|
<html lang="{{ page.lang }}">
|
|
7
|
-
{%- include appscms/head/head.html -%}
|
|
8
|
-
|
|
9
|
-
<body
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
7
|
+
{%- include appscms/head/head.html -%}
|
|
8
|
+
|
|
9
|
+
<body
|
|
10
|
+
data-developer-key="{{ site.developerKey }}"
|
|
11
|
+
data-client-id="{{ site.clientId }}"
|
|
12
|
+
data-app-id="{{ site.appId }}"
|
|
13
|
+
data-dropbox-apikey="{{ site.dropboxapikey }}"
|
|
14
|
+
>
|
|
15
|
+
{%- include contenttool_banner.html -%} {%- include
|
|
16
|
+
appscms/navbars/navbar.html -%} {%- include appscms/navbars/toolbar.html -%}
|
|
17
|
+
{%- include bookmark.html -%} {%- if site.safeui -%}
|
|
18
|
+
<div
|
|
19
|
+
class="alert alert-{{pageData.variant | default: 'primary'}} fade show text-center"
|
|
20
|
+
role="alert"
|
|
21
|
+
id="safeui-alert"
|
|
22
|
+
>
|
|
23
|
+
<svg
|
|
24
|
+
height="25"
|
|
25
|
+
width="25"
|
|
26
|
+
fill="#004084"
|
|
27
|
+
viewBox="0 0 1024 1024"
|
|
28
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
29
|
+
stroke="#004084"
|
|
30
|
+
>
|
|
31
|
+
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
|
32
|
+
<g
|
|
33
|
+
id="SVGRepo_tracerCarrier"
|
|
34
|
+
stroke-linecap="round"
|
|
35
|
+
stroke-linejoin="round"
|
|
36
|
+
></g>
|
|
37
|
+
<g id="SVGRepo_iconCarrier">
|
|
38
|
+
<path
|
|
39
|
+
d="M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"
|
|
40
|
+
></path>
|
|
41
|
+
<path
|
|
42
|
+
d="M378.4 475.1a35.91 35.91 0 0 0-50.9 0 35.91 35.91 0 0 0 0 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0 0 48.1 0L730.6 434a33.98 33.98 0 0 0 0-48.1l-2.8-2.8a33.98 33.98 0 0 0-48.1 0L483 579.7 378.4 475.1z"
|
|
43
|
+
></path>
|
|
44
|
+
</g>
|
|
45
|
+
</svg>
|
|
46
|
+
|
|
47
|
+
{%- if pageData.alertmsg -%} {{pageData.alertmsg}} {%- else -%} We do not
|
|
48
|
+
upload any files to server, hence your data is 100% secure. {%- endif -%}
|
|
49
|
+
</div>
|
|
50
|
+
{%- endif -%}
|
|
51
|
+
|
|
52
|
+
<script>
|
|
53
|
+
function closeBanner() {
|
|
54
|
+
const banner = document.getElementById("promoBanner");
|
|
55
|
+
banner.style.transform = "translateY(-100%)";
|
|
56
|
+
banner.style.opacity = "0";
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
banner.style.display = "none";
|
|
59
|
+
}, 300);
|
|
59
60
|
}
|
|
60
|
-
}, 30000);
|
|
61
|
-
</script>
|
|
62
|
-
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
62
|
+
// Auto-hide after 30 seconds (optional)
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
const banner = document.getElementById("promoBanner");
|
|
65
|
+
if (banner) {
|
|
66
|
+
if (banner.style.display !== "none") {
|
|
67
|
+
banner.style.opacity = "0.8";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, 30000);
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
{%- include appscms/headings/headings.html -%}
|
|
74
|
+
<div class="appscms-sidebar-left"></div>
|
|
75
|
+
<div class="appscms-sidebar-right"></div>
|
|
76
|
+
|
|
77
|
+
{%- include appscms/uploadbutton/uploadbutton.html -%} {%- include
|
|
78
|
+
appscms/featurehighlight/featurehighlight.html -%} {%- include
|
|
79
|
+
appscms/howto/howto.html -%} {%- if pageData.infographics.size > 0 -%} {%-
|
|
80
|
+
include appscms/infographics/infographics.html -%} {%- endif -%} {%- include
|
|
81
|
+
appscms/faq/faq.html -%} {%- include appscms/usp/usp.html -%} {%- include
|
|
82
|
+
appscms/reviews/trustpilot.html -%}
|
|
83
|
+
<!-- {%- include
|
|
76
84
|
appscms/extras/traffic-count.html -%} -->
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</body>
|
|
100
|
-
|
|
101
|
-
</html>
|
|
85
|
+
{%- if site.userTrackingCount -%} {%- include userTracking.html -%} {%-
|
|
86
|
+
endif -%} {%- assign langen = "en" -%} {%- if
|
|
87
|
+
site.data[folder][langen][file].categories -%} {% assign categories=
|
|
88
|
+
site.data[folder][langen][file].categories %} {%- else -%} {% assign
|
|
89
|
+
categories= page.categories %} {%- endif -%} {%- if
|
|
90
|
+
site.data[folder][langen][file].tags -%} {% assign tags=
|
|
91
|
+
site.data[folder][langen][file].tags %} {%- else -%} {% assign tags=
|
|
92
|
+
page.tags %} {%- endif -%} {%- if pageData.posts.size > 0 -%} {%- include
|
|
93
|
+
appscms/customblog/pageRelatedPosts.html -%} {%- else -%} {%- if
|
|
94
|
+
categories.size > 0 or tags.size > 0 -%} {%- include
|
|
95
|
+
appscms/recent-posts/related_categories_post.html -%} {%- else -%} {%-
|
|
96
|
+
include appscms/recent-posts/recent_posts.html -%} {%- endif -%} {%- endif
|
|
97
|
+
-%} {%- if site.customblogdata -%} {%- if categories.size> 0 or
|
|
98
|
+
tags.size>0-%} {%- include appscms/customblog/relatedposts.html -%} {%- else
|
|
99
|
+
-%} {%- include appscms/customblog/recentposts.html -%} {% endif %} {%-
|
|
100
|
+
endif -%} {%- include appscms/extras/ratings.html -%} {%- if
|
|
101
|
+
pageData.author.size > 0 -%} {% include
|
|
102
|
+
appscms/featurePageAuthors/featurePageAuthors.html %} {%- endif -%} {%-
|
|
103
|
+
include appscms/footer/products.html -%} {%- include
|
|
104
|
+
internationalization-section.html -%}{%- include appscms/footer/footer.html
|
|
105
|
+
-%} {%- if site.customCode -%} {%- include customCode.html -%}{%- endif -%}
|
|
106
|
+
{%- include appscms/scripts/script.html -%}
|
|
107
|
+
</body>
|
|
108
|
+
</html>
|