j1-template 2023.9.2 → 2023.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_collection.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_page.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +1 -1
- data/_includes/themes/j1/layouts/layout_module_generator.html +1 -1
- data/_includes/themes/j1/layouts/layout_resource_generator.html +1 -1
- data/_includes/themes/j1/modules/attics/generator.html +1 -1
- data/_includes/themes/j1/modules/navigator/generator.html +1 -1
- data/_includes/themes/j1/modules/searcher/generator.html +1 -1
- data/_includes/themes/j1/modules/searcher/procedures/topsearch.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/about_box.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/contacts_box.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/issue.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/legal_statements.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/links_box.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/news_box.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/footer/boxes/social_media_icons.proc +1 -1
- data/_includes/themes/j1/procedures/blocks/get_wave.proc +1 -1
- data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +1 -1
- data/_includes/themes/j1/procedures/collections/pager.proc +1 -1
- data/_includes/themes/j1/procedures/global/attributes_loader.proc +1 -1
- data/_includes/themes/j1/procedures/global/collect_frontmatter_options.proc +1 -1
- data/_includes/themes/j1/procedures/global/collect_page_options.proc +1 -1
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +1 -1
- data/_includes/themes/j1/procedures/global/create_word_cloud.proc +1 -1
- data/_includes/themes/j1/procedures/global/date-german.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_category.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_category_item.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_documents_dir.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_page_path.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_page_url.proc +1 -1
- data/_includes/themes/j1/procedures/global/select_color.proc +1 -1
- data/_includes/themes/j1/procedures/global/select_font_size.proc +1 -1
- data/_includes/themes/j1/procedures/global/select_icon_size.proc +1 -1
- data/_includes/themes/j1/procedures/global/select_location.proc +1 -1
- data/_includes/themes/j1/procedures/global/set_base_vars_folders.proc +1 -1
- data/_includes/themes/j1/procedures/global/set_env_entry_document.proc +1 -1
- data/_includes/themes/j1/procedures/global/set_image_block.proc +1 -1
- data/_includes/themes/j1/procedures/global/setup.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/content_writer.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/resource_writer.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_calendar.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_list.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +1 -1
- data/_includes/themes/j1/procedures/posts/create_ad_block.proc +1 -1
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
- data/_includes/themes/j1/procedures/posts/pager.proc +1 -1
- data/_layouts/_home.html +1 -1
- data/_layouts/autopage_category.html +1 -1
- data/_layouts/autopage_collection.html +1 -1
- data/_layouts/autopage_collections_tags.html +1 -1
- data/_layouts/autopage_tags.html +1 -1
- data/_layouts/collection.html +1 -1
- data/_layouts/compress.html +1 -1
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +1 -1
- data/_layouts/news_panel_posts.html +1 -1
- data/_layouts/page.html +1 -1
- data/_layouts/post.html +1 -1
- data/_layouts/raw.html +1 -1
- data/apps/public/cc/cc.yml +1 -1
- data/assets/data/authclient.html +2 -2
- data/assets/data/banner.html +5 -5
- data/assets/data/carousel.json +1 -1
- data/assets/data/cookieconsent.html +2 -2
- data/assets/data/fab.html +2 -2
- data/assets/data/footer.html +2 -2
- data/assets/data/galeries.html +240 -0
- data/assets/data/gallery_customizer.html +2 -2
- data/assets/data/iso-639-language-codes-flags.json +1 -1
- data/assets/data/iso-639-language-codes.json +1 -1
- data/assets/data/j1_config.json +1 -1
- data/assets/data/masonry.html +99 -86
- data/assets/data/masterslider.html +2 -2
- data/assets/data/mdi_icons.json +1 -1
- data/assets/data/mdil_icons.json +1 -1
- data/assets/data/menu.html +2 -2
- data/assets/data/mmenu.html +2 -2
- data/assets/data/mmenu_sidebar.html +2 -2
- data/assets/data/mmenu_toc.html +2 -2
- data/assets/data/panel.html +2 -2
- data/assets/data/particles.yml +1 -1
- data/assets/data/private.json +1 -1
- data/assets/data/quicklinks.html +2 -2
- data/assets/data/rtext_resizer.html +2 -2
- data/assets/data/slick.html +2 -2
- data/assets/data/speak2me.html +2 -2
- data/assets/data/themes.bootswatch.json +1 -1
- data/assets/data/themes.json +1 -1
- data/assets/data/translator.html +2 -2
- data/assets/error_pages/HTTP204.html +1 -1
- data/assets/error_pages/HTTP400.html +1 -1
- data/assets/error_pages/HTTP401.html +1 -1
- data/assets/error_pages/HTTP403.html +1 -1
- data/assets/error_pages/HTTP404.html +1 -1
- data/assets/error_pages/HTTP444.html +1 -1
- data/assets/error_pages/HTTP445.html +1 -1
- data/assets/error_pages/HTTP446.html +1 -1
- data/assets/error_pages/HTTP447.html +1 -1
- data/assets/error_pages/HTTP448.html +1 -1
- data/assets/error_pages/HTTP500.html +1 -1
- data/assets/error_pages/HTTP501.html +1 -1
- data/assets/error_pages/HTTP502.html +1 -1
- data/assets/error_pages/HTTP503.html +1 -1
- data/assets/themes/j1/adapter/js/advertising.js +2 -2
- data/assets/themes/j1/adapter/js/algolia.js +2 -2
- data/assets/themes/j1/adapter/js/analytics.js +2 -2
- data/assets/themes/j1/adapter/js/asciidoctor.js +2 -2
- data/assets/themes/j1/adapter/js/attic.js +2 -2
- data/assets/themes/j1/adapter/js/bmd.js +2 -2
- data/assets/themes/j1/adapter/js/carousel.js +2 -2
- data/assets/themes/j1/adapter/js/clipboard.js +2 -2
- data/assets/themes/j1/adapter/js/comments.js +2 -2
- data/assets/themes/j1/adapter/js/cookieConsent.js +1 -1
- data/assets/themes/j1/adapter/js/customFunctions.js +2 -2
- data/assets/themes/j1/adapter/js/customModule.js +2 -2
- data/assets/themes/j1/adapter/js/dropdowns.js +2 -2
- data/assets/themes/j1/adapter/js/fab.js +2 -2
- data/assets/themes/j1/adapter/js/framer.js +2 -2
- data/assets/themes/j1/adapter/js/gallery.js +325 -0
- data/assets/themes/j1/adapter/js/iconPicker.js +2 -2
- data/assets/themes/j1/adapter/js/j1.js +2 -2
- data/assets/themes/j1/adapter/js/lazyLoader.js +2 -2
- data/assets/themes/j1/adapter/js/{justifiedGallery.js → lightGallery.js} +54 -48
- data/assets/themes/j1/adapter/js/lightbox.js +2 -2
- data/assets/themes/j1/adapter/js/logger.js +2 -2
- data/assets/themes/j1/adapter/js/lunr.js +2 -2
- data/assets/themes/j1/adapter/js/masonry.js +80 -13
- data/assets/themes/j1/adapter/js/masterslider.js +2 -2
- data/assets/themes/j1/adapter/js/mmenu.js +2 -2
- data/assets/themes/j1/adapter/js/navigator.js +2 -2
- data/assets/themes/j1/adapter/js/particles.js +2 -2
- data/assets/themes/j1/adapter/js/rangeSlider.js +2 -2
- data/assets/themes/j1/adapter/js/rouge.js +2 -2
- data/assets/themes/j1/adapter/js/rtable.js +2 -2
- data/assets/themes/j1/adapter/js/rtextResizer.js +2 -2
- data/assets/themes/j1/adapter/js/scroller.js +2 -2
- data/assets/themes/j1/adapter/js/slick.js +1 -1
- data/assets/themes/j1/adapter/js/speak2me.js +2 -2
- data/assets/themes/j1/adapter/js/themeToggler.js +2 -2
- data/assets/themes/j1/adapter/js/themer.js +2 -2
- data/assets/themes/j1/adapter/js/toccer.js +2 -2
- data/assets/themes/j1/adapter/js/translator.js +1 -1
- data/assets/themes/j1/adapter/js/waves.js +2 -2
- data/assets/themes/j1/core/country-flags/css/theme/uno.css +1 -1
- data/assets/themes/j1/core/country-flags/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/core/css/animate.css +2 -2
- data/assets/themes/j1/core/css/icon-fonts/fontawesome.css +2 -2
- data/assets/themes/j1/core/css/icon-fonts/iconify.css +5 -5
- data/assets/themes/j1/core/css/icon-fonts/mdi.css +9 -9
- data/assets/themes/j1/core/css/icon-fonts/mdib.css +7 -7
- data/assets/themes/j1/core/css/icon-fonts/mdil.css +10 -10
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +1 -1
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +30 -30
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +107 -100
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +10 -10
- data/assets/themes/j1/core/js/template.js +159 -19
- data/assets/themes/j1/core/js/template.min.js +6 -6
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/backstretch/js/backstretch.js +1 -1
- data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
- data/assets/themes/j1/modules/bmd/js/bmd.js +1 -1
- data/assets/themes/j1/modules/bmd/js/bmd.min.js +1 -1
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.js +2118 -2696
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.js.map +1 -0
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js +3 -3
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js.map +1 -1
- data/assets/themes/j1/modules/carousel/css/carousel.css +1 -1
- data/assets/themes/j1/modules/carousel/css/carousel.min.css +1 -1
- data/assets/themes/j1/modules/carousel/css/carousel_transitions.css +1 -1
- data/assets/themes/j1/modules/carousel/css/carousel_transitions.min.css +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/clipboard/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/clipboard/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.css +1 -1
- data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.min.css +1 -1
- data/assets/themes/j1/modules/dropdowns/js/cash.js +1 -1
- data/assets/themes/j1/modules/dropdowns/js/cash.min.js +1 -1
- data/assets/themes/j1/modules/dropdowns/js/dropdowns.js +1 -1
- data/assets/themes/j1/modules/dropdowns/js/dropdowns.min.js +1 -1
- data/assets/themes/j1/modules/fab/js/cash.js +1 -1
- data/assets/themes/j1/modules/fab/js/cash.min.js +1 -1
- data/assets/themes/j1/modules/fab/js/fab.js +1 -1
- data/assets/themes/j1/modules/fab/js/fab.min.js +1 -1
- data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.css +1 -1
- data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.min.css +1 -1
- data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.js +1 -1
- data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.min.js +1 -1
- data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.min.js +0 -1
- data/assets/themes/j1/modules/iframeResizer/js/resizer.min.js +0 -1
- data/assets/themes/j1/modules/jquery/js/extensions/hasClass.js +1 -1
- data/assets/themes/j1/modules/jquery/js/extensions/hasClass.min.js +1 -1
- data/assets/themes/j1/modules/jquery/js/extensions/removeClass.js +1 -1
- data/assets/themes/j1/modules/jquery/js/extensions/removeClass.min.js +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/lightGallery/css/lg-transitions.css +984 -0
- data/assets/themes/j1/modules/lightGallery/css/lg-transitions.min.css +26 -0
- data/assets/themes/j1/modules/lightGallery/css/lightgallery-bundle.css +1627 -0
- data/assets/themes/j1/modules/lightGallery/css/lightgallery-bundle.min.css +25 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-autoplay.css +67 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-comments.css +157 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-fullscreen.css +32 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-medium-zoom.css +40 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-pager.css +115 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-rotate.css +74 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-share.css +168 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-thumbnail.css +133 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-video.css +169 -0
- data/assets/themes/j1/modules/lightGallery/css/plugins/lg-zoom.css +141 -0
- data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.css +109 -0
- data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.min.css +19 -0
- data/assets/themes/j1/modules/lightGallery/{css/fonts → fonts}/lg.svg +35 -28
- data/assets/themes/j1/modules/lightGallery/fonts/lg.ttf +0 -0
- data/assets/themes/j1/modules/lightGallery/fonts/lg.woff +0 -0
- data/assets/themes/j1/modules/lightGallery/fonts/lg.woff2 +0 -0
- data/assets/themes/j1/modules/lightGallery/img/loading.gif +0 -0
- data/assets/themes/j1/modules/lightGallery/js/lightgallery.js +2759 -0
- data/assets/themes/j1/modules/lightGallery/js/lightgallery.min.js +25 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-autoplay.js +275 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +26 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-comment.js +230 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-comment.min.js +26 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +160 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +26 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-hash.js +223 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-hash.min.js +27 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +157 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +26 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-pager.js +164 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-pager.min.js +26 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-rotate.js +299 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +26 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-share.js +244 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-share.min.js +27 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +509 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +26 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.js +585 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.min.js +27 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +207 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +26 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.js +999 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +26 -0
- data/assets/themes/j1/modules/lightbox/css/lightbox.css +1 -1
- data/assets/themes/j1/modules/lightbox/css/lightbox.min.css +1 -1
- data/assets/themes/j1/modules/lightbox/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/lightbox/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/lightbox/js/lightbox.js +1 -1
- data/assets/themes/j1/modules/lightbox/js/lightbox.min.js +1 -1
- data/assets/themes/j1/modules/lunr/js/j1.js +1 -1
- data/assets/themes/j1/modules/lunr/js/j1.min.js +1 -1
- data/assets/themes/j1/modules/masonry/js/utils/images_loaded.js +439 -0
- data/assets/themes/j1/modules/masonry/js/utils/images_loaded.min.js +12 -0
- data/assets/themes/j1/modules/masterslider/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/masterslider/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +1 -1
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +1 -1
- data/assets/themes/j1/modules/mmenuLight/js/mmenu.js +1 -1
- data/assets/themes/j1/modules/mmenuLight/js/mmenu.min.js +1 -1
- data/assets/themes/j1/modules/mmenuLight/js/mmenu.polyfills.js +118 -0
- data/assets/themes/j1/modules/particles/skies/cavern1.png +0 -0
- data/assets/themes/j1/modules/particles/skies/cavern2.png +0 -0
- data/assets/themes/j1/modules/particles/skies/chrome.png +0 -0
- data/assets/themes/j1/modules/particles/skies/deep-space.jpg +0 -0
- data/assets/themes/j1/modules/particles/skies/deepblue.png +0 -0
- data/assets/themes/j1/modules/particles/skies/fire.png +0 -0
- data/assets/themes/j1/modules/particles/skies/fog.png +0 -0
- data/assets/themes/j1/modules/particles/skies/sky1.png +0 -0
- data/assets/themes/j1/modules/particles/skies/sky2.png +0 -0
- data/assets/themes/j1/modules/particles/skies/sky3.png +0 -0
- data/assets/themes/j1/modules/particles/skies/sky4.png +0 -0
- data/assets/themes/j1/modules/particles/skies/sky5.png +0 -0
- data/assets/themes/j1/modules/particles/skies/space1.png +0 -0
- data/assets/themes/j1/modules/particles/skies/space2.png +0 -0
- data/assets/themes/j1/modules/particles/skies/space3.png +0 -0
- data/assets/themes/j1/modules/particles/skies/starfield.png +0 -0
- data/assets/themes/j1/modules/particles/skies/sunorbit.png +0 -0
- data/assets/themes/j1/modules/particles/skies/sunset.png +0 -0
- data/assets/themes/j1/modules/particles/skies/toxic.png +0 -0
- data/assets/themes/j1/modules/particles/skies/underwater1.png +0 -0
- data/assets/themes/j1/modules/particles/skies/underwater2.png +0 -0
- data/assets/themes/j1/modules/particles/skies/underwater3.png +0 -0
- data/assets/themes/j1/modules/particles/skies/wtf.png +0 -0
- data/assets/themes/j1/modules/particles/sprites/slime.png +0 -0
- data/assets/themes/j1/modules/particles/sprites/slimeeyes.png +0 -0
- data/assets/themes/j1/modules/particles/sprites/snake.png +0 -0
- data/assets/themes/j1/modules/particles/sprites/snowflakes.png +0 -0
- data/assets/themes/j1/modules/particles/sprites/snowflakes_large.png +0 -0
- data/assets/themes/j1/modules/popper/js/popper.min.js +0 -1
- data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.css +1 -1
- data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.dark/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.dark/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.light/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.light/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/colorful/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/colorful/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/github/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/github/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/gruvbox/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/gruvbox/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/igorpro/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/igorpro/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/molokai/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/molokai/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/monokai/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/monokai/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/pastie/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/pastie/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/themes.txt +1 -1
- data/assets/themes/j1/modules/rouge/css/tulip/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/tulip/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/uno.dark/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/uno.dark/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/css/uno.light/theme.css +1 -1
- data/assets/themes/j1/modules/rouge/css/uno.light/theme.min.css +1 -1
- data/assets/themes/j1/modules/rouge/js/select.js +1 -1
- data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +1 -1
- data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +1 -1
- data/assets/themes/j1/modules/rtable/js/rtable.js +1 -1
- data/assets/themes/j1/modules/rtable/js/rtable.min.js +1 -1
- data/assets/themes/j1/modules/scroller/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/scroller/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
- data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js +0 -1
- data/assets/themes/j1/modules/slick/slider/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/slick/slider/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/spinner/css/spin.css +1 -1
- data/assets/themes/j1/modules/spinner/css/spin.min.css +1 -1
- data/assets/themes/j1/modules/spinner/js/spin.js +1 -1
- data/assets/themes/j1/modules/spinner/js/spin.min.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
- data/assets/themes/j1/modules/translator/css/translator.css +1 -1
- data/assets/themes/j1/modules/translator/css/translator.min.css +1 -1
- data/assets/themes/j1/modules/videojs/css/themes/city.css +74 -74
- data/assets/themes/j1/modules/videojs/css/themes/city.min.css +3 -4
- data/assets/themes/j1/modules/videojs/css/themes/fantasy.css +3 -3
- data/assets/themes/j1/modules/videojs/css/themes/fantasy.min.css +3 -4
- data/assets/themes/j1/modules/videojs/css/themes/forest.css +4 -3
- data/assets/themes/j1/modules/videojs/css/themes/forest.min.css +3 -4
- data/assets/themes/j1/modules/videojs/css/themes/sea.css +2 -2
- data/assets/themes/j1/modules/videojs/css/themes/sea.min.css +3 -4
- data/assets/themes/j1/modules/videojs/css/themes/uno.css +151 -0
- data/assets/themes/j1/modules/videojs/css/themes/uno.min.css +17 -0
- data/assets/themes/j1/modules/videojs/css/video-js.css +12 -0
- data/assets/themes/j1/modules/videojs/css/video-js.min.css +12 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/LICENSE +19 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/README.md +94 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/api/README.md +7 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/api/dailymotion.min.js +29 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/api/dailymotion.player.min.js +80 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/dailymotion.js +603 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/dailymotion.min.js +16 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-controls.html +18 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-javascript.html +27 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-playlist.html +19 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/global-parameters.html +28 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/simple.html +20 -0
- data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/switch.html +37 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/LICENSE +21 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/README.md +15 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/api/README.md +1818 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/api/player.min.js +23 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/api/vimeo.js +3562 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/api/vimeo.min.js +35 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/index.html +33 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/player/index.html +37 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/vimeo.js +521 -0
- data/assets/themes/j1/modules/videojs/js/plugins/vm/vimeo.min.js +15 -0
- data/assets/themes/j1/modules/videojs/js/plugins/wt/api/Readme.txt +20 -0
- data/assets/themes/j1/modules/videojs/js/plugins/wt/api/WistiaPlayer.ts +1617 -0
- data/assets/themes/j1/modules/videojs/js/plugins/wt/api/wistia.min.js +2 -0
- data/assets/themes/j1/modules/videojs/js/plugins/wt/wistia.js +383 -0
- data/assets/themes/j1/modules/videojs/js/plugins/wt/wistia.min.js +18 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/README.md +115 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/api/youtube.min.js +20 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/global-parameters.html +32 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/simple.html +20 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/switch.html +37 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-controls.html +18 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-javascript.html +27 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-list.html +19 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-playlist.html +19 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/youtube.js +832 -0
- data/assets/themes/j1/modules/videojs/js/plugins/yt/youtube.min.js +16 -0
- data/assets/themes/j1/modules/videojs/js/video.js +40610 -32915
- data/assets/themes/j1/modules/videojs/js/video.min.js +33 -20
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +1 -1
- data/lib/j1_app/j1_auth_manager/warden_omniauth.rb +1 -1
- data/lib/j1_app/omniauth/strategies/github.rb +1 -1
- data/lib/starter_web/Gemfile +3 -3
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +2 -2
- data/lib/starter_web/_data/_defaults/categories.yml +1 -1
- data/lib/starter_web/_data/_defaults/colors.yml +1 -1
- data/lib/starter_web/_data/_defaults/font_sizes.yml +1 -1
- data/lib/starter_web/_data/_defaults/j1_config.yml +1 -1
- data/lib/starter_web/_data/_defaults/private.yml +1 -1
- data/lib/starter_web/_data/_defaults/resources.yml +1 -1
- data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +1 -1
- data/lib/starter_web/_data/apps/justifiedGalleryCustomizer.yml +1 -1
- data/lib/starter_web/_data/asciidoc2pdf/themes/j1-theme.yml +1 -1
- data/lib/starter_web/_data/blocks/banner.yml +1 -1
- data/lib/starter_web/_data/blocks/defaults/banner.yml +1 -1
- data/lib/starter_web/_data/blocks/defaults/footer.yml +1 -1
- data/lib/starter_web/_data/blocks/defaults/panel.yml +1 -1
- data/lib/starter_web/_data/blocks/footer.yml +2 -2
- data/lib/starter_web/_data/blocks/panel.yml +1 -1
- data/lib/starter_web/_data/categories.yml +1 -1
- data/lib/starter_web/_data/colors.yml +1 -1
- data/lib/starter_web/_data/font_sizes.yml +1 -1
- data/lib/starter_web/_data/j1_config.yml +1 -1
- data/lib/starter_web/_data/layouts/collection.yml +1 -1
- data/lib/starter_web/_data/layouts/default.yml +1 -1
- data/lib/starter_web/_data/layouts/home.yml +1 -1
- data/lib/starter_web/_data/layouts/news_panel_posts.yml +1 -1
- data/lib/starter_web/_data/layouts/page.yml +1 -1
- data/lib/starter_web/_data/layouts/post.yml +1 -1
- data/lib/starter_web/_data/layouts/raw.yml +1 -1
- data/lib/starter_web/_data/modules/advertising.yml +2 -2
- data/lib/starter_web/_data/modules/analytics.yml +1 -1
- data/lib/starter_web/_data/modules/attics.yml +1 -1
- data/lib/starter_web/_data/modules/authentication.yml +1 -1
- data/lib/starter_web/_data/modules/blog_navigator.yml +1 -1
- data/lib/starter_web/_data/modules/carousel.yml +1 -1
- data/lib/starter_web/_data/modules/comments.yml +1 -1
- data/lib/starter_web/_data/modules/cookieconsent.yml +1 -1
- data/lib/starter_web/_data/modules/cookies.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/advertising.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/analytics.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/carousel.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/comments.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/cookies.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/dropdowns.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/fab.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/framer.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/{justifiedGallery.yml → gallery.yml} +18 -28
- data/lib/starter_web/_data/modules/defaults/iconPicker.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/lightGallery.yml +8 -6
- data/lib/starter_web/_data/modules/defaults/lightbox.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/log4r.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/lunr.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/masonry.yml +53 -13
- data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/particles.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/rangeSlider.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/rtable.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/scroller.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/speak2me.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/theme_toggler.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/themer.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/translator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/waves.yml +1 -1
- data/lib/starter_web/_data/modules/dropdowns.yml +1 -1
- data/lib/starter_web/_data/modules/fab.yml +1 -1
- data/lib/starter_web/_data/modules/framer.yml +1 -1
- data/lib/starter_web/_data/modules/gallery.yml +874 -0
- data/lib/starter_web/_data/modules/iconPicker.yml +1 -1
- data/lib/starter_web/_data/modules/lazyLoader.yml +1 -1
- data/lib/starter_web/_data/modules/lightGallery.yml +8 -5
- data/lib/starter_web/_data/modules/lightbox.yml +1 -1
- data/lib/starter_web/_data/modules/log4javascript.yml +1 -1
- data/lib/starter_web/_data/modules/log4r.yml +1 -1
- data/lib/starter_web/_data/modules/lunr.yml +1 -1
- data/lib/starter_web/_data/modules/masonry.yml +401 -87
- data/lib/starter_web/_data/modules/masterslider.yml +1 -1
- data/lib/starter_web/_data/modules/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/navigator_menu.yml +18 -4
- data/lib/starter_web/_data/modules/nbinteract.yml +1 -1
- data/lib/starter_web/_data/modules/particles.yml +1 -1
- data/lib/starter_web/_data/modules/rangeSlider.yml +1 -1
- data/lib/starter_web/_data/modules/rtable.yml +1 -1
- data/lib/starter_web/_data/modules/scroller.yml +1 -1
- data/lib/starter_web/_data/modules/slick.yml +1 -1
- data/lib/starter_web/_data/modules/speak2me.yml +1 -1
- data/lib/starter_web/_data/modules/theme_toggler.yml +1 -1
- data/lib/starter_web/_data/modules/themer.yml +1 -1
- data/lib/starter_web/_data/modules/toccer.yml +1 -1
- data/lib/starter_web/_data/modules/translator.yml +1 -1
- data/lib/starter_web/_data/modules/waves.yml +1 -1
- data/lib/starter_web/_data/plugins/defaults/feed.yml +1 -1
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +1 -1
- data/lib/starter_web/_data/plugins/defaults/seo-tags.yml +1 -1
- data/lib/starter_web/_data/plugins/defaults/sitemap.yml +1 -1
- data/lib/starter_web/_data/plugins/feed.yml +1 -1
- data/lib/starter_web/_data/plugins/paginator.yml +1 -1
- data/lib/starter_web/_data/plugins/seo-tags.yml +1 -1
- data/lib/starter_web/_data/plugins/sitemap.yml +1 -1
- data/lib/starter_web/_data/private.yml +1 -1
- data/lib/starter_web/_data/resources.yml +190 -118
- data/lib/starter_web/_data/templates/feed.xml +2 -2
- data/lib/starter_web/_data/templates/robots.txt +1 -1
- data/lib/starter_web/_data/templates/seo-tags.html +1 -1
- data/lib/starter_web/_data/templates/sitemap.xml +1 -1
- data/lib/starter_web/_data/utilities/defaults/util_srv.yml +1 -1
- data/lib/starter_web/_data/utilities/util_srv.yml +1 -1
- data/lib/starter_web/_includes/custom/static/bs5_accordion.html +1 -1
- data/lib/starter_web/_includes/custom/templates/bs5_accordion.html +1 -1
- data/lib/starter_web/_includes/custom/templates/collection_panel.html +1 -1
- data/lib/starter_web/_includes/custom/templates/custom_header.html +1 -1
- data/lib/starter_web/_includes/custom/templates/people_panel.html +1 -1
- data/lib/starter_web/_includes/google/static/google_ad__your-slot-id.html +1 -1
- data/lib/starter_web/_includes/google/templates/google_ads.html +1 -1
- data/lib/starter_web/_plugins/asciidoctor/admonition-block-answer.rb +3 -2
- data/lib/starter_web/_plugins/asciidoctor/admonition-block-question.rb +7 -6
- data/lib/starter_web/_plugins/asciidoctor/banner.rb +8 -5
- data/lib/starter_web/_plugins/asciidoctor/callout.rb +10 -8
- data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +14 -8
- data/lib/starter_web/_plugins/asciidoctor/conum.rb +3 -1
- data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +83 -0
- data/lib/starter_web/_plugins/asciidoctor/fab-icon-inline.rb +8 -5
- data/lib/starter_web/_plugins/asciidoctor/fas-icon-inline.rb +8 -5
- data/lib/starter_web/_plugins/asciidoctor/flag-icon-inline.rb +8 -5
- data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +50 -44
- data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +56 -52
- data/lib/starter_web/_plugins/asciidoctor/google-ad-block.rb +52 -47
- data/lib/starter_web/_plugins/asciidoctor/iconify-icon-inline.rb +8 -5
- data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +88 -82
- data/lib/starter_web/_plugins/asciidoctor/lorem_inline.rb +5 -4
- data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +13 -7
- data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +54 -48
- data/lib/starter_web/_plugins/asciidoctor/mdi-icon-inline.rb +2 -1
- data/lib/starter_web/_plugins/asciidoctor/mdib-icon-inline.rb +2 -1
- data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +2 -1
- data/lib/starter_web/_plugins/asciidoctor/panel.rb +9 -5
- data/lib/starter_web/_plugins/asciidoctor/placeholder-inline.rb +4 -3
- data/lib/starter_web/_plugins/asciidoctor/range-slider-block.rb +49 -44
- data/lib/starter_web/_plugins/asciidoctor/shout-block.rb +6 -7
- data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +12 -6
- data/lib/starter_web/_plugins/asciidoctor/textbook-block.rb +9 -5
- data/lib/starter_web/_plugins/asciidoctor/twitter-emoji-inline.rb +4 -1
- data/lib/starter_web/_plugins/asciidoctor/video-block.rb +65 -0
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +82 -0
- data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +82 -0
- data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +87 -0
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +95 -0
- data/lib/starter_web/_plugins/filter/debug.rb +1 -1
- data/lib/starter_web/_plugins/filter/encodeBase64.rb +1 -1
- data/lib/starter_web/_plugins/filter/encryptAES.rb +1 -1
- data/lib/starter_web/_plugins/filter/filters.rb +1 -1
- data/lib/starter_web/_plugins/filter/liquify.rb +1 -1
- data/lib/starter_web/_plugins/filter/minifyJS.rb +1 -1
- data/lib/starter_web/_plugins/filter/minifyJSON.rb +1 -1
- data/lib/starter_web/_plugins/filter/prettify.rb +1 -1
- data/lib/starter_web/_plugins/filter/xml_prettify.rb +1 -1
- data/lib/starter_web/_plugins/helper/symlink_watcher.rb +1 -1
- data/lib/starter_web/_plugins/i18n/date.rb +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +2 -2
- data/lib/starter_web/_plugins/seo/j1-feed.rb +1 -1
- data/lib/starter_web/_plugins/seo/j1-seo-tags.rb +1 -1
- data/lib/starter_web/_plugins/seo/j1-sitemap.rb +1 -1
- data/lib/starter_web/assets/images/icons/videojs/videojs-logo.png +0 -0
- data/lib/starter_web/assets/images/icons/videojs/videojs-poster.png +0 -0
- data/lib/starter_web/assets/videos/gallery/_video_james_carpool_caraoke_poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video1-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video1.subtitles.vtt +39 -0
- data/lib/starter_web/assets/videos/gallery/html5/video2-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/303/237video2-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video1-poster.1920..jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.1920.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_gaga-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_james_carpool_caraoke_poster.jpg +0 -0
- data/lib/starter_web/config.ru +1 -1
- data/lib/starter_web/dot.gitattributes +1 -1
- data/lib/starter_web/dot.nojekyll +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +5 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +3 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +1 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +11 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +27 -11
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +3 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +12 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +14 -7
- data/lib/starter_web/pages/public/features/general.adoc +12 -1
- data/lib/starter_web/pages/public/features/template.adoc +37 -38
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +4 -3
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +2 -3
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +2 -2
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +2 -2
- data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +6 -5
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -0
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_rouge.asciidoc +4 -0
- data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +6 -5
- data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +2 -0
- data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +7 -2
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +7 -2
- data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +12 -3
- data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +4 -2
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +49 -40
- data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +264 -64
- data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +5 -2
- data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +1 -0
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -39
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +2 -2
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +3 -2
- data/lib/starter_web/pages/public/plans/plans.adoc +14 -5
- data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +69 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/readme +0 -0
- data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- data/lib/starter_web/utilsrv/server.js +1 -1
- metadata +170 -94
- data/assets/data/galleries.json +0 -156
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +0 -360
- data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.js +0 -1694
- data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.min.js +0 -19
- data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.map +0 -1
- data/assets/themes/j1/modules/iframeResizer/js/resizer.map +0 -1
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.css +0 -110
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -110
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/theme/uno.css +0 -23
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -1229
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.js +0 -1229
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -8
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/less/.csslintrc +0 -20
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/less/justifiedGallery.less +0 -113
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.css +0 -110
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.min.css +0 -110
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/justifiedGallery.js +0 -1245
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/justifiedGallery.min.js +0 -7
- data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.css +0 -110
- data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.min.css +0 -110
- data/assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.css +0 -58
- data/assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.min.css +0 -5
- data/assets/themes/j1/modules/lightGallery/css/core/lg-transitions.css +0 -778
- data/assets/themes/j1/modules/lightGallery/css/core/lg-transitions.min.css +0 -5
- data/assets/themes/j1/modules/lightGallery/css/core/lightgallery.css +0 -981
- data/assets/themes/j1/modules/lightGallery/css/core/lightgallery.min.css +0 -5
- data/assets/themes/j1/modules/lightGallery/css/fonts/lg.eot +0 -0
- data/assets/themes/j1/modules/lightGallery/css/fonts/lg.ttf +0 -0
- data/assets/themes/j1/modules/lightGallery/css/fonts/lg.woff +0 -0
- data/assets/themes/j1/modules/lightGallery/css/themes/uno.css +0 -262
- data/assets/themes/j1/modules/lightGallery/css/themes/uno.min.css +0 -15
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery.js +0 -1375
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery.min.js +0 -5
- data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.js +0 -1362
- data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.min.js +0 -4
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-autoplay.js +0 -206
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-autoplay.min.js +0 -5
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.js +0 -126
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js +0 -5
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-hash.js +0 -101
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js +0 -5
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-pager.js +0 -105
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js +0 -5
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-share.js +0 -107
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-share.min.js +0 -5
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.js +0 -486
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +0 -7
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-zoom.js +0 -527
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-zoom.min.js +0 -5
- data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js.map +0 -1
- data/assets/themes/j1/modules/popper/js/popper.min.js.map +0 -1
- data/assets/themes/j1/modules/rangeSlider/js/15.5.1/nouislider.js +0 -2337
- data/assets/themes/j1/modules/rangeSlider/js/15.5.1/nouislider.min.js +0 -1
- data/assets/themes/j1/modules/rangeSlider/js/9.1.0/nouislider.js +0 -2534
- data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js.map +0 -1
- data/assets/themes/j1/modules/themeSwitcher/js/_unsued/switcher.1.js +0 -454
- data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.js +0 -4
- data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.min.js +0 -4
- data/assets/themes/j1/modules/vimeo/player/js/player.js +0 -2138
- data/assets/themes/j1/modules/vimeo/player/js/player.js.map +0 -1
- data/assets/themes/j1/modules/vimeo/player/js/player.min.js +0 -2
- data/assets/themes/j1/modules/vimeo/player/js/player.min.js.map +0 -1
- data/lib/starter_web/_data/modules/justifiedGallery.yml +0 -556
- data/lib/starter_web/assets/videos/gallery/vk/hai.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/vk/otter.jpg +0 -0
- /data/assets/themes/j1/modules/backstretch/{LICENSE-MIT → LICENSE} +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/animation-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/customize-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/dynamic-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/facebook-icon.svg +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/googleplus-icon.svg +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/html5-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/linked-in.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/module-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/play-button.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/responsive-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/thumb-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/touch-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/twitter-icon.svg +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/twitter.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/video1-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/zoom-w.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/zoom.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/{css/img → images}/loading.gif +0 -0
- /data/assets/themes/j1/modules/lightGallery/{css/img → img}/video-play.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/{css/img → img}/vimeo-play.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/{css/img → img}/youtube-play.png +0 -0
- /data/assets/themes/j1/modules/lightGallery/js/{modules → plugins}/j1/j1-video.js +0 -0
- /data/assets/themes/j1/modules/lightGallery/js/{modules → plugins}/j1/j1-video.min.js +0 -0
@@ -0,0 +1,585 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.js
|
4
|
+
# Provides lightGallery JS code for the plugin lgVideo
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# https://jekyll.one
|
8
|
+
#
|
9
|
+
# Copyright (C) 2023 Sachin Neravath
|
10
|
+
# Copyright (C) 2023 Juergen Adams
|
11
|
+
#
|
12
|
+
# J1 Template is licensed under the MIT License.
|
13
|
+
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
|
14
|
+
# lightGallery is licensed under the GPLv3 license
|
15
|
+
# See: https://github.com/sachinchoolur/lightGallery/blob/master/LICENSE
|
16
|
+
# -----------------------------------------------------------------------------
|
17
|
+
*/
|
18
|
+
|
19
|
+
/*!
|
20
|
+
* lightgallery | 2.7.2 | September 20th 2023
|
21
|
+
* http://www.lightgalleryjs.com/
|
22
|
+
* Copyright (c) 2020 Sachin Neravath;
|
23
|
+
* @license GPLv3
|
24
|
+
*/
|
25
|
+
|
26
|
+
(function (global, factory) {
|
27
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
28
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
29
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.lgVideo = factory());
|
30
|
+
}(this, (function () { 'use strict';
|
31
|
+
|
32
|
+
/*! *****************************************************************************
|
33
|
+
Copyright (c) Microsoft Corporation.
|
34
|
+
|
35
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
36
|
+
purpose with or without fee is hereby granted.
|
37
|
+
|
38
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
39
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
40
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
41
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
42
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
43
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
44
|
+
PERFORMANCE OF THIS SOFTWARE.
|
45
|
+
***************************************************************************** */
|
46
|
+
|
47
|
+
var __assign = function() {
|
48
|
+
__assign = Object.assign || function __assign(t) {
|
49
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
50
|
+
s = arguments[i];
|
51
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
52
|
+
}
|
53
|
+
return t;
|
54
|
+
};
|
55
|
+
return __assign.apply(this, arguments);
|
56
|
+
};
|
57
|
+
|
58
|
+
var videoSettings = {
|
59
|
+
autoplayFirstVideo: true,
|
60
|
+
youTubePlayerParams: false,
|
61
|
+
vimeoPlayerParams: false,
|
62
|
+
wistiaPlayerParams: false,
|
63
|
+
dailymotionPlayerParams: false,
|
64
|
+
vkPlayerParams: false,
|
65
|
+
gotoNextSlideOnVideoEnd: true,
|
66
|
+
autoplayVideoOnSlide: false,
|
67
|
+
videojs: false,
|
68
|
+
videojsTheme: '',
|
69
|
+
videojsOptions: {},
|
70
|
+
};
|
71
|
+
|
72
|
+
/**
|
73
|
+
* List of lightGallery events
|
74
|
+
* All events should be documented here
|
75
|
+
* Below interfaces are used to build the website documentations
|
76
|
+
* */
|
77
|
+
var lGEvents = {
|
78
|
+
afterAppendSlide: 'lgAfterAppendSlide',
|
79
|
+
init: 'lgInit',
|
80
|
+
hasVideo: 'lgHasVideo',
|
81
|
+
containerResize: 'lgContainerResize',
|
82
|
+
updateSlides: 'lgUpdateSlides',
|
83
|
+
afterAppendSubHtml: 'lgAfterAppendSubHtml',
|
84
|
+
beforeOpen: 'lgBeforeOpen',
|
85
|
+
afterOpen: 'lgAfterOpen',
|
86
|
+
slideItemLoad: 'lgSlideItemLoad',
|
87
|
+
beforeSlide: 'lgBeforeSlide',
|
88
|
+
afterSlide: 'lgAfterSlide',
|
89
|
+
posterClick: 'lgPosterClick',
|
90
|
+
dragStart: 'lgDragStart',
|
91
|
+
dragMove: 'lgDragMove',
|
92
|
+
dragEnd: 'lgDragEnd',
|
93
|
+
beforeNextSlide: 'lgBeforeNextSlide',
|
94
|
+
beforePrevSlide: 'lgBeforePrevSlide',
|
95
|
+
beforeClose: 'lgBeforeClose',
|
96
|
+
afterClose: 'lgAfterClose',
|
97
|
+
rotateLeft: 'lgRotateLeft',
|
98
|
+
rotateRight: 'lgRotateRight',
|
99
|
+
flipHorizontal: 'lgFlipHorizontal',
|
100
|
+
flipVertical: 'lgFlipVertical',
|
101
|
+
autoplay: 'lgAutoplay',
|
102
|
+
autoplayStart: 'lgAutoplayStart',
|
103
|
+
autoplayStop: 'lgAutoplayStop',
|
104
|
+
};
|
105
|
+
|
106
|
+
var param = function (obj) {
|
107
|
+
return Object.keys(obj)
|
108
|
+
.map(function (k) {
|
109
|
+
return encodeURIComponent(k) + '=' + encodeURIComponent(obj[k]);
|
110
|
+
})
|
111
|
+
.join('&');
|
112
|
+
};
|
113
|
+
var paramsToObject = function (url) {
|
114
|
+
var paramas = url
|
115
|
+
.slice(1)
|
116
|
+
.split('&')
|
117
|
+
.map(function (p) { return p.split('='); })
|
118
|
+
.reduce(function (obj, pair) {
|
119
|
+
var _a = pair.map(decodeURIComponent), key = _a[0], value = _a[1];
|
120
|
+
obj[key] = value;
|
121
|
+
return obj;
|
122
|
+
}, {});
|
123
|
+
return paramas;
|
124
|
+
};
|
125
|
+
var getYouTubeParams = function (videoInfo, youTubePlayerParamsSettings) {
|
126
|
+
if (!videoInfo.youtube)
|
127
|
+
return '';
|
128
|
+
var slideUrlParams = videoInfo.youtube[2]
|
129
|
+
? paramsToObject(videoInfo.youtube[2])
|
130
|
+
: '';
|
131
|
+
// For youtube first params gets priority if duplicates found
|
132
|
+
var defaultYouTubePlayerParams = {
|
133
|
+
wmode: 'opaque',
|
134
|
+
autoplay: 0,
|
135
|
+
mute: 1,
|
136
|
+
enablejsapi: 1,
|
137
|
+
};
|
138
|
+
var playerParamsSettings = youTubePlayerParamsSettings || {};
|
139
|
+
var youTubePlayerParams = __assign(__assign(__assign({}, defaultYouTubePlayerParams), playerParamsSettings), slideUrlParams);
|
140
|
+
var youTubeParams = "?" + param(youTubePlayerParams);
|
141
|
+
return youTubeParams;
|
142
|
+
};
|
143
|
+
var isYouTubeNoCookie = function (url) {
|
144
|
+
return url.includes('youtube-nocookie.com');
|
145
|
+
};
|
146
|
+
var getVimeoURLParams = function (defaultParams, videoInfo) {
|
147
|
+
if (!videoInfo || !videoInfo.vimeo)
|
148
|
+
return '';
|
149
|
+
var urlParams = videoInfo.vimeo[2] || '';
|
150
|
+
var defaultPlayerParams = defaultParams && Object.keys(defaultParams).length !== 0
|
151
|
+
? '&' + param(defaultParams)
|
152
|
+
: '';
|
153
|
+
// Support private video
|
154
|
+
var urlWithHash = videoInfo.vimeo[0].split('/').pop() || '';
|
155
|
+
var urlWithHashWithParams = urlWithHash.split('?')[0] || '';
|
156
|
+
var hash = urlWithHashWithParams.split('#')[0];
|
157
|
+
var isPrivate = videoInfo.vimeo[1] !== hash;
|
158
|
+
if (isPrivate) {
|
159
|
+
urlParams = urlParams.replace("/" + hash, '');
|
160
|
+
}
|
161
|
+
urlParams =
|
162
|
+
urlParams[0] == '?' ? '&' + urlParams.slice(1) : urlParams || '';
|
163
|
+
// For vimeo last params gets priority if duplicates found
|
164
|
+
var vimeoPlayerParams = "?autoplay=0&muted=1" + (isPrivate ? "&h=" + hash : '') + defaultPlayerParams + urlParams;
|
165
|
+
return vimeoPlayerParams;
|
166
|
+
};
|
167
|
+
|
168
|
+
/**
|
169
|
+
* Video module for lightGallery
|
170
|
+
* Supports HTML5, YouTube, Vimeo, wistia videos
|
171
|
+
*
|
172
|
+
*
|
173
|
+
* @ref Wistia
|
174
|
+
* https://wistia.com/support/integrations/wordpress(How to get url)
|
175
|
+
* https://wistia.com/support/developers/embed-options#using-embed-options
|
176
|
+
* https://wistia.com/support/developers/player-api
|
177
|
+
* https://wistia.com/support/developers/construct-an-embed-code
|
178
|
+
* http://jsfiddle.net/xvnm7xLm/
|
179
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
|
180
|
+
* https://wistia.com/support/embed-and-share/sharing-videos
|
181
|
+
* https://private-sharing.wistia.com/medias/mwhrulrucj
|
182
|
+
*
|
183
|
+
* @ref Youtube
|
184
|
+
* https://developers.google.com/youtube/player_parameters#enablejsapi
|
185
|
+
* https://developers.google.com/youtube/iframe_api_reference
|
186
|
+
* https://developer.chrome.com/blog/autoplay/#iframe-delegation
|
187
|
+
*
|
188
|
+
* @ref Vimeo
|
189
|
+
* https://stackoverflow.com/questions/10488943/easy-way-to-get-vimeo-id-from-a-vimeo-url
|
190
|
+
* https://vimeo.zendesk.com/hc/en-us/articles/360000121668-Starting-playback-at-a-specific-timecode
|
191
|
+
* https://vimeo.zendesk.com/hc/en-us/articles/360001494447-Using-Player-Parameters
|
192
|
+
*/
|
193
|
+
var Video = /** @class */ (function () {
|
194
|
+
function Video(instance) {
|
195
|
+
// get lightGallery core plugin instance
|
196
|
+
this.core = instance;
|
197
|
+
this.settings = __assign(__assign({}, videoSettings), this.core.settings);
|
198
|
+
return this;
|
199
|
+
}
|
200
|
+
|
201
|
+
Video.prototype.init = function () {
|
202
|
+
var _this = this;
|
203
|
+
/**
|
204
|
+
* Event triggered when video url found without poster
|
205
|
+
* Append video HTML
|
206
|
+
* Play if autoplayFirstVideo is true
|
207
|
+
*/
|
208
|
+
this.core.LGel.on(lGEvents.hasVideo + ".video", this.onHasVideo.bind(this));
|
209
|
+
this.core.LGel.on(lGEvents.posterClick + ".video", function () {
|
210
|
+
var $el = _this.core.getSlideItem(_this.core.index);
|
211
|
+
_this.loadVideoOnPosterClick($el);
|
212
|
+
});
|
213
|
+
this.core.LGel.on(lGEvents.slideItemLoad + ".video", this.onSlideItemLoad.bind(this));
|
214
|
+
// @desc fired immediately before each slide transition.
|
215
|
+
this.core.LGel.on(lGEvents.beforeSlide + ".video", this.onBeforeSlide.bind(this));
|
216
|
+
// @desc fired immediately after each slide transition.
|
217
|
+
this.core.LGel.on(lGEvents.afterSlide + ".video", this.onAfterSlide.bind(this));
|
218
|
+
};
|
219
|
+
|
220
|
+
/**
|
221
|
+
* @desc Event triggered when a slide is completely loaded
|
222
|
+
*
|
223
|
+
* @param {Event} event - lightGalley custom event
|
224
|
+
*/
|
225
|
+
Video.prototype.onSlideItemLoad = function (event) {
|
226
|
+
var _this = this;
|
227
|
+
var _a = event.detail, isFirstSlide = _a.isFirstSlide, index = _a.index;
|
228
|
+
// Should check the active slide as well as user may have moved to different slide before the first slide is loaded
|
229
|
+
if (this.settings.autoplayFirstVideo &&
|
230
|
+
isFirstSlide &&
|
231
|
+
index === this.core.index) {
|
232
|
+
// Delay is just for the transition effect on video load
|
233
|
+
setTimeout(function () {
|
234
|
+
_this.loadAndPlayVideo(index);
|
235
|
+
}, 200);
|
236
|
+
}
|
237
|
+
// Should not call on first slide. should check only if the slide is active
|
238
|
+
if (!isFirstSlide &&
|
239
|
+
this.settings.autoplayVideoOnSlide &&
|
240
|
+
index === this.core.index) {
|
241
|
+
this.loadAndPlayVideo(index);
|
242
|
+
}
|
243
|
+
};
|
244
|
+
|
245
|
+
/**
|
246
|
+
* @desc Event triggered when video url or poster found
|
247
|
+
* Append video HTML is poster is not given
|
248
|
+
* Play if autoplayFirstVideo is true
|
249
|
+
*
|
250
|
+
* @param {Event} event - Javascript Event object.
|
251
|
+
*/
|
252
|
+
Video.prototype.onHasVideo = function (event) {
|
253
|
+
var _a = event.detail, index = _a.index, src = _a.src, html5Video = _a.html5Video, hasPoster = _a.hasPoster;
|
254
|
+
if (!hasPoster) {
|
255
|
+
// All functions are called separately if poster exist in loadVideoOnPosterClick function
|
256
|
+
this.appendVideos(this.core.getSlideItem(index), {
|
257
|
+
src: src,
|
258
|
+
addClass: 'lg-object',
|
259
|
+
index: index,
|
260
|
+
html5Video: html5Video,
|
261
|
+
});
|
262
|
+
// Automatically navigate to next slide once video reaches the end.
|
263
|
+
this.gotoNextSlideOnVideoEnd(src, index);
|
264
|
+
}
|
265
|
+
};
|
266
|
+
|
267
|
+
/**
|
268
|
+
* @desc fired immediately before each slide transition.
|
269
|
+
* Pause the previous video
|
270
|
+
* Hide the download button if the slide contains YouTube, Vimeo, or Wistia videos.
|
271
|
+
*
|
272
|
+
* @param {Event} event - Javascript Event object.
|
273
|
+
* @param {number} prevIndex - Previous index of the slide.
|
274
|
+
* @param {number} index - Current index of the slide
|
275
|
+
*/
|
276
|
+
Video.prototype.onBeforeSlide = function (event) {
|
277
|
+
if (this.core.lGalleryOn) {
|
278
|
+
var prevIndex = event.detail.prevIndex;
|
279
|
+
this.pauseVideo(prevIndex);
|
280
|
+
}
|
281
|
+
};
|
282
|
+
|
283
|
+
/**
|
284
|
+
* @desc fired immediately after each slide transition.
|
285
|
+
* Play video if autoplayVideoOnSlide option is enabled.
|
286
|
+
*
|
287
|
+
* @param {Event} event - Javascript Event object.
|
288
|
+
* @param {number} prevIndex - Previous index of the slide.
|
289
|
+
* @param {number} index - Current index of the slide
|
290
|
+
* @todo should check on onSlideLoad as well if video is not loaded on after slide
|
291
|
+
*/
|
292
|
+
Video.prototype.onAfterSlide = function (event) {
|
293
|
+
var _this = this;
|
294
|
+
var _a = event.detail, index = _a.index, prevIndex = _a.prevIndex;
|
295
|
+
// Do not call on first slide
|
296
|
+
var $slide = this.core.getSlideItem(index);
|
297
|
+
if (this.settings.autoplayVideoOnSlide && index !== prevIndex) {
|
298
|
+
if ($slide.hasClass('lg-complete')) {
|
299
|
+
setTimeout(function () {
|
300
|
+
_this.loadAndPlayVideo(index);
|
301
|
+
}, 100);
|
302
|
+
}
|
303
|
+
}
|
304
|
+
};
|
305
|
+
|
306
|
+
Video.prototype.loadAndPlayVideo = function (index) {
|
307
|
+
var $slide = this.core.getSlideItem(index);
|
308
|
+
var currentGalleryItem = this.core.galleryItems[index];
|
309
|
+
if (currentGalleryItem.poster) {
|
310
|
+
this.loadVideoOnPosterClick($slide, true);
|
311
|
+
}
|
312
|
+
else {
|
313
|
+
this.playVideo(index);
|
314
|
+
}
|
315
|
+
};
|
316
|
+
/**
|
317
|
+
* Play HTML5, Youtube, Vimeo or Wistia videos in a particular slide.
|
318
|
+
* @param {number} index - Index of the slide
|
319
|
+
*/
|
320
|
+
Video.prototype.playVideo = function (index) {
|
321
|
+
this.controlVideo(index, 'play');
|
322
|
+
};
|
323
|
+
|
324
|
+
/**
|
325
|
+
* Pause HTML5, Youtube, Vimeo or Wistia videos in a particular slide.
|
326
|
+
* @param {number} index - Index of the slide
|
327
|
+
*/
|
328
|
+
Video.prototype.pauseVideo = function (index) {
|
329
|
+
this.controlVideo(index, 'pause');
|
330
|
+
};
|
331
|
+
|
332
|
+
Video.prototype.getVideoHtml = function (src, addClass, index, html5Video) {
|
333
|
+
var video = '';
|
334
|
+
var videoInfo = this.core.galleryItems[index]
|
335
|
+
.__slideVideoInfo || {};
|
336
|
+
var currentGalleryItem = this.core.galleryItems[index];
|
337
|
+
var videoTitle = currentGalleryItem.title || currentGalleryItem.alt;
|
338
|
+
videoTitle = videoTitle ? 'title="' + videoTitle + '"' : '';
|
339
|
+
var commonIframeProps = "allowtransparency=\"true\"\n frameborder=\"0\"\n scrolling=\"no\"\n allowfullscreen\n mozallowfullscreen\n webkitallowfullscreen\n oallowfullscreen\n msallowfullscreen";
|
340
|
+
if (videoInfo.youtube) {
|
341
|
+
var videoId = 'lg-youtube' + index;
|
342
|
+
var youTubeParams = getYouTubeParams(videoInfo, this.settings.youTubePlayerParams);
|
343
|
+
var isYouTubeNoCookieURL = isYouTubeNoCookie(src);
|
344
|
+
var youtubeURL = isYouTubeNoCookieURL
|
345
|
+
? '//www.youtube-nocookie.com/'
|
346
|
+
: '//www.youtube.com/';
|
347
|
+
video = "<iframe allow=\"autoplay\" id=" + videoId + " class=\"lg-video-object lg-youtube " + addClass + "\" " + videoTitle + " src=\"" + youtubeURL + "embed/" + (videoInfo.youtube[1] + youTubeParams) + "\" " + commonIframeProps + "></iframe>";
|
348
|
+
}
|
349
|
+
else if (videoInfo.vimeo) {
|
350
|
+
var videoId = 'lg-vimeo' + index;
|
351
|
+
var playerParams = getVimeoURLParams(this.settings.vimeoPlayerParams, videoInfo);
|
352
|
+
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>";
|
353
|
+
}
|
354
|
+
else if (videoInfo.wistia) {
|
355
|
+
var wistiaId = 'lg-wistia' + index;
|
356
|
+
var playerParams = param(this.settings.wistiaPlayerParams);
|
357
|
+
playerParams = playerParams ? '?' + playerParams : '';
|
358
|
+
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>";
|
359
|
+
}
|
360
|
+
// jadams: added Dailymotion Player
|
361
|
+
else if (videoInfo.dailymotion) {
|
362
|
+
var dailymotionId = 'lg-dailymotion' + index;
|
363
|
+
var playerParams = param(this.settings.dailymotionPlayerParams);
|
364
|
+
playerParams = playerParams ? '?' + playerParams : '';
|
365
|
+
video = "<iframe allow=\"autoplay\" id=\"" + dailymotionId + "\" src=\"//www.dailymotion.com/embed/video/" + (videoInfo.dailymotion[1] + playerParams) + "\" " + videoTitle + " class=\"dailymotion_embed lg-video-object lg-dailymotion " + addClass + "\" name=\"dailymotion_embed\" " + commonIframeProps + "></iframe>"
|
366
|
+
}
|
367
|
+
else if (videoInfo.html5) {
|
368
|
+
var html5VideoMarkup = '';
|
369
|
+
for (var i = 0; i < html5Video.source.length; i++) {
|
370
|
+
html5VideoMarkup += "<source src=\"" + html5Video.source[i].src + "\" type=\"" + html5Video.source[i].type + "\">";
|
371
|
+
}
|
372
|
+
if (html5Video.tracks) {
|
373
|
+
var _loop_1 = function (i) {
|
374
|
+
var trackAttributes = '';
|
375
|
+
var track = html5Video.tracks[i];
|
376
|
+
Object.keys(track || {}).forEach(function (key) {
|
377
|
+
trackAttributes += key + "=\"" + track[key] + "\" ";
|
378
|
+
});
|
379
|
+
html5VideoMarkup += "<track " + trackAttributes + ">";
|
380
|
+
};
|
381
|
+
for (var i = 0; i < html5Video.tracks.length; i++) {
|
382
|
+
_loop_1(i);
|
383
|
+
}
|
384
|
+
}
|
385
|
+
var html5VideoAttrs_1 = '';
|
386
|
+
var videoAttributes_1 = html5Video.attributes || {};
|
387
|
+
Object.keys(videoAttributes_1 || {}).forEach(function (key) {
|
388
|
+
html5VideoAttrs_1 += key + "=\"" + videoAttributes_1[key] + "\" ";
|
389
|
+
});
|
390
|
+
video = "<video class=\"lg-video-object lg-html5 " + (this.settings.videojs && this.settings.videojsTheme
|
391
|
+
? this.settings.videojsTheme + ' '
|
392
|
+
: '') + " " + (this.settings.videojs ? ' video-js' : '') + "\" " + html5VideoAttrs_1 + ">\n " + html5VideoMarkup + "\n Your browser does not support HTML5 video.\n </video>";
|
393
|
+
}
|
394
|
+
return video;
|
395
|
+
};
|
396
|
+
|
397
|
+
/**
|
398
|
+
* @desc - Append videos to the slide
|
399
|
+
*
|
400
|
+
* @param {HTMLElement} el - slide element
|
401
|
+
* @param {Object} videoParams - Video parameters, Contains src, class, index, htmlVideo
|
402
|
+
*/
|
403
|
+
Video.prototype.appendVideos = function (el, videoParams) {
|
404
|
+
var _a;
|
405
|
+
var videoHtml = this.getVideoHtml(videoParams.src, videoParams.addClass, videoParams.index, videoParams.html5Video);
|
406
|
+
el.find('.lg-video-cont').append(videoHtml);
|
407
|
+
var $videoElement = el.find('.lg-video-object').first();
|
408
|
+
if (videoParams.html5Video) {
|
409
|
+
$videoElement.on('mousedown.lg.video', function (e) {
|
410
|
+
e.stopPropagation();
|
411
|
+
});
|
412
|
+
}
|
413
|
+
if (this.settings.videojs && ((_a = this.core.galleryItems[videoParams.index].__slideVideoInfo) === null || _a === void 0 ? void 0 : _a.html5)) {
|
414
|
+
try {
|
415
|
+
return videojs($videoElement.get(), this.settings.videojsOptions);
|
416
|
+
}
|
417
|
+
catch (e) {
|
418
|
+
console.warn('lightGallery: Make sure you have included videojs');
|
419
|
+
}
|
420
|
+
}
|
421
|
+
};
|
422
|
+
|
423
|
+
Video.prototype.gotoNextSlideOnVideoEnd = function (src, index) {
|
424
|
+
var _this = this;
|
425
|
+
var $videoElement = this.core
|
426
|
+
.getSlideItem(index)
|
427
|
+
.find('.lg-video-object')
|
428
|
+
.first();
|
429
|
+
var videoInfo = this.core.galleryItems[index].__slideVideoInfo || {};
|
430
|
+
if (this.settings.gotoNextSlideOnVideoEnd) {
|
431
|
+
if (videoInfo.html5) {
|
432
|
+
$videoElement.on('ended', function () {
|
433
|
+
_this.core.goToNextSlide();
|
434
|
+
});
|
435
|
+
}
|
436
|
+
else if (videoInfo.vimeo) {
|
437
|
+
try {
|
438
|
+
// https://github.com/vimeo/player.js/#ended
|
439
|
+
new Vimeo.Player($videoElement.get()).on('ended', function () {
|
440
|
+
_this.core.goToNextSlide();
|
441
|
+
});
|
442
|
+
}
|
443
|
+
catch (e) {
|
444
|
+
// jadams:
|
445
|
+
console.warn('lightGallery: Make sure you have included //github.com/vimeo/player.js');
|
446
|
+
}
|
447
|
+
}
|
448
|
+
else if (videoInfo.wistia) {
|
449
|
+
try {
|
450
|
+
window._wq = window._wq || [];
|
451
|
+
// @todo Event is gettign triggered multiple times
|
452
|
+
window._wq.push({
|
453
|
+
id: $videoElement.attr('id'),
|
454
|
+
onReady: function (video) {
|
455
|
+
video.bind('end', function () {
|
456
|
+
_this.core.goToNextSlide();
|
457
|
+
});
|
458
|
+
},
|
459
|
+
});
|
460
|
+
}
|
461
|
+
catch (e) {
|
462
|
+
// jadams:
|
463
|
+
console.warn('lightGallery: Make sure you have included //fast.wistia.com/assets/external/E-v1.js');
|
464
|
+
}
|
465
|
+
}
|
466
|
+
}
|
467
|
+
};
|
468
|
+
|
469
|
+
Video.prototype.controlVideo = function (index, action) {
|
470
|
+
var $videoElement = this.core
|
471
|
+
.getSlideItem(index)
|
472
|
+
.find('.lg-video-object')
|
473
|
+
.first();
|
474
|
+
var videoInfo = this.core.galleryItems[index].__slideVideoInfo || {};
|
475
|
+
if (!$videoElement.get())
|
476
|
+
return;
|
477
|
+
if (videoInfo.youtube) {
|
478
|
+
try {
|
479
|
+
$videoElement.get().contentWindow.postMessage("{\"event\":\"command\",\"func\":\"" + action + "Video\",\"args\":\"\"}", '*');
|
480
|
+
}
|
481
|
+
catch (e) {
|
482
|
+
console.error("lightGallery:- " + e);
|
483
|
+
}
|
484
|
+
}
|
485
|
+
else if (videoInfo.vimeo) {
|
486
|
+
try {
|
487
|
+
new Vimeo.Player($videoElement.get())[action]();
|
488
|
+
}
|
489
|
+
catch (e) {
|
490
|
+
console.warn('lightGallery: Make sure you have included //github.com/vimeo/player.js');
|
491
|
+
}
|
492
|
+
}
|
493
|
+
else if (videoInfo.html5) {
|
494
|
+
if (this.settings.videojs) {
|
495
|
+
try {
|
496
|
+
videojs($videoElement.get())[action]();
|
497
|
+
}
|
498
|
+
catch (e) {
|
499
|
+
console.warn('lightGallery: Make sure you have included videojs');
|
500
|
+
}
|
501
|
+
}
|
502
|
+
else {
|
503
|
+
$videoElement.get()[action]();
|
504
|
+
}
|
505
|
+
}
|
506
|
+
else if (videoInfo.wistia) {
|
507
|
+
try {
|
508
|
+
window._wq = window._wq || [];
|
509
|
+
// @todo Find a way to destroy wistia player instance
|
510
|
+
window._wq.push({
|
511
|
+
id: $videoElement.attr('id'),
|
512
|
+
onReady: function (video) {
|
513
|
+
video[action]();
|
514
|
+
},
|
515
|
+
});
|
516
|
+
}
|
517
|
+
catch (e) {
|
518
|
+
console.warn('lightGallery: Make sure you have included //fast.wistia.com/assets/external/E-v1.js');
|
519
|
+
}
|
520
|
+
}
|
521
|
+
};
|
522
|
+
|
523
|
+
Video.prototype.loadVideoOnPosterClick = function ($el, forcePlay) {
|
524
|
+
var _this = this;
|
525
|
+
// check slide has poster
|
526
|
+
if (!$el.hasClass('lg-video-loaded')) {
|
527
|
+
// check already video element present
|
528
|
+
if (!$el.hasClass('lg-has-video')) {
|
529
|
+
$el.addClass('lg-has-video');
|
530
|
+
var _html = void 0;
|
531
|
+
var _src = this.core.galleryItems[this.core.index].src;
|
532
|
+
var video = this.core.galleryItems[this.core.index].video;
|
533
|
+
if (video) {
|
534
|
+
_html =
|
535
|
+
typeof video === 'string' ? JSON.parse(video) : video;
|
536
|
+
}
|
537
|
+
var videoJsPlayer_1 = this.appendVideos($el, {
|
538
|
+
src: _src,
|
539
|
+
addClass: '',
|
540
|
+
index: this.core.index,
|
541
|
+
html5Video: _html,
|
542
|
+
});
|
543
|
+
this.gotoNextSlideOnVideoEnd(_src, this.core.index);
|
544
|
+
var $tempImg = $el.find('.lg-object').first().get();
|
545
|
+
// @todo make sure it is working
|
546
|
+
$el.find('.lg-video-cont').first().append($tempImg);
|
547
|
+
$el.addClass('lg-video-loading');
|
548
|
+
videoJsPlayer_1 &&
|
549
|
+
videoJsPlayer_1.ready(function () {
|
550
|
+
videoJsPlayer_1.on('loadedmetadata', function () {
|
551
|
+
_this.onVideoLoadAfterPosterClick($el, _this.core.index);
|
552
|
+
});
|
553
|
+
});
|
554
|
+
$el.find('.lg-video-object')
|
555
|
+
.first()
|
556
|
+
.on('load.lg error.lg loadedmetadata.lg', function () {
|
557
|
+
setTimeout(function () {
|
558
|
+
_this.onVideoLoadAfterPosterClick($el, _this.core.index);
|
559
|
+
}, 50);
|
560
|
+
});
|
561
|
+
}
|
562
|
+
else {
|
563
|
+
this.playVideo(this.core.index);
|
564
|
+
}
|
565
|
+
}
|
566
|
+
else if (forcePlay) {
|
567
|
+
this.playVideo(this.core.index);
|
568
|
+
}
|
569
|
+
};
|
570
|
+
|
571
|
+
Video.prototype.onVideoLoadAfterPosterClick = function ($el, index) {
|
572
|
+
$el.addClass('lg-video-loaded');
|
573
|
+
this.playVideo(index);
|
574
|
+
};
|
575
|
+
|
576
|
+
Video.prototype.destroy = function () {
|
577
|
+
this.core.LGel.off('.lg.video');
|
578
|
+
this.core.LGel.off('.video');
|
579
|
+
};
|
580
|
+
return Video;
|
581
|
+
}());
|
582
|
+
|
583
|
+
return Video;
|
584
|
+
|
585
|
+
})));
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.min.js
|
4
|
+
# Provides lightGallery JS code for the plugin lgVideo
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# https://jekyll.one
|
8
|
+
#
|
9
|
+
# Copyright (C) 2023 Sachin Neravath
|
10
|
+
# Copyright (C) 2023 Juergen Adams
|
11
|
+
#
|
12
|
+
# J1 Template is licensed under the MIT License.
|
13
|
+
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
|
14
|
+
# lightGallery is licensed under the GPLv3 license
|
15
|
+
# See: https://github.com/sachinchoolur/lightGallery/blob/master/LICENSE
|
16
|
+
# -----------------------------------------------------------------------------
|
17
|
+
*/
|
18
|
+
|
19
|
+
/**
|
20
|
+
* lightgallery | 2.7.2 | September 20th 2023
|
21
|
+
* http://www.lightgalleryjs.com/
|
22
|
+
* Copyright (c) 2020 Sachin Neravath;
|
23
|
+
* @license GPLv3
|
24
|
+
*/
|
25
|
+
|
26
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).lgVideo=o()}(this,function(){"use strict";
|
27
|
+
var e=function(){return(e=Object.assign||function(e){for(var o,i=1,t=arguments.length;i<t;i++)for(var s in o=arguments[i])Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);return e}).apply(this,arguments)},o={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsTheme:"",videojsOptions:{}},i="lgHasVideo",t="lgSlideItemLoad",s="lgBeforeSlide",n="lgAfterSlide",l="lgPosterClick",d=function(e){return Object.keys(e).map(function(o){return encodeURIComponent(o)+"="+encodeURIComponent(e[o])}).join("&")},r=function(o,i){if(!o.youtube)return"";var t=o.youtube[2]?o.youtube[2].slice(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,o){var i=o.map(decodeURIComponent),t=i[0],s=i[1];return e[t]=s,e},{}):"",s=i||{},n=e(e(e({},{wmode:"opaque",autoplay:0,mute:1,enablejsapi:1}),s),t);return"?"+d(n)};return function(){function a(i){return this.core=i,this.settings=e(e({},o),this.core.settings),this}return a.prototype.init=function(){var e=this;this.core.LGel.on(i+".video",this.onHasVideo.bind(this)),this.core.LGel.on(l+".video",function(){var o=e.core.getSlideItem(e.core.index);e.loadVideoOnPosterClick(o)}),this.core.LGel.on(t+".video",this.onSlideItemLoad.bind(this)),this.core.LGel.on(s+".video",this.onBeforeSlide.bind(this)),this.core.LGel.on(n+".video",this.onAfterSlide.bind(this))},a.prototype.onSlideItemLoad=function(e){var o=this,i=e.detail,t=i.isFirstSlide,s=i.index;this.settings.autoplayFirstVideo&&t&&s===this.core.index&&setTimeout(function(){o.loadAndPlayVideo(s)},200),!t&&this.settings.autoplayVideoOnSlide&&s===this.core.index&&this.loadAndPlayVideo(s)},a.prototype.onHasVideo=function(e){var o=e.detail,i=o.index,t=o.src,s=o.html5Video;o.hasPoster||(this.appendVideos(this.core.getSlideItem(i),{src:t,addClass:"lg-object",index:i,html5Video:s}),this.gotoNextSlideOnVideoEnd(t,i))},a.prototype.onBeforeSlide=function(e){if(this.core.lGalleryOn){var o=e.detail.prevIndex;this.pauseVideo(o)}},a.prototype.onAfterSlide=function(e){var o=this,i=e.detail,t=i.index,s=i.prevIndex,n=this.core.getSlideItem(t);this.settings.autoplayVideoOnSlide&&t!==s&&n.hasClass("lg-complete")&&setTimeout(function(){o.loadAndPlayVideo(t)},100)},a.prototype.loadAndPlayVideo=function(e){var o=this.core.getSlideItem(e);this.core.galleryItems[e].poster?this.loadVideoOnPosterClick(o,!0):this.playVideo(e)},a.prototype.playVideo=function(e){this.controlVideo(e,"play")},a.prototype.pauseVideo=function(e){this.controlVideo(e,"pause")},a.prototype.getVideoHtml=function(e,o,i,t){var s="",n=this.core.galleryItems[i].__slideVideoInfo||{},l=this.core.galleryItems[i],a=l.title||l.alt;a=a?'title="'+a+'"':"";var c='allowtransparency="true"\n frameborder="0"\n scrolling="no"\n allowfullscreen\n mozallowfullscreen\n webkitallowfullscreen\n oallowfullscreen\n msallowfullscreen';if(n.youtube){var u="lg-youtube"+i,f=r(n,this.settings.youTubePlayerParams);s='<iframe allow="autoplay" id='+u+' class="lg-video-object lg-youtube '+o+'" '+a+' src="'+(e.includes("youtube-nocookie.com")?"//www.youtube-nocookie.com/":"//www.youtube.com/")+"embed/"+(n.youtube[1]+f)+'" '+c+"></iframe>"}else if(n.vimeo){u="lg-vimeo"+i;var h=function(e,o){if(!o||!o.vimeo)return"";var i=o.vimeo[2]||"",t=e&&0!==Object.keys(e).length?"&"+d(e):"",s=((o.vimeo[0].split("/").pop()||"").split("?")[0]||"").split("#")[0],n=o.vimeo[1]!==s;return n&&(i=i.replace("/"+s,"")),"?autoplay=0&muted=1"+(n?"&h="+s:"")+t+(i="?"==i[0]?"&"+i.slice(1):i||"")}(this.settings.vimeoPlayerParams,n);s='<iframe allow="autoplay" id='+u+' class="lg-video-object lg-vimeo '+o+'" '+a+' src="//player.vimeo.com/video/'+(n.vimeo[1]+h)+'" '+c+"></iframe>"}else if(n.wistia){var p="lg-wistia"+i;h=(h=d(this.settings.wistiaPlayerParams))?"?"+h:"",s='<iframe allow="autoplay" id="'+p+'" src="//fast.wistia.net/embed/iframe/'+(n.wistia[4]+h)+'" '+a+' class="wistia_embed lg-video-object lg-wistia '+o+'" name="wistia_embed" '+c+"></iframe>"}else if(n.html5){for(var y="",g=0;g<t.source.length;g++)y+='<source src="'+t.source[g].src+'" type="'+t.source[g].type+'">';if(t.tracks){var v=function(e){var o="",i=t.tracks[e];Object.keys(i||{}).forEach(function(e){o+=e+'="'+i[e]+'" '}),y+="<track "+o+">"};for(g=0;g<t.tracks.length;g++)v(g)}var m="",w=t.attributes||{};Object.keys(w||{}).forEach(function(e){m+=e+'="'+w[e]+'" '}),s='<video class="lg-video-object lg-html5 '+(this.settings.videojs&&this.settings.videojsTheme?this.settings.videojsTheme+" ":"")+" "+(this.settings.videojs?" video-js":"")+'" '+m+">\n "+y+"\n Your browser does not support HTML5 video.\n </video>"}return s},a.prototype.appendVideos=function(e,o){var i,t=this.getVideoHtml(o.src,o.addClass,o.index,o.html5Video);e.find(".lg-video-cont").append(t);var s=e.find(".lg-video-object").first();if(o.html5Video&&s.on("mousedown.lg.video",function(e){e.stopPropagation()}),this.settings.videojs&&(null===(i=this.core.galleryItems[o.index].__slideVideoInfo)||void 0===i?void 0:i.html5))try{return videojs(s.get(),this.settings.videojsOptions)}catch(e){console.warn("lightGallery: Make sure you have included videojs")}},a.prototype.gotoNextSlideOnVideoEnd=function(e,o){var i=this,t=this.core.getSlideItem(o).find(".lg-video-object").first(),s=this.core.galleryItems[o].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd)if(s.html5)t.on("ended",function(){i.core.goToNextSlide()});else if(s.vimeo)try{new Vimeo.Player(t.get()).on("ended",function(){i.core.goToNextSlide()})}catch(e){console.warn("lightGallery: Make sure you have included //github.com/vimeo/player.js")}else if(s.wistia)try{window._wq=window._wq||[],window._wq.push({id:t.attr("id"),onReady:function(e){e.bind("end",function(){i.core.goToNextSlide()})}})}catch(e){console.warn("lightGallery: Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}},a.prototype.controlVideo=function(e,o){var i=this.core.getSlideItem(e).find(".lg-video-object").first(),t=this.core.galleryItems[e].__slideVideoInfo||{};if(i.get())if(t.youtube)try{i.get().contentWindow.postMessage('{"event":"command","func":"'+o+'Video","args":""}',"*")}catch(e){console.error("lightGallery:- "+e)}else if(t.vimeo)try{new Vimeo.Player(i.get())[o]()}catch(e){console.warn("lightGallery: Make sure you have included //github.com/vimeo/player.js")}else if(t.html5)if(this.settings.videojs)try{videojs(i.get())[o]()}catch(e){console.warn("lightGallery: Make sure you have included videojs")}else i.get()[o]();else if(t.wistia)try{window._wq=window._wq||[],window._wq.push({id:i.attr("id"),onReady:function(e){e[o]()}})}catch(e){console.warn("lightGallery: Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}},a.prototype.loadVideoOnPosterClick=function(e,o){var i=this;if(e.hasClass("lg-video-loaded"))o&&this.playVideo(this.core.index);else if(e.hasClass("lg-has-video"))this.playVideo(this.core.index);else{e.addClass("lg-has-video");var t=void 0,s=this.core.galleryItems[this.core.index].src,n=this.core.galleryItems[this.core.index].video;n&&(t="string"==typeof n?JSON.parse(n):n);var l=this.appendVideos(e,{src:s,addClass:"",index:this.core.index,html5Video:t});this.gotoNextSlideOnVideoEnd(s,this.core.index);var d=e.find(".lg-object").first().get();e.find(".lg-video-cont").first().append(d),e.addClass("lg-video-loading"),l&&l.ready(function(){l.on("loadedmetadata",function(){i.onVideoLoadAfterPosterClick(e,i.core.index)})}),e.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){i.onVideoLoadAfterPosterClick(e,i.core.index)},50)})}},a.prototype.onVideoLoadAfterPosterClick=function(e,o){e.addClass("lg-video-loaded"),this.playVideo(o)},a.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},a}()});
|