j1-template 2024.3.23 → 2024.3.25
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/apps/amplitudehtml +1147 -0
- data/assets/data/apps/gallery.html +342 -0
- data/assets/data/{masonry.html → apps/masonry.html} +22 -9
- data/assets/data/apps/swiper.html +901 -0
- data/assets/data/gallery_app.html +102 -14
- data/assets/data/masonry_app.html +521 -0
- data/assets/theme/j1/adapter/js/gallery.js +13 -2
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +29 -0
- 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/lightGallery/css/theme/uno/uno.css +21 -13
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.min.css +1 -2
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +48 -28
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.min.js +1 -8
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +463 -298
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.min.js +1 -8
- data/assets/theme/j1/modules/rtable/css/theme/uno/rtable.css +11 -1
- data/assets/theme/j1/modules/videojs/css/themes/uno.css +53 -31
- data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
- data/assets/theme/j1/modules/videojs/css/videojs.css +2 -3
- data/assets/theme/j1/modules/videojs/css/videojs.min.css +1 -1
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/!examples/index.html +4 -9
- data/assets/theme/j1/modules/videojs/plugins/controls/hotkeys/!examples/example.html +1 -1
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/!examples/index.html +3 -7
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/!examples/index.html +3 -8
- data/assets/theme/j1/modules/videojs/plugins/controls/zoom/css/zoom.css +55 -55
- data/assets/theme/j1/modules/videojs/plugins/controls/zoom/css/zoom.min.css +2 -1
- data/assets/theme/j1/modules/videojs/plugins/controls/zoom/js/zoom.js +590 -382
- data/assets/theme/j1/modules/videojs/plugins/controls/zoom/js/zoom.min.js +1 -1
- data/assets/theme/j1/modules/videojs/plugins/j1_core/template.min.js +31 -0
- data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/index.html +32 -0
- data/assets/theme/j1/modules/videojs/plugins/players/dm/js/dailymotion.0.js +647 -0
- data/assets/theme/j1/modules/videojs/plugins/players/dm/js/dailymotion.1.js +653 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!examples/{player → iframe_api}/index.html +6 -6
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!examples/videojs_api/index.html +38 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/api/js/v2.21.0/vimeo.js +3562 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/api/js/v2.21.0/vimeo.min.js +36 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/api/js/vimeo.js +451 -1849
- data/assets/theme/j1/modules/videojs/plugins/players/vm/api/js/vimeo.min.js +2 -14
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/LICENSE +21 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/README.md +54 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/old/vimeo.js +666 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/old/vimeo.min.js +28 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/vimeo.js +2318 -548
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/vimeo.min.js +12 -18
- data/assets/theme/j1/modules/videojs/plugins/players/yt/!examples/index.html +31 -0
- data/assets/theme/j1/modules/videojs/plugins/players/yt/js/youtube.js +12 -5
- data/assets/theme/j1/modules/videojs/plugins/players/yt/js/youtube.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +2 -2
- data/lib/starter_web/_data/blocks/banner.yml +3 -3
- data/lib/starter_web/_data/j1_config.yml +1 -1
- data/lib/starter_web/_data/layouts/home.yml +1 -1
- data/lib/starter_web/_data/modules/attics.yml +11 -0
- data/lib/starter_web/_data/modules/authentication.yml +1 -2
- data/lib/starter_web/_data/modules/carousel.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/masonry.yml +116 -23
- data/lib/starter_web/_data/modules/gallery.yml +197 -238
- data/lib/starter_web/_data/modules/log4javascript.yml +1 -1
- data/lib/starter_web/_data/modules/masonry.yml +36 -14
- data/lib/starter_web/_data/modules/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/navigator_menu.yml +12 -8
- 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/dailymotion-block.rb +206 -24
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/image/module/attic/1920x1280/admin-dashboard-bootstrap.jpg +0 -0
- 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-launch.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/1920x1280/j1-mockup.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/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-01-about-j1.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2023-10-18-url-types.adoc +2 -2
- data/lib/starter_web/config.ru +1 -1
- data/lib/starter_web/dot.gitattributes +1 -1
- data/lib/starter_web/index.html +8 -7
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/about/features.adoc +5 -5
- data/lib/starter_web/pages/public/about/reporting_issues.adoc +5 -5
- data/lib/starter_web/pages/public/about/site.adoc +14 -10
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/allview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/viewer_all_books.adoc +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -3
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -3
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +3 -3
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +3 -3
- data/lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +1 -4
- data/lib/starter_web/pages/public/plans/plans.adoc +1 -1
- data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +6 -6
- 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 +122 -34
- data/lib/starter_web/pages/public/tour/_includes/attributes.asciidoc +1 -2
- data/lib/starter_web/pages/public/tour/_includes/documents/419_advanced_modals_demo.asciidoc +1 -1
- 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 +51 -26
- metadata +34 -149
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.css +0 -984
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.min.css +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.css +0 -1627
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.min.css +0 -25
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/animation-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/customize-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/dynamic-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/facebook-icon.svg +0 -10
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/googleplus-icon.svg +0 -30
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/html5-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/linked-in.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/module-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/play-button-hover.svg +0 -94
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/play-button.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/play-button.svg +0 -93
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/responsive-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/thumb-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/touch-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/twitter-icon.svg +0 -15
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/twitter.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/video1-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/zoom-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/icons/zoom.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/uno.css +0 -140
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/themes/uno/uno.min.css +0 -19
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.svg +0 -54
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.ttf +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff2 +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/images/loading.gif +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/loading.gif +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/video-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/vimeo-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/youtube-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.js +0 -2782
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/LICENSE.md +0 -44
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/README.md +0 -37
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.js +0 -890
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.min.js +0 -8
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/j1/j1-video.js +0 -402
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/j1/j1-video.min.js +0 -7
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/j1/lg-video.1.js +0 -585
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.js +0 -275
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.js +0 -230
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.js +0 -160
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.js +0 -223
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.min.js +0 -27
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.js +0 -157
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.js +0 -164
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.js +0 -299
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.js +0 -244
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.min.js +0 -27
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.js +0 -509
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.js +0 -909
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.js +0 -207
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.js +0 -999
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.min.js +0 -26
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.0.js +0 -495
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.1.js +0 -513
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.0.js +0 -553
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.1.js +0 -585
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.2.js +0 -914
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/README.md +0 -151
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/VideoJS.svg +0 -150
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/video-js-cdn.css +0 -2012
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.css +0 -147
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.min.css +0 -5
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.css +0 -113
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.min.css +0 -5
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.css +0 -166
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.min.css +0 -5
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.css +0 -72
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.min.css +0 -5
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.css +0 -311
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.min.css +0 -19
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.css +0 -1686
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.min.css +0 -13
- data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.js +0 -65226
- data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.min.js +0 -55
- data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/dailymotion-controls.html +0 -18
- data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/dailymotion-javascript.html +0 -28
- data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/dailymotion-playlist.html +0 -19
- data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/global-parameters.html +0 -30
- data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/simple.html +0 -20
- data/assets/theme/j1/modules/videojs/plugins/players/dm/!examples/switch.html +0 -39
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!examples/index.html +0 -34
- data/assets/theme/j1/modules/videojs/plugins/players/yt/!examples/global-parameters.html +0 -34
- data/assets/theme/j1/modules/videojs/plugins/players/yt/!examples/simple.html +0 -22
- data/assets/theme/j1/modules/videojs/plugins/players/yt/!examples/switch.html +0 -39
- data/assets/theme/j1/modules/videojs/plugins/players/yt/!examples/youtube-controls.html +0 -20
- data/assets/theme/j1/modules/videojs/plugins/players/yt/!examples/youtube-javascript.html +0 -29
- data/assets/theme/j1/modules/videojs/plugins/players/yt/!examples/youtube-list.html +0 -21
- data/assets/theme/j1/modules/videojs/plugins/players/yt/!examples/youtube-playlist.html +0 -21
- 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/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/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/admin-dashboard-bootstrap-1280x600.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/alice-donovan-rouse-2.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/building-blocks-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/christina-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/franck-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/giammarco-boscaro-1920x1280.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/image/module/attic/jessica-ruscello-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/joanna-kosinska-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/leon-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/library-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/markus-krisetya-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/markus-spiske-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/markus-spiske4-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/matthaeus-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/matthew-dockery-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/no-time-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/rirri-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/shubham-dhage-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/shutterstock_sponsor-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/szabo-viktor-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/themes-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/tldr-1920x800.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/vladislav-klapin-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/image/module/attic/yellow-cactus-1920x1280.jpg +0 -0
- /data/assets/theme/j1/modules/videojs/plugins/players/vm/{LICENSE → js/old/LICENSE} +0 -0
- /data/assets/theme/j1/modules/videojs/plugins/players/vm/{README.md → js/old/README.md} +0 -0
@@ -1,553 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* lightgallery | 2.8.3 | March 1st 2025
|
3
|
-
* http://www.lightgalleryjs.com/
|
4
|
-
* Copyright (c) 2020 Sachin Neravath;
|
5
|
-
* @license GPLv3
|
6
|
-
*/
|
7
|
-
|
8
|
-
(function (global, factory) {
|
9
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
10
|
-
typeof define === 'function' && define.amd ? define(factory) :
|
11
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.lgVideo = factory());
|
12
|
-
}(this, (function () { 'use strict';
|
13
|
-
|
14
|
-
/*! *****************************************************************************
|
15
|
-
Copyright (c) Microsoft Corporation.
|
16
|
-
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
18
|
-
purpose with or without fee is hereby granted.
|
19
|
-
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
27
|
-
***************************************************************************** */
|
28
|
-
|
29
|
-
var __assign = function() {
|
30
|
-
__assign = Object.assign || function __assign(t) {
|
31
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
32
|
-
s = arguments[i];
|
33
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
34
|
-
}
|
35
|
-
return t;
|
36
|
-
};
|
37
|
-
return __assign.apply(this, arguments);
|
38
|
-
};
|
39
|
-
|
40
|
-
var videoSettings = {
|
41
|
-
autoplayFirstVideo: true,
|
42
|
-
youTubePlayerParams: false,
|
43
|
-
vimeoPlayerParams: false,
|
44
|
-
wistiaPlayerParams: false,
|
45
|
-
gotoNextSlideOnVideoEnd: true,
|
46
|
-
autoplayVideoOnSlide: false,
|
47
|
-
videojs: false,
|
48
|
-
videojsTheme: '',
|
49
|
-
videojsOptions: {},
|
50
|
-
};
|
51
|
-
|
52
|
-
/**
|
53
|
-
* List of lightGallery events
|
54
|
-
* All events should be documented here
|
55
|
-
* Below interfaces are used to build the website documentations
|
56
|
-
* */
|
57
|
-
var lGEvents = {
|
58
|
-
afterAppendSlide: 'lgAfterAppendSlide',
|
59
|
-
init: 'lgInit',
|
60
|
-
hasVideo: 'lgHasVideo',
|
61
|
-
containerResize: 'lgContainerResize',
|
62
|
-
updateSlides: 'lgUpdateSlides',
|
63
|
-
afterAppendSubHtml: 'lgAfterAppendSubHtml',
|
64
|
-
beforeOpen: 'lgBeforeOpen',
|
65
|
-
afterOpen: 'lgAfterOpen',
|
66
|
-
slideItemLoad: 'lgSlideItemLoad',
|
67
|
-
beforeSlide: 'lgBeforeSlide',
|
68
|
-
afterSlide: 'lgAfterSlide',
|
69
|
-
posterClick: 'lgPosterClick',
|
70
|
-
dragStart: 'lgDragStart',
|
71
|
-
dragMove: 'lgDragMove',
|
72
|
-
dragEnd: 'lgDragEnd',
|
73
|
-
beforeNextSlide: 'lgBeforeNextSlide',
|
74
|
-
beforePrevSlide: 'lgBeforePrevSlide',
|
75
|
-
beforeClose: 'lgBeforeClose',
|
76
|
-
afterClose: 'lgAfterClose',
|
77
|
-
rotateLeft: 'lgRotateLeft',
|
78
|
-
rotateRight: 'lgRotateRight',
|
79
|
-
flipHorizontal: 'lgFlipHorizontal',
|
80
|
-
flipVertical: 'lgFlipVertical',
|
81
|
-
autoplay: 'lgAutoplay',
|
82
|
-
autoplayStart: 'lgAutoplayStart',
|
83
|
-
autoplayStop: 'lgAutoplayStop',
|
84
|
-
};
|
85
|
-
|
86
|
-
var param = function (obj) {
|
87
|
-
return Object.keys(obj)
|
88
|
-
.map(function (k) {
|
89
|
-
return encodeURIComponent(k) + '=' + encodeURIComponent(obj[k]);
|
90
|
-
})
|
91
|
-
.join('&');
|
92
|
-
};
|
93
|
-
var paramsToObject = function (url) {
|
94
|
-
var paramas = url
|
95
|
-
.slice(1)
|
96
|
-
.split('&')
|
97
|
-
.map(function (p) { return p.split('='); })
|
98
|
-
.reduce(function (obj, pair) {
|
99
|
-
var _a = pair.map(decodeURIComponent), key = _a[0], value = _a[1];
|
100
|
-
obj[key] = value;
|
101
|
-
return obj;
|
102
|
-
}, {});
|
103
|
-
return paramas;
|
104
|
-
};
|
105
|
-
var getYouTubeParams = function (videoInfo, youTubePlayerParamsSettings) {
|
106
|
-
if (!videoInfo.youtube)
|
107
|
-
return '';
|
108
|
-
var slideUrlParams = videoInfo.youtube[2]
|
109
|
-
? paramsToObject(videoInfo.youtube[2])
|
110
|
-
: '';
|
111
|
-
// For youtube first params gets priority if duplicates found
|
112
|
-
var defaultYouTubePlayerParams = {
|
113
|
-
wmode: 'opaque',
|
114
|
-
autoplay: 0,
|
115
|
-
mute: 1,
|
116
|
-
enablejsapi: 1,
|
117
|
-
};
|
118
|
-
var playerParamsSettings = youTubePlayerParamsSettings || {};
|
119
|
-
var youTubePlayerParams = __assign(__assign(__assign({}, defaultYouTubePlayerParams), playerParamsSettings), slideUrlParams);
|
120
|
-
var youTubeParams = "?" + param(youTubePlayerParams);
|
121
|
-
return youTubeParams;
|
122
|
-
};
|
123
|
-
var isYouTubeNoCookie = function (url) {
|
124
|
-
return url.includes('youtube-nocookie.com');
|
125
|
-
};
|
126
|
-
var getVimeoURLParams = function (defaultParams, videoInfo) {
|
127
|
-
if (!videoInfo || !videoInfo.vimeo)
|
128
|
-
return '';
|
129
|
-
var urlParams = videoInfo.vimeo[2] || '';
|
130
|
-
var defaultVimeoPlayerParams = Object.assign({}, {
|
131
|
-
autoplay: 0,
|
132
|
-
muted: 1,
|
133
|
-
}, defaultParams);
|
134
|
-
var defaultPlayerParams = defaultVimeoPlayerParams &&
|
135
|
-
Object.keys(defaultVimeoPlayerParams).length !== 0
|
136
|
-
? param(defaultVimeoPlayerParams)
|
137
|
-
: '';
|
138
|
-
// Support private video
|
139
|
-
var urlWithHash = videoInfo.vimeo[0].split('/').pop() || '';
|
140
|
-
var urlWithHashWithParams = urlWithHash.split('?')[0] || '';
|
141
|
-
var hash = urlWithHashWithParams.split('#')[0];
|
142
|
-
var isPrivate = videoInfo.vimeo[1] !== hash;
|
143
|
-
if (isPrivate) {
|
144
|
-
urlParams = urlParams.replace("/" + hash, '');
|
145
|
-
}
|
146
|
-
urlParams =
|
147
|
-
urlParams[0] == '?' ? '&' + urlParams.slice(1) : urlParams || '';
|
148
|
-
var privateUrlParams = isPrivate ? "h=" + hash : '';
|
149
|
-
defaultPlayerParams = privateUrlParams
|
150
|
-
? "&" + defaultPlayerParams
|
151
|
-
: defaultPlayerParams;
|
152
|
-
var vimeoPlayerParams = "?" + privateUrlParams + defaultPlayerParams + urlParams;
|
153
|
-
return vimeoPlayerParams;
|
154
|
-
};
|
155
|
-
|
156
|
-
/**
|
157
|
-
* Video module for lightGallery
|
158
|
-
* Supports HTML5, YouTube, Vimeo, wistia videos
|
159
|
-
*
|
160
|
-
*
|
161
|
-
* @ref Wistia
|
162
|
-
* https://wistia.com/support/integrations/wordpress(How to get url)
|
163
|
-
* https://wistia.com/support/developers/embed-options#using-embed-options
|
164
|
-
* https://wistia.com/support/developers/player-api
|
165
|
-
* https://wistia.com/support/developers/construct-an-embed-code
|
166
|
-
* http://jsfiddle.net/xvnm7xLm/
|
167
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
|
168
|
-
* https://wistia.com/support/embed-and-share/sharing-videos
|
169
|
-
* https://private-sharing.wistia.com/medias/mwhrulrucj
|
170
|
-
*
|
171
|
-
* @ref Youtube
|
172
|
-
* https://developers.google.com/youtube/player_parameters#enablejsapi
|
173
|
-
* https://developers.google.com/youtube/iframe_api_reference
|
174
|
-
* https://developer.chrome.com/blog/autoplay/#iframe-delegation
|
175
|
-
*
|
176
|
-
* @ref Vimeo
|
177
|
-
* https://stackoverflow.com/questions/10488943/easy-way-to-get-vimeo-id-from-a-vimeo-url
|
178
|
-
* https://vimeo.zendesk.com/hc/en-us/articles/360000121668-Starting-playback-at-a-specific-timecode
|
179
|
-
* https://vimeo.zendesk.com/hc/en-us/articles/360001494447-Using-Player-Parameters
|
180
|
-
*/
|
181
|
-
var Video = /** @class */ (function () {
|
182
|
-
function Video(instance) {
|
183
|
-
// get lightGallery core plugin instance
|
184
|
-
this.core = instance;
|
185
|
-
this.settings = __assign(__assign({}, videoSettings), this.core.settings);
|
186
|
-
return this;
|
187
|
-
}
|
188
|
-
Video.prototype.init = function () {
|
189
|
-
var _this = this;
|
190
|
-
/**
|
191
|
-
* Event triggered when video url found without poster
|
192
|
-
* Append video HTML
|
193
|
-
* Play if autoplayFirstVideo is true
|
194
|
-
*/
|
195
|
-
this.core.LGel.on(lGEvents.hasVideo + ".video", this.onHasVideo.bind(this));
|
196
|
-
this.core.LGel.on(lGEvents.posterClick + ".video", function () {
|
197
|
-
var $el = _this.core.getSlideItem(_this.core.index);
|
198
|
-
_this.loadVideoOnPosterClick($el);
|
199
|
-
});
|
200
|
-
this.core.LGel.on(lGEvents.slideItemLoad + ".video", this.onSlideItemLoad.bind(this));
|
201
|
-
// @desc fired immediately before each slide transition.
|
202
|
-
this.core.LGel.on(lGEvents.beforeSlide + ".video", this.onBeforeSlide.bind(this));
|
203
|
-
// @desc fired immediately after each slide transition.
|
204
|
-
this.core.LGel.on(lGEvents.afterSlide + ".video", this.onAfterSlide.bind(this));
|
205
|
-
};
|
206
|
-
/**
|
207
|
-
* @desc Event triggered when a slide is completely loaded
|
208
|
-
*
|
209
|
-
* @param {Event} event - lightGalley custom event
|
210
|
-
*/
|
211
|
-
Video.prototype.onSlideItemLoad = function (event) {
|
212
|
-
var _this = this;
|
213
|
-
var _a = event.detail, isFirstSlide = _a.isFirstSlide, index = _a.index;
|
214
|
-
// Should check the active slide as well as user may have moved to different slide before the first slide is loaded
|
215
|
-
if (this.settings.autoplayFirstVideo &&
|
216
|
-
isFirstSlide &&
|
217
|
-
index === this.core.index) {
|
218
|
-
// Delay is just for the transition effect on video load
|
219
|
-
setTimeout(function () {
|
220
|
-
_this.loadAndPlayVideo(index);
|
221
|
-
}, 200);
|
222
|
-
}
|
223
|
-
// Should not call on first slide. should check only if the slide is active
|
224
|
-
if (!isFirstSlide &&
|
225
|
-
this.settings.autoplayVideoOnSlide &&
|
226
|
-
index === this.core.index) {
|
227
|
-
this.loadAndPlayVideo(index);
|
228
|
-
}
|
229
|
-
};
|
230
|
-
/**
|
231
|
-
* @desc Event triggered when video url or poster found
|
232
|
-
* Append video HTML is poster is not given
|
233
|
-
* Play if autoplayFirstVideo is true
|
234
|
-
*
|
235
|
-
* @param {Event} event - Javascript Event object.
|
236
|
-
*/
|
237
|
-
Video.prototype.onHasVideo = function (event) {
|
238
|
-
var _a = event.detail, index = _a.index, src = _a.src, html5Video = _a.html5Video, hasPoster = _a.hasPoster;
|
239
|
-
if (!hasPoster) {
|
240
|
-
// All functions are called separately if poster exist in loadVideoOnPosterClick function
|
241
|
-
this.appendVideos(this.core.getSlideItem(index), {
|
242
|
-
src: src,
|
243
|
-
addClass: 'lg-object',
|
244
|
-
index: index,
|
245
|
-
html5Video: html5Video,
|
246
|
-
});
|
247
|
-
// Automatically navigate to next slide once video reaches the end.
|
248
|
-
this.gotoNextSlideOnVideoEnd(src, index);
|
249
|
-
}
|
250
|
-
};
|
251
|
-
/**
|
252
|
-
* @desc fired immediately before each slide transition.
|
253
|
-
* Pause the previous video
|
254
|
-
* Hide the download button if the slide contains YouTube, Vimeo, or Wistia videos.
|
255
|
-
*
|
256
|
-
* @param {Event} event - Javascript Event object.
|
257
|
-
* @param {number} prevIndex - Previous index of the slide.
|
258
|
-
* @param {number} index - Current index of the slide
|
259
|
-
*/
|
260
|
-
Video.prototype.onBeforeSlide = function (event) {
|
261
|
-
if (this.core.lGalleryOn) {
|
262
|
-
var prevIndex = event.detail.prevIndex;
|
263
|
-
this.pauseVideo(prevIndex);
|
264
|
-
}
|
265
|
-
};
|
266
|
-
/**
|
267
|
-
* @desc fired immediately after each slide transition.
|
268
|
-
* Play video if autoplayVideoOnSlide option is enabled.
|
269
|
-
*
|
270
|
-
* @param {Event} event - Javascript Event object.
|
271
|
-
* @param {number} prevIndex - Previous index of the slide.
|
272
|
-
* @param {number} index - Current index of the slide
|
273
|
-
* @todo should check on onSlideLoad as well if video is not loaded on after slide
|
274
|
-
*/
|
275
|
-
Video.prototype.onAfterSlide = function (event) {
|
276
|
-
var _this = this;
|
277
|
-
var _a = event.detail, index = _a.index, prevIndex = _a.prevIndex;
|
278
|
-
// Do not call on first slide
|
279
|
-
var $slide = this.core.getSlideItem(index);
|
280
|
-
if (this.settings.autoplayVideoOnSlide && index !== prevIndex) {
|
281
|
-
if ($slide.hasClass('lg-complete')) {
|
282
|
-
setTimeout(function () {
|
283
|
-
_this.loadAndPlayVideo(index);
|
284
|
-
}, 100);
|
285
|
-
}
|
286
|
-
}
|
287
|
-
};
|
288
|
-
Video.prototype.loadAndPlayVideo = function (index) {
|
289
|
-
var $slide = this.core.getSlideItem(index);
|
290
|
-
var currentGalleryItem = this.core.galleryItems[index];
|
291
|
-
if (currentGalleryItem.poster) {
|
292
|
-
this.loadVideoOnPosterClick($slide, true);
|
293
|
-
}
|
294
|
-
else {
|
295
|
-
this.playVideo(index);
|
296
|
-
}
|
297
|
-
};
|
298
|
-
/**
|
299
|
-
* Play HTML5, Youtube, Vimeo or Wistia videos in a particular slide.
|
300
|
-
* @param {number} index - Index of the slide
|
301
|
-
*/
|
302
|
-
Video.prototype.playVideo = function (index) {
|
303
|
-
this.controlVideo(index, 'play');
|
304
|
-
};
|
305
|
-
/**
|
306
|
-
* Pause HTML5, Youtube, Vimeo or Wistia videos in a particular slide.
|
307
|
-
* @param {number} index - Index of the slide
|
308
|
-
*/
|
309
|
-
Video.prototype.pauseVideo = function (index) {
|
310
|
-
this.controlVideo(index, 'pause');
|
311
|
-
};
|
312
|
-
Video.prototype.getVideoHtml = function (src, addClass, index, html5Video) {
|
313
|
-
var video = '';
|
314
|
-
var videoInfo = this.core.galleryItems[index]
|
315
|
-
.__slideVideoInfo || {};
|
316
|
-
var currentGalleryItem = this.core.galleryItems[index];
|
317
|
-
var videoTitle = currentGalleryItem.title || currentGalleryItem.alt;
|
318
|
-
videoTitle = videoTitle ? 'title="' + videoTitle + '"' : '';
|
319
|
-
var commonIframeProps = "allowtransparency=\"true\"\n frameborder=\"0\"\n scrolling=\"no\"\n allowfullscreen\n mozallowfullscreen\n webkitallowfullscreen\n oallowfullscreen\n msallowfullscreen";
|
320
|
-
if (videoInfo.youtube) {
|
321
|
-
var videoId = 'lg-youtube' + index;
|
322
|
-
var youTubeParams = getYouTubeParams(videoInfo, this.settings.youTubePlayerParams);
|
323
|
-
var isYouTubeNoCookieURL = isYouTubeNoCookie(src);
|
324
|
-
var youtubeURL = isYouTubeNoCookieURL
|
325
|
-
? '//www.youtube-nocookie.com/'
|
326
|
-
: '//www.youtube.com/';
|
327
|
-
video = "<iframe allow=\"autoplay\" id=" + videoId + " class=\"lg-video-object lg-youtube " + addClass + "\" " + videoTitle + " src=\"" + youtubeURL + "embed/" + (videoInfo.youtube[1] + youTubeParams) + "\" " + commonIframeProps + "></iframe>";
|
328
|
-
}
|
329
|
-
else if (videoInfo.vimeo) {
|
330
|
-
var videoId = 'lg-vimeo' + index;
|
331
|
-
var playerParams = getVimeoURLParams(this.settings.vimeoPlayerParams, videoInfo);
|
332
|
-
video = "<iframe allow=\"autoplay\" id=" + videoId + " class=\"lg-video-object lg-vimeo " + addClass + "\" " + videoTitle + " src=\"//player.vimeo.com/video/" + (videoInfo.vimeo[1] + playerParams) + "\" " + commonIframeProps + "></iframe>";
|
333
|
-
}
|
334
|
-
else if (videoInfo.wistia) {
|
335
|
-
var wistiaId = 'lg-wistia' + index;
|
336
|
-
var playerParams = param(this.settings.wistiaPlayerParams);
|
337
|
-
playerParams = playerParams ? '?' + playerParams : '';
|
338
|
-
video = "<iframe allow=\"autoplay\" id=\"" + wistiaId + "\" src=\"//fast.wistia.net/embed/iframe/" + (videoInfo.wistia[4] + playerParams) + "\" " + videoTitle + " class=\"wistia_embed lg-video-object lg-wistia " + addClass + "\" name=\"wistia_embed\" " + commonIframeProps + "></iframe>";
|
339
|
-
}
|
340
|
-
else if (videoInfo.html5) {
|
341
|
-
var html5VideoMarkup = '';
|
342
|
-
for (var i = 0; i < html5Video.source.length; i++) {
|
343
|
-
var type = html5Video.source[i].type;
|
344
|
-
var typeAttr = type ? "type=\"" + type + "\"" : '';
|
345
|
-
html5VideoMarkup += "<source src=\"" + html5Video.source[i].src + "\" " + typeAttr + ">";
|
346
|
-
}
|
347
|
-
if (html5Video.tracks) {
|
348
|
-
var _loop_1 = function (i) {
|
349
|
-
var trackAttributes = '';
|
350
|
-
var track = html5Video.tracks[i];
|
351
|
-
Object.keys(track || {}).forEach(function (key) {
|
352
|
-
trackAttributes += key + "=\"" + track[key] + "\" ";
|
353
|
-
});
|
354
|
-
html5VideoMarkup += "<track " + trackAttributes + ">";
|
355
|
-
};
|
356
|
-
for (var i = 0; i < html5Video.tracks.length; i++) {
|
357
|
-
_loop_1(i);
|
358
|
-
}
|
359
|
-
}
|
360
|
-
var html5VideoAttrs_1 = '';
|
361
|
-
var videoAttributes_1 = html5Video.attributes || {};
|
362
|
-
Object.keys(videoAttributes_1 || {}).forEach(function (key) {
|
363
|
-
html5VideoAttrs_1 += key + "=\"" + videoAttributes_1[key] + "\" ";
|
364
|
-
});
|
365
|
-
video = "<video class=\"lg-video-object lg-html5 " + (this.settings.videojs && this.settings.videojsTheme
|
366
|
-
? this.settings.videojsTheme + ' '
|
367
|
-
: '') + " " + (this.settings.videojs ? ' video-js' : '') + "\" " + html5VideoAttrs_1 + ">\n " + html5VideoMarkup + "\n Your browser does not support HTML5 video.\n </video>";
|
368
|
-
}
|
369
|
-
return video;
|
370
|
-
};
|
371
|
-
/**
|
372
|
-
* @desc - Append videos to the slide
|
373
|
-
*
|
374
|
-
* @param {HTMLElement} el - slide element
|
375
|
-
* @param {Object} videoParams - Video parameters, Contains src, class, index, htmlVideo
|
376
|
-
*/
|
377
|
-
Video.prototype.appendVideos = function (el, videoParams) {
|
378
|
-
var _a;
|
379
|
-
var videoHtml = this.getVideoHtml(videoParams.src, videoParams.addClass, videoParams.index, videoParams.html5Video);
|
380
|
-
el.find('.lg-video-cont').append(videoHtml);
|
381
|
-
var $videoElement = el.find('.lg-video-object').first();
|
382
|
-
if (videoParams.html5Video) {
|
383
|
-
$videoElement.on('mousedown.lg.video', function (e) {
|
384
|
-
e.stopPropagation();
|
385
|
-
});
|
386
|
-
}
|
387
|
-
if (this.settings.videojs && ((_a = this.core.galleryItems[videoParams.index].__slideVideoInfo) === null || _a === void 0 ? void 0 : _a.html5)) {
|
388
|
-
try {
|
389
|
-
return videojs($videoElement.get(), this.settings.videojsOptions);
|
390
|
-
}
|
391
|
-
catch (e) {
|
392
|
-
console.error('lightGallery:- Make sure you have included videojs');
|
393
|
-
}
|
394
|
-
}
|
395
|
-
};
|
396
|
-
Video.prototype.gotoNextSlideOnVideoEnd = function (src, index) {
|
397
|
-
var _this = this;
|
398
|
-
var $videoElement = this.core
|
399
|
-
.getSlideItem(index)
|
400
|
-
.find('.lg-video-object')
|
401
|
-
.first();
|
402
|
-
var videoInfo = this.core.galleryItems[index].__slideVideoInfo || {};
|
403
|
-
if (this.settings.gotoNextSlideOnVideoEnd) {
|
404
|
-
if (videoInfo.html5) {
|
405
|
-
$videoElement.on('ended', function () {
|
406
|
-
_this.core.goToNextSlide();
|
407
|
-
});
|
408
|
-
}
|
409
|
-
else if (videoInfo.vimeo) {
|
410
|
-
try {
|
411
|
-
// https://github.com/vimeo/player.js/#ended
|
412
|
-
new Vimeo.Player($videoElement.get()).on('ended', function () {
|
413
|
-
_this.core.goToNextSlide();
|
414
|
-
});
|
415
|
-
}
|
416
|
-
catch (e) {
|
417
|
-
console.error('lightGallery:- Make sure you have included //github.com/vimeo/player.js');
|
418
|
-
}
|
419
|
-
}
|
420
|
-
else if (videoInfo.wistia) {
|
421
|
-
try {
|
422
|
-
window._wq = window._wq || [];
|
423
|
-
// @todo Event is gettign triggered multiple times
|
424
|
-
window._wq.push({
|
425
|
-
id: $videoElement.attr('id'),
|
426
|
-
onReady: function (video) {
|
427
|
-
video.bind('end', function () {
|
428
|
-
_this.core.goToNextSlide();
|
429
|
-
});
|
430
|
-
},
|
431
|
-
});
|
432
|
-
}
|
433
|
-
catch (e) {
|
434
|
-
console.error('lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js');
|
435
|
-
}
|
436
|
-
}
|
437
|
-
}
|
438
|
-
};
|
439
|
-
Video.prototype.controlVideo = function (index, action) {
|
440
|
-
var $videoElement = this.core
|
441
|
-
.getSlideItem(index)
|
442
|
-
.find('.lg-video-object')
|
443
|
-
.first();
|
444
|
-
var videoInfo = this.core.galleryItems[index].__slideVideoInfo || {};
|
445
|
-
if (!$videoElement.get())
|
446
|
-
return;
|
447
|
-
if (videoInfo.youtube) {
|
448
|
-
try {
|
449
|
-
$videoElement.get().contentWindow.postMessage("{\"event\":\"command\",\"func\":\"" + action + "Video\",\"args\":\"\"}", '*');
|
450
|
-
}
|
451
|
-
catch (e) {
|
452
|
-
console.error("lightGallery:- " + e);
|
453
|
-
}
|
454
|
-
}
|
455
|
-
else if (videoInfo.vimeo) {
|
456
|
-
try {
|
457
|
-
new Vimeo.Player($videoElement.get())[action]();
|
458
|
-
}
|
459
|
-
catch (e) {
|
460
|
-
console.error('lightGallery:- Make sure you have included //github.com/vimeo/player.js');
|
461
|
-
}
|
462
|
-
}
|
463
|
-
else if (videoInfo.html5) {
|
464
|
-
if (this.settings.videojs) {
|
465
|
-
try {
|
466
|
-
videojs($videoElement.get())[action]();
|
467
|
-
}
|
468
|
-
catch (e) {
|
469
|
-
console.error('lightGallery:- Make sure you have included videojs');
|
470
|
-
}
|
471
|
-
}
|
472
|
-
else {
|
473
|
-
$videoElement.get()[action]();
|
474
|
-
}
|
475
|
-
}
|
476
|
-
else if (videoInfo.wistia) {
|
477
|
-
try {
|
478
|
-
window._wq = window._wq || [];
|
479
|
-
// @todo Find a way to destroy wistia player instance
|
480
|
-
window._wq.push({
|
481
|
-
id: $videoElement.attr('id'),
|
482
|
-
onReady: function (video) {
|
483
|
-
video[action]();
|
484
|
-
},
|
485
|
-
});
|
486
|
-
}
|
487
|
-
catch (e) {
|
488
|
-
console.error('lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js');
|
489
|
-
}
|
490
|
-
}
|
491
|
-
};
|
492
|
-
Video.prototype.loadVideoOnPosterClick = function ($el, forcePlay) {
|
493
|
-
var _this = this;
|
494
|
-
// check slide has poster
|
495
|
-
if (!$el.hasClass('lg-video-loaded')) {
|
496
|
-
// check already video element present
|
497
|
-
if (!$el.hasClass('lg-has-video')) {
|
498
|
-
$el.addClass('lg-has-video');
|
499
|
-
var _html = void 0;
|
500
|
-
var _src = this.core.galleryItems[this.core.index].src;
|
501
|
-
var video = this.core.galleryItems[this.core.index].video;
|
502
|
-
if (video) {
|
503
|
-
_html =
|
504
|
-
typeof video === 'string' ? JSON.parse(video) : video;
|
505
|
-
}
|
506
|
-
var videoJsPlayer_1 = this.appendVideos($el, {
|
507
|
-
src: _src,
|
508
|
-
addClass: '',
|
509
|
-
index: this.core.index,
|
510
|
-
html5Video: _html,
|
511
|
-
});
|
512
|
-
this.gotoNextSlideOnVideoEnd(_src, this.core.index);
|
513
|
-
var $tempImg = $el.find('.lg-object').first().get();
|
514
|
-
// @todo make sure it is working
|
515
|
-
$el.find('.lg-video-cont').first().append($tempImg);
|
516
|
-
$el.addClass('lg-video-loading');
|
517
|
-
videoJsPlayer_1 &&
|
518
|
-
videoJsPlayer_1.ready(function () {
|
519
|
-
videoJsPlayer_1.on('loadedmetadata', function () {
|
520
|
-
_this.onVideoLoadAfterPosterClick($el, _this.core.index);
|
521
|
-
});
|
522
|
-
});
|
523
|
-
$el.find('.lg-video-object')
|
524
|
-
.first()
|
525
|
-
.on('load.lg error.lg loadedmetadata.lg', function () {
|
526
|
-
setTimeout(function () {
|
527
|
-
_this.onVideoLoadAfterPosterClick($el, _this.core.index);
|
528
|
-
}, 50);
|
529
|
-
});
|
530
|
-
}
|
531
|
-
else {
|
532
|
-
this.playVideo(this.core.index);
|
533
|
-
}
|
534
|
-
}
|
535
|
-
else if (forcePlay) {
|
536
|
-
this.playVideo(this.core.index);
|
537
|
-
}
|
538
|
-
};
|
539
|
-
Video.prototype.onVideoLoadAfterPosterClick = function ($el, index) {
|
540
|
-
$el.addClass('lg-video-loaded');
|
541
|
-
this.playVideo(index);
|
542
|
-
};
|
543
|
-
Video.prototype.destroy = function () {
|
544
|
-
this.core.LGel.off('.lg.video');
|
545
|
-
this.core.LGel.off('.video');
|
546
|
-
};
|
547
|
-
return Video;
|
548
|
-
}());
|
549
|
-
|
550
|
-
return Video;
|
551
|
-
|
552
|
-
})));
|
553
|
-
//# sourceMappingURL=lg-video.umd.js.map
|