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,999 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.js
|
4
|
+
# Provides lightGallery JS code for the plugin lgZoom
|
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.lgZoom = 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 zoomSettings = {
|
59
|
+
scale: 1,
|
60
|
+
zoom: true,
|
61
|
+
infiniteZoom: true,
|
62
|
+
actualSize: true,
|
63
|
+
showZoomInOutIcons: false,
|
64
|
+
actualSizeIcons: {
|
65
|
+
zoomIn: 'lg-zoom-in',
|
66
|
+
zoomOut: 'lg-zoom-out',
|
67
|
+
},
|
68
|
+
enableZoomAfter: 300,
|
69
|
+
zoomPluginStrings: {
|
70
|
+
zoomIn: 'Zoom in',
|
71
|
+
zoomOut: 'Zoom out',
|
72
|
+
viewActualSize: 'View actual size',
|
73
|
+
},
|
74
|
+
};
|
75
|
+
|
76
|
+
/**
|
77
|
+
* List of lightGallery events
|
78
|
+
* All events should be documented here
|
79
|
+
* Below interfaces are used to build the website documentations
|
80
|
+
* */
|
81
|
+
var lGEvents = {
|
82
|
+
afterAppendSlide: 'lgAfterAppendSlide',
|
83
|
+
init: 'lgInit',
|
84
|
+
hasVideo: 'lgHasVideo',
|
85
|
+
containerResize: 'lgContainerResize',
|
86
|
+
updateSlides: 'lgUpdateSlides',
|
87
|
+
afterAppendSubHtml: 'lgAfterAppendSubHtml',
|
88
|
+
beforeOpen: 'lgBeforeOpen',
|
89
|
+
afterOpen: 'lgAfterOpen',
|
90
|
+
slideItemLoad: 'lgSlideItemLoad',
|
91
|
+
beforeSlide: 'lgBeforeSlide',
|
92
|
+
afterSlide: 'lgAfterSlide',
|
93
|
+
posterClick: 'lgPosterClick',
|
94
|
+
dragStart: 'lgDragStart',
|
95
|
+
dragMove: 'lgDragMove',
|
96
|
+
dragEnd: 'lgDragEnd',
|
97
|
+
beforeNextSlide: 'lgBeforeNextSlide',
|
98
|
+
beforePrevSlide: 'lgBeforePrevSlide',
|
99
|
+
beforeClose: 'lgBeforeClose',
|
100
|
+
afterClose: 'lgAfterClose',
|
101
|
+
rotateLeft: 'lgRotateLeft',
|
102
|
+
rotateRight: 'lgRotateRight',
|
103
|
+
flipHorizontal: 'lgFlipHorizontal',
|
104
|
+
flipVertical: 'lgFlipVertical',
|
105
|
+
autoplay: 'lgAutoplay',
|
106
|
+
autoplayStart: 'lgAutoplayStart',
|
107
|
+
autoplayStop: 'lgAutoplayStop',
|
108
|
+
};
|
109
|
+
|
110
|
+
var ZOOM_TRANSITION_DURATION = 500;
|
111
|
+
var Zoom = /** @class */ (function () {
|
112
|
+
function Zoom(instance, $LG) {
|
113
|
+
// get lightGallery core plugin instance
|
114
|
+
this.core = instance;
|
115
|
+
this.$LG = $LG;
|
116
|
+
this.settings = __assign(__assign({}, zoomSettings), this.core.settings);
|
117
|
+
return this;
|
118
|
+
}
|
119
|
+
// Append Zoom controls. Actual size, Zoom-in, Zoom-out
|
120
|
+
Zoom.prototype.buildTemplates = function () {
|
121
|
+
var zoomIcons = this.settings.showZoomInOutIcons
|
122
|
+
? "<button id=\"" + this.core.getIdName('lg-zoom-in') + "\" type=\"button\" aria-label=\"" + this.settings.zoomPluginStrings['zoomIn'] + "\" class=\"lg-zoom-in lg-icon\"></button><button id=\"" + this.core.getIdName('lg-zoom-out') + "\" type=\"button\" aria-label=\"" + this.settings.zoomPluginStrings['zoomIn'] + "\" class=\"lg-zoom-out lg-icon\"></button>"
|
123
|
+
: '';
|
124
|
+
if (this.settings.actualSize) {
|
125
|
+
zoomIcons += "<button id=\"" + this.core.getIdName('lg-actual-size') + "\" type=\"button\" aria-label=\"" + this.settings.zoomPluginStrings['viewActualSize'] + "\" class=\"" + this.settings.actualSizeIcons.zoomIn + " lg-icon\"></button>";
|
126
|
+
}
|
127
|
+
this.core.outer.addClass('lg-use-transition-for-zoom');
|
128
|
+
this.core.$toolbar.first().append(zoomIcons);
|
129
|
+
};
|
130
|
+
/**
|
131
|
+
* @desc Enable zoom option only once the image is completely loaded
|
132
|
+
* If zoomFromOrigin is true, Zoom is enabled once the dummy image has been inserted
|
133
|
+
*
|
134
|
+
* Zoom styles are defined under lg-zoomable CSS class.
|
135
|
+
*/
|
136
|
+
Zoom.prototype.enableZoom = function (event) {
|
137
|
+
var _this = this;
|
138
|
+
// delay will be 0 except first time
|
139
|
+
var _speed = this.settings.enableZoomAfter + event.detail.delay;
|
140
|
+
// set _speed value 0 if gallery opened from direct url and if it is first slide
|
141
|
+
if (this.$LG('body').first().hasClass('lg-from-hash') &&
|
142
|
+
event.detail.delay) {
|
143
|
+
// will execute only once
|
144
|
+
_speed = 0;
|
145
|
+
}
|
146
|
+
else {
|
147
|
+
// Remove lg-from-hash to enable starting animation.
|
148
|
+
this.$LG('body').first().removeClass('lg-from-hash');
|
149
|
+
}
|
150
|
+
this.zoomableTimeout = setTimeout(function () {
|
151
|
+
if (!_this.isImageSlide(_this.core.index)) {
|
152
|
+
return;
|
153
|
+
}
|
154
|
+
_this.core.getSlideItem(event.detail.index).addClass('lg-zoomable');
|
155
|
+
if (event.detail.index === _this.core.index) {
|
156
|
+
_this.setZoomEssentials();
|
157
|
+
}
|
158
|
+
}, _speed + 30);
|
159
|
+
};
|
160
|
+
Zoom.prototype.enableZoomOnSlideItemLoad = function () {
|
161
|
+
// Add zoomable class
|
162
|
+
this.core.LGel.on(lGEvents.slideItemLoad + ".zoom", this.enableZoom.bind(this));
|
163
|
+
};
|
164
|
+
Zoom.prototype.getDragCords = function (e) {
|
165
|
+
return {
|
166
|
+
x: e.pageX,
|
167
|
+
y: e.pageY,
|
168
|
+
};
|
169
|
+
};
|
170
|
+
Zoom.prototype.getSwipeCords = function (e) {
|
171
|
+
var x = e.touches[0].pageX;
|
172
|
+
var y = e.touches[0].pageY;
|
173
|
+
return {
|
174
|
+
x: x,
|
175
|
+
y: y,
|
176
|
+
};
|
177
|
+
};
|
178
|
+
Zoom.prototype.getDragAllowedAxises = function (scale, scaleDiff) {
|
179
|
+
var $image = this.core
|
180
|
+
.getSlideItem(this.core.index)
|
181
|
+
.find('.lg-image')
|
182
|
+
.first()
|
183
|
+
.get();
|
184
|
+
var height = 0;
|
185
|
+
var width = 0;
|
186
|
+
var rect = $image.getBoundingClientRect();
|
187
|
+
if (scale) {
|
188
|
+
height = $image.offsetHeight * scale;
|
189
|
+
width = $image.offsetWidth * scale;
|
190
|
+
}
|
191
|
+
else if (scaleDiff) {
|
192
|
+
height = rect.height + scaleDiff * rect.height;
|
193
|
+
width = rect.width + scaleDiff * rect.width;
|
194
|
+
}
|
195
|
+
else {
|
196
|
+
height = rect.height;
|
197
|
+
width = rect.width;
|
198
|
+
}
|
199
|
+
var allowY = height > this.containerRect.height;
|
200
|
+
var allowX = width > this.containerRect.width;
|
201
|
+
return {
|
202
|
+
allowX: allowX,
|
203
|
+
allowY: allowY,
|
204
|
+
};
|
205
|
+
};
|
206
|
+
Zoom.prototype.setZoomEssentials = function () {
|
207
|
+
this.containerRect = this.core.$content.get().getBoundingClientRect();
|
208
|
+
};
|
209
|
+
/**
|
210
|
+
* @desc Image zoom
|
211
|
+
* Translate the wrap and scale the image to get better user experience
|
212
|
+
*
|
213
|
+
* @param {String} scale - Zoom decrement/increment value
|
214
|
+
*/
|
215
|
+
Zoom.prototype.zoomImage = function (scale, scaleDiff, reposition, resetToMax) {
|
216
|
+
if (Math.abs(scaleDiff) <= 0)
|
217
|
+
return;
|
218
|
+
var offsetX = this.containerRect.width / 2 + this.containerRect.left;
|
219
|
+
var offsetY = this.containerRect.height / 2 +
|
220
|
+
this.containerRect.top +
|
221
|
+
this.scrollTop;
|
222
|
+
var originalX;
|
223
|
+
var originalY;
|
224
|
+
if (scale === 1) {
|
225
|
+
this.positionChanged = false;
|
226
|
+
}
|
227
|
+
var dragAllowedAxises = this.getDragAllowedAxises(0, scaleDiff);
|
228
|
+
var allowY = dragAllowedAxises.allowY, allowX = dragAllowedAxises.allowX;
|
229
|
+
if (this.positionChanged) {
|
230
|
+
originalX = this.left / (this.scale - scaleDiff);
|
231
|
+
originalY = this.top / (this.scale - scaleDiff);
|
232
|
+
this.pageX = offsetX - originalX;
|
233
|
+
this.pageY = offsetY - originalY;
|
234
|
+
this.positionChanged = false;
|
235
|
+
}
|
236
|
+
var possibleSwipeCords = this.getPossibleSwipeDragCords(scaleDiff);
|
237
|
+
var x;
|
238
|
+
var y;
|
239
|
+
var _x = offsetX - this.pageX;
|
240
|
+
var _y = offsetY - this.pageY;
|
241
|
+
if (scale - scaleDiff > 1) {
|
242
|
+
var scaleVal = (scale - scaleDiff) / Math.abs(scaleDiff);
|
243
|
+
_x =
|
244
|
+
(scaleDiff < 0 ? -_x : _x) +
|
245
|
+
this.left * (scaleVal + (scaleDiff < 0 ? -1 : 1));
|
246
|
+
_y =
|
247
|
+
(scaleDiff < 0 ? -_y : _y) +
|
248
|
+
this.top * (scaleVal + (scaleDiff < 0 ? -1 : 1));
|
249
|
+
x = _x / scaleVal;
|
250
|
+
y = _y / scaleVal;
|
251
|
+
}
|
252
|
+
else {
|
253
|
+
var scaleVal = (scale - scaleDiff) * scaleDiff;
|
254
|
+
x = _x * scaleVal;
|
255
|
+
y = _y * scaleVal;
|
256
|
+
}
|
257
|
+
if (reposition) {
|
258
|
+
if (allowX) {
|
259
|
+
if (this.isBeyondPossibleLeft(x, possibleSwipeCords.minX)) {
|
260
|
+
x = possibleSwipeCords.minX;
|
261
|
+
}
|
262
|
+
else if (this.isBeyondPossibleRight(x, possibleSwipeCords.maxX)) {
|
263
|
+
x = possibleSwipeCords.maxX;
|
264
|
+
}
|
265
|
+
}
|
266
|
+
else {
|
267
|
+
if (scale > 1) {
|
268
|
+
if (x < possibleSwipeCords.minX) {
|
269
|
+
x = possibleSwipeCords.minX;
|
270
|
+
}
|
271
|
+
else if (x > possibleSwipeCords.maxX) {
|
272
|
+
x = possibleSwipeCords.maxX;
|
273
|
+
}
|
274
|
+
}
|
275
|
+
}
|
276
|
+
// @todo fix this
|
277
|
+
if (allowY) {
|
278
|
+
if (this.isBeyondPossibleTop(y, possibleSwipeCords.minY)) {
|
279
|
+
y = possibleSwipeCords.minY;
|
280
|
+
}
|
281
|
+
else if (this.isBeyondPossibleBottom(y, possibleSwipeCords.maxY)) {
|
282
|
+
y = possibleSwipeCords.maxY;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
else {
|
286
|
+
// If the translate value based on index of beyond the viewport, utilize the available space to prevent image being cut out
|
287
|
+
if (scale > 1) {
|
288
|
+
//If image goes beyond viewport top, use the minim possible translate value
|
289
|
+
if (y < possibleSwipeCords.minY) {
|
290
|
+
y = possibleSwipeCords.minY;
|
291
|
+
}
|
292
|
+
else if (y > possibleSwipeCords.maxY) {
|
293
|
+
y = possibleSwipeCords.maxY;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}
|
298
|
+
this.setZoomStyles({
|
299
|
+
x: x,
|
300
|
+
y: y,
|
301
|
+
scale: scale,
|
302
|
+
});
|
303
|
+
this.left = x;
|
304
|
+
this.top = y;
|
305
|
+
if (resetToMax) {
|
306
|
+
this.setZoomImageSize();
|
307
|
+
}
|
308
|
+
};
|
309
|
+
Zoom.prototype.resetImageTranslate = function (index) {
|
310
|
+
if (!this.isImageSlide(index)) {
|
311
|
+
return;
|
312
|
+
}
|
313
|
+
var $image = this.core.getSlideItem(index).find('.lg-image').first();
|
314
|
+
this.imageReset = false;
|
315
|
+
$image.removeClass('reset-transition reset-transition-y reset-transition-x');
|
316
|
+
this.core.outer.removeClass('lg-actual-size');
|
317
|
+
$image.css('width', 'auto').css('height', 'auto');
|
318
|
+
setTimeout(function () {
|
319
|
+
$image.removeClass('no-transition');
|
320
|
+
}, 10);
|
321
|
+
};
|
322
|
+
Zoom.prototype.setZoomImageSize = function () {
|
323
|
+
var _this = this;
|
324
|
+
var $image = this.core
|
325
|
+
.getSlideItem(this.core.index)
|
326
|
+
.find('.lg-image')
|
327
|
+
.first();
|
328
|
+
setTimeout(function () {
|
329
|
+
var actualSizeScale = _this.getCurrentImageActualSizeScale();
|
330
|
+
if (_this.scale >= actualSizeScale) {
|
331
|
+
$image.addClass('no-transition');
|
332
|
+
_this.imageReset = true;
|
333
|
+
}
|
334
|
+
}, ZOOM_TRANSITION_DURATION);
|
335
|
+
setTimeout(function () {
|
336
|
+
var actualSizeScale = _this.getCurrentImageActualSizeScale();
|
337
|
+
if (_this.scale >= actualSizeScale) {
|
338
|
+
var dragAllowedAxises = _this.getDragAllowedAxises(_this.scale);
|
339
|
+
$image
|
340
|
+
.css('width', $image.get().naturalWidth + 'px')
|
341
|
+
.css('height', $image.get().naturalHeight + 'px');
|
342
|
+
_this.core.outer.addClass('lg-actual-size');
|
343
|
+
if (dragAllowedAxises.allowX && dragAllowedAxises.allowY) {
|
344
|
+
$image.addClass('reset-transition');
|
345
|
+
}
|
346
|
+
else if (dragAllowedAxises.allowX &&
|
347
|
+
!dragAllowedAxises.allowY) {
|
348
|
+
$image.addClass('reset-transition-x');
|
349
|
+
}
|
350
|
+
else if (!dragAllowedAxises.allowX &&
|
351
|
+
dragAllowedAxises.allowY) {
|
352
|
+
$image.addClass('reset-transition-y');
|
353
|
+
}
|
354
|
+
}
|
355
|
+
}, ZOOM_TRANSITION_DURATION + 50);
|
356
|
+
};
|
357
|
+
/**
|
358
|
+
* @desc apply scale3d to image and translate to image wrap
|
359
|
+
* @param {style} X,Y and scale
|
360
|
+
*/
|
361
|
+
Zoom.prototype.setZoomStyles = function (style) {
|
362
|
+
var $imageWrap = this.core
|
363
|
+
.getSlideItem(this.core.index)
|
364
|
+
.find('.lg-img-wrap')
|
365
|
+
.first();
|
366
|
+
var $image = this.core
|
367
|
+
.getSlideItem(this.core.index)
|
368
|
+
.find('.lg-image')
|
369
|
+
.first();
|
370
|
+
var $dummyImage = this.core.outer
|
371
|
+
.find('.lg-current .lg-dummy-img')
|
372
|
+
.first();
|
373
|
+
this.scale = style.scale;
|
374
|
+
$image.css('transform', 'scale3d(' + style.scale + ', ' + style.scale + ', 1)');
|
375
|
+
$dummyImage.css('transform', 'scale3d(' + style.scale + ', ' + style.scale + ', 1)');
|
376
|
+
var transform = 'translate3d(' + style.x + 'px, ' + style.y + 'px, 0)';
|
377
|
+
$imageWrap.css('transform', transform);
|
378
|
+
};
|
379
|
+
/**
|
380
|
+
* @param index - Index of the current slide
|
381
|
+
* @param event - event will be available only if the function is called on clicking/taping the imags
|
382
|
+
*/
|
383
|
+
Zoom.prototype.setActualSize = function (index, event) {
|
384
|
+
var _this = this;
|
385
|
+
if (this.zoomInProgress) {
|
386
|
+
return;
|
387
|
+
}
|
388
|
+
this.zoomInProgress = true;
|
389
|
+
var currentItem = this.core.galleryItems[this.core.index];
|
390
|
+
this.resetImageTranslate(index);
|
391
|
+
setTimeout(function () {
|
392
|
+
// Allow zoom only on image
|
393
|
+
if (!currentItem.src ||
|
394
|
+
_this.core.outer.hasClass('lg-first-slide-loading')) {
|
395
|
+
return;
|
396
|
+
}
|
397
|
+
var scale = _this.getCurrentImageActualSizeScale();
|
398
|
+
var prevScale = _this.scale;
|
399
|
+
if (_this.core.outer.hasClass('lg-zoomed')) {
|
400
|
+
_this.scale = 1;
|
401
|
+
}
|
402
|
+
else {
|
403
|
+
_this.scale = _this.getScale(scale);
|
404
|
+
}
|
405
|
+
_this.setPageCords(event);
|
406
|
+
_this.beginZoom(_this.scale);
|
407
|
+
_this.zoomImage(_this.scale, _this.scale - prevScale, true, true);
|
408
|
+
}, 50);
|
409
|
+
setTimeout(function () {
|
410
|
+
_this.core.outer.removeClass('lg-grabbing').addClass('lg-grab');
|
411
|
+
}, 60);
|
412
|
+
setTimeout(function () {
|
413
|
+
_this.zoomInProgress = false;
|
414
|
+
}, ZOOM_TRANSITION_DURATION + 110);
|
415
|
+
};
|
416
|
+
Zoom.prototype.getNaturalWidth = function (index) {
|
417
|
+
var $image = this.core.getSlideItem(index).find('.lg-image').first();
|
418
|
+
var naturalWidth = this.core.galleryItems[index].width;
|
419
|
+
return naturalWidth
|
420
|
+
? parseFloat(naturalWidth)
|
421
|
+
: $image.get().naturalWidth;
|
422
|
+
};
|
423
|
+
Zoom.prototype.getActualSizeScale = function (naturalWidth, width) {
|
424
|
+
var _scale;
|
425
|
+
var scale;
|
426
|
+
if (naturalWidth >= width) {
|
427
|
+
_scale = naturalWidth / width;
|
428
|
+
scale = _scale || 2;
|
429
|
+
}
|
430
|
+
else {
|
431
|
+
scale = 1;
|
432
|
+
}
|
433
|
+
return scale;
|
434
|
+
};
|
435
|
+
Zoom.prototype.getCurrentImageActualSizeScale = function () {
|
436
|
+
var $image = this.core
|
437
|
+
.getSlideItem(this.core.index)
|
438
|
+
.find('.lg-image')
|
439
|
+
.first();
|
440
|
+
var width = $image.get().offsetWidth;
|
441
|
+
var naturalWidth = this.getNaturalWidth(this.core.index) || width;
|
442
|
+
return this.getActualSizeScale(naturalWidth, width);
|
443
|
+
};
|
444
|
+
Zoom.prototype.getPageCords = function (event) {
|
445
|
+
var cords = {};
|
446
|
+
if (event) {
|
447
|
+
cords.x = event.pageX || event.touches[0].pageX;
|
448
|
+
cords.y = event.pageY || event.touches[0].pageY;
|
449
|
+
}
|
450
|
+
else {
|
451
|
+
var containerRect = this.core.$content
|
452
|
+
.get()
|
453
|
+
.getBoundingClientRect();
|
454
|
+
cords.x = containerRect.width / 2 + containerRect.left;
|
455
|
+
cords.y =
|
456
|
+
containerRect.height / 2 + this.scrollTop + containerRect.top;
|
457
|
+
}
|
458
|
+
return cords;
|
459
|
+
};
|
460
|
+
Zoom.prototype.setPageCords = function (event) {
|
461
|
+
var pageCords = this.getPageCords(event);
|
462
|
+
this.pageX = pageCords.x;
|
463
|
+
this.pageY = pageCords.y;
|
464
|
+
};
|
465
|
+
Zoom.prototype.manageActualPixelClassNames = function () {
|
466
|
+
var $actualSize = this.core.getElementById('lg-actual-size');
|
467
|
+
$actualSize
|
468
|
+
.removeClass(this.settings.actualSizeIcons.zoomIn)
|
469
|
+
.addClass(this.settings.actualSizeIcons.zoomOut);
|
470
|
+
};
|
471
|
+
// If true, zoomed - in else zoomed out
|
472
|
+
Zoom.prototype.beginZoom = function (scale) {
|
473
|
+
this.core.outer.removeClass('lg-zoom-drag-transition lg-zoom-dragging');
|
474
|
+
if (scale > 1) {
|
475
|
+
this.core.outer.addClass('lg-zoomed');
|
476
|
+
this.manageActualPixelClassNames();
|
477
|
+
}
|
478
|
+
else {
|
479
|
+
this.resetZoom();
|
480
|
+
}
|
481
|
+
return scale > 1;
|
482
|
+
};
|
483
|
+
Zoom.prototype.getScale = function (scale) {
|
484
|
+
var actualSizeScale = this.getCurrentImageActualSizeScale();
|
485
|
+
if (scale < 1) {
|
486
|
+
scale = 1;
|
487
|
+
}
|
488
|
+
else if (scale > actualSizeScale) {
|
489
|
+
scale = actualSizeScale;
|
490
|
+
}
|
491
|
+
return scale;
|
492
|
+
};
|
493
|
+
Zoom.prototype.init = function () {
|
494
|
+
var _this = this;
|
495
|
+
if (!this.settings.zoom) {
|
496
|
+
return;
|
497
|
+
}
|
498
|
+
this.buildTemplates();
|
499
|
+
this.enableZoomOnSlideItemLoad();
|
500
|
+
var tapped = null;
|
501
|
+
this.core.outer.on('dblclick.lg', function (event) {
|
502
|
+
if (!_this.$LG(event.target).hasClass('lg-image')) {
|
503
|
+
return;
|
504
|
+
}
|
505
|
+
_this.setActualSize(_this.core.index, event);
|
506
|
+
});
|
507
|
+
this.core.outer.on('touchstart.lg', function (event) {
|
508
|
+
var $target = _this.$LG(event.target);
|
509
|
+
if (event.touches.length === 1 && $target.hasClass('lg-image')) {
|
510
|
+
if (!tapped) {
|
511
|
+
tapped = setTimeout(function () {
|
512
|
+
tapped = null;
|
513
|
+
}, 300);
|
514
|
+
}
|
515
|
+
else {
|
516
|
+
clearTimeout(tapped);
|
517
|
+
tapped = null;
|
518
|
+
event.preventDefault();
|
519
|
+
_this.setActualSize(_this.core.index, event);
|
520
|
+
}
|
521
|
+
}
|
522
|
+
});
|
523
|
+
this.core.LGel.on(lGEvents.containerResize + ".zoom " + lGEvents.rotateRight + ".zoom " + lGEvents.rotateLeft + ".zoom " + lGEvents.flipHorizontal + ".zoom " + lGEvents.flipVertical + ".zoom", function () {
|
524
|
+
if (!_this.core.lgOpened ||
|
525
|
+
!_this.isImageSlide(_this.core.index) ||
|
526
|
+
_this.core.touchAction) {
|
527
|
+
return;
|
528
|
+
}
|
529
|
+
var _LGel = _this.core
|
530
|
+
.getSlideItem(_this.core.index)
|
531
|
+
.find('.lg-img-wrap')
|
532
|
+
.first();
|
533
|
+
_this.top = 0;
|
534
|
+
_this.left = 0;
|
535
|
+
_this.setZoomEssentials();
|
536
|
+
_this.setZoomSwipeStyles(_LGel, { x: 0, y: 0 });
|
537
|
+
_this.positionChanged = true;
|
538
|
+
});
|
539
|
+
// Update zoom on resize and orientationchange
|
540
|
+
this.$LG(window).on("scroll.lg.zoom.global" + this.core.lgId, function () {
|
541
|
+
if (!_this.core.lgOpened)
|
542
|
+
return;
|
543
|
+
_this.scrollTop = _this.$LG(window).scrollTop();
|
544
|
+
});
|
545
|
+
this.core.getElementById('lg-zoom-out').on('click.lg', function () {
|
546
|
+
// Allow zoom only on image
|
547
|
+
if (!_this.isImageSlide(_this.core.index)) {
|
548
|
+
return;
|
549
|
+
}
|
550
|
+
var timeout = 0;
|
551
|
+
if (_this.imageReset) {
|
552
|
+
_this.resetImageTranslate(_this.core.index);
|
553
|
+
timeout = 50;
|
554
|
+
}
|
555
|
+
setTimeout(function () {
|
556
|
+
var scale = _this.scale - _this.settings.scale;
|
557
|
+
if (scale < 1) {
|
558
|
+
scale = 1;
|
559
|
+
}
|
560
|
+
_this.beginZoom(scale);
|
561
|
+
_this.zoomImage(scale, -_this.settings.scale, true, !_this.settings.infiniteZoom);
|
562
|
+
}, timeout);
|
563
|
+
});
|
564
|
+
this.core.getElementById('lg-zoom-in').on('click.lg', function () {
|
565
|
+
_this.zoomIn();
|
566
|
+
});
|
567
|
+
this.core.getElementById('lg-actual-size').on('click.lg', function () {
|
568
|
+
_this.setActualSize(_this.core.index);
|
569
|
+
});
|
570
|
+
this.core.LGel.on(lGEvents.beforeOpen + ".zoom", function () {
|
571
|
+
_this.core.outer.find('.lg-item').removeClass('lg-zoomable');
|
572
|
+
});
|
573
|
+
this.core.LGel.on(lGEvents.afterOpen + ".zoom", function () {
|
574
|
+
_this.scrollTop = _this.$LG(window).scrollTop();
|
575
|
+
// Set the initial value center
|
576
|
+
_this.pageX = _this.core.outer.width() / 2;
|
577
|
+
_this.pageY = _this.core.outer.height() / 2 + _this.scrollTop;
|
578
|
+
_this.scale = 1;
|
579
|
+
});
|
580
|
+
// Reset zoom on slide change
|
581
|
+
this.core.LGel.on(lGEvents.afterSlide + ".zoom", function (event) {
|
582
|
+
var prevIndex = event.detail.prevIndex;
|
583
|
+
_this.scale = 1;
|
584
|
+
_this.positionChanged = false;
|
585
|
+
_this.zoomInProgress = false;
|
586
|
+
_this.resetZoom(prevIndex);
|
587
|
+
_this.resetImageTranslate(prevIndex);
|
588
|
+
if (_this.isImageSlide(_this.core.index)) {
|
589
|
+
_this.setZoomEssentials();
|
590
|
+
}
|
591
|
+
});
|
592
|
+
// Drag option after zoom
|
593
|
+
this.zoomDrag();
|
594
|
+
this.pinchZoom();
|
595
|
+
this.zoomSwipe();
|
596
|
+
// Store the zoomable timeout value just to clear it while closing
|
597
|
+
this.zoomableTimeout = false;
|
598
|
+
this.positionChanged = false;
|
599
|
+
this.zoomInProgress = false;
|
600
|
+
};
|
601
|
+
Zoom.prototype.zoomIn = function () {
|
602
|
+
// Allow zoom only on image
|
603
|
+
if (!this.isImageSlide(this.core.index)) {
|
604
|
+
return;
|
605
|
+
}
|
606
|
+
var scale = this.scale + this.settings.scale;
|
607
|
+
if (!this.settings.infiniteZoom) {
|
608
|
+
scale = this.getScale(scale);
|
609
|
+
}
|
610
|
+
this.beginZoom(scale);
|
611
|
+
this.zoomImage(scale, Math.min(this.settings.scale, scale - this.scale), true, !this.settings.infiniteZoom);
|
612
|
+
};
|
613
|
+
// Reset zoom effect
|
614
|
+
Zoom.prototype.resetZoom = function (index) {
|
615
|
+
this.core.outer.removeClass('lg-zoomed lg-zoom-drag-transition');
|
616
|
+
var $actualSize = this.core.getElementById('lg-actual-size');
|
617
|
+
var $item = this.core.getSlideItem(index !== undefined ? index : this.core.index);
|
618
|
+
$actualSize
|
619
|
+
.removeClass(this.settings.actualSizeIcons.zoomOut)
|
620
|
+
.addClass(this.settings.actualSizeIcons.zoomIn);
|
621
|
+
$item.find('.lg-img-wrap').first().removeAttr('style');
|
622
|
+
$item.find('.lg-image').first().removeAttr('style');
|
623
|
+
this.scale = 1;
|
624
|
+
this.left = 0;
|
625
|
+
this.top = 0;
|
626
|
+
// Reset pagx pagy values to center
|
627
|
+
this.setPageCords();
|
628
|
+
};
|
629
|
+
Zoom.prototype.getTouchDistance = function (e) {
|
630
|
+
return Math.sqrt((e.touches[0].pageX - e.touches[1].pageX) *
|
631
|
+
(e.touches[0].pageX - e.touches[1].pageX) +
|
632
|
+
(e.touches[0].pageY - e.touches[1].pageY) *
|
633
|
+
(e.touches[0].pageY - e.touches[1].pageY));
|
634
|
+
};
|
635
|
+
Zoom.prototype.pinchZoom = function () {
|
636
|
+
var _this = this;
|
637
|
+
var startDist = 0;
|
638
|
+
var pinchStarted = false;
|
639
|
+
var initScale = 1;
|
640
|
+
var prevScale = 0;
|
641
|
+
var $item = this.core.getSlideItem(this.core.index);
|
642
|
+
this.core.outer.on('touchstart.lg', function (e) {
|
643
|
+
$item = _this.core.getSlideItem(_this.core.index);
|
644
|
+
if (!_this.isImageSlide(_this.core.index)) {
|
645
|
+
return;
|
646
|
+
}
|
647
|
+
if (e.touches.length === 2) {
|
648
|
+
e.preventDefault();
|
649
|
+
if (_this.core.outer.hasClass('lg-first-slide-loading')) {
|
650
|
+
return;
|
651
|
+
}
|
652
|
+
initScale = _this.scale || 1;
|
653
|
+
_this.core.outer.removeClass('lg-zoom-drag-transition lg-zoom-dragging');
|
654
|
+
_this.setPageCords(e);
|
655
|
+
_this.resetImageTranslate(_this.core.index);
|
656
|
+
_this.core.touchAction = 'pinch';
|
657
|
+
startDist = _this.getTouchDistance(e);
|
658
|
+
}
|
659
|
+
});
|
660
|
+
this.core.$inner.on('touchmove.lg', function (e) {
|
661
|
+
if (e.touches.length === 2 &&
|
662
|
+
_this.core.touchAction === 'pinch' &&
|
663
|
+
(_this.$LG(e.target).hasClass('lg-item') ||
|
664
|
+
$item.get().contains(e.target))) {
|
665
|
+
e.preventDefault();
|
666
|
+
var endDist = _this.getTouchDistance(e);
|
667
|
+
var distance = startDist - endDist;
|
668
|
+
if (!pinchStarted && Math.abs(distance) > 5) {
|
669
|
+
pinchStarted = true;
|
670
|
+
}
|
671
|
+
if (pinchStarted) {
|
672
|
+
prevScale = _this.scale;
|
673
|
+
var _scale = Math.max(1, initScale + -distance * 0.02);
|
674
|
+
_this.scale =
|
675
|
+
Math.round((_scale + Number.EPSILON) * 100) / 100;
|
676
|
+
var diff = _this.scale - prevScale;
|
677
|
+
_this.zoomImage(_this.scale, Math.round((diff + Number.EPSILON) * 100) / 100, false, false);
|
678
|
+
}
|
679
|
+
}
|
680
|
+
});
|
681
|
+
this.core.$inner.on('touchend.lg', function (e) {
|
682
|
+
if (_this.core.touchAction === 'pinch' &&
|
683
|
+
(_this.$LG(e.target).hasClass('lg-item') ||
|
684
|
+
$item.get().contains(e.target))) {
|
685
|
+
pinchStarted = false;
|
686
|
+
startDist = 0;
|
687
|
+
if (_this.scale <= 1) {
|
688
|
+
_this.resetZoom();
|
689
|
+
}
|
690
|
+
else {
|
691
|
+
var actualSizeScale = _this.getCurrentImageActualSizeScale();
|
692
|
+
if (_this.scale >= actualSizeScale) {
|
693
|
+
var scaleDiff = actualSizeScale - _this.scale;
|
694
|
+
if (scaleDiff === 0) {
|
695
|
+
scaleDiff = 0.01;
|
696
|
+
}
|
697
|
+
_this.zoomImage(actualSizeScale, scaleDiff, false, true);
|
698
|
+
}
|
699
|
+
_this.manageActualPixelClassNames();
|
700
|
+
_this.core.outer.addClass('lg-zoomed');
|
701
|
+
}
|
702
|
+
_this.core.touchAction = undefined;
|
703
|
+
}
|
704
|
+
});
|
705
|
+
};
|
706
|
+
Zoom.prototype.touchendZoom = function (startCoords, endCoords, allowX, allowY, touchDuration) {
|
707
|
+
var distanceXnew = endCoords.x - startCoords.x;
|
708
|
+
var distanceYnew = endCoords.y - startCoords.y;
|
709
|
+
var speedX = Math.abs(distanceXnew) / touchDuration + 1;
|
710
|
+
var speedY = Math.abs(distanceYnew) / touchDuration + 1;
|
711
|
+
if (speedX > 2) {
|
712
|
+
speedX += 1;
|
713
|
+
}
|
714
|
+
if (speedY > 2) {
|
715
|
+
speedY += 1;
|
716
|
+
}
|
717
|
+
distanceXnew = distanceXnew * speedX;
|
718
|
+
distanceYnew = distanceYnew * speedY;
|
719
|
+
var _LGel = this.core
|
720
|
+
.getSlideItem(this.core.index)
|
721
|
+
.find('.lg-img-wrap')
|
722
|
+
.first();
|
723
|
+
var distance = {};
|
724
|
+
distance.x = this.left + distanceXnew;
|
725
|
+
distance.y = this.top + distanceYnew;
|
726
|
+
var possibleSwipeCords = this.getPossibleSwipeDragCords();
|
727
|
+
if (Math.abs(distanceXnew) > 15 || Math.abs(distanceYnew) > 15) {
|
728
|
+
if (allowY) {
|
729
|
+
if (this.isBeyondPossibleTop(distance.y, possibleSwipeCords.minY)) {
|
730
|
+
distance.y = possibleSwipeCords.minY;
|
731
|
+
}
|
732
|
+
else if (this.isBeyondPossibleBottom(distance.y, possibleSwipeCords.maxY)) {
|
733
|
+
distance.y = possibleSwipeCords.maxY;
|
734
|
+
}
|
735
|
+
}
|
736
|
+
if (allowX) {
|
737
|
+
if (this.isBeyondPossibleLeft(distance.x, possibleSwipeCords.minX)) {
|
738
|
+
distance.x = possibleSwipeCords.minX;
|
739
|
+
}
|
740
|
+
else if (this.isBeyondPossibleRight(distance.x, possibleSwipeCords.maxX)) {
|
741
|
+
distance.x = possibleSwipeCords.maxX;
|
742
|
+
}
|
743
|
+
}
|
744
|
+
if (allowY) {
|
745
|
+
this.top = distance.y;
|
746
|
+
}
|
747
|
+
else {
|
748
|
+
distance.y = this.top;
|
749
|
+
}
|
750
|
+
if (allowX) {
|
751
|
+
this.left = distance.x;
|
752
|
+
}
|
753
|
+
else {
|
754
|
+
distance.x = this.left;
|
755
|
+
}
|
756
|
+
this.setZoomSwipeStyles(_LGel, distance);
|
757
|
+
this.positionChanged = true;
|
758
|
+
}
|
759
|
+
};
|
760
|
+
Zoom.prototype.getZoomSwipeCords = function (startCoords, endCoords, allowX, allowY, possibleSwipeCords) {
|
761
|
+
var distance = {};
|
762
|
+
if (allowY) {
|
763
|
+
distance.y = this.top + (endCoords.y - startCoords.y);
|
764
|
+
if (this.isBeyondPossibleTop(distance.y, possibleSwipeCords.minY)) {
|
765
|
+
var diffMinY = possibleSwipeCords.minY - distance.y;
|
766
|
+
distance.y = possibleSwipeCords.minY - diffMinY / 6;
|
767
|
+
}
|
768
|
+
else if (this.isBeyondPossibleBottom(distance.y, possibleSwipeCords.maxY)) {
|
769
|
+
var diffMaxY = distance.y - possibleSwipeCords.maxY;
|
770
|
+
distance.y = possibleSwipeCords.maxY + diffMaxY / 6;
|
771
|
+
}
|
772
|
+
}
|
773
|
+
else {
|
774
|
+
distance.y = this.top;
|
775
|
+
}
|
776
|
+
if (allowX) {
|
777
|
+
distance.x = this.left + (endCoords.x - startCoords.x);
|
778
|
+
if (this.isBeyondPossibleLeft(distance.x, possibleSwipeCords.minX)) {
|
779
|
+
var diffMinX = possibleSwipeCords.minX - distance.x;
|
780
|
+
distance.x = possibleSwipeCords.minX - diffMinX / 6;
|
781
|
+
}
|
782
|
+
else if (this.isBeyondPossibleRight(distance.x, possibleSwipeCords.maxX)) {
|
783
|
+
var difMaxX = distance.x - possibleSwipeCords.maxX;
|
784
|
+
distance.x = possibleSwipeCords.maxX + difMaxX / 6;
|
785
|
+
}
|
786
|
+
}
|
787
|
+
else {
|
788
|
+
distance.x = this.left;
|
789
|
+
}
|
790
|
+
return distance;
|
791
|
+
};
|
792
|
+
Zoom.prototype.isBeyondPossibleLeft = function (x, minX) {
|
793
|
+
return x >= minX;
|
794
|
+
};
|
795
|
+
Zoom.prototype.isBeyondPossibleRight = function (x, maxX) {
|
796
|
+
return x <= maxX;
|
797
|
+
};
|
798
|
+
Zoom.prototype.isBeyondPossibleTop = function (y, minY) {
|
799
|
+
return y >= minY;
|
800
|
+
};
|
801
|
+
Zoom.prototype.isBeyondPossibleBottom = function (y, maxY) {
|
802
|
+
return y <= maxY;
|
803
|
+
};
|
804
|
+
Zoom.prototype.isImageSlide = function (index) {
|
805
|
+
var currentItem = this.core.galleryItems[index];
|
806
|
+
return this.core.getSlideType(currentItem) === 'image';
|
807
|
+
};
|
808
|
+
Zoom.prototype.getPossibleSwipeDragCords = function (scale) {
|
809
|
+
var $image = this.core
|
810
|
+
.getSlideItem(this.core.index)
|
811
|
+
.find('.lg-image')
|
812
|
+
.first();
|
813
|
+
var bottom = this.core.mediaContainerPosition.bottom;
|
814
|
+
var imgRect = $image.get().getBoundingClientRect();
|
815
|
+
var imageHeight = imgRect.height;
|
816
|
+
var imageWidth = imgRect.width;
|
817
|
+
if (scale) {
|
818
|
+
imageHeight = imageHeight + scale * imageHeight;
|
819
|
+
imageWidth = imageWidth + scale * imageWidth;
|
820
|
+
}
|
821
|
+
var minY = (imageHeight - this.containerRect.height) / 2;
|
822
|
+
var maxY = (this.containerRect.height - imageHeight) / 2 + bottom;
|
823
|
+
var minX = (imageWidth - this.containerRect.width) / 2;
|
824
|
+
var maxX = (this.containerRect.width - imageWidth) / 2;
|
825
|
+
var possibleSwipeCords = {
|
826
|
+
minY: minY,
|
827
|
+
maxY: maxY,
|
828
|
+
minX: minX,
|
829
|
+
maxX: maxX,
|
830
|
+
};
|
831
|
+
return possibleSwipeCords;
|
832
|
+
};
|
833
|
+
Zoom.prototype.setZoomSwipeStyles = function (LGel, distance) {
|
834
|
+
LGel.css('transform', 'translate3d(' + distance.x + 'px, ' + distance.y + 'px, 0)');
|
835
|
+
};
|
836
|
+
Zoom.prototype.zoomSwipe = function () {
|
837
|
+
var _this = this;
|
838
|
+
var startCoords = {};
|
839
|
+
var endCoords = {};
|
840
|
+
var isMoved = false;
|
841
|
+
// Allow x direction drag
|
842
|
+
var allowX = false;
|
843
|
+
// Allow Y direction drag
|
844
|
+
var allowY = false;
|
845
|
+
var startTime = new Date();
|
846
|
+
var endTime = new Date();
|
847
|
+
var possibleSwipeCords;
|
848
|
+
var _LGel;
|
849
|
+
var $item = this.core.getSlideItem(this.core.index);
|
850
|
+
this.core.$inner.on('touchstart.lg', function (e) {
|
851
|
+
// Allow zoom only on image
|
852
|
+
if (!_this.isImageSlide(_this.core.index)) {
|
853
|
+
return;
|
854
|
+
}
|
855
|
+
$item = _this.core.getSlideItem(_this.core.index);
|
856
|
+
if ((_this.$LG(e.target).hasClass('lg-item') ||
|
857
|
+
$item.get().contains(e.target)) &&
|
858
|
+
e.touches.length === 1 &&
|
859
|
+
_this.core.outer.hasClass('lg-zoomed')) {
|
860
|
+
e.preventDefault();
|
861
|
+
startTime = new Date();
|
862
|
+
_this.core.touchAction = 'zoomSwipe';
|
863
|
+
_LGel = _this.core
|
864
|
+
.getSlideItem(_this.core.index)
|
865
|
+
.find('.lg-img-wrap')
|
866
|
+
.first();
|
867
|
+
var dragAllowedAxises = _this.getDragAllowedAxises(0);
|
868
|
+
allowY = dragAllowedAxises.allowY;
|
869
|
+
allowX = dragAllowedAxises.allowX;
|
870
|
+
if (allowX || allowY) {
|
871
|
+
startCoords = _this.getSwipeCords(e);
|
872
|
+
}
|
873
|
+
possibleSwipeCords = _this.getPossibleSwipeDragCords();
|
874
|
+
// reset opacity and transition duration
|
875
|
+
_this.core.outer.addClass('lg-zoom-dragging lg-zoom-drag-transition');
|
876
|
+
}
|
877
|
+
});
|
878
|
+
this.core.$inner.on('touchmove.lg', function (e) {
|
879
|
+
if (e.touches.length === 1 &&
|
880
|
+
_this.core.touchAction === 'zoomSwipe' &&
|
881
|
+
(_this.$LG(e.target).hasClass('lg-item') ||
|
882
|
+
$item.get().contains(e.target))) {
|
883
|
+
e.preventDefault();
|
884
|
+
_this.core.touchAction = 'zoomSwipe';
|
885
|
+
endCoords = _this.getSwipeCords(e);
|
886
|
+
var distance = _this.getZoomSwipeCords(startCoords, endCoords, allowX, allowY, possibleSwipeCords);
|
887
|
+
if (Math.abs(endCoords.x - startCoords.x) > 15 ||
|
888
|
+
Math.abs(endCoords.y - startCoords.y) > 15) {
|
889
|
+
isMoved = true;
|
890
|
+
_this.setZoomSwipeStyles(_LGel, distance);
|
891
|
+
}
|
892
|
+
}
|
893
|
+
});
|
894
|
+
this.core.$inner.on('touchend.lg', function (e) {
|
895
|
+
if (_this.core.touchAction === 'zoomSwipe' &&
|
896
|
+
(_this.$LG(e.target).hasClass('lg-item') ||
|
897
|
+
$item.get().contains(e.target))) {
|
898
|
+
e.preventDefault();
|
899
|
+
_this.core.touchAction = undefined;
|
900
|
+
_this.core.outer.removeClass('lg-zoom-dragging');
|
901
|
+
if (!isMoved) {
|
902
|
+
return;
|
903
|
+
}
|
904
|
+
isMoved = false;
|
905
|
+
endTime = new Date();
|
906
|
+
var touchDuration = endTime.valueOf() - startTime.valueOf();
|
907
|
+
_this.touchendZoom(startCoords, endCoords, allowX, allowY, touchDuration);
|
908
|
+
}
|
909
|
+
});
|
910
|
+
};
|
911
|
+
Zoom.prototype.zoomDrag = function () {
|
912
|
+
var _this = this;
|
913
|
+
var startCoords = {};
|
914
|
+
var endCoords = {};
|
915
|
+
var isDragging = false;
|
916
|
+
var isMoved = false;
|
917
|
+
// Allow x direction drag
|
918
|
+
var allowX = false;
|
919
|
+
// Allow Y direction drag
|
920
|
+
var allowY = false;
|
921
|
+
var startTime;
|
922
|
+
var endTime;
|
923
|
+
var possibleSwipeCords;
|
924
|
+
var _LGel;
|
925
|
+
this.core.outer.on('mousedown.lg.zoom', function (e) {
|
926
|
+
// Allow zoom only on image
|
927
|
+
if (!_this.isImageSlide(_this.core.index)) {
|
928
|
+
return;
|
929
|
+
}
|
930
|
+
var $item = _this.core.getSlideItem(_this.core.index);
|
931
|
+
if (_this.$LG(e.target).hasClass('lg-item') ||
|
932
|
+
$item.get().contains(e.target)) {
|
933
|
+
startTime = new Date();
|
934
|
+
_LGel = _this.core
|
935
|
+
.getSlideItem(_this.core.index)
|
936
|
+
.find('.lg-img-wrap')
|
937
|
+
.first();
|
938
|
+
var dragAllowedAxises = _this.getDragAllowedAxises(0);
|
939
|
+
allowY = dragAllowedAxises.allowY;
|
940
|
+
allowX = dragAllowedAxises.allowX;
|
941
|
+
if (_this.core.outer.hasClass('lg-zoomed')) {
|
942
|
+
if (_this.$LG(e.target).hasClass('lg-object') &&
|
943
|
+
(allowX || allowY)) {
|
944
|
+
e.preventDefault();
|
945
|
+
startCoords = _this.getDragCords(e);
|
946
|
+
possibleSwipeCords = _this.getPossibleSwipeDragCords();
|
947
|
+
isDragging = true;
|
948
|
+
_this.core.outer
|
949
|
+
.removeClass('lg-grab')
|
950
|
+
.addClass('lg-grabbing lg-zoom-drag-transition lg-zoom-dragging');
|
951
|
+
// reset opacity and transition duration
|
952
|
+
}
|
953
|
+
}
|
954
|
+
}
|
955
|
+
});
|
956
|
+
this.$LG(window).on("mousemove.lg.zoom.global" + this.core.lgId, function (e) {
|
957
|
+
if (isDragging) {
|
958
|
+
isMoved = true;
|
959
|
+
endCoords = _this.getDragCords(e);
|
960
|
+
var distance = _this.getZoomSwipeCords(startCoords, endCoords, allowX, allowY, possibleSwipeCords);
|
961
|
+
_this.setZoomSwipeStyles(_LGel, distance);
|
962
|
+
}
|
963
|
+
});
|
964
|
+
this.$LG(window).on("mouseup.lg.zoom.global" + this.core.lgId, function (e) {
|
965
|
+
if (isDragging) {
|
966
|
+
endTime = new Date();
|
967
|
+
isDragging = false;
|
968
|
+
_this.core.outer.removeClass('lg-zoom-dragging');
|
969
|
+
// Fix for chrome mouse move on click
|
970
|
+
if (isMoved &&
|
971
|
+
(startCoords.x !== endCoords.x ||
|
972
|
+
startCoords.y !== endCoords.y)) {
|
973
|
+
endCoords = _this.getDragCords(e);
|
974
|
+
var touchDuration = endTime.valueOf() - startTime.valueOf();
|
975
|
+
_this.touchendZoom(startCoords, endCoords, allowX, allowY, touchDuration);
|
976
|
+
}
|
977
|
+
isMoved = false;
|
978
|
+
}
|
979
|
+
_this.core.outer.removeClass('lg-grabbing').addClass('lg-grab');
|
980
|
+
});
|
981
|
+
};
|
982
|
+
Zoom.prototype.closeGallery = function () {
|
983
|
+
this.resetZoom();
|
984
|
+
this.zoomInProgress = false;
|
985
|
+
};
|
986
|
+
Zoom.prototype.destroy = function () {
|
987
|
+
// Unbind all events added by lightGallery zoom plugin
|
988
|
+
this.$LG(window).off(".lg.zoom.global" + this.core.lgId);
|
989
|
+
this.core.LGel.off('.lg.zoom');
|
990
|
+
this.core.LGel.off('.zoom');
|
991
|
+
clearTimeout(this.zoomableTimeout);
|
992
|
+
this.zoomableTimeout = false;
|
993
|
+
};
|
994
|
+
return Zoom;
|
995
|
+
}());
|
996
|
+
|
997
|
+
return Zoom;
|
998
|
+
|
999
|
+
})));
|