j1-template 2024.3.16 → 2024.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/data/amplitude.html +132 -61
- data/assets/data/banner.html +1 -1
- data/assets/data/cookieconsent.html +1 -1
- data/assets/data/docsearch.html +1 -1
- data/assets/data/fab.html +1 -1
- data/assets/data/footer.html +1 -1
- data/assets/data/galeries.html +1 -1
- data/assets/data/gallery_customizer.html +1 -1
- data/assets/data/gemini-ui.html +1 -1
- data/assets/data/iframes.html +1 -1
- data/assets/data/masonry.html +1 -1
- data/assets/data/masterslider.html +1 -1
- data/assets/data/menu.html +1 -1
- data/assets/data/mmenu.html +1 -1
- data/assets/data/mmenu_sidebar.html +1 -1
- data/assets/data/mmenu_toc.html +1 -1
- data/assets/data/panel.html +1 -1
- data/assets/data/quicklinks.html +1 -1
- data/assets/data/rtext_resizer.html +1 -1
- data/assets/data/slick.html +1 -1
- data/assets/data/speak2me.html +1 -1
- data/assets/data/swiper.html +313 -0
- data/assets/theme/j1/adapter/js/amplitude.30.js +1177 -0
- data/assets/theme/j1/adapter/js/amplitude.js +152 -121
- data/assets/theme/j1/adapter/js/j1.js +3 -3
- data/assets/theme/j1/adapter/js/masterslider.js +2 -1
- data/assets/theme/j1/adapter/js/swiper.js +231 -0
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +13 -3
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +53 -6
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +2 -1
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.15.js +1594 -0
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +1617 -89
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/bar.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/circular-equalizer.js +31 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/frequency-analyzer.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/michael-bromley.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/template.js +1 -1
- data/assets/theme/j1/modules/photoswipe/.version_5.4.4 +6 -0
- data/assets/theme/j1/modules/photoswipe/LICENSE +21 -0
- data/assets/theme/j1/modules/photoswipe/README.md +32 -0
- data/assets/theme/j1/modules/photoswipe/css/org/photoswipe-dynamic-caption-plugin.umd.min.js +5 -0
- data/assets/theme/j1/modules/photoswipe/css/org/photoswipe.css +420 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.css +67 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.min.css +16 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe.css +376 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe.min.css +17 -0
- data/assets/theme/j1/modules/photoswipe/css/scss/photoswipe.scss +427 -0
- data/assets/theme/j1/modules/photoswipe/example/photoswipe-caption-plugin.html +237 -0
- data/assets/theme/j1/modules/photoswipe/example/test-gallery.html +36 -0
- data/assets/theme/j1/modules/photoswipe/js/README.md +43 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-caption-plugin.min.js +5 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-core.min.js +18 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-lightbox.min.js +18 -0
- data/assets/theme/j1/modules/swiper/.version_1.2.0 +15 -0
- data/assets/theme/j1/modules/swiper/LICENSE +20 -0
- data/assets/theme/j1/modules/swiper/README.md +95 -0
- data/assets/theme/j1/modules/swiper/css/swiper-bundle.css +740 -0
- data/assets/theme/j1/modules/swiper/css/swiper-bundle.min..css +17 -0
- data/assets/theme/j1/modules/swiper/css/theme/uno.css +249 -0
- data/assets/theme/j1/modules/swiper/css/theme/uno.min.css +154 -0
- data/assets/theme/j1/modules/swiper/js/swiper-bundle.js +9785 -0
- data/assets/theme/j1/modules/swiper/js/swiper-bundle.min.js +17 -0
- data/assets/theme/j1/modules/swiper/swiperjs.com-demos.url +2 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/amplitude.yml +374 -39
- data/lib/starter_web/_data/modules/defaults/amplitude.yml +60 -35
- data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/swiper.yml +515 -0
- data/lib/starter_web/_data/modules/swiper.yml +227 -0
- data/lib/starter_web/_data/resources.yml +53 -1
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -0
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +0 -4
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/der_unverzichtbare_feind.jpg +0 -0
- data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/ein_diener_vieler_herren.jpg +0 -0
- data/lib/starter_web/assets/video/poster/youtube/the_piano/the-piano.jpg +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/_includes/attributes.asciidoc +45 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/200_photoswipe_parameters.asciidoc +510 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/210_photoswipe_lightbox_parameters.asciidoc +98 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/300_caption_plugin_for_photoSwipe.asciidoc +327 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_features.asciidoc +50 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_html_layout.asciidoc +122 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_initialization.asciidoc +53 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/110_swiper_common_options.asciidoc +43 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_a_k.asciidoc +994 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_l_o.asciidoc +473 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_p_s.asciidoc +700 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_t_z.asciidoc +413 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/300_swiper_instance_properties.asciidoc +873 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/400_swiper_modules.asciidoc +2514 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/500_swiper_methods.asciidoc +989 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/600_swiper_events.asciidoc +1534 -0
- data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +77 -63
- data/lib/starter_web/pages/public/photoswipe_api.adoc +150 -0
- data/lib/starter_web/pages/public/swiper_api.adoc +128 -0
- data/lib/starter_web/pages/public/swiper_tester.adoc +973 -0
- data/lib/starter_web/pages/public/tour/modal_extentions.adoc +12 -5
- data/lib/starter_web/pages/public/tour/play_audio.adoc +60 -5
- data/lib/starter_web/pages/public/tour/play_video.adoc +30 -0
- data/lib/starter_web/pages/public/tour/present_images.adoc +5 -5
- metadata +56 -3
- data/assets/theme/j1/modules/amplitudejs/js/tech/youtube_example.js +0 -211
@@ -0,0 +1,427 @@
|
|
1
|
+
$color_1: var(--pswp-error-text-color);
|
2
|
+
$color_2: var(--pswp-icon-color-secondary);
|
3
|
+
$color_3: var(--pswp-icon-color);
|
4
|
+
|
5
|
+
/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */
|
6
|
+
/*
|
7
|
+
Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
|
8
|
+
*/
|
9
|
+
/* Prevents focus outline on the root element,
|
10
|
+
(it may be focused initially) */
|
11
|
+
/* :active to override grabbing cursor */
|
12
|
+
/* Prevent selection and tap highlights */
|
13
|
+
/* Allow to click through pswp__content element, but not its children */
|
14
|
+
/*
|
15
|
+
|
16
|
+
PhotoSwipe UI
|
17
|
+
|
18
|
+
*/
|
19
|
+
/*
|
20
|
+
Error message appears when image is not loaded
|
21
|
+
(JS option errorMsg controls markup)
|
22
|
+
*/
|
23
|
+
/*
|
24
|
+
class pswp__hide-on-close is applied to elements that
|
25
|
+
should hide (for example fade out) when PhotoSwipe is closed
|
26
|
+
and show (for example fade in) when PhotoSwipe is opened
|
27
|
+
*/
|
28
|
+
/* class pswp--ui-visible is added when opening or closing transition starts */
|
29
|
+
/* <button> styles, including css reset */
|
30
|
+
/*
|
31
|
+
div element that matches size of large image,
|
32
|
+
large image loads on top of it,
|
33
|
+
used when msrc is not provided
|
34
|
+
*/
|
35
|
+
/*
|
36
|
+
|
37
|
+
Close button
|
38
|
+
|
39
|
+
*/
|
40
|
+
/*
|
41
|
+
|
42
|
+
Arrow buttons
|
43
|
+
|
44
|
+
*/
|
45
|
+
/* hide arrows on touch screens */
|
46
|
+
/* show arrows only after mouse was used */
|
47
|
+
/*
|
48
|
+
|
49
|
+
Zoom button
|
50
|
+
|
51
|
+
*/
|
52
|
+
/* "+" => "-" */
|
53
|
+
/*
|
54
|
+
|
55
|
+
Loading indicator
|
56
|
+
|
57
|
+
*/
|
58
|
+
@keyframes pswp-clockwise {
|
59
|
+
0% {
|
60
|
+
transform: rotate(0deg);
|
61
|
+
}
|
62
|
+
100% {
|
63
|
+
transform: rotate(360deg);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
/*
|
67
|
+
|
68
|
+
"1 of 10" counter
|
69
|
+
|
70
|
+
*/
|
71
|
+
.pswp {
|
72
|
+
--pswp-bg: #000;
|
73
|
+
--pswp-placeholder-bg: #222;
|
74
|
+
--pswp-root-z-index: 100000;
|
75
|
+
--pswp-preloader-color: rgba(79, 79, 79, 0.4);
|
76
|
+
--pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
|
77
|
+
--pswp-icon-color: #fff;
|
78
|
+
--pswp-icon-color-secondary: #4f4f4f;
|
79
|
+
--pswp-icon-stroke-color: #4f4f4f;
|
80
|
+
--pswp-icon-stroke-width: 2px;
|
81
|
+
--pswp-error-text-color: var(--pswp-icon-color);
|
82
|
+
position: fixed;
|
83
|
+
top: 0;
|
84
|
+
left: 0;
|
85
|
+
width: 100%;
|
86
|
+
height: 100%;
|
87
|
+
z-index: var(--pswp-root-z-index);
|
88
|
+
display: none;
|
89
|
+
touch-action: none;
|
90
|
+
outline: 0;
|
91
|
+
opacity: 0.003;
|
92
|
+
contain: layout style size;
|
93
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
94
|
+
transform: translateZ(0);
|
95
|
+
will-change: opacity;
|
96
|
+
overflow: hidden;
|
97
|
+
&:focus {
|
98
|
+
outline: 0;
|
99
|
+
}
|
100
|
+
* {
|
101
|
+
box-sizing: border-box;
|
102
|
+
}
|
103
|
+
img {
|
104
|
+
max-width: none;
|
105
|
+
}
|
106
|
+
.pswp__hide-on-close {
|
107
|
+
opacity: 0.005;
|
108
|
+
will-change: opacity;
|
109
|
+
transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
|
110
|
+
z-index: 10;
|
111
|
+
pointer-events: none;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
.pswp--open {
|
115
|
+
display: block;
|
116
|
+
}
|
117
|
+
.pswp__bg {
|
118
|
+
transform: translateZ(0);
|
119
|
+
will-change: opacity;
|
120
|
+
opacity: 0.005;
|
121
|
+
background: var(--pswp-bg);
|
122
|
+
position: absolute;
|
123
|
+
top: 0;
|
124
|
+
left: 0;
|
125
|
+
width: 100%;
|
126
|
+
height: 100%;
|
127
|
+
}
|
128
|
+
.pswp__scroll-wrap {
|
129
|
+
overflow: hidden;
|
130
|
+
position: absolute;
|
131
|
+
top: 0;
|
132
|
+
left: 0;
|
133
|
+
width: 100%;
|
134
|
+
height: 100%;
|
135
|
+
}
|
136
|
+
.pswp__container {
|
137
|
+
position: absolute;
|
138
|
+
top: 0;
|
139
|
+
left: 0;
|
140
|
+
width: 100%;
|
141
|
+
height: 100%;
|
142
|
+
-webkit-user-select: none;
|
143
|
+
-moz-user-select: none;
|
144
|
+
-ms-user-select: none;
|
145
|
+
user-select: none;
|
146
|
+
}
|
147
|
+
.pswp__item {
|
148
|
+
position: absolute;
|
149
|
+
top: 0;
|
150
|
+
left: 0;
|
151
|
+
width: 100%;
|
152
|
+
height: 100%;
|
153
|
+
z-index: 1;
|
154
|
+
overflow: hidden;
|
155
|
+
}
|
156
|
+
.pswp__content {
|
157
|
+
position: absolute;
|
158
|
+
top: 0;
|
159
|
+
left: 0;
|
160
|
+
width: 100%;
|
161
|
+
height: 100%;
|
162
|
+
pointer-events: none;
|
163
|
+
>* {
|
164
|
+
pointer-events: auto;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
.pswp__img {
|
168
|
+
position: absolute;
|
169
|
+
top: 0;
|
170
|
+
left: 0;
|
171
|
+
width: 100%;
|
172
|
+
height: 100%;
|
173
|
+
width: auto;
|
174
|
+
height: auto;
|
175
|
+
cursor: -webkit-zoom-out;
|
176
|
+
cursor: -moz-zoom-out;
|
177
|
+
cursor: zoom-out;
|
178
|
+
-webkit-user-select: none;
|
179
|
+
-moz-user-select: none;
|
180
|
+
-ms-user-select: none;
|
181
|
+
user-select: none;
|
182
|
+
}
|
183
|
+
.pswp__zoom-wrap {
|
184
|
+
position: absolute;
|
185
|
+
top: 0;
|
186
|
+
left: 0;
|
187
|
+
width: 100%;
|
188
|
+
height: 100%;
|
189
|
+
width: auto;
|
190
|
+
height: auto;
|
191
|
+
}
|
192
|
+
.pswp--click-to-zoom.pswp--zoom-allowed {
|
193
|
+
.pswp__img {
|
194
|
+
cursor: -webkit-zoom-in;
|
195
|
+
cursor: -moz-zoom-in;
|
196
|
+
cursor: zoom-in;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
.pswp--click-to-zoom.pswp--zoomed-in {
|
200
|
+
.pswp__img {
|
201
|
+
cursor: move;
|
202
|
+
cursor: -webkit-grab;
|
203
|
+
cursor: -moz-grab;
|
204
|
+
cursor: grab;
|
205
|
+
&:active {
|
206
|
+
cursor: -webkit-grabbing;
|
207
|
+
cursor: -moz-grabbing;
|
208
|
+
cursor: grabbing;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
.pswp--no-mouse-drag.pswp--zoomed-in {
|
213
|
+
.pswp__img {
|
214
|
+
cursor: -webkit-zoom-out;
|
215
|
+
cursor: -moz-zoom-out;
|
216
|
+
cursor: zoom-out;
|
217
|
+
&:active {
|
218
|
+
cursor: -webkit-zoom-out;
|
219
|
+
cursor: -moz-zoom-out;
|
220
|
+
cursor: zoom-out;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
224
|
+
.pswp__button {
|
225
|
+
-webkit-user-select: none;
|
226
|
+
-moz-user-select: none;
|
227
|
+
-ms-user-select: none;
|
228
|
+
user-select: none;
|
229
|
+
position: relative;
|
230
|
+
display: block;
|
231
|
+
width: 50px;
|
232
|
+
height: 60px;
|
233
|
+
padding: 0;
|
234
|
+
margin: 0;
|
235
|
+
overflow: hidden;
|
236
|
+
cursor: pointer;
|
237
|
+
background: none;
|
238
|
+
border: 0;
|
239
|
+
box-shadow: none;
|
240
|
+
opacity: 0.85;
|
241
|
+
-webkit-appearance: none;
|
242
|
+
-webkit-touch-callout: none;
|
243
|
+
&:hover {
|
244
|
+
transition: none;
|
245
|
+
padding: 0;
|
246
|
+
background: none;
|
247
|
+
border: 0;
|
248
|
+
box-shadow: none;
|
249
|
+
opacity: 1;
|
250
|
+
}
|
251
|
+
&:active {
|
252
|
+
transition: none;
|
253
|
+
padding: 0;
|
254
|
+
background: none;
|
255
|
+
border: 0;
|
256
|
+
box-shadow: none;
|
257
|
+
opacity: 1;
|
258
|
+
}
|
259
|
+
&:focus {
|
260
|
+
transition: none;
|
261
|
+
padding: 0;
|
262
|
+
background: none;
|
263
|
+
border: 0;
|
264
|
+
box-shadow: none;
|
265
|
+
opacity: 1;
|
266
|
+
}
|
267
|
+
&:disabled {
|
268
|
+
opacity: 0.3;
|
269
|
+
cursor: auto;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
.pswp__counter {
|
273
|
+
-webkit-user-select: none;
|
274
|
+
-moz-user-select: none;
|
275
|
+
-ms-user-select: none;
|
276
|
+
user-select: none;
|
277
|
+
height: 30px;
|
278
|
+
margin-top: 15px;
|
279
|
+
margin-inline-start: 20px;
|
280
|
+
font-size: 14px;
|
281
|
+
line-height: 30px;
|
282
|
+
color: $color_3;
|
283
|
+
text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
|
284
|
+
opacity: 0.85;
|
285
|
+
}
|
286
|
+
.pswp__hidden {
|
287
|
+
display: none !important;
|
288
|
+
}
|
289
|
+
.pswp__error-msg-container {
|
290
|
+
display: grid;
|
291
|
+
}
|
292
|
+
.pswp__error-msg {
|
293
|
+
margin: auto;
|
294
|
+
font-size: 1em;
|
295
|
+
line-height: 1;
|
296
|
+
color: $color_1;
|
297
|
+
}
|
298
|
+
.pswp--ui-visible {
|
299
|
+
.pswp__hide-on-close {
|
300
|
+
opacity: 1;
|
301
|
+
pointer-events: auto;
|
302
|
+
}
|
303
|
+
}
|
304
|
+
.pswp__icn {
|
305
|
+
fill: var(--pswp-icon-color);
|
306
|
+
color: $color_2;
|
307
|
+
position: absolute;
|
308
|
+
top: 14px;
|
309
|
+
left: 9px;
|
310
|
+
width: 32px;
|
311
|
+
height: 32px;
|
312
|
+
overflow: hidden;
|
313
|
+
pointer-events: none;
|
314
|
+
&:focus {
|
315
|
+
outline: 0;
|
316
|
+
}
|
317
|
+
}
|
318
|
+
.pswp__icn-shadow {
|
319
|
+
stroke: var(--pswp-icon-stroke-color);
|
320
|
+
stroke-width: var(--pswp-icon-stroke-width);
|
321
|
+
fill: none;
|
322
|
+
}
|
323
|
+
div.pswp__img--placeholder {
|
324
|
+
background: var(--pswp-placeholder-bg);
|
325
|
+
}
|
326
|
+
.pswp__img--with-bg {
|
327
|
+
background: var(--pswp-placeholder-bg);
|
328
|
+
}
|
329
|
+
.pswp__top-bar {
|
330
|
+
position: absolute;
|
331
|
+
left: 0;
|
332
|
+
top: 0;
|
333
|
+
width: 100%;
|
334
|
+
height: 60px;
|
335
|
+
display: flex;
|
336
|
+
flex-direction: row;
|
337
|
+
justify-content: flex-end;
|
338
|
+
z-index: 10;
|
339
|
+
pointer-events: none !important;
|
340
|
+
>* {
|
341
|
+
pointer-events: auto;
|
342
|
+
will-change: opacity;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
.pswp__button--close {
|
346
|
+
margin-right: 6px;
|
347
|
+
}
|
348
|
+
.pswp__button--arrow {
|
349
|
+
position: absolute;
|
350
|
+
top: 0;
|
351
|
+
width: 75px;
|
352
|
+
height: 100px;
|
353
|
+
top: 50%;
|
354
|
+
margin-top: -50px;
|
355
|
+
&:disabled {
|
356
|
+
display: none;
|
357
|
+
cursor: default;
|
358
|
+
}
|
359
|
+
.pswp__icn {
|
360
|
+
top: 50%;
|
361
|
+
margin-top: -30px;
|
362
|
+
width: 60px;
|
363
|
+
height: 60px;
|
364
|
+
background: none;
|
365
|
+
border-radius: 0;
|
366
|
+
}
|
367
|
+
}
|
368
|
+
.pswp--one-slide {
|
369
|
+
.pswp__button--arrow {
|
370
|
+
display: none;
|
371
|
+
}
|
372
|
+
.pswp__counter {
|
373
|
+
display: none;
|
374
|
+
}
|
375
|
+
}
|
376
|
+
.pswp--touch {
|
377
|
+
.pswp__button--arrow {
|
378
|
+
visibility: hidden;
|
379
|
+
}
|
380
|
+
}
|
381
|
+
.pswp--has_mouse {
|
382
|
+
.pswp__button--arrow {
|
383
|
+
visibility: visible;
|
384
|
+
}
|
385
|
+
}
|
386
|
+
.pswp__button--arrow--prev {
|
387
|
+
right: auto;
|
388
|
+
left: 0px;
|
389
|
+
}
|
390
|
+
.pswp__button--arrow--next {
|
391
|
+
right: 0px;
|
392
|
+
.pswp__icn {
|
393
|
+
left: auto;
|
394
|
+
right: 14px;
|
395
|
+
transform: scale(-1, 1);
|
396
|
+
}
|
397
|
+
}
|
398
|
+
.pswp__button--zoom {
|
399
|
+
display: none;
|
400
|
+
}
|
401
|
+
.pswp--zoom-allowed {
|
402
|
+
.pswp__button--zoom {
|
403
|
+
display: block;
|
404
|
+
}
|
405
|
+
}
|
406
|
+
.pswp--zoomed-in {
|
407
|
+
.pswp__zoom-icn-bar-v {
|
408
|
+
display: none;
|
409
|
+
}
|
410
|
+
}
|
411
|
+
.pswp__preloader {
|
412
|
+
position: relative;
|
413
|
+
overflow: hidden;
|
414
|
+
width: 50px;
|
415
|
+
height: 60px;
|
416
|
+
margin-right: auto;
|
417
|
+
.pswp__icn {
|
418
|
+
opacity: 0;
|
419
|
+
transition: opacity 0.2s linear;
|
420
|
+
animation: pswp-clockwise 600ms linear infinite;
|
421
|
+
}
|
422
|
+
}
|
423
|
+
.pswp__preloader--active {
|
424
|
+
.pswp__icn {
|
425
|
+
opacity: 0.85;
|
426
|
+
}
|
427
|
+
}
|
@@ -0,0 +1,237 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Caption plugin for PhotoSwipe v5</title>
|
5
|
+
|
6
|
+
<meta name="viewport" content="width=device-width"/>
|
7
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@5.3.0/dist/photoswipe.css">
|
8
|
+
<link rel="stylesheet" href="./photoswipe-dynamic-caption-plugin.css">
|
9
|
+
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
|
13
|
+
<script src="../js/photoswipe-core.min.js"></script>
|
14
|
+
<script src="../js/photoswipe-lightbox.min.js"></script>
|
15
|
+
|
16
|
+
<link rel="stylesheet" href="../css/photoswipe.min.css">
|
17
|
+
|
18
|
+
<div class="test-gallery">
|
19
|
+
<a href="https://dummyimage.com/1200x600/000/fff" data-pswp-width="1200" data-pswp-height="600">
|
20
|
+
<img src="https://dummyimage.com/120x60/000/fff" alt="" />
|
21
|
+
</a>
|
22
|
+
<a href="https://dummyimage.com/1200x1200/000/fff" data-pswp-width="1200" data-pswp-height="1200">
|
23
|
+
<img src="https://dummyimage.com/60x60/000/fff" alt="" />
|
24
|
+
</a>
|
25
|
+
<a href="https://dummyimage.com/600x1200/000/fff" data-pswp-width="600" data-pswp-height="1200">
|
26
|
+
<img src="https://dummyimage.com/30x60/000/fff" alt="" />
|
27
|
+
</a>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<h1><a href="https://github.com/dimsemenov/photoswipe-dynamic-caption-plugin">Dynamic caption plugin</a> for <a href="https://photoswipe.com">PhotoSwipe v5</a></h1>
|
31
|
+
<!-- See: https://dimsemenov.github.io/photoswipe-dynamic-caption-plugin/ -->
|
32
|
+
|
33
|
+
<div class="pswp-gallery" id="gallery">
|
34
|
+
<div class="pswp-gallery__item">
|
35
|
+
<a
|
36
|
+
href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-2500.jpg"
|
37
|
+
data-pswp-width="1669"
|
38
|
+
data-pswp-height="2500"
|
39
|
+
target="_blank">
|
40
|
+
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-200.jpg" alt="Demo image 1" />
|
41
|
+
</a>
|
42
|
+
<div class="pswp-caption-content"><b>Lorem ipsum dolor (1933)</b><br>Color photograph<br>12 x 10</div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div class="pswp-gallery__item">
|
46
|
+
<a
|
47
|
+
href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-2500.jpg"
|
48
|
+
data-pswp-width="2500"
|
49
|
+
data-pswp-height="1666"
|
50
|
+
target="_blank">
|
51
|
+
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-200.jpg" alt="Demo image 2" />
|
52
|
+
</a>
|
53
|
+
<div class="pswp-caption-content">
|
54
|
+
<b>Vivamus elementum (2016)</b><br>ullamcorper ultricies nisi, nam eget dui, etiam rhoncus, maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero<br>32 x 37 x 1.8 inches
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div class="pswp-gallery__item">
|
59
|
+
<a
|
60
|
+
href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/4/img-2500.jpg"
|
61
|
+
data-pswp-width="2500"
|
62
|
+
data-pswp-height="1667"
|
63
|
+
target="_blank">
|
64
|
+
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/4/img-200.jpg" alt="Demo image 3" />
|
65
|
+
</a>
|
66
|
+
<div class="pswp-caption-content">
|
67
|
+
<b>Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. (2008)</b><br>quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem, ut libero venenatis faucibus.
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<div class="pswp-gallery__item">
|
72
|
+
<a
|
73
|
+
href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/5/img-2500.jpg"
|
74
|
+
data-pswp-width="2500"
|
75
|
+
data-pswp-height="1668"
|
76
|
+
target="_blank">
|
77
|
+
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/5/img-200.jpg" alt="Demo image 4" />
|
78
|
+
</a>
|
79
|
+
<div class="pswp-caption-content">
|
80
|
+
Short caption with <a href="https://example.com" target="_blank">the link</a>.
|
81
|
+
</div>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<div class="pswp-gallery__item">
|
85
|
+
<a
|
86
|
+
href="https://dummyimage.com/400x400/555/fff/?text=400x400"
|
87
|
+
data-pswp-width="500"
|
88
|
+
data-pswp-height="500"
|
89
|
+
target="_blank">
|
90
|
+
<img src="https://dummyimage.com/100x100/555/fff/" alt="Demo image 5" />
|
91
|
+
</a>
|
92
|
+
<div class="pswp-caption-content">
|
93
|
+
Small image
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div class="pswp-gallery__item">
|
98
|
+
<a
|
99
|
+
href="https://dummyimage.com/200x1000/555/fff/"
|
100
|
+
data-pswp-width="200"
|
101
|
+
data-pswp-height="1000"
|
102
|
+
target="_blank">
|
103
|
+
<img src="https://dummyimage.com/20x100/555/fff/" alt="Tall image" />
|
104
|
+
</a>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div class="pswp-gallery__item">
|
108
|
+
<a
|
109
|
+
href="https://dummyimage.com/1000x200/555/fff/"
|
110
|
+
data-pswp-width="1000"
|
111
|
+
data-pswp-height="200"
|
112
|
+
target="_blank">
|
113
|
+
<img src="https://dummyimage.com/100x20/555/fff/" alt="Wide image" />
|
114
|
+
</a>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
<div class="pswp-gallery__item">
|
118
|
+
<a
|
119
|
+
href="https://dummyimage.com/1200x500/555/fff/?text=no+caption"
|
120
|
+
data-pswp-width="1200"
|
121
|
+
data-pswp-height="500"
|
122
|
+
target="_blank">
|
123
|
+
<img src="https://dummyimage.com/240x100/555/fff/" alt="" />
|
124
|
+
</a>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div class="pswp-gallery__item">
|
128
|
+
<a
|
129
|
+
href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/6/img-2500.jpg"
|
130
|
+
data-pswp-width="2500"
|
131
|
+
data-pswp-height="1667"
|
132
|
+
target="_blank">
|
133
|
+
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/6/img-200.jpg" alt="Demo image 8" />
|
134
|
+
</a>
|
135
|
+
<div class="pswp-caption-content">
|
136
|
+
<b>Long caption</b><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum<br>Lorem Ipsum
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
<div class="pswp-gallery__item">
|
141
|
+
<a
|
142
|
+
href="https://dummyimage.com/1500x1500/555/fff/?text=1500x1500"
|
143
|
+
data-pswp-width="1500"
|
144
|
+
data-pswp-height="1500"
|
145
|
+
target="_blank">
|
146
|
+
<img src="https://dummyimage.com/100x100/555/fff/" alt="Large 1500x1500 square" />
|
147
|
+
</a>
|
148
|
+
</div>
|
149
|
+
|
150
|
+
|
151
|
+
<div class="pswp-gallery__item">
|
152
|
+
<a
|
153
|
+
href="https://dummyimage.com/600x1500/555/fff/?text=600x1500"
|
154
|
+
data-pswp-width="600"
|
155
|
+
data-pswp-height="1500"
|
156
|
+
target="_blank">
|
157
|
+
<img src="https://dummyimage.com/60x150/555/fff/" alt="Demo image 9" />
|
158
|
+
</a>
|
159
|
+
<div class="pswp-caption-content">
|
160
|
+
<b>Another long caption</b><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum<br>Lorem Ipsum
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<script type="module">
|
166
|
+
import PhotoSwipeLightbox from 'https://cdn.jsdelivr.net/npm/photoswipe@5.3.0/dist/photoswipe-lightbox.esm.js';
|
167
|
+
import PhotoSwipeDynamicCaption from './photoswipe-dynamic-caption-plugin.esm.js';
|
168
|
+
|
169
|
+
const smallScreenPadding = {
|
170
|
+
top: 0, bottom: 0, left: 0, right: 0
|
171
|
+
};
|
172
|
+
|
173
|
+
const largeScreenPadding = {
|
174
|
+
top: 30, bottom: 30, left: 0, right: 0
|
175
|
+
};
|
176
|
+
|
177
|
+
const lightbox = new PhotoSwipeLightbox({
|
178
|
+
gallerySelector: '#gallery',
|
179
|
+
childSelector: '.pswp-gallery__item',
|
180
|
+
|
181
|
+
// optionaly adjust viewport
|
182
|
+
paddingFn: (viewportSize) => {
|
183
|
+
return viewportSize.x < 700 ? smallScreenPadding : largeScreenPadding
|
184
|
+
},
|
185
|
+
pswpModule: () => import('https://cdn.jsdelivr.net/npm/photoswipe@5.3.0/dist/photoswipe.esm.js')
|
186
|
+
});
|
187
|
+
|
188
|
+
const captionPlugin = new PhotoSwipeDynamicCaption(lightbox, {
|
189
|
+
mobileLayoutBreakpoint: 700,
|
190
|
+
type: 'auto',
|
191
|
+
mobileCaptionOverlapRatio: 1
|
192
|
+
});
|
193
|
+
|
194
|
+
lightbox.init();
|
195
|
+
</script>
|
196
|
+
|
197
|
+
<!-- demo styles, ignore em-->
|
198
|
+
<style>
|
199
|
+
body {
|
200
|
+
margin: 0;
|
201
|
+
padding: 0;
|
202
|
+
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;
|
203
|
+
font-size: 14px;
|
204
|
+
line-height: 20px;
|
205
|
+
background: #eee;
|
206
|
+
}
|
207
|
+
h1 {
|
208
|
+
margin: 0;
|
209
|
+
padding: 50px 50px 30px 50px;
|
210
|
+
font-size: 26px;
|
211
|
+
line-height: 1.3;
|
212
|
+
}
|
213
|
+
.pswp-gallery__item {
|
214
|
+
margin: 0 4px 4px 0;
|
215
|
+
}
|
216
|
+
.pswp-gallery__item img {
|
217
|
+
display: block;
|
218
|
+
}
|
219
|
+
.pswp-gallery {
|
220
|
+
max-width: 650px;
|
221
|
+
padding: 0 50px 50px;
|
222
|
+
background: #eee;
|
223
|
+
position: relative;
|
224
|
+
display: flex;
|
225
|
+
flex-wrap: wrap;
|
226
|
+
}
|
227
|
+
.pswp__dynamic-caption {
|
228
|
+
color: #fff;
|
229
|
+
width: 100%;
|
230
|
+
}
|
231
|
+
.pswp__dynamic-caption a {
|
232
|
+
color: #fff;
|
233
|
+
text-decoration: underline;
|
234
|
+
}
|
235
|
+
</style>
|
236
|
+
</body>
|
237
|
+
</html>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Test Gallery</title>
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
|
8
|
+
<script src="../js/photoswipe-core.min.js"></script>
|
9
|
+
<script src="../js/photoswipe-lightbox.min.js"></script>
|
10
|
+
|
11
|
+
<link rel="stylesheet" href="../css/photoswipe.min.css">
|
12
|
+
|
13
|
+
<div class="test-gallery">
|
14
|
+
<a href="https://dummyimage.com/1200x600/000/fff" data-pswp-width="1200" data-pswp-height="600">
|
15
|
+
<img src="https://dummyimage.com/120x60/000/fff" alt="" />
|
16
|
+
</a>
|
17
|
+
<a href="https://dummyimage.com/1200x1200/000/fff" data-pswp-width="1200" data-pswp-height="1200">
|
18
|
+
<img src="https://dummyimage.com/60x60/000/fff" alt="" />
|
19
|
+
</a>
|
20
|
+
<a href="https://dummyimage.com/600x1200/000/fff" data-pswp-width="600" data-pswp-height="1200">
|
21
|
+
<img src="https://dummyimage.com/30x60/000/fff" alt="" />
|
22
|
+
</a>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<script type="text/javascript">
|
26
|
+
var lightbox = new PhotoSwipeLightbox({
|
27
|
+
gallery: '.test-gallery',
|
28
|
+
children: 'a',
|
29
|
+
// dynamic import is not supported in UMD version
|
30
|
+
pswpModule: PhotoSwipe
|
31
|
+
});
|
32
|
+
lightbox.init();
|
33
|
+
</script>
|
34
|
+
|
35
|
+
</body>
|
36
|
+
</html>
|