j1-template 2024.3.22 → 2024.3.24
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/assets/data/{galeries.html → gallery_app.html} +106 -18
- data/assets/theme/bla +0 -0
- data/assets/theme/j1/adapter/js/amplitude.js +144 -52
- data/assets/theme/j1/adapter/js/gallery.js +14 -3
- data/assets/theme/j1/adapter/js/themes.js +41 -69
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +48 -52
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/theme/j1/core/css/vendor.css +1 -1
- data/assets/theme/j1/core/css/vendor.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +466 -396
- data/assets/theme/j1/modules/lightGallery/css/lg-transitions.css +3 -126
- data/assets/theme/j1/modules/lightGallery/css/lg-transitions.min.css +3 -10
- data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.css +70 -237
- data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.min.css +4 -10
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.css +276 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.min.css +17 -0
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +196 -134
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.min.js +3 -10
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.min.js +5 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.js +179 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.min.js +32 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.min.js +6 -7
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +27 -20
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +489 -411
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.min.js +3 -10
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.js +11 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +5 -5
- data/assets/theme/j1/modules/rtable/css/theme/uno/rtable.css +11 -1
- data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +13 -12
- data/assets/theme/j1/modules/videoPlayer/tiktoc/README.md +1 -0
- data/assets/theme/j1/modules/videojs/assets/README.md +1 -0
- data/assets/theme/j1/modules/videojs/assets/icons/speedometer-medium.svg +35 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.ttf +0 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.woff +0 -0
- data/assets/theme/j1/modules/videojs/css/themes/uno.css +189 -42
- data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
- data/assets/theme/j1/modules/videojs/css/videojs.css +674 -316
- data/assets/theme/j1/modules/videojs/css/videojs.min.css +4 -3
- data/assets/theme/j1/modules/videojs/js/video.js +15893 -12288
- data/assets/theme/j1/modules/videojs/js/video.min.js +22 -23
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/!examples/index.html +26 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/README.md +69 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.css +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.min.css +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.js +339 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.min.js +2 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.js +0 -5
- data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys/examples → plugins/controls/hotkeys/!examples}/example.html +1 -1
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/!examples/index.html +25 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/README.md +90 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.js +120 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.min.js +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/!examples/index.html +32 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/README.md +61 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.js +94 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.min.js +20 -0
- data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/skipbuttons/README.md +25 -11
- data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/zoom/css}/zoom.css +7 -6
- data/assets/theme/j1/modules/videojs/plugins/controls/zoom/css/zoom.min.css +22 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-controls.html +4 -4
- data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-javascript.html +3 -3
- data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-playlist.html +3 -3
- data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/global-parameters.html +3 -3
- data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/simple.html +31 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/switch.html +3 -3
- data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.js +1 -1
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/index.html +3 -3
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/player/index.html +3 -3
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.0.js +521 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.1.js +605 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.3.js +643 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.4.js +583 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.5.js +665 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.6.js +642 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.7.js +673 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.js +1 -1
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.min.js +1 -1
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm → plugins/players/vm/js}/vimeo.js +4 -5
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/vimeo.min.js +28 -0
- data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.0.js +395 -0
- data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.1.js +401 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/global-parameters.html +5 -5
- data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/simple.html +5 -5
- data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/switch.html +5 -5
- data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-controls.html +5 -5
- data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-javascript.html +5 -5
- data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-list.html +5 -5
- data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-playlist.html +5 -5
- 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/blocks/banner.yml +2 -2
- data/lib/starter_web/_data/modules/amplitude_playlists.yml +16 -1
- data/lib/starter_web/_data/modules/attics.yml +11 -0
- data/lib/starter_web/_data/modules/carousel.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/gallery.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/masonry.yml +115 -22
- data/lib/starter_web/_data/modules/gallery.yml +225 -281
- data/lib/starter_web/_data/modules/masonry.yml +6 -0
- data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
- data/lib/starter_web/_data/resources.yml +16 -12
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/attributes.asciidoc +7 -0
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +50 -30
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +37 -23
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/image/module/attic/1920x1280/alexander-redl.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/alexander-shatov.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/alexey-ruban.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/andrea-badino.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/bootstrap-modal.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/bp-miller.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/brad-neathery.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/brigitta-schneiter.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/build-with-gemini.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/clem-onojeghuo.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/crawford-jolly.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/eleni-afiontzi.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/fly-d.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/guillaume-bolduc.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/ideas-start-here-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/isaac-davis.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/j1-content-mockup-2.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/j1-content-mockup-3.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/j1-starter-mockup-1.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/john-schnobrich-2.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/josep-martins.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/josh-liu.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/kelly-sikkemal.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/kira-auf-der-heide.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/kristopher-roller.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/markus-spiske.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/martin-sanchez.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/material_symbols.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/matthaeus.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/melanie-deziel.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/milad-fakurian.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/mohammad-rahmani.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/nasa.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/quino-al-2.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/stories-ink-tattoo-care.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/towfiqu-barbhuiya.jpg +0 -0
- data/lib/starter_web/assets/image/page/tour/bootswatch-themes.jpg +0 -0
- data/lib/starter_web/assets/video/poster/vimeo/fall_2011.jpg +0 -0
- data/lib/starter_web/index.html +3 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +5 -5
- data/lib/starter_web/pages/public/tools/tester/app_tester_amplitudejs_yt.adoc +7 -3
- data/lib/starter_web/pages/public/tools/tester/app_tester_swiperjs.adoc +7 -3
- data/lib/starter_web/pages/public/tools/tester/videojs_macro_tester.adoc +297 -0
- data/lib/starter_web/pages/public/tour/_includes/attributes.asciidoc +1 -2
- data/lib/starter_web/pages/public/tour/_includes/documents/themes_bootstrap.asciidoc +1 -1
- data/lib/starter_web/pages/public/tour/asciidoc_extensions.adoc +7 -3
- data/lib/starter_web/pages/public/tour/bootstrap_themes.adoc +62 -7
- data/lib/starter_web/pages/public/tour/icon_fonts.adoc +4 -8
- data/lib/starter_web/pages/public/tour/modal_extentions.adoc +2 -2
- data/lib/starter_web/pages/public/tour/responsive_tables.adoc +21 -15
- data/lib/starter_web/pages/public/tour/typography.adoc +5 -5
- data/lib/starter_web/pages/public/tour/video_data.adoc +25 -5
- metadata +142 -118
- data/assets/data/swiper_app.2.html +0 -757
- data/assets/data/swiper_app.4.html +0 -769
- data/assets/theme/j1/modules/lightGallery/css/themes/uno/uno.css +0 -140
- data/assets/theme/j1/modules/lightGallery/css/themes/uno/uno.min.css +0 -19
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/j1-video.js +0 -402
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/j1-video.min.js +0 -7
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.1.js +0 -585
- data/assets/theme/j1/modules/videojs/css/font/video-js-cdn.css +0 -2012
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +0 -32
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +0 -31
- data/assets/theme/j1/modules/videojs/css/plugins/controls/zoom.min.css +0 -21
- data/assets/theme/j1/modules/videojs/js/plugins/players/dm/examples/simple.html +0 -20
- data/assets/theme/j1/modules/videojs/js/plugins/players/vm/vimeo.min.js +0 -16
- data/assets/theme/j1/modules/videojs/js/plugins/players/wt/api/src/WistiaPlayer.ts +0 -1617
- data/lib/starter_web/_data/modules/gallery_app.yml +0 -1002
- data/lib/starter_web/_data/modules/gallery_playlists.yml +0 -534
- data/lib/starter_web/assets/image/module/attic/1920x1280/alina-grubnyak.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/bruno-figueiredo.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/harpal-singh.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/hayden-mills-2.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/j1-content-mockup-1.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/recha-oktaviani.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/tiny_desk.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/ideas-start-here-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/ideas-start-here-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/video/poster/vimeo/stay_colorful.jpg +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/animation-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/customize-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/dynamic-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/facebook-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/googleplus-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/html5-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/linked-in.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/module-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/play-button-hover.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/play-button.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/play-button.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/responsive-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/thumb-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/touch-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/twitter-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/twitter.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/video1-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/zoom-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/css/{themes → theme}/uno/icons/zoom.png +0 -0
- /data/assets/theme/j1/modules/videoPlayer/dailymotion/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/tiktoc/{js/player.min.js → player.min.js} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/vimeo/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/wistia/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/LICENSE.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.css +0 -0
- /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.min.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/styles.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/LICENSE.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/doc → plugins/players/dm}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/api/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api/doc → plugins/players/dm/api}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/icon/scalable/dailymotion.svg +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/doc → plugins/players/vm}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api/doc → plugins/players/vm/api}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.uno.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/player.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/doc → plugins/players/wt}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api/doc/Readme.txt → plugins/players/wt/api/README.md} +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api → plugins/players/wt/api/js}/wistia.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/yt/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/doc → plugins/players/yt}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/api → plugins/players/yt/api/js}/youtube.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.min.js +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
/*
|
2
2
|
# -----------------------------------------------------------------------------
|
3
3
|
# ~/assets/theme/j1/modules/lightGallery/js/core/lightgallery.js
|
4
|
-
# Provides the lightGallery Main JS module
|
4
|
+
# Provides the lightGallery v2.8.3 Main JS module
|
5
5
|
#
|
6
6
|
# Product/Info:
|
7
7
|
# https://jekyll.one
|
8
8
|
#
|
9
|
-
# Copyright (C)
|
9
|
+
# Copyright (C) 2025 Sachin Neravath
|
10
10
|
# Copyright (C) 2023-2025 Juergen Adams
|
11
11
|
#
|
12
12
|
# J1 Template is licensed under the MIT License.
|
@@ -17,7 +17,7 @@
|
|
17
17
|
*/
|
18
18
|
|
19
19
|
/*!
|
20
|
-
* lightgallery | 2.
|
20
|
+
* lightgallery | 2.8.3 | March 1st 2025
|
21
21
|
* http://www.lightgalleryjs.com/
|
22
22
|
* Copyright (c) 2020 Sachin Neravath;
|
23
23
|
* @license GPLv3
|
@@ -69,111 +69,111 @@
|
|
69
69
|
* Below interfaces are used to build the website documentations
|
70
70
|
* */
|
71
71
|
var lGEvents = {
|
72
|
-
afterAppendSlide:
|
73
|
-
init:
|
74
|
-
hasVideo:
|
75
|
-
containerResize:
|
76
|
-
updateSlides:
|
77
|
-
afterAppendSubHtml:
|
78
|
-
beforeOpen:
|
79
|
-
afterOpen:
|
80
|
-
slideItemLoad:
|
81
|
-
beforeSlide:
|
82
|
-
afterSlide:
|
83
|
-
posterClick:
|
84
|
-
dragStart:
|
85
|
-
dragMove:
|
86
|
-
dragEnd:
|
87
|
-
beforeNextSlide:
|
88
|
-
beforePrevSlide:
|
89
|
-
beforeClose:
|
90
|
-
afterClose:
|
91
|
-
rotateLeft:
|
92
|
-
rotateRight:
|
93
|
-
flipHorizontal:
|
94
|
-
flipVertical:
|
95
|
-
autoplay:
|
96
|
-
autoplayStart:
|
97
|
-
autoplayStop:
|
72
|
+
afterAppendSlide: 'lgAfterAppendSlide',
|
73
|
+
init: 'lgInit',
|
74
|
+
hasVideo: 'lgHasVideo',
|
75
|
+
containerResize: 'lgContainerResize',
|
76
|
+
updateSlides: 'lgUpdateSlides',
|
77
|
+
afterAppendSubHtml: 'lgAfterAppendSubHtml',
|
78
|
+
beforeOpen: 'lgBeforeOpen',
|
79
|
+
afterOpen: 'lgAfterOpen',
|
80
|
+
slideItemLoad: 'lgSlideItemLoad',
|
81
|
+
beforeSlide: 'lgBeforeSlide',
|
82
|
+
afterSlide: 'lgAfterSlide',
|
83
|
+
posterClick: 'lgPosterClick',
|
84
|
+
dragStart: 'lgDragStart',
|
85
|
+
dragMove: 'lgDragMove',
|
86
|
+
dragEnd: 'lgDragEnd',
|
87
|
+
beforeNextSlide: 'lgBeforeNextSlide',
|
88
|
+
beforePrevSlide: 'lgBeforePrevSlide',
|
89
|
+
beforeClose: 'lgBeforeClose',
|
90
|
+
afterClose: 'lgAfterClose',
|
91
|
+
rotateLeft: 'lgRotateLeft',
|
92
|
+
rotateRight: 'lgRotateRight',
|
93
|
+
flipHorizontal: 'lgFlipHorizontal',
|
94
|
+
flipVertical: 'lgFlipVertical',
|
95
|
+
autoplay: 'lgAutoplay',
|
96
|
+
autoplayStart: 'lgAutoplayStart',
|
97
|
+
autoplayStop: 'lgAutoplayStop',
|
98
98
|
};
|
99
99
|
|
100
100
|
var lightGalleryCoreSettings = {
|
101
|
-
mode:
|
102
|
-
easing:
|
103
|
-
speed:
|
104
|
-
licenseKey:
|
105
|
-
height:
|
106
|
-
width:
|
107
|
-
addClass:
|
108
|
-
startClass:
|
109
|
-
backdropDuration:
|
110
|
-
container:
|
111
|
-
startAnimationDuration:
|
112
|
-
zoomFromOrigin:
|
113
|
-
hideBarsDelay:
|
114
|
-
showBarsAfter:
|
115
|
-
slideDelay:
|
116
|
-
supportLegacyBrowser:
|
117
|
-
allowMediaOverlap:
|
118
|
-
videoMaxSize:
|
119
|
-
loadYouTubePoster:
|
120
|
-
defaultCaptionHeight:
|
121
|
-
ariaLabelledby:
|
122
|
-
ariaDescribedby:
|
123
|
-
resetScrollPosition:
|
124
|
-
hideScrollbar:
|
125
|
-
closable:
|
126
|
-
swipeToClose:
|
127
|
-
closeOnTap:
|
128
|
-
showCloseIcon:
|
129
|
-
showMaximizeIcon:
|
130
|
-
loop:
|
131
|
-
escKey:
|
132
|
-
keyPress:
|
133
|
-
trapFocus:
|
134
|
-
controls:
|
135
|
-
slideEndAnimation:
|
136
|
-
hideControlOnEnd:
|
137
|
-
mousewheel:
|
138
|
-
getCaptionFromTitleOrAlt:
|
139
|
-
appendSubHtmlTo:
|
140
|
-
subHtmlSelectorRelative:
|
141
|
-
preload:
|
142
|
-
numberOfSlideItemsInDom:
|
143
|
-
selector:
|
144
|
-
selectWithin:
|
145
|
-
nextHtml:
|
146
|
-
prevHtml:
|
147
|
-
index:
|
148
|
-
iframeWidth:
|
149
|
-
iframeHeight:
|
150
|
-
iframeMaxWidth:
|
151
|
-
iframeMaxHeight:
|
152
|
-
download:
|
153
|
-
counter:
|
154
|
-
appendCounterTo:
|
155
|
-
swipeThreshold:
|
156
|
-
enableSwipe:
|
157
|
-
enableDrag:
|
158
|
-
dynamic:
|
159
|
-
dynamicEl:
|
160
|
-
extraProps:
|
161
|
-
exThumbImage:
|
162
|
-
isMobile:
|
101
|
+
mode: 'lg-slide',
|
102
|
+
easing: 'ease',
|
103
|
+
speed: 400,
|
104
|
+
licenseKey: '0000-0000-000-0000',
|
105
|
+
height: '100%',
|
106
|
+
width: '100%',
|
107
|
+
addClass: '',
|
108
|
+
startClass: 'lg-start-zoom',
|
109
|
+
backdropDuration: 300,
|
110
|
+
container: '',
|
111
|
+
startAnimationDuration: 400,
|
112
|
+
zoomFromOrigin: true,
|
113
|
+
hideBarsDelay: 0,
|
114
|
+
showBarsAfter: 10000,
|
115
|
+
slideDelay: 0,
|
116
|
+
supportLegacyBrowser: true,
|
117
|
+
allowMediaOverlap: false,
|
118
|
+
videoMaxSize: '1280-720',
|
119
|
+
loadYouTubePoster: true,
|
120
|
+
defaultCaptionHeight: 0,
|
121
|
+
ariaLabelledby: '',
|
122
|
+
ariaDescribedby: '',
|
123
|
+
resetScrollPosition: true,
|
124
|
+
hideScrollbar: false,
|
125
|
+
closable: true,
|
126
|
+
swipeToClose: true,
|
127
|
+
closeOnTap: true,
|
128
|
+
showCloseIcon: true,
|
129
|
+
showMaximizeIcon: false,
|
130
|
+
loop: true,
|
131
|
+
escKey: true,
|
132
|
+
keyPress: true,
|
133
|
+
trapFocus: true,
|
134
|
+
controls: true,
|
135
|
+
slideEndAnimation: true,
|
136
|
+
hideControlOnEnd: false,
|
137
|
+
mousewheel: false,
|
138
|
+
getCaptionFromTitleOrAlt: true,
|
139
|
+
appendSubHtmlTo: '.lg-sub-html',
|
140
|
+
subHtmlSelectorRelative: false,
|
141
|
+
preload: 2,
|
142
|
+
numberOfSlideItemsInDom: 10,
|
143
|
+
selector: '',
|
144
|
+
selectWithin: '',
|
145
|
+
nextHtml: '',
|
146
|
+
prevHtml: '',
|
147
|
+
index: 0,
|
148
|
+
iframeWidth: '100%',
|
149
|
+
iframeHeight: '100%',
|
150
|
+
iframeMaxWidth: '100%',
|
151
|
+
iframeMaxHeight: '100%',
|
152
|
+
download: true,
|
153
|
+
counter: true,
|
154
|
+
appendCounterTo: '.lg-toolbar',
|
155
|
+
swipeThreshold: 50,
|
156
|
+
enableSwipe: true,
|
157
|
+
enableDrag: true,
|
158
|
+
dynamic: false,
|
159
|
+
dynamicEl: [],
|
160
|
+
extraProps: [],
|
161
|
+
exThumbImage: '',
|
162
|
+
isMobile: undefined,
|
163
163
|
mobileSettings: {
|
164
|
-
|
165
|
-
|
166
|
-
|
164
|
+
controls: false,
|
165
|
+
showCloseIcon: false,
|
166
|
+
download: false,
|
167
167
|
},
|
168
|
-
plugins:
|
168
|
+
plugins: [],
|
169
169
|
strings: {
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
170
|
+
closeGallery: 'Close gallery',
|
171
|
+
toggleMaximize: 'Toggle maximize',
|
172
|
+
previousSlide: 'Previous slide',
|
173
|
+
nextSlide: 'Next slide',
|
174
|
+
download: 'Download',
|
175
|
+
playVideo: 'Play video',
|
176
|
+
mediaLoadingFailed: 'Oops... Failed to load content...',
|
177
177
|
},
|
178
178
|
};
|
179
179
|
|
@@ -466,7 +466,12 @@
|
|
466
466
|
};
|
467
467
|
lgQuery.prototype.prepend = function (html) {
|
468
468
|
this._each(function (el) {
|
469
|
-
|
469
|
+
if (typeof html === 'string') {
|
470
|
+
el.insertAdjacentHTML('afterbegin', html);
|
471
|
+
}
|
472
|
+
else if (html instanceof HTMLElement) {
|
473
|
+
el.insertBefore(html.cloneNode(true), el.firstChild);
|
474
|
+
}
|
470
475
|
});
|
471
476
|
return this;
|
472
477
|
};
|
@@ -590,6 +595,27 @@
|
|
590
595
|
return attr;
|
591
596
|
}
|
592
597
|
var utils = {
|
598
|
+
/**
|
599
|
+
* Fetches HTML content from a given URL and inserts it into a specified element.
|
600
|
+
*
|
601
|
+
* @param url - The URL to fetch the HTML content from.
|
602
|
+
* @param element - The DOM element (jQuery object) to insert the HTML content into.
|
603
|
+
* @param insertMethod - The method to insert the HTML ('append' or 'replace').
|
604
|
+
*/
|
605
|
+
fetchCaptionFromUrl: function (url, element, insertMethod) {
|
606
|
+
// Fetch content from the URL
|
607
|
+
fetch(url)
|
608
|
+
.then(function (response) { return response.text(); })
|
609
|
+
.then(function (htmlContent) {
|
610
|
+
if (insertMethod === 'append') {
|
611
|
+
var contentDiv = "<div class=\"lg-sub-html\">" + htmlContent + "</div>";
|
612
|
+
element.append(contentDiv);
|
613
|
+
}
|
614
|
+
else {
|
615
|
+
element.html(htmlContent);
|
616
|
+
}
|
617
|
+
});
|
618
|
+
},
|
593
619
|
/**
|
594
620
|
* get possible width and height from the lgSize attribute. Used for ZoomFromOrigin option
|
595
621
|
*/
|
@@ -674,7 +700,7 @@
|
|
674
700
|
},
|
675
701
|
getIframeMarkup: function (iframeWidth, iframeHeight, iframeMaxWidth, iframeMaxHeight, src, iframeTitle) {
|
676
702
|
var title = iframeTitle ? 'title="' + iframeTitle + '"' : '';
|
677
|
-
return "<div class=\"lg-
|
703
|
+
return "<div class=\"lg-media-cont lg-has-iframe\" style=\"width:" + iframeWidth + "; max-width:" + iframeMaxWidth + "; height: " + iframeHeight + "; max-height:" + iframeMaxHeight + "\">\n <iframe class=\"lg-object\" frameborder=\"0\" " + title + " src=\"" + src + "\" allowfullscreen=\"true\"></iframe>\n </div>";
|
678
704
|
},
|
679
705
|
getImgMarkup: function (index, src, altAttr, srcset, sizes, sources) {
|
680
706
|
var srcsetAttr = srcset ? "srcset=\"" + srcset + "\"" : '';
|
@@ -743,13 +769,14 @@
|
|
743
769
|
else if (_isVideo && _isVideo.vimeo) {
|
744
770
|
videoClass = 'lg-has-vimeo';
|
745
771
|
}
|
746
|
-
else if (_isVideo && _isVideo.tiktoc) {
|
747
|
-
videoClass = 'lg-has-tiktoc';
|
748
|
-
}
|
749
772
|
else {
|
750
773
|
videoClass = 'lg-has-html5';
|
751
774
|
}
|
752
|
-
|
775
|
+
var _dummy = dummyImg;
|
776
|
+
if (typeof dummyImg !== 'string') {
|
777
|
+
_dummy = dummyImg.outerHTML;
|
778
|
+
}
|
779
|
+
return "<div class=\"lg-video-cont " + videoClass + "\" style=\"" + videoContStyle + "\">\n <div class=\"lg-video-play-button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"xMidYMid\"\n focusable=\"false\"\n aria-labelledby=\"" + playVideoString + "\"\n role=\"img\"\n class=\"lg-video-play-icon\"\n >\n <title>" + playVideoString + "</title>\n <polygon class=\"lg-video-play-icon-inner\" points=\"1,0 20,10 1,20\"></polygon>\n </svg>\n <svg class=\"lg-video-play-icon-bg\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle></svg>\n <svg class=\"lg-video-play-icon-circle\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle>\n </svg>\n </div>\n " + _dummy + "\n <img class=\"lg-object lg-video-poster\" src=\"" + _poster + "\" />\n </div>";
|
753
780
|
},
|
754
781
|
getFocusableElements: function (container) {
|
755
782
|
var elements = container.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');
|
@@ -802,6 +829,9 @@
|
|
802
829
|
isMobile: function () {
|
803
830
|
return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
804
831
|
},
|
832
|
+
|
833
|
+
// jadams
|
834
|
+
// ---------------------------------------------------------------------
|
805
835
|
/**
|
806
836
|
* @desc Check the given src is video
|
807
837
|
* @param {String} src
|
@@ -813,13 +843,14 @@
|
|
813
843
|
isVideo: function (src, isHTML5VIdeo, index) {
|
814
844
|
// jadams, 2024-08-01: workaound when src equals '#'
|
815
845
|
// jadams, 2024-08-01: TODO, check why src is set to '#'
|
816
|
-
|
846
|
+
// jadams, 2025-06-13: Fixed by adding missing data-src elements in assets/data/gallery_app.html
|
847
|
+
// if (!src || src === '#') {
|
848
|
+
if (!src) {
|
817
849
|
if (isHTML5VIdeo) {
|
818
850
|
return {
|
819
851
|
html5: true,
|
820
852
|
};
|
821
|
-
}
|
822
|
-
else {
|
853
|
+
} else {
|
823
854
|
console.error('lightGallery :- data-src is not provided on slide item ' +
|
824
855
|
(index + 1) +
|
825
856
|
'. Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/');
|
@@ -934,7 +965,17 @@
|
|
934
965
|
if (this.settings.dynamic) {
|
935
966
|
this.zoomFromOrigin = false;
|
936
967
|
}
|
937
|
-
if (
|
968
|
+
if (this.settings.container) {
|
969
|
+
var container = this.settings.container;
|
970
|
+
if (typeof container === 'function') {
|
971
|
+
this.settings.container = container();
|
972
|
+
}
|
973
|
+
else if (typeof container === 'string') {
|
974
|
+
var el = document.querySelector(container);
|
975
|
+
this.settings.container = el !== null && el !== void 0 ? el : document.body;
|
976
|
+
}
|
977
|
+
}
|
978
|
+
else {
|
938
979
|
this.settings.container = document.body;
|
939
980
|
}
|
940
981
|
// settings.preload should not be grater than $item.length
|
@@ -985,6 +1026,7 @@
|
|
985
1026
|
_loop_1(index);
|
986
1027
|
}
|
987
1028
|
};
|
1029
|
+
|
988
1030
|
/**
|
989
1031
|
* Module constructor
|
990
1032
|
* Modules are build incrementally.
|
@@ -997,6 +1039,9 @@
|
|
997
1039
|
_this.plugins.push(new plugin(_this, $LG));
|
998
1040
|
});
|
999
1041
|
};
|
1042
|
+
|
1043
|
+
// jadams
|
1044
|
+
// ---------------------------------------------------------------------
|
1000
1045
|
LightGallery.prototype.validateLicense = function () {
|
1001
1046
|
if (!this.settings.licenseKey) {
|
1002
1047
|
console.error('Please provide a valid license key');
|
@@ -1006,6 +1051,7 @@
|
|
1006
1051
|
// console.warn("lightGallery: " + " license key not valid for business use: " + this.settings.licenseKey);
|
1007
1052
|
}
|
1008
1053
|
};
|
1054
|
+
|
1009
1055
|
LightGallery.prototype.getSlideItem = function (index) {
|
1010
1056
|
return $LG(this.getSlideItemId(index));
|
1011
1057
|
};
|
@@ -1474,7 +1520,7 @@
|
|
1474
1520
|
}
|
1475
1521
|
if (this.settings.appendSubHtmlTo !== '.lg-item') {
|
1476
1522
|
if (subHtmlUrl) {
|
1477
|
-
this.outer.find('.lg-sub-html')
|
1523
|
+
utils.fetchCaptionFromUrl(subHtmlUrl, this.outer.find('.lg-sub-html'), 'replace');
|
1478
1524
|
}
|
1479
1525
|
else {
|
1480
1526
|
this.outer.find('.lg-sub-html').html(subHtml);
|
@@ -1483,7 +1529,7 @@
|
|
1483
1529
|
else {
|
1484
1530
|
var currentSlide = $LG(this.getSlideItemId(index));
|
1485
1531
|
if (subHtmlUrl) {
|
1486
|
-
|
1532
|
+
utils.fetchCaptionFromUrl(subHtmlUrl, currentSlide, 'append');
|
1487
1533
|
}
|
1488
1534
|
else {
|
1489
1535
|
currentSlide.append("<div class=\"lg-sub-html\">" + subHtml + "</div>");
|
@@ -1551,10 +1597,14 @@
|
|
1551
1597
|
if (!_dummyImgSrc)
|
1552
1598
|
return '';
|
1553
1599
|
var imgStyle = this.getDummyImgStyles(this.currentImageSize);
|
1554
|
-
var
|
1600
|
+
var dummyImgContentImg = document.createElement('img');
|
1601
|
+
dummyImgContentImg.alt = alt || '';
|
1602
|
+
dummyImgContentImg.src = _dummyImgSrc;
|
1603
|
+
dummyImgContentImg.className = "lg-dummy-img";
|
1604
|
+
dummyImgContentImg.style.cssText = imgStyle;
|
1555
1605
|
$currentSlide.addClass('lg-first-slide');
|
1556
1606
|
this.outer.addClass('lg-first-slide-loading');
|
1557
|
-
return
|
1607
|
+
return dummyImgContentImg;
|
1558
1608
|
}
|
1559
1609
|
return '';
|
1560
1610
|
};
|
@@ -1571,8 +1621,10 @@
|
|
1571
1621
|
else {
|
1572
1622
|
imgContent = utils.getImgMarkup(index, src, altAttr, srcset, sizes, sources);
|
1573
1623
|
}
|
1574
|
-
var
|
1575
|
-
|
1624
|
+
var picture = document.createElement('picture');
|
1625
|
+
picture.className = 'lg-img-wrap';
|
1626
|
+
$LG(picture).append(imgContent);
|
1627
|
+
$currentSlide.prepend(picture);
|
1576
1628
|
};
|
1577
1629
|
LightGallery.prototype.onSlideObjectLoad = function ($slide, isHTML5VideoWithoutPoster, onLoad, onError) {
|
1578
1630
|
var mediaObject = $slide.find('.lg-object').first();
|
@@ -1632,27 +1684,30 @@
|
|
1632
1684
|
this.zoomFromOrigin &&
|
1633
1685
|
this.currentImageSize);
|
1634
1686
|
};
|
1635
|
-
|
1687
|
+
|
1688
|
+
// jadams: modified check the (existance of) element/slide poster
|
1689
|
+
// ---------------------------------------------------------------------
|
1636
1690
|
LightGallery.prototype.addSlideVideoInfo = function (items) {
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1691
|
+
var _this = this;
|
1692
|
+
items.forEach(function (element, index) {
|
1693
|
+
element.__slideVideoInfo = utils.isVideo(element.src, !!element.video, index);
|
1694
|
+
|
1695
|
+
// failsafe check
|
1696
|
+
if (element.__slideVideoInfo.youtube && !element.poster) {
|
1697
|
+
element.poster = `//img.youtube.com/vi/${element.__slideVideoInfo.youtube[1]}/maxresdefault.jpg`;
|
1698
|
+
} // END if
|
1699
|
+
}); // END for
|
1700
|
+
}; // END addSlideVideoInfo
|
1701
|
+
|
1648
1702
|
|
1703
|
+
// jadams
|
1704
|
+
// ---------------------------------------------------------------------
|
1649
1705
|
/**
|
1650
1706
|
* Load slide content into slide.
|
1651
1707
|
* This is used to load content into slides that is not visible too
|
1652
1708
|
* @param {Number} index - index of the slide.
|
1653
1709
|
* @param {Boolean} rec - if true call loadcontent() function again.
|
1654
1710
|
*/
|
1655
|
-
// jadams
|
1656
1711
|
LightGallery.prototype.loadContent = function (index, rec) {
|
1657
1712
|
var _this = this;
|
1658
1713
|
var currentGalleryItem = this.galleryItems[index];
|
@@ -1669,7 +1724,8 @@
|
|
1669
1724
|
var lgVideoStyle = '';
|
1670
1725
|
var iframe = !!currentGalleryItem.iframe;
|
1671
1726
|
var isFirstSlide = !this.lGalleryOn;
|
1672
|
-
|
1727
|
+
|
1728
|
+
// delay for adding complete class, it is 0 except for FIRST time
|
1673
1729
|
var delay = 0;
|
1674
1730
|
if (isFirstSlide) {
|
1675
1731
|
if (this.zoomFromOrigin && this.currentImageSize) {
|
@@ -1797,6 +1853,7 @@
|
|
1797
1853
|
}
|
1798
1854
|
}
|
1799
1855
|
};
|
1856
|
+
|
1800
1857
|
/**
|
1801
1858
|
* @desc Remove dummy image content and load next slides
|
1802
1859
|
* Called only for the first time if zoomFromOrigin animation is enabled
|
@@ -2328,6 +2385,9 @@
|
|
2328
2385
|
}
|
2329
2386
|
this.getSlideItem(_touchNext).addClass('lg-next-slide');
|
2330
2387
|
};
|
2388
|
+
|
2389
|
+
// jadams:
|
2390
|
+
// ---------------------------------------------------------------------
|
2331
2391
|
/**
|
2332
2392
|
* Go to next slide
|
2333
2393
|
* @param {Boolean} fromTouch - true if slide function called via touch event
|
@@ -2368,6 +2428,7 @@
|
|
2368
2428
|
}
|
2369
2429
|
}
|
2370
2430
|
};
|
2431
|
+
|
2371
2432
|
/**
|
2372
2433
|
* Go to previous slides
|
2373
2434
|
* @param {Boolean} fromTouch - true if slide function called via touch event
|
@@ -2504,7 +2565,8 @@
|
|
2504
2565
|
LightGallery.prototype.isSlideElement = function (target) {
|
2505
2566
|
return (target.hasClass('lg-outer') ||
|
2506
2567
|
target.hasClass('lg-item') ||
|
2507
|
-
target.hasClass('lg-img-wrap')
|
2568
|
+
target.hasClass('lg-img-wrap') ||
|
2569
|
+
target.hasClass('lg-img-rotate'));
|
2508
2570
|
};
|
2509
2571
|
LightGallery.prototype.isPosterElement = function (target) {
|
2510
2572
|
var playButton = this.getSlideItem(this.index)
|
@@ -2779,4 +2841,4 @@
|
|
2779
2841
|
|
2780
2842
|
return lightGallery;
|
2781
2843
|
|
2782
|
-
})));
|
2844
|
+
})));
|