j1-template 2023.9.2 → 2023.10.1
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 +324 -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 +99 -92
- 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 +873 -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 +13 -7
- data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +19 -15
- data/lib/starter_web/_plugins/asciidoctor/google-ad-block.rb +10 -5
- data/lib/starter_web/_plugins/asciidoctor/iconify-icon-inline.rb +8 -5
- data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +24 -18
- 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 +12 -6
- 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 +11 -6
- 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/images/modules/attics/1920x1280/isaac-davis.jpg +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/collections/posts/public/featured/_posts/2023-10-18-url-types.adoc +98 -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 +266 -65
- 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 +595 -632
- 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 +3093 -3093
- 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 +172 -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
@@ -1,1362 +0,0 @@
|
|
1
|
-
/*! lightgallery - v1.6.12 - 2019-02-19
|
2
|
-
* http://sachinchoolur.github.io/lightGallery/
|
3
|
-
* Copyright (C) 2022 Sachin N; Licensed GPLv3 */
|
4
|
-
|
5
|
-
!(function (root, factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
// AMD. Register as an anonymous module unless amdModuleId is set
|
8
|
-
define(['jquery'], function (a0) {
|
9
|
-
return (factory(a0));
|
10
|
-
});
|
11
|
-
} else if (typeof module === 'object' && module.exports) {
|
12
|
-
// Node. Does not work with strict CommonJS, but
|
13
|
-
// only CommonJS-like environments that support module.exports,
|
14
|
-
// like Node.
|
15
|
-
module.exports = factory(require('jquery'));
|
16
|
-
} else {
|
17
|
-
factory(root["jQuery"]);
|
18
|
-
}
|
19
|
-
}(this, function ($) {
|
20
|
-
|
21
|
-
(function() {
|
22
|
-
'use strict';
|
23
|
-
|
24
|
-
var defaults = {
|
25
|
-
|
26
|
-
mode: 'lg-slide',
|
27
|
-
|
28
|
-
// Ex : 'ease'
|
29
|
-
cssEasing: 'ease',
|
30
|
-
|
31
|
-
//'for jquery animation'
|
32
|
-
easing: 'linear',
|
33
|
-
speed: 600,
|
34
|
-
height: '100%',
|
35
|
-
width: '100%',
|
36
|
-
addClass: '',
|
37
|
-
startClass: 'lg-start-zoom',
|
38
|
-
backdropDuration: 150,
|
39
|
-
hideBarsDelay: 6000,
|
40
|
-
|
41
|
-
useLeft: false,
|
42
|
-
|
43
|
-
closable: true,
|
44
|
-
loop: true,
|
45
|
-
escKey: true,
|
46
|
-
keyPress: true,
|
47
|
-
controls: true,
|
48
|
-
slideEndAnimatoin: true,
|
49
|
-
hideControlOnEnd: false,
|
50
|
-
mousewheel: true,
|
51
|
-
|
52
|
-
getCaptionFromTitleOrAlt: true,
|
53
|
-
|
54
|
-
// .lg-item || '.lg-sub-html'
|
55
|
-
appendSubHtmlTo: '.lg-sub-html',
|
56
|
-
|
57
|
-
subHtmlSelectorRelative: false,
|
58
|
-
|
59
|
-
/**
|
60
|
-
* @desc number of preload slides
|
61
|
-
* will exicute only after the current slide is fully loaded.
|
62
|
-
*
|
63
|
-
* @ex you clicked on 4th image and if preload = 1 then 3rd slide and 5th
|
64
|
-
* slide will be loaded in the background after the 4th slide is fully loaded..
|
65
|
-
* if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.. ... ...
|
66
|
-
*
|
67
|
-
*/
|
68
|
-
preload: 1,
|
69
|
-
showAfterLoad: true,
|
70
|
-
selector: '',
|
71
|
-
selectWithin: '',
|
72
|
-
nextHtml: '',
|
73
|
-
prevHtml: '',
|
74
|
-
|
75
|
-
// 0, 1
|
76
|
-
index: false,
|
77
|
-
|
78
|
-
iframeMaxWidth: '100%',
|
79
|
-
|
80
|
-
download: true,
|
81
|
-
counter: true,
|
82
|
-
appendCounterTo: '.lg-toolbar',
|
83
|
-
|
84
|
-
swipeThreshold: 50,
|
85
|
-
enableSwipe: true,
|
86
|
-
enableDrag: true,
|
87
|
-
|
88
|
-
dynamic: false,
|
89
|
-
dynamicEl: [],
|
90
|
-
galleryId: 1
|
91
|
-
};
|
92
|
-
|
93
|
-
function Plugin(element, options) {
|
94
|
-
|
95
|
-
// Current lightGallery element
|
96
|
-
this.el = element;
|
97
|
-
|
98
|
-
// Current jquery element
|
99
|
-
this.$el = $(element);
|
100
|
-
|
101
|
-
// lightGallery settings
|
102
|
-
this.s = $.extend({}, defaults, options);
|
103
|
-
|
104
|
-
// When using dynamic mode, ensure dynamicEl is an array
|
105
|
-
if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) {
|
106
|
-
throw ('When using dynamic mode, you must also define dynamicEl as an Array.');
|
107
|
-
}
|
108
|
-
|
109
|
-
// lightGallery modules
|
110
|
-
this.modules = {};
|
111
|
-
|
112
|
-
// false when lightgallery complete first slide;
|
113
|
-
this.lGalleryOn = false;
|
114
|
-
|
115
|
-
this.lgBusy = false;
|
116
|
-
|
117
|
-
// Timeout function for hiding controls;
|
118
|
-
this.hideBartimeout = false;
|
119
|
-
|
120
|
-
// To determine browser supports for touch events;
|
121
|
-
this.isTouch = ('ontouchstart' in document.documentElement);
|
122
|
-
|
123
|
-
// Disable hideControlOnEnd if sildeEndAnimation is true
|
124
|
-
if (this.s.slideEndAnimatoin) {
|
125
|
-
this.s.hideControlOnEnd = false;
|
126
|
-
}
|
127
|
-
|
128
|
-
// Gallery items
|
129
|
-
if (this.s.dynamic) {
|
130
|
-
this.$items = this.s.dynamicEl;
|
131
|
-
} else {
|
132
|
-
if (this.s.selector === 'this') {
|
133
|
-
this.$items = this.$el;
|
134
|
-
} else if (this.s.selector !== '') {
|
135
|
-
if (this.s.selectWithin) {
|
136
|
-
this.$items = $(this.s.selectWithin).find(this.s.selector);
|
137
|
-
} else {
|
138
|
-
this.$items = this.$el.find($(this.s.selector));
|
139
|
-
}
|
140
|
-
} else {
|
141
|
-
this.$items = this.$el.children();
|
142
|
-
}
|
143
|
-
}
|
144
|
-
|
145
|
-
// .lg-item
|
146
|
-
this.$slide = '';
|
147
|
-
|
148
|
-
// .lg-outer
|
149
|
-
this.$outer = '';
|
150
|
-
|
151
|
-
this.init();
|
152
|
-
|
153
|
-
return this;
|
154
|
-
}
|
155
|
-
|
156
|
-
Plugin.prototype.init = function() {
|
157
|
-
|
158
|
-
var _this = this;
|
159
|
-
|
160
|
-
// s.preload should not be more than $item.length
|
161
|
-
if (_this.s.preload > _this.$items.length) {
|
162
|
-
_this.s.preload = _this.$items.length;
|
163
|
-
}
|
164
|
-
|
165
|
-
// if dynamic option is enabled execute immediately
|
166
|
-
var _hash = window.location.hash;
|
167
|
-
if (_hash.indexOf('lg=' + this.s.galleryId) > 0) {
|
168
|
-
|
169
|
-
_this.index = parseInt(_hash.split('&slide=')[1], 10);
|
170
|
-
|
171
|
-
$('body').addClass('lg-from-hash');
|
172
|
-
if (!$('body').hasClass('lg-on')) {
|
173
|
-
setTimeout(function() {
|
174
|
-
_this.build(_this.index);
|
175
|
-
});
|
176
|
-
|
177
|
-
$('body').addClass('lg-on');
|
178
|
-
}
|
179
|
-
}
|
180
|
-
|
181
|
-
if (_this.s.dynamic) {
|
182
|
-
|
183
|
-
_this.$el.trigger('onBeforeOpen.lg');
|
184
|
-
|
185
|
-
_this.index = _this.s.index || 0;
|
186
|
-
|
187
|
-
// prevent accidental double execution
|
188
|
-
if (!$('body').hasClass('lg-on')) {
|
189
|
-
setTimeout(function() {
|
190
|
-
_this.build(_this.index);
|
191
|
-
$('body').addClass('lg-on');
|
192
|
-
});
|
193
|
-
}
|
194
|
-
} else {
|
195
|
-
|
196
|
-
// Using different namespace for click because click event should not unbind if selector is same object('this')
|
197
|
-
_this.$items.on('click.lgcustom', function(event) {
|
198
|
-
|
199
|
-
// For IE8
|
200
|
-
try {
|
201
|
-
event.preventDefault();
|
202
|
-
event.preventDefault();
|
203
|
-
} catch (er) {
|
204
|
-
event.returnValue = false;
|
205
|
-
}
|
206
|
-
|
207
|
-
_this.$el.trigger('onBeforeOpen.lg');
|
208
|
-
|
209
|
-
_this.index = _this.s.index || _this.$items.index(this);
|
210
|
-
|
211
|
-
// prevent accidental double execution
|
212
|
-
if (!$('body').hasClass('lg-on')) {
|
213
|
-
_this.build(_this.index);
|
214
|
-
$('body').addClass('lg-on');
|
215
|
-
}
|
216
|
-
});
|
217
|
-
}
|
218
|
-
|
219
|
-
};
|
220
|
-
|
221
|
-
Plugin.prototype.build = function(index) {
|
222
|
-
|
223
|
-
var _this = this;
|
224
|
-
|
225
|
-
_this.structure();
|
226
|
-
|
227
|
-
// module constructor
|
228
|
-
$.each($.fn.lightGallery.modules, function(key) {
|
229
|
-
_this.modules[key] = new $.fn.lightGallery.modules[key](_this.el);
|
230
|
-
});
|
231
|
-
|
232
|
-
// initiate slide function
|
233
|
-
_this.slide(index, false, false, false);
|
234
|
-
|
235
|
-
if (_this.s.keyPress) {
|
236
|
-
_this.keyPress();
|
237
|
-
}
|
238
|
-
|
239
|
-
if (_this.$items.length > 1) {
|
240
|
-
|
241
|
-
_this.arrow();
|
242
|
-
|
243
|
-
setTimeout(function() {
|
244
|
-
_this.enableDrag();
|
245
|
-
_this.enableSwipe();
|
246
|
-
}, 50);
|
247
|
-
|
248
|
-
if (_this.s.mousewheel) {
|
249
|
-
_this.mousewheel();
|
250
|
-
}
|
251
|
-
} else {
|
252
|
-
_this.$slide.on('click.lg', function() {
|
253
|
-
_this.$el.trigger('onSlideClick.lg');
|
254
|
-
});
|
255
|
-
}
|
256
|
-
|
257
|
-
_this.counter();
|
258
|
-
|
259
|
-
_this.closeGallery();
|
260
|
-
|
261
|
-
_this.$el.trigger('onAfterOpen.lg');
|
262
|
-
|
263
|
-
// Hide controllers if mouse doesn't move for some period
|
264
|
-
_this.$outer.on('mousemove.lg click.lg touchstart.lg', function() {
|
265
|
-
|
266
|
-
_this.$outer.removeClass('lg-hide-items');
|
267
|
-
|
268
|
-
clearTimeout(_this.hideBartimeout);
|
269
|
-
|
270
|
-
// Timeout will be cleared on each slide movement also
|
271
|
-
_this.hideBartimeout = setTimeout(function() {
|
272
|
-
_this.$outer.addClass('lg-hide-items');
|
273
|
-
}, _this.s.hideBarsDelay);
|
274
|
-
|
275
|
-
});
|
276
|
-
|
277
|
-
_this.$outer.trigger('mousemove.lg');
|
278
|
-
|
279
|
-
};
|
280
|
-
|
281
|
-
Plugin.prototype.structure = function() {
|
282
|
-
var list = '';
|
283
|
-
var controls = '';
|
284
|
-
var i = 0;
|
285
|
-
var subHtmlCont = '';
|
286
|
-
var template;
|
287
|
-
var _this = this;
|
288
|
-
|
289
|
-
$('body').append('<div class="lg-backdrop"></div>');
|
290
|
-
$('.lg-backdrop').css('transition-duration', this.s.backdropDuration + 'ms');
|
291
|
-
|
292
|
-
// Create gallery items
|
293
|
-
for (i = 0; i < this.$items.length; i++) {
|
294
|
-
list += '<div class="lg-item"></div>';
|
295
|
-
}
|
296
|
-
|
297
|
-
// Create controlls
|
298
|
-
if (this.s.controls && this.$items.length > 1) {
|
299
|
-
controls = '<div class="lg-actions">' +
|
300
|
-
'<button class="lg-prev lg-icon">' + this.s.prevHtml + '</button>' +
|
301
|
-
'<button class="lg-next lg-icon">' + this.s.nextHtml + '</button>' +
|
302
|
-
'</div>';
|
303
|
-
}
|
304
|
-
|
305
|
-
if (this.s.appendSubHtmlTo === '.lg-sub-html') {
|
306
|
-
subHtmlCont = '<div class="lg-sub-html"></div>';
|
307
|
-
}
|
308
|
-
|
309
|
-
template = '<div class="lg-outer ' + this.s.addClass + ' ' + this.s.startClass + '">' +
|
310
|
-
'<div class="lg" style="width:' + this.s.width + '; height:' + this.s.height + '">' +
|
311
|
-
'<div class="lg-inner">' + list + '</div>' +
|
312
|
-
'<div class="lg-toolbar lg-group">' +
|
313
|
-
'<span class="lg-close lg-icon"></span>' +
|
314
|
-
'</div>' +
|
315
|
-
controls +
|
316
|
-
subHtmlCont +
|
317
|
-
'</div>' +
|
318
|
-
'</div>';
|
319
|
-
|
320
|
-
$('body').append(template);
|
321
|
-
this.$outer = $('.lg-outer');
|
322
|
-
this.$slide = this.$outer.find('.lg-item');
|
323
|
-
|
324
|
-
if (this.s.useLeft) {
|
325
|
-
this.$outer.addClass('lg-use-left');
|
326
|
-
|
327
|
-
// Set mode lg-slide if use left is true;
|
328
|
-
this.s.mode = 'lg-slide';
|
329
|
-
} else {
|
330
|
-
this.$outer.addClass('lg-use-css3');
|
331
|
-
}
|
332
|
-
|
333
|
-
// For fixed height gallery
|
334
|
-
_this.setTop();
|
335
|
-
$(window).on('resize.lg orientationchange.lg', function() {
|
336
|
-
setTimeout(function() {
|
337
|
-
_this.setTop();
|
338
|
-
}, 100);
|
339
|
-
});
|
340
|
-
|
341
|
-
// add class lg-current to remove initial transition
|
342
|
-
this.$slide.eq(this.index).addClass('lg-current');
|
343
|
-
|
344
|
-
// add Class for css support and transition mode
|
345
|
-
if (this.doCss()) {
|
346
|
-
this.$outer.addClass('lg-css3');
|
347
|
-
} else {
|
348
|
-
this.$outer.addClass('lg-css');
|
349
|
-
|
350
|
-
// Set speed 0 because no animation will happen if browser doesn't support css3
|
351
|
-
this.s.speed = 0;
|
352
|
-
}
|
353
|
-
|
354
|
-
this.$outer.addClass(this.s.mode);
|
355
|
-
|
356
|
-
if (this.s.enableDrag && this.$items.length > 1) {
|
357
|
-
this.$outer.addClass('lg-grab');
|
358
|
-
}
|
359
|
-
|
360
|
-
if (this.s.showAfterLoad) {
|
361
|
-
this.$outer.addClass('lg-show-after-load');
|
362
|
-
}
|
363
|
-
|
364
|
-
if (this.doCss()) {
|
365
|
-
var $inner = this.$outer.find('.lg-inner');
|
366
|
-
$inner.css('transition-timing-function', this.s.cssEasing);
|
367
|
-
$inner.css('transition-duration', this.s.speed + 'ms');
|
368
|
-
}
|
369
|
-
|
370
|
-
setTimeout(function() {
|
371
|
-
$('.lg-backdrop').addClass('in');
|
372
|
-
});
|
373
|
-
|
374
|
-
setTimeout(function() {
|
375
|
-
_this.$outer.addClass('lg-visible');
|
376
|
-
}, this.s.backdropDuration);
|
377
|
-
|
378
|
-
if (this.s.download) {
|
379
|
-
this.$outer.find('.lg-toolbar').append('<a id="lg-download" target="_blank" download class="link-no-decoration lg-download lg-icon"></a>');
|
380
|
-
}
|
381
|
-
|
382
|
-
// Store the current scroll top value to scroll back after closing the gallery..
|
383
|
-
this.prevScrollTop = $(window).scrollTop();
|
384
|
-
|
385
|
-
};
|
386
|
-
|
387
|
-
// For fixed height gallery
|
388
|
-
Plugin.prototype.setTop = function() {
|
389
|
-
if (this.s.height !== '100%') {
|
390
|
-
var wH = $(window).height();
|
391
|
-
var top = (wH - parseInt(this.s.height, 10)) / 2;
|
392
|
-
var $lGallery = this.$outer.find('.lg');
|
393
|
-
if (wH >= parseInt(this.s.height, 10)) {
|
394
|
-
$lGallery.css('top', top + 'px');
|
395
|
-
} else {
|
396
|
-
$lGallery.css('top', '0px');
|
397
|
-
}
|
398
|
-
}
|
399
|
-
};
|
400
|
-
|
401
|
-
// Find css3 support
|
402
|
-
Plugin.prototype.doCss = function() {
|
403
|
-
// check for css animation support
|
404
|
-
var support = function() {
|
405
|
-
var transition = ['transition', 'MozTransition', 'WebkitTransition', 'OTransition', 'msTransition', 'KhtmlTransition'];
|
406
|
-
var root = document.documentElement;
|
407
|
-
var i = 0;
|
408
|
-
for (i = 0; i < transition.length; i++) {
|
409
|
-
if (transition[i] in root.style) {
|
410
|
-
return true;
|
411
|
-
}
|
412
|
-
}
|
413
|
-
};
|
414
|
-
|
415
|
-
if (support()) {
|
416
|
-
return true;
|
417
|
-
}
|
418
|
-
|
419
|
-
return false;
|
420
|
-
};
|
421
|
-
|
422
|
-
/**
|
423
|
-
* @desc Check the given src is video
|
424
|
-
* @param {String} src
|
425
|
-
* @return {Object} video type
|
426
|
-
* Ex:{ youtube : ["//www.youtube.com/watch?v=c0asJgSyxcY", "c0asJgSyxcY"] }
|
427
|
-
*/
|
428
|
-
Plugin.prototype.isVideo = function(src, index) {
|
429
|
-
|
430
|
-
var html;
|
431
|
-
if (this.s.dynamic) {
|
432
|
-
html = this.s.dynamicEl[index].html;
|
433
|
-
} else {
|
434
|
-
html = this.$items.eq(index).attr('data-html');
|
435
|
-
}
|
436
|
-
|
437
|
-
if (!src) {
|
438
|
-
if(html) {
|
439
|
-
return {
|
440
|
-
html5: true
|
441
|
-
};
|
442
|
-
} else {
|
443
|
-
console.error('lightGallery :- data-src is not pvovided on slide item ' + (index + 1) + '. Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html');
|
444
|
-
return false;
|
445
|
-
}
|
446
|
-
}
|
447
|
-
|
448
|
-
var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i);
|
449
|
-
var vimeo = src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);
|
450
|
-
var dailymotion = src.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i);
|
451
|
-
var vk = src.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);
|
452
|
-
|
453
|
-
if (youtube) {
|
454
|
-
return {
|
455
|
-
youtube: youtube
|
456
|
-
};
|
457
|
-
} else if (vimeo) {
|
458
|
-
return {
|
459
|
-
vimeo: vimeo
|
460
|
-
};
|
461
|
-
} else if (dailymotion) {
|
462
|
-
return {
|
463
|
-
dailymotion: dailymotion
|
464
|
-
};
|
465
|
-
} else if (vk) {
|
466
|
-
return {
|
467
|
-
vk: vk
|
468
|
-
};
|
469
|
-
}
|
470
|
-
};
|
471
|
-
|
472
|
-
/**
|
473
|
-
* @desc Create image counter
|
474
|
-
* Ex: 1/10
|
475
|
-
*/
|
476
|
-
Plugin.prototype.counter = function() {
|
477
|
-
if (this.s.counter) {
|
478
|
-
$(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">' + (parseInt(this.index, 10) + 1) + '</span> / <span id="lg-counter-all">' + this.$items.length + '</span></div>');
|
479
|
-
}
|
480
|
-
};
|
481
|
-
|
482
|
-
/**
|
483
|
-
* @desc add sub-html into the slide
|
484
|
-
* @param {Number} index - index of the slide
|
485
|
-
*/
|
486
|
-
Plugin.prototype.addHtml = function(index) {
|
487
|
-
var subHtml = null;
|
488
|
-
var subHtmlUrl;
|
489
|
-
var $currentEle;
|
490
|
-
if (this.s.dynamic) {
|
491
|
-
if (this.s.dynamicEl[index].subHtmlUrl) {
|
492
|
-
subHtmlUrl = this.s.dynamicEl[index].subHtmlUrl;
|
493
|
-
} else {
|
494
|
-
subHtml = this.s.dynamicEl[index].subHtml;
|
495
|
-
}
|
496
|
-
} else {
|
497
|
-
$currentEle = this.$items.eq(index);
|
498
|
-
if ($currentEle.attr('data-sub-html-url')) {
|
499
|
-
subHtmlUrl = $currentEle.attr('data-sub-html-url');
|
500
|
-
} else {
|
501
|
-
subHtml = $currentEle.attr('data-sub-html');
|
502
|
-
if (this.s.getCaptionFromTitleOrAlt && !subHtml) {
|
503
|
-
subHtml = $currentEle.attr('title') || $currentEle.find('img').first().attr('alt');
|
504
|
-
}
|
505
|
-
}
|
506
|
-
}
|
507
|
-
|
508
|
-
if (!subHtmlUrl) {
|
509
|
-
if (typeof subHtml !== 'undefined' && subHtml !== null) {
|
510
|
-
|
511
|
-
// get first letter of subhtml
|
512
|
-
// if first letter starts with . or # get the html form the jQuery object
|
513
|
-
var fL = subHtml.substring(0, 1);
|
514
|
-
if (fL === '.' || fL === '#') {
|
515
|
-
if (this.s.subHtmlSelectorRelative && !this.s.dynamic) {
|
516
|
-
subHtml = $currentEle.find(subHtml).html();
|
517
|
-
} else {
|
518
|
-
subHtml = $(subHtml).html();
|
519
|
-
}
|
520
|
-
}
|
521
|
-
} else {
|
522
|
-
subHtml = '';
|
523
|
-
}
|
524
|
-
}
|
525
|
-
|
526
|
-
if (this.s.appendSubHtmlTo === '.lg-sub-html') {
|
527
|
-
|
528
|
-
if (subHtmlUrl) {
|
529
|
-
this.$outer.find(this.s.appendSubHtmlTo).load(subHtmlUrl);
|
530
|
-
} else {
|
531
|
-
this.$outer.find(this.s.appendSubHtmlTo).html(subHtml);
|
532
|
-
}
|
533
|
-
|
534
|
-
} else {
|
535
|
-
|
536
|
-
if (subHtmlUrl) {
|
537
|
-
this.$slide.eq(index).load(subHtmlUrl);
|
538
|
-
} else {
|
539
|
-
this.$slide.eq(index).append(subHtml);
|
540
|
-
}
|
541
|
-
}
|
542
|
-
|
543
|
-
// Add lg-empty-html class if title doesn't exist
|
544
|
-
if (typeof subHtml !== 'undefined' && subHtml !== null) {
|
545
|
-
if (subHtml === '') {
|
546
|
-
this.$outer.find(this.s.appendSubHtmlTo).addClass('lg-empty-html');
|
547
|
-
} else {
|
548
|
-
this.$outer.find(this.s.appendSubHtmlTo).removeClass('lg-empty-html');
|
549
|
-
}
|
550
|
-
}
|
551
|
-
|
552
|
-
this.$el.trigger('onAfterAppendSubHtml.lg', [index]);
|
553
|
-
};
|
554
|
-
|
555
|
-
/**
|
556
|
-
* @desc Preload slides
|
557
|
-
* @param {Number} index - index of the slide
|
558
|
-
*/
|
559
|
-
Plugin.prototype.preload = function(index) {
|
560
|
-
var i = 1;
|
561
|
-
var j = 1;
|
562
|
-
for (i = 1; i <= this.s.preload; i++) {
|
563
|
-
if (i >= this.$items.length - index) {
|
564
|
-
break;
|
565
|
-
}
|
566
|
-
|
567
|
-
this.loadContent(index + i, false, 0);
|
568
|
-
}
|
569
|
-
|
570
|
-
for (j = 1; j <= this.s.preload; j++) {
|
571
|
-
if (index - j < 0) {
|
572
|
-
break;
|
573
|
-
}
|
574
|
-
|
575
|
-
this.loadContent(index - j, false, 0);
|
576
|
-
}
|
577
|
-
};
|
578
|
-
|
579
|
-
/**
|
580
|
-
* @desc Load slide content into slide.
|
581
|
-
* @param {Number} index - index of the slide.
|
582
|
-
* @param {Boolean} rec - if true call loadcontent() function again.
|
583
|
-
* @param {Boolean} delay - delay for adding complete class. it is 0 except first time.
|
584
|
-
*/
|
585
|
-
Plugin.prototype.loadContent = function(index, rec, delay) {
|
586
|
-
|
587
|
-
var _this = this;
|
588
|
-
var _hasPoster = false;
|
589
|
-
var _$img;
|
590
|
-
var _src;
|
591
|
-
var _poster;
|
592
|
-
var _srcset;
|
593
|
-
var _sizes;
|
594
|
-
var _html;
|
595
|
-
var getResponsiveSrc = function(srcItms) {
|
596
|
-
var rsWidth = [];
|
597
|
-
var rsSrc = [];
|
598
|
-
for (var i = 0; i < srcItms.length; i++) {
|
599
|
-
var __src = srcItms[i].split(' ');
|
600
|
-
|
601
|
-
// Manage empty space
|
602
|
-
if (__src[0] === '') {
|
603
|
-
__src.splice(0, 1);
|
604
|
-
}
|
605
|
-
|
606
|
-
rsSrc.push(__src[0]);
|
607
|
-
rsWidth.push(__src[1]);
|
608
|
-
}
|
609
|
-
|
610
|
-
var wWidth = $(window).width();
|
611
|
-
for (var j = 0; j < rsWidth.length; j++) {
|
612
|
-
if (parseInt(rsWidth[j], 10) > wWidth) {
|
613
|
-
_src = rsSrc[j];
|
614
|
-
break;
|
615
|
-
}
|
616
|
-
}
|
617
|
-
};
|
618
|
-
|
619
|
-
if (_this.s.dynamic) {
|
620
|
-
|
621
|
-
if (_this.s.dynamicEl[index].poster) {
|
622
|
-
_hasPoster = true;
|
623
|
-
_poster = _this.s.dynamicEl[index].poster;
|
624
|
-
}
|
625
|
-
|
626
|
-
_html = _this.s.dynamicEl[index].html;
|
627
|
-
_src = _this.s.dynamicEl[index].src;
|
628
|
-
|
629
|
-
if (_this.s.dynamicEl[index].responsive) {
|
630
|
-
var srcDyItms = _this.s.dynamicEl[index].responsive.split(',');
|
631
|
-
getResponsiveSrc(srcDyItms);
|
632
|
-
}
|
633
|
-
|
634
|
-
_srcset = _this.s.dynamicEl[index].srcset;
|
635
|
-
_sizes = _this.s.dynamicEl[index].sizes;
|
636
|
-
|
637
|
-
} else {
|
638
|
-
|
639
|
-
if (_this.$items.eq(index).attr('data-poster')) {
|
640
|
-
_hasPoster = true;
|
641
|
-
_poster = _this.$items.eq(index).attr('data-poster');
|
642
|
-
}
|
643
|
-
|
644
|
-
_html = _this.$items.eq(index).attr('data-html');
|
645
|
-
_src = _this.$items.eq(index).attr('href') || _this.$items.eq(index).attr('data-src');
|
646
|
-
|
647
|
-
if (_this.$items.eq(index).attr('data-responsive')) {
|
648
|
-
var srcItms = _this.$items.eq(index).attr('data-responsive').split(',');
|
649
|
-
getResponsiveSrc(srcItms);
|
650
|
-
}
|
651
|
-
|
652
|
-
_srcset = _this.$items.eq(index).attr('data-srcset');
|
653
|
-
_sizes = _this.$items.eq(index).attr('data-sizes');
|
654
|
-
|
655
|
-
}
|
656
|
-
|
657
|
-
//if (_src || _srcset || _sizes || _poster) {
|
658
|
-
|
659
|
-
var iframe = false;
|
660
|
-
if (_this.s.dynamic) {
|
661
|
-
if (_this.s.dynamicEl[index].iframe) {
|
662
|
-
iframe = true;
|
663
|
-
}
|
664
|
-
} else {
|
665
|
-
if (_this.$items.eq(index).attr('data-iframe') === 'true') {
|
666
|
-
iframe = true;
|
667
|
-
}
|
668
|
-
}
|
669
|
-
|
670
|
-
var _isVideo = _this.isVideo(_src, index);
|
671
|
-
if (!_this.$slide.eq(index).hasClass('lg-loaded')) {
|
672
|
-
if (iframe) {
|
673
|
-
_this.$slide.eq(index).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:' + _this.s.iframeMaxWidth + '"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="' + _src + '" allowfullscreen="true"></iframe></div></div>');
|
674
|
-
} else if (_hasPoster) {
|
675
|
-
var videoClass = '';
|
676
|
-
if (_isVideo && _isVideo.youtube) {
|
677
|
-
videoClass = 'lg-has-youtube';
|
678
|
-
} else if (_isVideo && _isVideo.vimeo) {
|
679
|
-
videoClass = 'lg-has-vimeo';
|
680
|
-
} else {
|
681
|
-
videoClass = 'lg-has-html5';
|
682
|
-
}
|
683
|
-
|
684
|
-
_this.$slide.eq(index).prepend('<div class="lg-video-cont ' + videoClass + ' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="' + _poster + '"></div></div>');
|
685
|
-
|
686
|
-
} else if (_isVideo) {
|
687
|
-
_this.$slide.eq(index).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>');
|
688
|
-
_this.$el.trigger('hasVideo.lg', [index, _src, _html]);
|
689
|
-
} else {
|
690
|
-
_this.$slide.eq(index).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="' + _src + '"></div>');
|
691
|
-
}
|
692
|
-
|
693
|
-
_this.$el.trigger('onAferAppendSlide.lg', [index]);
|
694
|
-
|
695
|
-
_$img = _this.$slide.eq(index).find('.lg-object');
|
696
|
-
if (_sizes) {
|
697
|
-
_$img.attr('sizes', _sizes);
|
698
|
-
}
|
699
|
-
|
700
|
-
if (_srcset) {
|
701
|
-
_$img.attr('srcset', _srcset);
|
702
|
-
try {
|
703
|
-
picturefill({
|
704
|
-
elements: [_$img[0]]
|
705
|
-
});
|
706
|
-
} catch (e) {
|
707
|
-
console.warn('lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.');
|
708
|
-
}
|
709
|
-
}
|
710
|
-
|
711
|
-
if (this.s.appendSubHtmlTo !== '.lg-sub-html') {
|
712
|
-
_this.addHtml(index);
|
713
|
-
}
|
714
|
-
|
715
|
-
_this.$slide.eq(index).addClass('lg-loaded');
|
716
|
-
}
|
717
|
-
|
718
|
-
_this.$slide.eq(index).find('.lg-object').on('load.lg error.lg', function() {
|
719
|
-
|
720
|
-
// For first time add some delay for displaying the start animation.
|
721
|
-
var _speed = 0;
|
722
|
-
|
723
|
-
// Do not change the delay value because it is required for zoom plugin.
|
724
|
-
// If gallery opened from direct url (hash) speed value should be 0
|
725
|
-
if (delay && !$('body').hasClass('lg-from-hash')) {
|
726
|
-
_speed = delay;
|
727
|
-
}
|
728
|
-
|
729
|
-
setTimeout(function() {
|
730
|
-
_this.$slide.eq(index).addClass('lg-complete');
|
731
|
-
_this.$el.trigger('onSlideItemLoad.lg', [index, delay || 0]);
|
732
|
-
}, _speed);
|
733
|
-
|
734
|
-
});
|
735
|
-
|
736
|
-
// @todo check load state for html5 videos
|
737
|
-
if (_isVideo && _isVideo.html5 && !_hasPoster) {
|
738
|
-
_this.$slide.eq(index).addClass('lg-complete');
|
739
|
-
}
|
740
|
-
|
741
|
-
if (rec === true) {
|
742
|
-
if (!_this.$slide.eq(index).hasClass('lg-complete')) {
|
743
|
-
_this.$slide.eq(index).find('.lg-object').on('load.lg error.lg', function() {
|
744
|
-
_this.preload(index);
|
745
|
-
});
|
746
|
-
} else {
|
747
|
-
_this.preload(index);
|
748
|
-
}
|
749
|
-
}
|
750
|
-
|
751
|
-
//}
|
752
|
-
};
|
753
|
-
|
754
|
-
/**
|
755
|
-
* @desc slide function for lightgallery
|
756
|
-
** Slide() gets call on start
|
757
|
-
** ** Set lg.on true once slide() function gets called.
|
758
|
-
** Call loadContent() on slide() function inside setTimeout
|
759
|
-
** ** On first slide we do not want any animation like slide of fade
|
760
|
-
** ** So on first slide( if lg.on if false that is first slide) loadContent() should start loading immediately
|
761
|
-
** ** Else loadContent() should wait for the transition to complete.
|
762
|
-
** ** So set timeout s.speed + 50
|
763
|
-
<=> ** loadContent() will load slide content in to the particular slide
|
764
|
-
** ** It has recursion (rec) parameter. if rec === true loadContent() will call preload() function.
|
765
|
-
** ** preload will execute only when the previous slide is fully loaded (images iframe)
|
766
|
-
** ** avoid simultaneous image load
|
767
|
-
<=> ** Preload() will check for s.preload value and call loadContent() again accoring to preload value
|
768
|
-
** loadContent() <====> Preload();
|
769
|
-
|
770
|
-
* @param {Number} index - index of the slide
|
771
|
-
* @param {Boolean} fromTouch - true if slide function called via touch event or mouse drag
|
772
|
-
* @param {Boolean} fromThumb - true if slide function called via thumbnail click
|
773
|
-
* @param {String} direction - Direction of the slide(next/prev)
|
774
|
-
*/
|
775
|
-
Plugin.prototype.slide = function(index, fromTouch, fromThumb, direction) {
|
776
|
-
|
777
|
-
var _prevIndex = this.$outer.find('.lg-current').index();
|
778
|
-
var _this = this;
|
779
|
-
|
780
|
-
// Prevent if multiple call
|
781
|
-
// Required for hsh plugin
|
782
|
-
if (_this.lGalleryOn && (_prevIndex === index)) {
|
783
|
-
return;
|
784
|
-
}
|
785
|
-
|
786
|
-
var _length = this.$slide.length;
|
787
|
-
var _time = _this.lGalleryOn ? this.s.speed : 0;
|
788
|
-
|
789
|
-
if (!_this.lgBusy) {
|
790
|
-
|
791
|
-
if (this.s.download) {
|
792
|
-
var _src;
|
793
|
-
if (_this.s.dynamic) {
|
794
|
-
_src = _this.s.dynamicEl[index].downloadUrl !== false && (_this.s.dynamicEl[index].downloadUrl || _this.s.dynamicEl[index].src);
|
795
|
-
} else {
|
796
|
-
_src = _this.$items.eq(index).attr('data-download-url') !== 'false' && (_this.$items.eq(index).attr('data-download-url') || _this.$items.eq(index).attr('href') || _this.$items.eq(index).attr('data-src'));
|
797
|
-
|
798
|
-
}
|
799
|
-
|
800
|
-
if (_src) {
|
801
|
-
$('#lg-download').attr('href', _src);
|
802
|
-
_this.$outer.removeClass('lg-hide-download');
|
803
|
-
} else {
|
804
|
-
_this.$outer.addClass('lg-hide-download');
|
805
|
-
}
|
806
|
-
}
|
807
|
-
|
808
|
-
this.$el.trigger('onBeforeSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
|
809
|
-
|
810
|
-
_this.lgBusy = true;
|
811
|
-
|
812
|
-
clearTimeout(_this.hideBartimeout);
|
813
|
-
|
814
|
-
// Add title if this.s.appendSubHtmlTo === lg-sub-html
|
815
|
-
if (this.s.appendSubHtmlTo === '.lg-sub-html') {
|
816
|
-
|
817
|
-
// wait for slide animation to complete
|
818
|
-
setTimeout(function() {
|
819
|
-
_this.addHtml(index);
|
820
|
-
}, _time);
|
821
|
-
}
|
822
|
-
|
823
|
-
this.arrowDisable(index);
|
824
|
-
|
825
|
-
if (!direction) {
|
826
|
-
if (index < _prevIndex) {
|
827
|
-
direction = 'prev';
|
828
|
-
} else if (index > _prevIndex) {
|
829
|
-
direction = 'next';
|
830
|
-
}
|
831
|
-
}
|
832
|
-
|
833
|
-
if (!fromTouch) {
|
834
|
-
|
835
|
-
// remove all transitions
|
836
|
-
_this.$outer.addClass('lg-no-trans');
|
837
|
-
|
838
|
-
this.$slide.removeClass('lg-prev-slide lg-next-slide');
|
839
|
-
|
840
|
-
if (direction === 'prev') {
|
841
|
-
|
842
|
-
//prevslide
|
843
|
-
this.$slide.eq(index).addClass('lg-prev-slide');
|
844
|
-
this.$slide.eq(_prevIndex).addClass('lg-next-slide');
|
845
|
-
} else {
|
846
|
-
|
847
|
-
// next slide
|
848
|
-
this.$slide.eq(index).addClass('lg-next-slide');
|
849
|
-
this.$slide.eq(_prevIndex).addClass('lg-prev-slide');
|
850
|
-
}
|
851
|
-
|
852
|
-
// give 50 ms for browser to add/remove class
|
853
|
-
setTimeout(function() {
|
854
|
-
_this.$slide.removeClass('lg-current');
|
855
|
-
|
856
|
-
//_this.$slide.eq(_prevIndex).removeClass('lg-current');
|
857
|
-
_this.$slide.eq(index).addClass('lg-current');
|
858
|
-
|
859
|
-
// reset all transitions
|
860
|
-
_this.$outer.removeClass('lg-no-trans');
|
861
|
-
}, 50);
|
862
|
-
} else {
|
863
|
-
|
864
|
-
this.$slide.removeClass('lg-prev-slide lg-current lg-next-slide');
|
865
|
-
var touchPrev;
|
866
|
-
var touchNext;
|
867
|
-
if (_length > 2) {
|
868
|
-
touchPrev = index - 1;
|
869
|
-
touchNext = index + 1;
|
870
|
-
|
871
|
-
if ((index === 0) && (_prevIndex === _length - 1)) {
|
872
|
-
|
873
|
-
// next slide
|
874
|
-
touchNext = 0;
|
875
|
-
touchPrev = _length - 1;
|
876
|
-
} else if ((index === _length - 1) && (_prevIndex === 0)) {
|
877
|
-
|
878
|
-
// prev slide
|
879
|
-
touchNext = 0;
|
880
|
-
touchPrev = _length - 1;
|
881
|
-
}
|
882
|
-
|
883
|
-
} else {
|
884
|
-
touchPrev = 0;
|
885
|
-
touchNext = 1;
|
886
|
-
}
|
887
|
-
|
888
|
-
if (direction === 'prev') {
|
889
|
-
_this.$slide.eq(touchNext).addClass('lg-next-slide');
|
890
|
-
} else {
|
891
|
-
_this.$slide.eq(touchPrev).addClass('lg-prev-slide');
|
892
|
-
}
|
893
|
-
|
894
|
-
_this.$slide.eq(index).addClass('lg-current');
|
895
|
-
}
|
896
|
-
|
897
|
-
if (_this.lGalleryOn) {
|
898
|
-
setTimeout(function() {
|
899
|
-
_this.loadContent(index, true, 0);
|
900
|
-
}, this.s.speed + 50);
|
901
|
-
|
902
|
-
setTimeout(function() {
|
903
|
-
_this.lgBusy = false;
|
904
|
-
_this.$el.trigger('onAfterSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
|
905
|
-
}, this.s.speed);
|
906
|
-
|
907
|
-
} else {
|
908
|
-
_this.loadContent(index, true, _this.s.backdropDuration);
|
909
|
-
|
910
|
-
_this.lgBusy = false;
|
911
|
-
_this.$el.trigger('onAfterSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
|
912
|
-
}
|
913
|
-
|
914
|
-
_this.lGalleryOn = true;
|
915
|
-
|
916
|
-
if (this.s.counter) {
|
917
|
-
$('#lg-counter-current').text(index + 1);
|
918
|
-
}
|
919
|
-
|
920
|
-
}
|
921
|
-
_this.index = index;
|
922
|
-
|
923
|
-
};
|
924
|
-
|
925
|
-
/**
|
926
|
-
* @desc Go to next slide
|
927
|
-
* @param {Boolean} fromTouch - true if slide function called via touch event
|
928
|
-
*/
|
929
|
-
Plugin.prototype.goToNextSlide = function(fromTouch) {
|
930
|
-
var _this = this;
|
931
|
-
var _loop = _this.s.loop;
|
932
|
-
if (fromTouch && _this.$slide.length < 3) {
|
933
|
-
_loop = false;
|
934
|
-
}
|
935
|
-
|
936
|
-
if (!_this.lgBusy) {
|
937
|
-
if ((_this.index + 1) < _this.$slide.length) {
|
938
|
-
_this.index++;
|
939
|
-
_this.$el.trigger('onBeforeNextSlide.lg', [_this.index]);
|
940
|
-
_this.slide(_this.index, fromTouch, false, 'next');
|
941
|
-
} else {
|
942
|
-
if (_loop) {
|
943
|
-
_this.index = 0;
|
944
|
-
_this.$el.trigger('onBeforeNextSlide.lg', [_this.index]);
|
945
|
-
_this.slide(_this.index, fromTouch, false, 'next');
|
946
|
-
} else if (_this.s.slideEndAnimatoin && !fromTouch) {
|
947
|
-
_this.$outer.addClass('lg-right-end');
|
948
|
-
setTimeout(function() {
|
949
|
-
_this.$outer.removeClass('lg-right-end');
|
950
|
-
}, 400);
|
951
|
-
}
|
952
|
-
}
|
953
|
-
}
|
954
|
-
};
|
955
|
-
|
956
|
-
/**
|
957
|
-
* @desc Go to previous slide
|
958
|
-
* @param {Boolean} fromTouch - true if slide function called via touch event
|
959
|
-
*/
|
960
|
-
Plugin.prototype.goToPrevSlide = function(fromTouch) {
|
961
|
-
var _this = this;
|
962
|
-
var _loop = _this.s.loop;
|
963
|
-
if (fromTouch && _this.$slide.length < 3) {
|
964
|
-
_loop = false;
|
965
|
-
}
|
966
|
-
|
967
|
-
if (!_this.lgBusy) {
|
968
|
-
if (_this.index > 0) {
|
969
|
-
_this.index--;
|
970
|
-
_this.$el.trigger('onBeforePrevSlide.lg', [_this.index, fromTouch]);
|
971
|
-
_this.slide(_this.index, fromTouch, false, 'prev');
|
972
|
-
} else {
|
973
|
-
if (_loop) {
|
974
|
-
_this.index = _this.$items.length - 1;
|
975
|
-
_this.$el.trigger('onBeforePrevSlide.lg', [_this.index, fromTouch]);
|
976
|
-
_this.slide(_this.index, fromTouch, false, 'prev');
|
977
|
-
} else if (_this.s.slideEndAnimatoin && !fromTouch) {
|
978
|
-
_this.$outer.addClass('lg-left-end');
|
979
|
-
setTimeout(function() {
|
980
|
-
_this.$outer.removeClass('lg-left-end');
|
981
|
-
}, 400);
|
982
|
-
}
|
983
|
-
}
|
984
|
-
}
|
985
|
-
};
|
986
|
-
|
987
|
-
Plugin.prototype.keyPress = function() {
|
988
|
-
var _this = this;
|
989
|
-
if (this.$items.length > 1) {
|
990
|
-
$(window).on('keyup.lg', function(e) {
|
991
|
-
if (_this.$items.length > 1) {
|
992
|
-
if (e.keyCode === 37) {
|
993
|
-
e.preventDefault();
|
994
|
-
_this.goToPrevSlide();
|
995
|
-
}
|
996
|
-
|
997
|
-
if (e.keyCode === 39) {
|
998
|
-
e.preventDefault();
|
999
|
-
_this.goToNextSlide();
|
1000
|
-
}
|
1001
|
-
}
|
1002
|
-
});
|
1003
|
-
}
|
1004
|
-
|
1005
|
-
$(window).on('keydown.lg', function(e) {
|
1006
|
-
if (_this.s.escKey === true && e.keyCode === 27) {
|
1007
|
-
e.preventDefault();
|
1008
|
-
if (!_this.$outer.hasClass('lg-thumb-open')) {
|
1009
|
-
_this.destroy();
|
1010
|
-
} else {
|
1011
|
-
_this.$outer.removeClass('lg-thumb-open');
|
1012
|
-
}
|
1013
|
-
}
|
1014
|
-
});
|
1015
|
-
};
|
1016
|
-
|
1017
|
-
Plugin.prototype.arrow = function() {
|
1018
|
-
var _this = this;
|
1019
|
-
this.$outer.find('.lg-prev').on('click.lg', function() {
|
1020
|
-
_this.goToPrevSlide();
|
1021
|
-
});
|
1022
|
-
|
1023
|
-
this.$outer.find('.lg-next').on('click.lg', function() {
|
1024
|
-
_this.goToNextSlide();
|
1025
|
-
});
|
1026
|
-
};
|
1027
|
-
|
1028
|
-
Plugin.prototype.arrowDisable = function(index) {
|
1029
|
-
|
1030
|
-
// Disable arrows if s.hideControlOnEnd is true
|
1031
|
-
if (!this.s.loop && this.s.hideControlOnEnd) {
|
1032
|
-
if ((index + 1) < this.$slide.length) {
|
1033
|
-
this.$outer.find('.lg-next').removeAttr('disabled').removeClass('disabled');
|
1034
|
-
} else {
|
1035
|
-
this.$outer.find('.lg-next').attr('disabled', 'disabled').addClass('disabled');
|
1036
|
-
}
|
1037
|
-
|
1038
|
-
if (index > 0) {
|
1039
|
-
this.$outer.find('.lg-prev').removeAttr('disabled').removeClass('disabled');
|
1040
|
-
} else {
|
1041
|
-
this.$outer.find('.lg-prev').attr('disabled', 'disabled').addClass('disabled');
|
1042
|
-
}
|
1043
|
-
}
|
1044
|
-
};
|
1045
|
-
|
1046
|
-
Plugin.prototype.setTranslate = function($el, xValue, yValue) {
|
1047
|
-
// jQuery supports Automatic CSS prefixing since jQuery 1.8.0
|
1048
|
-
if (this.s.useLeft) {
|
1049
|
-
$el.css('left', xValue);
|
1050
|
-
} else {
|
1051
|
-
$el.css({
|
1052
|
-
transform: 'translate3d(' + (xValue) + 'px, ' + yValue + 'px, 0px)'
|
1053
|
-
});
|
1054
|
-
}
|
1055
|
-
};
|
1056
|
-
|
1057
|
-
Plugin.prototype.touchMove = function(startCoords, endCoords) {
|
1058
|
-
|
1059
|
-
var distance = endCoords - startCoords;
|
1060
|
-
|
1061
|
-
if (Math.abs(distance) > 15) {
|
1062
|
-
// reset opacity and transition duration
|
1063
|
-
this.$outer.addClass('lg-dragging');
|
1064
|
-
|
1065
|
-
// move current slide
|
1066
|
-
this.setTranslate(this.$slide.eq(this.index), distance, 0);
|
1067
|
-
|
1068
|
-
// move next and prev slide with current slide
|
1069
|
-
this.setTranslate($('.lg-prev-slide'), -this.$slide.eq(this.index).width() + distance, 0);
|
1070
|
-
this.setTranslate($('.lg-next-slide'), this.$slide.eq(this.index).width() + distance, 0);
|
1071
|
-
}
|
1072
|
-
};
|
1073
|
-
|
1074
|
-
Plugin.prototype.touchEnd = function(distance) {
|
1075
|
-
var _this = this;
|
1076
|
-
|
1077
|
-
// keep slide animation for any mode while dragg/swipe
|
1078
|
-
if (_this.s.mode !== 'lg-slide') {
|
1079
|
-
_this.$outer.addClass('lg-slide');
|
1080
|
-
}
|
1081
|
-
|
1082
|
-
this.$slide.not('.lg-current, .lg-prev-slide, .lg-next-slide').css('opacity', '0');
|
1083
|
-
|
1084
|
-
// set transition duration
|
1085
|
-
setTimeout(function() {
|
1086
|
-
_this.$outer.removeClass('lg-dragging');
|
1087
|
-
if ((distance < 0) && (Math.abs(distance) > _this.s.swipeThreshold)) {
|
1088
|
-
_this.goToNextSlide(true);
|
1089
|
-
} else if ((distance > 0) && (Math.abs(distance) > _this.s.swipeThreshold)) {
|
1090
|
-
_this.goToPrevSlide(true);
|
1091
|
-
} else if (Math.abs(distance) < 5) {
|
1092
|
-
|
1093
|
-
// Trigger click if distance is less than 5 pix
|
1094
|
-
_this.$el.trigger('onSlideClick.lg');
|
1095
|
-
}
|
1096
|
-
|
1097
|
-
_this.$slide.removeAttr('style');
|
1098
|
-
});
|
1099
|
-
|
1100
|
-
// remove slide class once drag/swipe is completed if mode is not slide
|
1101
|
-
setTimeout(function() {
|
1102
|
-
if (!_this.$outer.hasClass('lg-dragging') && _this.s.mode !== 'lg-slide') {
|
1103
|
-
_this.$outer.removeClass('lg-slide');
|
1104
|
-
}
|
1105
|
-
}, _this.s.speed + 100);
|
1106
|
-
|
1107
|
-
};
|
1108
|
-
|
1109
|
-
Plugin.prototype.enableSwipe = function() {
|
1110
|
-
var _this = this;
|
1111
|
-
var startCoords = 0;
|
1112
|
-
var endCoords = 0;
|
1113
|
-
var isMoved = false;
|
1114
|
-
|
1115
|
-
if (_this.s.enableSwipe && _this.doCss()) {
|
1116
|
-
|
1117
|
-
_this.$slide.on('touchstart.lg', function(e) {
|
1118
|
-
if (!_this.$outer.hasClass('lg-zoomed') && !_this.lgBusy) {
|
1119
|
-
e.preventDefault();
|
1120
|
-
_this.manageSwipeClass();
|
1121
|
-
startCoords = e.originalEvent.targetTouches[0].pageX;
|
1122
|
-
}
|
1123
|
-
});
|
1124
|
-
|
1125
|
-
_this.$slide.on('touchmove.lg', function(e) {
|
1126
|
-
if (!_this.$outer.hasClass('lg-zoomed')) {
|
1127
|
-
e.preventDefault();
|
1128
|
-
endCoords = e.originalEvent.targetTouches[0].pageX;
|
1129
|
-
_this.touchMove(startCoords, endCoords);
|
1130
|
-
isMoved = true;
|
1131
|
-
}
|
1132
|
-
});
|
1133
|
-
|
1134
|
-
_this.$slide.on('touchend.lg', function() {
|
1135
|
-
if (!_this.$outer.hasClass('lg-zoomed')) {
|
1136
|
-
if (isMoved) {
|
1137
|
-
isMoved = false;
|
1138
|
-
_this.touchEnd(endCoords - startCoords);
|
1139
|
-
} else {
|
1140
|
-
_this.$el.trigger('onSlideClick.lg');
|
1141
|
-
}
|
1142
|
-
}
|
1143
|
-
});
|
1144
|
-
}
|
1145
|
-
|
1146
|
-
};
|
1147
|
-
|
1148
|
-
Plugin.prototype.enableDrag = function() {
|
1149
|
-
var _this = this;
|
1150
|
-
var startCoords = 0;
|
1151
|
-
var endCoords = 0;
|
1152
|
-
var isDraging = false;
|
1153
|
-
var isMoved = false;
|
1154
|
-
if (_this.s.enableDrag && _this.doCss()) {
|
1155
|
-
_this.$slide.on('mousedown.lg', function(e) {
|
1156
|
-
if (!_this.$outer.hasClass('lg-zoomed') && !_this.lgBusy && !$(e.target).text().trim()) {
|
1157
|
-
e.preventDefault();
|
1158
|
-
_this.manageSwipeClass();
|
1159
|
-
startCoords = e.pageX;
|
1160
|
-
isDraging = true;
|
1161
|
-
|
1162
|
-
// ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
|
1163
|
-
_this.$outer.scrollLeft += 1;
|
1164
|
-
_this.$outer.scrollLeft -= 1;
|
1165
|
-
|
1166
|
-
// *
|
1167
|
-
|
1168
|
-
_this.$outer.removeClass('lg-grab').addClass('lg-grabbing');
|
1169
|
-
|
1170
|
-
_this.$el.trigger('onDragstart.lg');
|
1171
|
-
}
|
1172
|
-
});
|
1173
|
-
|
1174
|
-
$(window).on('mousemove.lg', function(e) {
|
1175
|
-
if (isDraging) {
|
1176
|
-
isMoved = true;
|
1177
|
-
endCoords = e.pageX;
|
1178
|
-
_this.touchMove(startCoords, endCoords);
|
1179
|
-
_this.$el.trigger('onDragmove.lg');
|
1180
|
-
}
|
1181
|
-
});
|
1182
|
-
|
1183
|
-
$(window).on('mouseup.lg', function(e) {
|
1184
|
-
if (isMoved) {
|
1185
|
-
isMoved = false;
|
1186
|
-
_this.touchEnd(endCoords - startCoords);
|
1187
|
-
_this.$el.trigger('onDragend.lg');
|
1188
|
-
} else if ($(e.target).hasClass('lg-object') || $(e.target).hasClass('lg-video-play')) {
|
1189
|
-
_this.$el.trigger('onSlideClick.lg');
|
1190
|
-
}
|
1191
|
-
|
1192
|
-
// Prevent execution on click
|
1193
|
-
if (isDraging) {
|
1194
|
-
isDraging = false;
|
1195
|
-
_this.$outer.removeClass('lg-grabbing').addClass('lg-grab');
|
1196
|
-
}
|
1197
|
-
});
|
1198
|
-
|
1199
|
-
}
|
1200
|
-
};
|
1201
|
-
|
1202
|
-
Plugin.prototype.manageSwipeClass = function() {
|
1203
|
-
var _touchNext = this.index + 1;
|
1204
|
-
var _touchPrev = this.index - 1;
|
1205
|
-
if (this.s.loop && this.$slide.length > 2) {
|
1206
|
-
if (this.index === 0) {
|
1207
|
-
_touchPrev = this.$slide.length - 1;
|
1208
|
-
} else if (this.index === this.$slide.length - 1) {
|
1209
|
-
_touchNext = 0;
|
1210
|
-
}
|
1211
|
-
}
|
1212
|
-
|
1213
|
-
this.$slide.removeClass('lg-next-slide lg-prev-slide');
|
1214
|
-
if (_touchPrev > -1) {
|
1215
|
-
this.$slide.eq(_touchPrev).addClass('lg-prev-slide');
|
1216
|
-
}
|
1217
|
-
|
1218
|
-
this.$slide.eq(_touchNext).addClass('lg-next-slide');
|
1219
|
-
};
|
1220
|
-
|
1221
|
-
Plugin.prototype.mousewheel = function() {
|
1222
|
-
var _this = this;
|
1223
|
-
_this.$outer.on('mousewheel.lg', function(e) {
|
1224
|
-
|
1225
|
-
if (!e.deltaY) {
|
1226
|
-
return;
|
1227
|
-
}
|
1228
|
-
|
1229
|
-
if (e.deltaY > 0) {
|
1230
|
-
_this.goToPrevSlide();
|
1231
|
-
} else {
|
1232
|
-
_this.goToNextSlide();
|
1233
|
-
}
|
1234
|
-
|
1235
|
-
e.preventDefault();
|
1236
|
-
});
|
1237
|
-
|
1238
|
-
};
|
1239
|
-
|
1240
|
-
Plugin.prototype.closeGallery = function() {
|
1241
|
-
|
1242
|
-
var _this = this;
|
1243
|
-
var mousedown = false;
|
1244
|
-
this.$outer.find('.lg-close').on('click.lg', function() {
|
1245
|
-
_this.destroy();
|
1246
|
-
});
|
1247
|
-
|
1248
|
-
if (_this.s.closable) {
|
1249
|
-
|
1250
|
-
// If you drag the slide and release outside gallery gets close on chrome
|
1251
|
-
// for preventing this check mousedown and mouseup happened on .lg-item or lg-outer
|
1252
|
-
_this.$outer.on('mousedown.lg', function(e) {
|
1253
|
-
|
1254
|
-
if ($(e.target).is('.lg-outer') || $(e.target).is('.lg-item ') || $(e.target).is('.lg-img-wrap')) {
|
1255
|
-
mousedown = true;
|
1256
|
-
} else {
|
1257
|
-
mousedown = false;
|
1258
|
-
}
|
1259
|
-
|
1260
|
-
});
|
1261
|
-
|
1262
|
-
_this.$outer.on('mousemove.lg', function() {
|
1263
|
-
mousedown = false;
|
1264
|
-
});
|
1265
|
-
|
1266
|
-
_this.$outer.on('mouseup.lg', function(e) {
|
1267
|
-
|
1268
|
-
if ($(e.target).is('.lg-outer') || $(e.target).is('.lg-item ') || $(e.target).is('.lg-img-wrap') && mousedown) {
|
1269
|
-
if (!_this.$outer.hasClass('lg-dragging')) {
|
1270
|
-
_this.destroy();
|
1271
|
-
}
|
1272
|
-
}
|
1273
|
-
|
1274
|
-
});
|
1275
|
-
|
1276
|
-
}
|
1277
|
-
|
1278
|
-
};
|
1279
|
-
|
1280
|
-
Plugin.prototype.destroy = function(d) {
|
1281
|
-
|
1282
|
-
var _this = this;
|
1283
|
-
|
1284
|
-
if (!d) {
|
1285
|
-
_this.$el.trigger('onBeforeClose.lg');
|
1286
|
-
$(window).scrollTop(_this.prevScrollTop);
|
1287
|
-
}
|
1288
|
-
|
1289
|
-
|
1290
|
-
/**
|
1291
|
-
* if d is false or undefined destroy will only close the gallery
|
1292
|
-
* plugins instance remains with the element
|
1293
|
-
*
|
1294
|
-
* if d is true destroy will completely remove the plugin
|
1295
|
-
*/
|
1296
|
-
|
1297
|
-
if (d) {
|
1298
|
-
if (!_this.s.dynamic) {
|
1299
|
-
// only when not using dynamic mode is $items a jquery collection
|
1300
|
-
this.$items.off('click.lg click.lgcustom');
|
1301
|
-
}
|
1302
|
-
|
1303
|
-
$.removeData(_this.el, 'lightGallery');
|
1304
|
-
}
|
1305
|
-
|
1306
|
-
// Unbind all events added by lightGallery
|
1307
|
-
this.$el.off('.lg.tm');
|
1308
|
-
|
1309
|
-
// Distroy all lightGallery modules
|
1310
|
-
$.each($.fn.lightGallery.modules, function(key) {
|
1311
|
-
if (_this.modules[key]) {
|
1312
|
-
_this.modules[key].destroy();
|
1313
|
-
}
|
1314
|
-
});
|
1315
|
-
|
1316
|
-
this.lGalleryOn = false;
|
1317
|
-
|
1318
|
-
clearTimeout(_this.hideBartimeout);
|
1319
|
-
this.hideBartimeout = false;
|
1320
|
-
$(window).off('.lg');
|
1321
|
-
$('body').removeClass('lg-on lg-from-hash');
|
1322
|
-
|
1323
|
-
if (_this.$outer) {
|
1324
|
-
_this.$outer.removeClass('lg-visible');
|
1325
|
-
}
|
1326
|
-
|
1327
|
-
$('.lg-backdrop').removeClass('in');
|
1328
|
-
|
1329
|
-
setTimeout(function() {
|
1330
|
-
if (_this.$outer) {
|
1331
|
-
_this.$outer.remove();
|
1332
|
-
}
|
1333
|
-
|
1334
|
-
$('.lg-backdrop').remove();
|
1335
|
-
|
1336
|
-
if (!d) {
|
1337
|
-
_this.$el.trigger('onCloseAfter.lg');
|
1338
|
-
}
|
1339
|
-
|
1340
|
-
}, _this.s.backdropDuration + 50);
|
1341
|
-
};
|
1342
|
-
|
1343
|
-
$.fn.lightGallery = function(options) {
|
1344
|
-
return this.each(function() {
|
1345
|
-
if (!$.data(this, 'lightGallery')) {
|
1346
|
-
$.data(this, 'lightGallery', new Plugin(this, options));
|
1347
|
-
} else {
|
1348
|
-
try {
|
1349
|
-
$(this).data('lightGallery').init();
|
1350
|
-
} catch (err) {
|
1351
|
-
console.error('lightGallery has not initiated properly');
|
1352
|
-
}
|
1353
|
-
}
|
1354
|
-
});
|
1355
|
-
};
|
1356
|
-
|
1357
|
-
$.fn.lightGallery.modules = {};
|
1358
|
-
|
1359
|
-
})();
|
1360
|
-
|
1361
|
-
|
1362
|
-
}));
|