j1-template 2024.3.15 → 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 +139 -68
- 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 +5 -4
- 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 +241 -191
- data/assets/theme/j1/adapter/js/j1.js +3 -3
- data/assets/theme/j1/adapter/js/masonry.js +2 -2
- data/assets/theme/j1/adapter/js/masterslider.js +2 -1
- data/assets/theme/j1/adapter/js/swiper.js +231 -0
- data/assets/theme/j1/adapter/js/videojs.js +212 -0
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +7 -4
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -1
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -1
- data/assets/theme/j1/core/js/template.js +4 -0
- data/assets/theme/j1/core/js/template.min.js +2 -2
- data/assets/theme/j1/core/js/template.min.js.map +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +94 -4
- 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/compact.css +3 -2
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +72 -10
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +2 -1
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/artist.svg +78 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/mute.svg +52 -20
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/next.svg +20 -39
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/now-playing.svg +24 -38
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-hide.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-music.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-show.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/previous.svg +18 -37
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +33 -30
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +33 -29
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/next.svg +55 -14
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/previous.svg +56 -14
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/volume.svg +38 -21
- data/assets/theme/j1/modules/amplitudejs/js/amplitude.map +20 -20
- 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/lightGallery/js/plugins/lg-video.js +206 -122
- 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/assets/theme/j1/modules/videojs/assets/icons/custom-icons/next.svg +82 -0
- data/assets/theme/j1/modules/videojs/css/font/README.md +151 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.svg +150 -0
- data/assets/theme/j1/modules/videojs/css/font/video-js-cdn.css +2012 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +32 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +31 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.css +31 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.min.css +21 -0
- data/assets/theme/j1/modules/videojs/css/themes/uno.css +14 -3
- data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
- data/assets/theme/j1/modules/videojs/css/videojs.css +1 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/LICENSE +13 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/README.md +75 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.js +149 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.min.js +21 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/README.md +76 -30
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.js +64 -53
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.min.js +1 -1
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/README.md +133 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.js +137 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.min.js +21 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/zoom/zoom.js +15 -12
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.js +43 -16
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/rubyeventmachine.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/rubyeventmachine.so +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app/j1_auth_manager/config.rb +0 -4
- data/lib/starter_web/Gemfile +45 -22
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +4 -6
- data/lib/starter_web/_data/modules/amplitude.yml +308 -363
- data/lib/starter_web/_data/modules/defaults/amplitude.yml +60 -35
- data/lib/starter_web/_data/modules/defaults/gallery.yml +42 -0
- 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/defaults/videojs.yml +107 -0
- data/lib/starter_web/_data/modules/gallery.yml +30 -14
- data/lib/starter_web/_data/modules/masonry.yml +15 -0
- data/lib/starter_web/_data/modules/swiper.yml +227 -0
- data/lib/starter_web/_data/modules/videojs.yml +57 -0
- data/lib/starter_web/_data/resources.yml +50 -16
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/tables/jekyll_variables.asciidoc +1 -0
- data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -0
- data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +4 -1
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +141 -24
- data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +4 -1
- data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +313 -0
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +192 -17
- 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 +89 -62
- data/lib/starter_web/pages/public/manuals/integrations/amplitudejs/amplitudejs-api.adoc +1 -1
- data/lib/starter_web/pages/public/manuals/integrations/videojs/youtube-api.adoc +1638 -0
- 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/tools/previewer/preview_bootstrap_theme.adoc +5 -6
- data/lib/starter_web/pages/public/tools/previewer/preview_videojs.adoc +203 -0
- data/lib/starter_web/pages/{tour → public/tour}/modal_extentions.adoc +12 -5
- data/lib/starter_web/pages/{tour → public/tour}/play_audio.adoc +63 -15
- data/lib/starter_web/pages/{tour → public/tour}/play_video.adoc +79 -40
- data/lib/starter_web/pages/{tour → public/tour}/present_images.adoc +5 -5
- metadata +114 -41
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_pause.svg +0 -19
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_play.svg +0 -18
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/show-playlist.svg +0 -15
- data/assets/theme/j1/modules/jqueryScrollbar/LICENSE +0 -20
- data/assets/theme/j1/modules/jqueryScrollbar/README.md +0 -28
- data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.css +0 -939
- data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.min.css +0 -20
- data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.js +0 -851
- data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.min.js +0 -36
- data/assets/theme/j1/modules/jqueryScrollbar/sass/scrollbar.scss +0 -806
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +0 -794
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/attributes.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/100_gistblock.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_info.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_left_warning.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_right_danger.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_central_success.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_full_height_left_info.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_full_height_right_success.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_info.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_left_info.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_right_success.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/419_advanced_modals_demo.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/tables/bs_modal_examples.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/themes_bootstrap.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/themes_rouge.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/asciidoc_extensions.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/bootstrap_themes.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/highlghter_rouge.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/icon_fonts.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/quicksearch.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/responsive_tables.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/typography.adoc +0 -0
data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_t_z.asciidoc
ADDED
@@ -0,0 +1,413 @@
|
|
1
|
+
[role="mt-5"]
|
2
|
+
== Options T - Z
|
3
|
+
|
4
|
+
List of available Swiper parameters (properties) alphabetically ordered
|
5
|
+
from *T* to *Z*. Find parameter settings also with the
|
6
|
+
https://swiperjs.com/swiper-api[Swiper Documentation, {browser-window--new}].
|
7
|
+
|
8
|
+
|
9
|
+
[role="mt-4"]
|
10
|
+
=== threshold
|
11
|
+
|
12
|
+
Set the threshold value in px then swiper will *not* move.
|
13
|
+
|
14
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
15
|
+
|===
|
16
|
+
|Name |Type |Default |Description
|
17
|
+
|
18
|
+
|`threshold`
|
19
|
+
|number
|
20
|
+
|5
|
21
|
+
|Threshold value in px. If *touch distance* will be lower than this value
|
22
|
+
then swiper will not move.
|
23
|
+
|
24
|
+
|===
|
25
|
+
|
26
|
+
[role="mt-4"]
|
27
|
+
=== thumbs
|
28
|
+
|
29
|
+
Set the configuration (object) of thumbs component parameters for *thumb image*
|
30
|
+
navigation.
|
31
|
+
|
32
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
33
|
+
|===
|
34
|
+
|Name |Type |Default |Description
|
35
|
+
|
36
|
+
|`thumbs`
|
37
|
+
|any
|
38
|
+
|*no defaults*
|
39
|
+
|Object with thumbs component parameters for *thumb image* navigation.
|
40
|
+
|
41
|
+
[source, js]
|
42
|
+
----
|
43
|
+
const swiper = new Swiper('.swiper', {
|
44
|
+
// other parameters ...
|
45
|
+
thumbs: {
|
46
|
+
swiper: thumbsSwiper
|
47
|
+
}
|
48
|
+
});
|
49
|
+
----
|
50
|
+
|
51
|
+
|===
|
52
|
+
|
53
|
+
[role="mt-4"]
|
54
|
+
=== touchAngle
|
55
|
+
|
56
|
+
Set Angle in degrees to trigger touch move.
|
57
|
+
|
58
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
59
|
+
|===
|
60
|
+
|Name |Type |Default |Description
|
61
|
+
|
62
|
+
|`touchAngle`
|
63
|
+
|number
|
64
|
+
|45
|
65
|
+
|Angle in degrees to trigger touch move.
|
66
|
+
|
67
|
+
|===
|
68
|
+
|
69
|
+
[role="mt-4"]
|
70
|
+
=== touchEventsTarget
|
71
|
+
|
72
|
+
Set the *target* element to listen on touch events.
|
73
|
+
|
74
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
75
|
+
|===
|
76
|
+
|Name |Type |Default |Description
|
77
|
+
|
78
|
+
|`touchEventsTarget`
|
79
|
+
|_container_ \| _wrapper_
|
80
|
+
|_wrapper_
|
81
|
+
|Target element to listen on touch events. Can be _container_ to listen
|
82
|
+
for touch events on the swiper *container* or _wrapper_ to listen for touch
|
83
|
+
events on the swiper *wrapper*.
|
84
|
+
|
85
|
+
|===
|
86
|
+
|
87
|
+
[role="mt-4"]
|
88
|
+
=== touchMoveStopPropagation
|
89
|
+
|
90
|
+
Enable to *stop* the propagation of *touchmove*.
|
91
|
+
|
92
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
93
|
+
|===
|
94
|
+
|Name |Type |Default |Description
|
95
|
+
|
96
|
+
|`touchMoveStopPropagation`
|
97
|
+
|boolean
|
98
|
+
|false
|
99
|
+
|If enabled, then propagation of *touchmove* will be stopped.
|
100
|
+
|
101
|
+
|===
|
102
|
+
|
103
|
+
[role="mt-4"]
|
104
|
+
=== touchRatio
|
105
|
+
|
106
|
+
Set the touch ratio.
|
107
|
+
|
108
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
109
|
+
|===
|
110
|
+
|Name |Type |Default |Description
|
111
|
+
|
112
|
+
|`touchRatio`
|
113
|
+
|number
|
114
|
+
|1
|
115
|
+
|Touch ratio
|
116
|
+
|
117
|
+
|===
|
118
|
+
|
119
|
+
[role="mt-4"]
|
120
|
+
=== touchReleaseOnEdges
|
121
|
+
|
122
|
+
Enable touch events on slider edge positions for *page scrolling*.
|
123
|
+
|
124
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
125
|
+
|===
|
126
|
+
|Name |Type |Default |Description
|
127
|
+
|
128
|
+
|`touchReleaseOnEdges`
|
129
|
+
|boolean
|
130
|
+
|false
|
131
|
+
|Enable to release touch events on slider edge position (beginning, end)
|
132
|
+
to allow for further *page scrolling*.
|
133
|
+
|
134
|
+
[CAUTIION]
|
135
|
+
====
|
136
|
+
This feature works only with *touch* events (and not pointer events), so it
|
137
|
+
will work on *iOS * or *Android* devices (mobiles) and not work on *Windows*
|
138
|
+
(desktp) devices with *pointer* events.
|
139
|
+
|
140
|
+
Also *threshold* parameter must be set to *0*.
|
141
|
+
====
|
142
|
+
|
143
|
+
|===
|
144
|
+
|
145
|
+
[role="mt-4"]
|
146
|
+
=== touchStartForcePreventDefault
|
147
|
+
|
148
|
+
Force to *prevent default* for `touchstart` or `pointerdown` events.
|
149
|
+
|
150
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
151
|
+
|===
|
152
|
+
|Name |Type |Default |Description
|
153
|
+
|
154
|
+
|`touchStartForcePreventDefault`
|
155
|
+
|boolean
|
156
|
+
|false
|
157
|
+
|Force to prevent default for `touchstart` \| `pointerdown` events.
|
158
|
+
|
159
|
+
|===
|
160
|
+
|
161
|
+
[role="mt-4"]
|
162
|
+
=== touchStartPreventDefault
|
163
|
+
|
164
|
+
Enable *prevent default* for `touchstart` or `pointerdown` events.
|
165
|
+
|
166
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
167
|
+
|===
|
168
|
+
|Name |Type |Default |Description
|
169
|
+
|
170
|
+
|`touchStartPreventDefault`
|
171
|
+
|boolean
|
172
|
+
|true
|
173
|
+
|If set `false` (disabled), `pointerdown` events are *not* prevented
|
174
|
+
by default.
|
175
|
+
|
176
|
+
|===
|
177
|
+
|
178
|
+
[role="mt-4"]
|
179
|
+
=== uniqueNavElements
|
180
|
+
|
181
|
+
Disable navigation element parameters passed as a string like _.pagination_.
|
182
|
+
|
183
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
184
|
+
|===
|
185
|
+
|Name |Type |Default |Description
|
186
|
+
|
187
|
+
|`uniqueNavElements`
|
188
|
+
|boolean
|
189
|
+
|true
|
190
|
+
|When enabled (by default) and navigation element parameters passed as a
|
191
|
+
string (like `_.pagination_) then Swiper will look for such elements
|
192
|
+
through *child* elements first. Applies for *pagination*, *prev* \| *next*
|
193
|
+
buttons and *scrollbar* elements.
|
194
|
+
|
195
|
+
|===
|
196
|
+
|
197
|
+
[role="mt-4"]
|
198
|
+
=== updateOnWindowResize
|
199
|
+
|
200
|
+
Disable the recalculation of slide positions on window resize for desktops or
|
201
|
+
orientation change on mobiles.
|
202
|
+
|
203
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
204
|
+
|===
|
205
|
+
|Name |Type |Default |Description
|
206
|
+
|
207
|
+
|`updateOnWindowResize`
|
208
|
+
|boolean
|
209
|
+
|true
|
210
|
+
|Swiper will recalculate slides position on window resize (desktops) or
|
211
|
+
orientation change (on mobiles).
|
212
|
+
|
213
|
+
|===
|
214
|
+
|
215
|
+
[role="mt-4"]
|
216
|
+
=== url
|
217
|
+
|
218
|
+
Required for *active* slide detection when rendered on server-side and
|
219
|
+
history enabled.
|
220
|
+
|
221
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
222
|
+
|===
|
223
|
+
|Name |Type |Default |Description
|
224
|
+
|
225
|
+
|`url`
|
226
|
+
|null \| string
|
227
|
+
|null
|
228
|
+
|Required for active slide detection when rendered on server-side and
|
229
|
+
history enabled.
|
230
|
+
|
231
|
+
|===
|
232
|
+
|
233
|
+
[role="mt-4"]
|
234
|
+
=== userAgent
|
235
|
+
|
236
|
+
Setting the *userAgent string* is required for browser or device detection
|
237
|
+
when swiper is rendered on server-side.
|
238
|
+
|
239
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
240
|
+
|===
|
241
|
+
|Name |Type |Default |Description
|
242
|
+
|
243
|
+
|`userAgent`
|
244
|
+
|null \| string
|
245
|
+
|null
|
246
|
+
|userAgent string. Required for browser \| device detection when swiper is
|
247
|
+
rendered on server-side.
|
248
|
+
|
249
|
+
|===
|
250
|
+
|
251
|
+
[role="mt-4"]
|
252
|
+
=== virtual
|
253
|
+
|
254
|
+
Enables and configures the *virtual slides* functionality.
|
255
|
+
|
256
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
257
|
+
|===
|
258
|
+
|Name |Type |Default |Description
|
259
|
+
|
260
|
+
|'virtual'
|
261
|
+
|any
|
262
|
+
|*no defaults*
|
263
|
+
|Enables virtual slides functionality. Object with virtual slides
|
264
|
+
parameters or boolean `true` to enable with default settings.
|
265
|
+
|
266
|
+
[source, js]
|
267
|
+
----
|
268
|
+
const swiper = new Swiper('.swiper', {
|
269
|
+
virtual: {
|
270
|
+
slides: ['Slide 1', 'Slide 2', 'Slide 3', 'Slide 4', 'Slide 5']
|
271
|
+
}
|
272
|
+
});
|
273
|
+
----
|
274
|
+
|
275
|
+
|===
|
276
|
+
|
277
|
+
[role="mt-4"]
|
278
|
+
=== virtualTranslate
|
279
|
+
|
280
|
+
Useful when you need to create *custom* slide *transitions*.
|
281
|
+
|
282
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
283
|
+
|===
|
284
|
+
|Name |Type |Default |Description
|
285
|
+
|
286
|
+
|`virtualTranslate`
|
287
|
+
|boolean
|
288
|
+
|false
|
289
|
+
|If enabled, the swiper will be operated as usual, but will not move
|
290
|
+
and *real* CSS3 *transform translate* values on wrapper will *not*
|
291
|
+
be set.
|
292
|
+
|
293
|
+
[TIP]
|
294
|
+
====
|
295
|
+
Useful when you need to create *custom* slide *transitions*.
|
296
|
+
====
|
297
|
+
|
298
|
+
|===
|
299
|
+
|
300
|
+
[role="mt-4"]
|
301
|
+
=== watchOverflow
|
302
|
+
|
303
|
+
When enabled, the swiper will be *disabled* and *hide navigation* buttons
|
304
|
+
in case there are *not enough* slides for *sliding*.
|
305
|
+
|
306
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
307
|
+
|===
|
308
|
+
|Name |Type |Default |Description
|
309
|
+
|
310
|
+
|`watchOverflow`
|
311
|
+
|boolean
|
312
|
+
|true
|
313
|
+
|When enabled, Swiper will be *disabled* and *hide navigation* buttons
|
314
|
+
in case there are *not enough* slides for *sliding*.
|
315
|
+
|
316
|
+
|===
|
317
|
+
|
318
|
+
[role="mt-4"]
|
319
|
+
=== watchSlidesProgress
|
320
|
+
|
321
|
+
When enabled, the swiper will be *disabled* and *hide navigation* buttons
|
322
|
+
in case there are *not enough* slides for *sliding*.
|
323
|
+
|
324
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
325
|
+
|===
|
326
|
+
|Name |Type |Default |Description
|
327
|
+
|
328
|
+
|`watchSlidesProgress`
|
329
|
+
|boolean
|
330
|
+
|false
|
331
|
+
|Enable this feature to calculate each slides progress and visibility.
|
332
|
+
|
333
|
+
[NOTE]
|
334
|
+
====
|
335
|
+
Slides in viewport will have an *additional* visible class.
|
336
|
+
====
|
337
|
+
|
338
|
+
|===
|
339
|
+
|
340
|
+
[role="mt-4"]
|
341
|
+
=== width
|
342
|
+
|
343
|
+
Force the swiper width (in px).
|
344
|
+
|
345
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
346
|
+
|===
|
347
|
+
|Name |Type |Default |Description
|
348
|
+
|
349
|
+
|`width`
|
350
|
+
|null \| number
|
351
|
+
|null
|
352
|
+
|Parameter allows to force the swiper width (in px).
|
353
|
+
|
354
|
+
[CAUTION]
|
355
|
+
====
|
356
|
+
Useful only if you initialize Swiper when it is *hidden* and in
|
357
|
+
Test environments for correct Swiper initialization.
|
358
|
+
|
359
|
+
Setting this parameter will make Swiper *not responsive*.
|
360
|
+
====
|
361
|
+
|
362
|
+
|===
|
363
|
+
|
364
|
+
[role="mt-4"]
|
365
|
+
=== wrapperClass
|
366
|
+
|
367
|
+
Set the CSS class name of the slides *wrapper*.
|
368
|
+
|
369
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
370
|
+
|===
|
371
|
+
|Name |Type |Default |Description
|
372
|
+
|
373
|
+
|`wrapperClass`
|
374
|
+
|string
|
375
|
+
|_swiper-wrapper_
|
376
|
+
|CSS class name of the slides wrapper.
|
377
|
+
|
378
|
+
[CAUTION]
|
379
|
+
====
|
380
|
+
By changing classes, you will also need to change Swiper's CSS to reflect
|
381
|
+
changed classes.
|
382
|
+
|
383
|
+
*Not supported* for swipers in _React_ and _Vue_ environments.
|
384
|
+
====
|
385
|
+
|
386
|
+
|===
|
387
|
+
|
388
|
+
|
389
|
+
[role="mt-4"]
|
390
|
+
=== zoom
|
391
|
+
|
392
|
+
Enables *zooming* functionality.
|
393
|
+
|
394
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
395
|
+
|===
|
396
|
+
|Name |Type |Default |Description
|
397
|
+
|
398
|
+
|`zoom`
|
399
|
+
|any
|
400
|
+
|*no defaults*
|
401
|
+
|Enables zooming functionality. Object with zoom parameters or boolean
|
402
|
+
`true` to enable with default settings
|
403
|
+
|
404
|
+
[source, js]
|
405
|
+
----
|
406
|
+
const swiper = new Swiper('.swiper', {
|
407
|
+
zoom: {
|
408
|
+
maxRatio: 5
|
409
|
+
}
|
410
|
+
});
|
411
|
+
----
|
412
|
+
|
413
|
+
|===
|