j1-template 2020.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +79 -0
- data/_includes/themes/j1/blocks/footer/boxes/about_box.proc +46 -0
- data/_includes/themes/j1/blocks/footer/boxes/about_box.proc.org +40 -0
- data/_includes/themes/j1/blocks/footer/boxes/contacts_box.proc +55 -0
- data/_includes/themes/j1/blocks/footer/boxes/issue.proc +38 -0
- data/_includes/themes/j1/blocks/footer/boxes/legal_statements.proc +63 -0
- data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +50 -0
- data/_includes/themes/j1/blocks/footer/boxes/news_box.proc +61 -0
- data/_includes/themes/j1/blocks/footer/boxes/social_media_icons.proc +37 -0
- data/_includes/themes/j1/blocks/footer/generator.html +145 -0
- data/_includes/themes/j1/layouts/content_generator_app.html +32 -0
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +242 -0
- data/_includes/themes/j1/layouts/content_generator_collection.html +131 -0
- data/_includes/themes/j1/layouts/content_generator_page.html +138 -0
- data/_includes/themes/j1/layouts/content_generator_post.html +228 -0
- data/_includes/themes/j1/layouts/content_generator_raw.html +33 -0
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +118 -0
- data/_includes/themes/j1/layouts/layout_module_generator.html +46 -0
- data/_includes/themes/j1/layouts/layout_resource_generator.html +49 -0
- data/_includes/themes/j1/modules/attics/generator.html +153 -0
- data/_includes/themes/j1/modules/boards/news_pin_board.html +183 -0
- data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +33 -0
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +38 -0
- data/_includes/themes/j1/modules/connectors/ads +50 -0
- data/_includes/themes/j1/modules/connectors/analytic/custom-provider.html +32 -0
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +38 -0
- data/_includes/themes/j1/modules/connectors/analytics +45 -0
- data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +31 -0
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +61 -0
- data/_includes/themes/j1/modules/connectors/comment/facebook.html +31 -0
- data/_includes/themes/j1/modules/connectors/comments +46 -0
- data/_includes/themes/j1/modules/connectors/sharing +29 -0
- data/_includes/themes/j1/modules/connectors/translator +45 -0
- data/_includes/themes/j1/modules/connectors/translators/custom-translator.html +32 -0
- data/_includes/themes/j1/modules/connectors/translators/google-translator.html +49 -0
- data/_includes/themes/j1/modules/navigator/generator.html +202 -0
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +114 -0
- data/_includes/themes/j1/modules/search/algolia.html +181 -0
- data/_includes/themes/j1/modules/search/docsearch.html +42 -0
- data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +69 -0
- data/_includes/themes/j1/procedures/global/collect_frontmatter_options.proc +60 -0
- data/_includes/themes/j1/procedures/global/collect_page_options.proc +66 -0
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +129 -0
- data/_includes/themes/j1/procedures/global/create_word_cloud.proc +95 -0
- data/_includes/themes/j1/procedures/global/get_category.proc +60 -0
- data/_includes/themes/j1/procedures/global/get_category_item.proc +80 -0
- data/_includes/themes/j1/procedures/global/get_documents_dir.proc +67 -0
- data/_includes/themes/j1/procedures/global/get_page_path.proc +69 -0
- data/_includes/themes/j1/procedures/global/get_page_url.proc +55 -0
- data/_includes/themes/j1/procedures/global/pager.proc +79 -0
- data/_includes/themes/j1/procedures/global/select_color.proc +69 -0
- data/_includes/themes/j1/procedures/global/select_font_size.proc +86 -0
- data/_includes/themes/j1/procedures/global/select_icon_size.proc +82 -0
- data/_includes/themes/j1/procedures/global/select_location.proc +119 -0
- data/_includes/themes/j1/procedures/global/set_base_vars_folders.proc +37 -0
- data/_includes/themes/j1/procedures/global/set_env_entry_document.proc +94 -0
- data/_includes/themes/j1/procedures/global/set_image_block.proc +50 -0
- data/_includes/themes/j1/procedures/global/setup.proc +53 -0
- data/_includes/themes/j1/procedures/layouts/content_writer.proc +112 -0
- data/_includes/themes/j1/procedures/layouts/default_writer.proc +162 -0
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +270 -0
- data/_includes/themes/j1/procedures/layouts/resource_writer.proc +194 -0
- data/_includes/themes/j1/procedures/posts/collate_calendar.proc +221 -0
- data/_includes/themes/j1/procedures/posts/collate_list.proc +96 -0
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +226 -0
- data/_includes/themes/j1/procedures/posts/create_ad_block.proc +56 -0
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +96 -0
- data/_layouts/app.html +68 -0
- data/_layouts/blog_archive.html +60 -0
- data/_layouts/collection.html +68 -0
- data/_layouts/compress.html +52 -0
- data/_layouts/default.html +348 -0
- data/_layouts/home.html +90 -0
- data/_layouts/page.html +68 -0
- data/_layouts/paginator/autopage_category.html +79 -0
- data/_layouts/paginator/autopage_collection.html +159 -0
- data/_layouts/paginator/autopage_collections_tags.html +87 -0
- data/_layouts/paginator/autopage_tags.html +79 -0
- data/_layouts/post.html +68 -0
- data/_layouts/raw.html +71 -0
- data/assets/README.md +0 -0
- data/assets/data/authclient.html +373 -0
- data/assets/data/banner.html +432 -0
- data/assets/data/carousel.json +109 -0
- data/assets/data/colors.json +42 -0
- data/assets/data/cookie_consent.html +223 -0
- data/assets/data/font_sizes.json +42 -0
- data/assets/data/footer.html +238 -0
- data/assets/data/galleries.json +127 -0
- data/assets/data/gallery_customizer.html +150 -0
- data/assets/data/jupyter/notebooks/_html/template.full.head.html +75 -0
- data/assets/data/jupyter/notebooks/_html/visualisation.html +968 -0
- data/assets/data/jupyter/notebooks/html/template.html +50 -0
- data/assets/data/jupyter/notebooks/html/visualisation.ok.html +949 -0
- data/assets/data/jupyter/notebooks/tutorial.ipynb +169 -0
- data/assets/data/jupyter/notebooks/visualisation.ipynb +9413 -0
- data/assets/data/mdi_icons.json +14641 -0
- data/assets/data/menu.html +469 -0
- data/assets/data/messages.yml +131 -0
- data/assets/data/panel.html +518 -0
- data/assets/data/quicklinks.html +225 -0
- data/assets/data/search.yml +131 -0
- data/assets/data/sidebar.html +261 -0
- data/assets/data/themes.json +59 -0
- data/assets/data/twa_v1.json +6978 -0
- data/assets/error_pages/HTTP204.html +70 -0
- data/assets/error_pages/HTTP400.html +66 -0
- data/assets/error_pages/HTTP401.html +67 -0
- data/assets/error_pages/HTTP403.html +66 -0
- data/assets/error_pages/HTTP404.html +66 -0
- data/assets/error_pages/HTTP500.html +66 -0
- data/assets/error_pages/HTTP501.html +66 -0
- data/assets/error_pages/HTTP502.html +66 -0
- data/assets/error_pages/HTTP503.html +67 -0
- data/assets/error_pages/HTTP520.html +66 -0
- data/assets/error_pages/HTTP521.html +66 -0
- data/assets/error_pages/HTTP533.html +66 -0
- data/assets/themes/j1/core/css/bootstrap.css +7139 -0
- data/assets/themes/j1/core/css/bootstrap.min.css +6 -0
- data/assets/themes/j1/core/css/custom.scss +28 -0
- data/assets/themes/j1/core/css/globals.css +14523 -0
- data/assets/themes/j1/core/css/globals.min.css +1 -0
- data/assets/themes/j1/core/css/globals.scss +28 -0
- data/assets/themes/j1/core/css/theme_extensions.css +11565 -0
- data/assets/themes/j1/core/css/theme_extensions.min.css +1 -0
- data/assets/themes/j1/core/css/uno.css +11830 -0
- data/assets/themes/j1/core/css/uno.min.css +1 -0
- data/assets/themes/j1/core/css/uno.scss +28 -0
- data/assets/themes/j1/core/css/vendor.css +46751 -0
- data/assets/themes/j1/core/css/vendor.min.css +14 -0
- data/assets/themes/j1/core/css/vendor.scss +28 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.eot +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.svg +3459 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.ttf +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.woff +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-brands-400.woff2 +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.eot +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.svg +803 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.ttf +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.woff +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-regular-400.woff2 +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.eot +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.svg +4527 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.ttf +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.woff +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/fonts/fa-solid-900.woff2 +0 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/metadata/icons.json +26790 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/metadata/icons.yml +9088 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/metadata/shims.json +2302 -0
- data/assets/themes/j1/core/fonts/fontawesome_5/metadata/shims.yml +292 -0
- data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.eot +0 -0
- data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.svg +10188 -0
- data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.ttf +0 -0
- data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.woff +0 -0
- data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/materialdesignicons-webfont.woff2 +0 -0
- data/assets/themes/j1/core/fonts/materialdesign_icons/license.md +97 -0
- data/assets/themes/j1/core/fonts/materialdesign_icons/metadata/icons.json +8186 -0
- data/assets/themes/j1/core/fonts/materialdesign_icons/metadata/icons.yml +5857 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/OpenSansEmoji.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Black.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-BlackItalic.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Bold.eot +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Bold.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Bold.woff +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Bold.woff2 +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-BoldItalic.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Italic.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Light.eot +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Light.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Light.woff +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Light.woff2 +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-LightItalic.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Medium.eot +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Medium.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Medium.woff +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Medium.woff2 +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-MediumItalic.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Regular.eot +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Regular.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Regular.woff +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Regular.woff2 +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Thin.eot +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Thin.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Thin.woff +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-Thin.woff2 +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/Roboto-ThinItalic.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-bold-ascii.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-bold_italic-ascii.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-italic-ascii.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-regular-ascii-conums.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/mplus1p-regular-fallback.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/notoserif-bold-subset.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/notoserif-bold_italic-subset.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/notoserif-italic-subset.ttf +0 -0
- data/assets/themes/j1/core/fonts/roboto/fonts/notoserif-regular-subset.ttf +0 -0
- data/assets/themes/j1/core/js/template.js +143 -0
- data/assets/themes/j1/core/js/template.js.map +1 -0
- data/assets/themes/j1/core/js/template.min.js +1 -0
- data/exe/j1 +26 -0
- data/lib/j1.rb +130 -0
- data/lib/j1/command.rb +23 -0
- data/lib/j1/commands/generate.rb +154 -0
- data/lib/j1/commands/help.rb +32 -0
- data/lib/j1/commands/module.rb +69 -0
- data/lib/j1/external.rb +59 -0
- data/lib/j1/log_adapter.rb +115 -0
- data/lib/j1/log_helper.rb +61 -0
- data/lib/j1/templates/posts/0000-00-00-welcome-to-j1-template.adoc.erb +72 -0
- data/lib/j1/utils.rb +330 -0
- data/lib/j1/utils/ansi.rb +59 -0
- data/lib/j1/utils/exec.rb +25 -0
- data/lib/j1/utils/platforms.rb +80 -0
- data/lib/j1/utils/win_tz.rb +73 -0
- data/lib/j1/version.rb +3 -0
- data/lib/j1_app.rb +105 -0
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +1367 -0
- data/lib/j1_app/j1_auth_manager/commands.rb +18 -0
- data/lib/j1_app/j1_auth_manager/config.rb +238 -0
- data/lib/j1_app/j1_auth_manager/error_pages.rb +44 -0
- data/lib/j1_app/j1_auth_manager/helpers.rb +166 -0
- data/lib/j1_app/j1_auth_manager/helpers_disqus.rb +29 -0
- data/lib/j1_app/j1_auth_manager/helpers_facebook.rb +29 -0
- data/lib/j1_app/j1_auth_manager/helpers_github.rb +112 -0
- data/lib/j1_app/j1_auth_manager/helpers_patreon.rb +29 -0
- data/lib/j1_app/j1_auth_manager/helpers_twitter.rb +30 -0
- data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.erb +389 -0
- data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.erb.kapott +234 -0
- data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.new.erb +297 -0
- data/lib/j1_app/j1_auth_manager/warden_omniauth.rb +153 -0
- data/lib/j1_app/j1_site_manager/static_site.rb +94 -0
- data/lib/j1_app/log4r/yamlconfigurator.rb +195 -0
- data/lib/j1_app/omniauth/facebook/signed_request.rb +52 -0
- data/lib/j1_app/omniauth/strategies/disqus.rb +113 -0
- data/lib/j1_app/omniauth/strategies/facebook.rb +212 -0
- data/lib/j1_app/omniauth/strategies/github.rb +141 -0
- data/lib/j1_app/omniauth/strategies/patreon.rb +129 -0
- data/lib/j1_app/omniauth/strategies/twitter.rb +156 -0
- data/lib/j1_app/sinatra/extras/cookies.rb +282 -0
- data/lib/j1_app/sinatra/extras/index.rb +33 -0
- data/lib/starter_web/Gemfile +213 -0
- data/lib/starter_web/_config.yml +978 -0
- data/lib/starter_web/_data/_defaults/categories.yml +36 -0
- data/lib/starter_web/_data/_defaults/colors.yml +612 -0
- data/lib/starter_web/_data/_defaults/font_sizes.yml +29 -0
- data/lib/starter_web/_data/_defaults/j1_light_gallery.yml +110 -0
- data/lib/starter_web/_data/_defaults/resources.yml +942 -0
- data/lib/starter_web/_data/_defaults/template_settings.yml +258 -0
- data/lib/starter_web/_data/apps/carousel.yml +515 -0
- data/lib/starter_web/_data/apps/defaults/carousel.yml +223 -0
- data/lib/starter_web/_data/apps/defaults/gallery_customizer.yml +50 -0
- data/lib/starter_web/_data/apps/defaults/justified_gallery.yml +72 -0
- data/lib/starter_web/_data/apps/defaults/light_gallery.yml +115 -0
- data/lib/starter_web/_data/apps/defaults/lightbox.yml +181 -0
- data/lib/starter_web/_data/apps/gallery_customizer.yml +47 -0
- data/lib/starter_web/_data/apps/justified_gallery.yml +317 -0
- data/lib/starter_web/_data/apps/light_gallery.yml +114 -0
- data/lib/starter_web/_data/apps/lightbox.yml +181 -0
- data/lib/starter_web/_data/blocks/banner.yml +366 -0
- data/lib/starter_web/_data/blocks/defaults/banner.yml +253 -0
- data/lib/starter_web/_data/blocks/defaults/footer.yml +180 -0
- data/lib/starter_web/_data/blocks/defaults/panel.yml +256 -0
- data/lib/starter_web/_data/blocks/footer.yml +189 -0
- data/lib/starter_web/_data/blocks/panel.yml +348 -0
- data/lib/starter_web/_data/builder/blog_navigator.yml +211 -0
- data/lib/starter_web/_data/categories.yml +36 -0
- data/lib/starter_web/_data/colors.yml +612 -0
- data/lib/starter_web/_data/font_sizes.yml +30 -0
- data/lib/starter_web/_data/layouts/app.yml +160 -0
- data/lib/starter_web/_data/layouts/blog_archive.yml +160 -0
- data/lib/starter_web/_data/layouts/collection.yml +187 -0
- data/lib/starter_web/_data/layouts/default.yml +232 -0
- data/lib/starter_web/_data/layouts/home.yml +270 -0
- data/lib/starter_web/_data/layouts/page.yml +186 -0
- data/lib/starter_web/_data/layouts/post.yml +187 -0
- data/lib/starter_web/_data/layouts/raw.yml +160 -0
- data/lib/starter_web/_data/modules/attics.yml +220 -0
- data/lib/starter_web/_data/modules/authentication.yml +254 -0
- data/lib/starter_web/_data/modules/back2top.yml +40 -0
- data/lib/starter_web/_data/modules/cookie_consent.yml +128 -0
- data/lib/starter_web/_data/modules/cookiebar.yml +32 -0
- data/lib/starter_web/_data/modules/defaults/attics.yml +220 -0
- data/lib/starter_web/_data/modules/defaults/authentication.yml +263 -0
- data/lib/starter_web/_data/modules/defaults/back2top.yml +147 -0
- data/lib/starter_web/_data/modules/defaults/cookie_consent.yml +69 -0
- data/lib/starter_web/_data/modules/defaults/cookiebar.yml +79 -0
- data/lib/starter_web/_data/modules/defaults/framer.yml +274 -0
- data/lib/starter_web/_data/modules/defaults/jekyll_search.yml +149 -0
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +131 -0
- data/lib/starter_web/_data/modules/defaults/log4r.yml +171 -0
- data/lib/starter_web/_data/modules/defaults/navigator.yml +174 -0
- data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +169 -0
- data/lib/starter_web/_data/modules/defaults/stickybits.yml +37 -0
- data/lib/starter_web/_data/modules/defaults/themer.yml +168 -0
- data/lib/starter_web/_data/modules/defaults/toccer.yml +172 -0
- data/lib/starter_web/_data/modules/framer.yml +52 -0
- data/lib/starter_web/_data/modules/jekyll_search.yml +51 -0
- data/lib/starter_web/_data/modules/log4javascript.yml +131 -0
- data/lib/starter_web/_data/modules/log4r.yml +171 -0
- data/lib/starter_web/_data/modules/navigator.yml +162 -0
- data/lib/starter_web/_data/modules/navigator_menu.yml +276 -0
- data/lib/starter_web/_data/modules/smooth_scroll.yml +169 -0
- data/lib/starter_web/_data/modules/themer.yml +147 -0
- data/lib/starter_web/_data/modules/toccer.yml +172 -0
- data/lib/starter_web/_data/pages/builder.yml +87 -0
- data/lib/starter_web/_data/plugins/defaults/notebooks.yml +61 -0
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +92 -0
- data/lib/starter_web/_data/plugins/notebooks.yml +70 -0
- data/lib/starter_web/_data/plugins/paginator.yml +52 -0
- data/lib/starter_web/_data/private.yml +231 -0
- data/lib/starter_web/_data/resources.yml +861 -0
- data/lib/starter_web/_data/template_settings.yml +294 -0
- data/lib/starter_web/_data/utilities/defaults/util_srv.yml +41 -0
- data/lib/starter_web/_data/utilities/util_srv.yml +97 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/admonition-block-answer.rb +48 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/admonition-block-question.rb +48 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/callout.rb +9 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/carousel-block.rb +46 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/conum.rb +9 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/fab-icon-inline.rb +33 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/fas-icon-inline.rb +33 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/gallery-block.rb +44 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/gist-block.rb +52 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/iconify-icon-inline.rb +33 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +85 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/lorem-inline.rb +65 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/mdi-icon-inline.rb +33 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/shout-block.rb +47 -0
- data/lib/starter_web/_plugins/asciidoctor-extensions/twitter-emoji-inline.rb +37 -0
- data/lib/starter_web/_plugins/debug.rb +63 -0
- data/lib/starter_web/_plugins/filters.rb +320 -0
- data/lib/starter_web/_plugins/prettify.rb +45 -0
- data/lib/starter_web/_plugins/simple_search_filter.rb +33 -0
- data/lib/starter_web/_plugins/symlink_watcher.rb +52 -0
- data/lib/starter_web/apps/public/cc +1650 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jekyll.1200x400.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jekyll.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/staticgen.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/welcome-to-j1-template.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/what-is-a-baseurl.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/j1_docker_banner.1280x500.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/kinematic_alpha.1280x600.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/kinematic_j1.1280x300.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/series/j1_using_docker/windows_docker_banner.1280x500.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/wikipedia/columbia-river.1200x400.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/wikipedia/narcise-snake-pits.1200x400.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/aditya-joshi-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/alex-holyoake-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/anaya-katlego-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonella-lombardi-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/admin-dashboard-bootstrap-1280x800-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/docker-1280x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/jekyll.1200x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/library-1920x800-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/signpost-1920x800-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/water-journal-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/write-1280x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/brandon-mowinkel-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/cookies-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/daniel-jensen-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/go-up-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/ian-schneider-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/jason-rosewell-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/jessica-ruscello-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mu-Vf9gbsLZyf0-unsplash.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280-v.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/matthaeus-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/nousnou-iwasaki-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/premium-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/robert-v-ruggiero-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/runner-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/spider-web-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/welcome-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-1.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-3.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-4.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-5.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-6.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-7.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/cats/cat-8.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/andreas-brucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-1_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-2_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/luca-bravo_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/carousel/mega_cities/thomas-tucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/andreas-brucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/banter-snaps_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-1_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/emmad-mazhari_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/ethan-brooke_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/federico-rizzarelli_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/gints-gailis_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/johan-mouchet_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/luca-bravo_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/oskars-sylwan_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/steven-diaz_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker_b.jpg +0 -0
- data/lib/starter_web/assets/images/modules/icons/algolia/search-by-algolia.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/asciidoc/logo-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/bootstrap/bootstrap-solid-32x32.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/bootstrap/bs-docs-masthead-pattern.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/bootstrap/scalable/bootstrap-outline.svg +20 -0
- data/lib/starter_web/assets/images/modules/icons/bootstrap/scalable/bootstrap-punchout.svg +18 -0
- data/lib/starter_web/assets/images/modules/icons/bootstrap/scalable/bootstrap-solid.svg +17 -0
- data/lib/starter_web/assets/images/modules/icons/components/angular.ui.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/angularjs.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/aws.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/bootstrap.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/c9.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/chai.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/emmet.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/express.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/git.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/github.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/gulp.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/heroku.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/htmlcss-1.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/htmlcss-2.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/jasmine.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/javascript.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/jquery.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/kanban.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/leanux.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/linkedin.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/mean.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/mongodb.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/node.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/postgresql.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/protractor.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/rails.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/ruby.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/sass.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/scrum.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/components/twitter.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +2020 -0
- data/lib/starter_web/assets/images/modules/icons/j1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/j1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/j1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/j1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/j1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/j1..ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/scalable/j1.svg +2027 -0
- data/lib/starter_web/assets/images/modules/icons/netlify/nf-logo.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/scalable/p1.svg +2020 -0
- data/lib/starter_web/assets/images/modules/icons/patreon/favicon-16x16.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/patreon/favicon-32x32.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/amazon.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/behance.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/blogger.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/deviantart.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/dribbble.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/dropbox.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/evernote.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/facebook.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/forrst.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/github.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/googleplus.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/instagram.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/jolicloud.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/last-fm.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/linkedin.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/picasa.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/pintrest.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/rss.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/skype.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/spotify.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/stumbleupon.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/tumblr.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/twitter.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/vimeo.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/vk.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/wordpress.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/xing.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/yahoo.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/social/youtube.png +0 -0
- data/lib/starter_web/assets/images/modules/lightbox/close.png +0 -0
- data/lib/starter_web/assets/images/modules/lightbox/loading.gif +0 -0
- data/lib/starter_web/assets/images/modules/lightbox/next.png +0 -0
- data/lib/starter_web/assets/images/modules/lightbox/prev.png +0 -0
- data/lib/starter_web/assets/images/modules/patterns/1x1.png +0 -0
- data/lib/starter_web/assets/images/modules/patterns/gridtile.png +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/000_browser_console-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/001_smee_channel-1280x400.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/002_gh_repo_settings-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/003_gh_webhook_settings-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/004_gh_webhook_settings-post-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/005_smee_channel_ping_receive-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/006_gh_redeliver_payload-1280x900.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/007_receive_redelivered_payload-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/000_browser_console.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/000_smee_channel.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/002_gh_repo-settings.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/003_gh_webhook_settings.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/004_gh_webhook_settings-post.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/005_smee_channel_ping_received.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/006_gh_redeliver_payload.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/007_receive_redelivered_payload.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/webhook_flow.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/flows/webhook_flow-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/scaleable/webhook_flow.svg +432 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/auth_mgmr_signin_request_flow.uxf +632 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/webhook_flow.uxf +648 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/get-started-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/130_layout_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/content_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/content_inheritance_thumb.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/html_layout.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1-quickstart-windows.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1-template-theme.jpg +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1_layout.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/jekyll-minima-theme.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/lane_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/layout_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/preparations/msys_installation.jpg +0 -0
- data/lib/starter_web/assets/images/pages/log4j/apache-log4j-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/log4r/code-1920x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/log4r/log4r-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_000.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_001.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_002.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_003.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_004.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_005.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_006.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_007.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_008.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_009.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_010.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_011.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_012.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_013.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_014.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_015.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_016.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_017.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_018.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_019.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_020.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_021.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_022.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_023.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_024.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_025.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_026.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_027.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_028.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_029.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_030.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_031.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_032.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_033.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_034.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_035.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_036.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_037.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_038.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_039.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_040.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_041.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_042.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_043.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_044.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_045.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_046.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_047.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_048.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_049.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_050.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_051.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_052.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_053.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_054.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_055.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_056.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_057.png +0 -0
- data/lib/starter_web/assets/images/pages/modals/01_frame_modal.jpg +0 -0
- data/lib/starter_web/assets/images/pages/modals/02_site_modal.jpg +0 -0
- data/lib/starter_web/assets/images/pages/modals/03_central_modal.jpg +0 -0
- data/lib/starter_web/assets/images/pages/modals/04_fluid_modal.jpg +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jQuery-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jquery-banner-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jquery-banner-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/src/JQuery-Logo.svg +122 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/src/banner.psd +0 -0
- data/lib/starter_web/assets/images/pages/previewer/bs-color-palette.png +0 -0
- data/lib/starter_web/assets/images/pages/previewer/material-design-color-palette.jpg +0 -0
- data/lib/starter_web/assets/images/pages/previewer/material-design-color-palette.png +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-1.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-2.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-image-3.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-1.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-2.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-3.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/410_bs_modals_extentions/avatar.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/410_bs_modals_extentions/marc.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/bootstrap-1920x1000-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/cards-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/emojies-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/icon-fonts-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/images-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/puzzle-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/tables-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/themes-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/typography-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/default.png +0 -0
- data/lib/starter_web/assets/images/quotes/people.png +0 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/attic.js +563 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +227 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/carousel.js +313 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/cookie_consent.js +259 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/framer.js +208 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/gallery_customizer.js +427 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/j1.js +2034 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/justified_gallery.js +403 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/lightbox.js +181 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/logger.js +316 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/navigator.js +782 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +177 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/searcher.js +193 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/themer.js +357 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/toccer.js +353 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/css/carousel.css +81 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/css/carousel.min.css +17 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/css/carousel_transitions.css +184 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/css/carousel_transitions.min.css +17 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/css/theme/uno.css +191 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/css/theme/uno.min.css +16 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/images/ajax-loader.gif +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/images/grabbing.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/images/owl-logo.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/images/owl.video.play.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/js/carousel.js +1517 -0
- data/lib/starter_web/assets/themes/j1/extensions/carousel/js/carousel.min.js +57 -0
- data/lib/starter_web/assets/themes/j1/extensions/iconify/js/iconify.min.js +13 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +86 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.content.html +58 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +51 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +68 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +46 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +79 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/index.html +70 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/examples/two.html +71 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +1104 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +1 -0
- data/lib/starter_web/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +10 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/LICENSE +22 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/README.md +273 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.css +110 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.min.css +110 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/theme/uno.css +23 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +1229 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.js +1229 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.min.js +8 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/.csslintrc +20 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/justifiedGallery.less +113 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.css +110 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.min.css +110 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/theme/uno.css +23 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.js +1229 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +8 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/css/justifiedGallery.css +110 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/css/justifiedGallery.min.css +110 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/css/theme/uno.css +38 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/css/theme/uno.min.css +38 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/js/justifiedGallery.js +1229 -0
- data/lib/starter_web/assets/themes/j1/extensions/justified_gallery/js/justifiedGallery.min.js +8 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.css +58 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.min.css +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lg-transitions.css +778 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lg-transitions.min.css +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lightgallery.css +981 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/core/lightgallery.min.css +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/fonts/lg.eot +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/fonts/lg.svg +47 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/fonts/lg.ttf +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/fonts/lg.woff +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/img/loading.gif +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/img/video-play.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/img/vimeo-play.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/img/youtube-play.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/animation-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/customize-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/dynamic-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/facebook-icon.svg +10 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/googleplus-icon.svg +30 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/html5-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/linked-in.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/module-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/play-button.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/responsive-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/thumb-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/touch-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/twitter-icon.svg +15 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/twitter.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/video1-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/zoom-w.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/icons/zoom.png +0 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/uno.css +263 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/css/themes/uno.min.css +17 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/core/lightgallery.js +1362 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/core/lightgallery.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.js +402 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.min.js +8 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.js +206 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.js +126 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-hash.js +101 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-hash.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-pager.js +105 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-pager.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-share.js +107 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-share.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.js +478 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-video.js +342 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-video.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-zoom.js +527 -0
- data/lib/starter_web/assets/themes/j1/extensions/light_gallery/js/modules/lg-zoom.min.js +5 -0
- data/lib/starter_web/assets/themes/j1/extensions/log4javascript/log4javascript.js +5826 -0
- data/lib/starter_web/assets/themes/j1/extensions/log4javascript/log4javascript.min.js +266 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.dark/theme.css +78 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.light/theme.css +77 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.monokai.dark/theme.css +78 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.monokai.light/theme.css +77 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.monokai/theme.css +78 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.solarized.dark/theme.css +78 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.solarized.light/theme.css +77 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.solarized/theme.css +77 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/base16/theme.css +77 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/colorful/theme.css +170 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/github/theme.css +209 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/gruvbox.dark/theme.css +84 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/gruvbox.light/theme.css +84 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/gruvbox/theme.css +84 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/igorpro/theme.css +32 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/molokai/theme.css +208 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/monokai.sublime/theme.css +187 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/monokai/theme.css +210 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/pastie/theme.css +146 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/thankful_eyes/theme.css +173 -0
- data/lib/starter_web/assets/themes/j1/extensions/rouge/css/tulip/theme.css +164 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/city.css +147 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/city.min.css +6 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/fantasy.css +113 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/fantasy.min.css +6 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/forest.css +165 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/forest.min.css +6 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/sea.css +72 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/themes/sea.min.css +6 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/video-js.css +1663 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/css/video-js.min.css +1 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/js/video.js +55690 -0
- data/lib/starter_web/assets/themes/j1/extensions/videojs/js/video.min.js +28 -0
- data/lib/starter_web/assets/themes/j1/extensions/vimeo/froogaloop/js/froogaloop2.min.js +4 -0
- data/lib/starter_web/assets/themes/j1/extensions/vimeo/player/js/player.js +2138 -0
- data/lib/starter_web/assets/themes/j1/extensions/vimeo/player/js/player.js.map +1 -0
- data/lib/starter_web/assets/themes/j1/extensions/vimeo/player/js/player.min.js +2 -0
- data/lib/starter_web/assets/themes/j1/extensions/vimeo/player/js/player.min.js.map +1 -0
- data/lib/starter_web/assets/videos/gallery/adriana-lima-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/kick-it-old-school-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video1-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video1-thumb.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video2-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video2-thumb.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_adele-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_gwen-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/video_michelle-poster.jpg +0 -0
- data/lib/starter_web/assets/videos/headers/still/underground-broadway.png +0 -0
- data/lib/starter_web/assets/videos/headers/still/victoria-oskolovich-on-vimeo.png +0 -0
- data/lib/starter_web/collections/posts/private/readme +0 -0
- data/lib/starter_web/collections/posts/protected/readme +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1-template.adoc.erb +160 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/000_includes/attributes.asciidoc +47 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/000_includes/unsplash-badge.asciidoc +31 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2019-05-01-top-open-source-static-site-generators.adoc +97 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2019-06-01-about-cookies.adoc +197 -0
- data/lib/starter_web/collections/posts/public/jekyll/_posts/2018-05-01-confusion-about-base-url.adoc +105 -0
- data/lib/starter_web/collections/posts/public/series/_posts/000_includes/attributes.asciidoc +66 -0
- data/lib/starter_web/collections/posts/public/series/_posts/000_includes/documents/100-docker-using-shared-folders.asciidoc +430 -0
- data/lib/starter_web/collections/posts/public/series/_posts/000_includes/documents/loop.sh +28 -0
- data/lib/starter_web/collections/posts/public/series/_posts/000_includes/tables/debug_variables.asciidoc +48 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2018-11-01-docker-using-shared-folders.adoc +504 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/000_includes/attributes.asciidoc +46 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/000_includes/tables/debug_variables.asciidoc +48 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +126 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +88 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +86 -0
- data/lib/starter_web/config.ru +24 -0
- data/lib/starter_web/dot.gitattributes +31 -0
- data/lib/starter_web/dot.gitignore +55 -0
- data/lib/starter_web/dot.nojekyll +19 -0
- data/lib/starter_web/favicon.ico +0 -0
- data/lib/starter_web/index.html +68 -0
- data/lib/starter_web/package.json +136 -0
- data/lib/starter_web/pages/private/readme +0 -0
- data/lib/starter_web/pages/protected/readme +0 -0
- data/lib/starter_web/pages/public/about/about_site.adoc +40 -0
- data/lib/starter_web/pages/public/about/become_a_patron.adoc +50 -0
- data/lib/starter_web/pages/public/blog/navigator/archive.html +111 -0
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +153 -0
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +133 -0
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +187 -0
- data/lib/starter_web/pages/public/blog/navigator/index.html +47 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/attributes.asciidoc +174 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/documents/100_meet_and_greet_jekyll.asciidoc +31 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/documents/200_preparations.asciidoc +14 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/documents/300_first_awesome_web.asciidoc +12 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/parts.asciidoc +193 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +79 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/200_preparations.adoc +72 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/300_first_awesome_web.adoc +70 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour.1.asciidoc +121 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour.adoc +145 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour_api.adoc +644 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/attributes.asciidoc +117 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/100_gistblock.asciidoc +27 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_bottom_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_bottom_left_warning.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_bottom_right_danger.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_central_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_full_height_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_full_height_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_table_3_column.asciidoc +47 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_top_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_top_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_top_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/419_advanced_modals_html.asciidoc +928 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +304 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +152 -0
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +524 -0
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +435 -0
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +536 -0
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +128 -0
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +281 -0
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +138 -0
- data/lib/starter_web/pages/public/learn/roundtrip/bs_tour.js +98 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/attributes.asciidoc +117 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/100_gistblock.asciidoc +27 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_bottom_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_bottom_left_warning.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_bottom_right_danger.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_central_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_full_height_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_full_height_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_table_3_column.asciidoc +47 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_top_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_top_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_top_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/419_advanced_modals_html.asciidoc +928 -0
- data/lib/starter_web/pages/public/learn/vtutorials/000_test_youtube_video.adoc +141 -0
- data/lib/starter_web/pages/public/learn/vtutorials/100_basic_video.adoc +109 -0
- data/lib/starter_web/pages/public/learn/whats_up.adoc +117 -0
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +97 -0
- data/lib/starter_web/pages/public/legal/de/200_terms_of_use.adoc +54 -0
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +300 -0
- data/lib/starter_web/pages/public/legal/de/400_license_agreement.adoc +394 -0
- data/lib/starter_web/pages/public/legal/de/500_support.adoc +19 -0
- data/lib/starter_web/pages/public/legal/en/000_copyright.adoc +89 -0
- data/lib/starter_web/pages/public/legal/en/100_impress.adoc +51 -0
- data/lib/starter_web/pages/public/legal/en/200_terms_of_use.adoc +48 -0
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +394 -0
- data/lib/starter_web/pages/public/legal/en/400_license_agreement.adoc +432 -0
- data/lib/starter_web/pages/public/legal/en/500_support.adoc +19 -0
- data/lib/starter_web/pages/public/legal/en/eu/cookie.policy.asciidoc +55 -0
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +158 -0
- data/lib/starter_web/pages/public/previewer/000_includes/attributes.asciidoc +116 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +39 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +47 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/120_relative_sizes.asciidoc +87 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +71 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/300_flip.asciidoc +31 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +39 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +61 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +55 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/600_md_color_palette.asciidoc +95 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +95 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +95 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +47 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +47 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/200_rotate.asciidoc +71 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/300_flip.asciidoc +30 -0
- data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +31 -0
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +1858 -0
- data/lib/starter_web/pages/public/previewer/iframer.adoc +83 -0
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +33 -0
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +295 -0
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +195 -0
- data/lib/starter_web/utilsrv/_defaults/package.json +52 -0
- data/lib/starter_web/utilsrv/package.json +52 -0
- data/lib/starter_web/utilsrv/server.js +601 -0
- metadata +1213 -0
@@ -0,0 +1,1229 @@
|
|
1
|
+
/*!
|
2
|
+
* justifiedGallery - v4.0.0-alpha
|
3
|
+
* http://miromannino.github.io/Justified-Gallery/
|
4
|
+
* Copyright (c) 2019 Miro Mannino
|
5
|
+
* Licensed under the MIT license.
|
6
|
+
*/
|
7
|
+
(function (factory) {
|
8
|
+
if (typeof define === 'function' && define.amd) {
|
9
|
+
// AMD. Register as an anonymous module.
|
10
|
+
define(['jquery'], factory);
|
11
|
+
} else if (typeof module === 'object' && module.exports) {
|
12
|
+
// Node/CommonJS
|
13
|
+
module.exports = function( root, jQuery ) {
|
14
|
+
if ( jQuery === undefined ) {
|
15
|
+
// require('jQuery') returns a factory that requires window to
|
16
|
+
// build a jQuery instance, we normalize how we use modules
|
17
|
+
// that require this pattern but the window provided is a noop
|
18
|
+
// if it's defined (how jquery works)
|
19
|
+
if ( typeof window !== 'undefined' ) {
|
20
|
+
jQuery = require('jquery');
|
21
|
+
}
|
22
|
+
else {
|
23
|
+
jQuery = require('jquery')(root);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
factory(jQuery);
|
27
|
+
return jQuery;
|
28
|
+
};
|
29
|
+
} else {
|
30
|
+
// Browser globals
|
31
|
+
factory(jQuery);
|
32
|
+
}
|
33
|
+
}(function ($) {
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Justified Gallery controller constructor
|
37
|
+
*
|
38
|
+
* @param $gallery the gallery to build
|
39
|
+
* @param settings the settings (the defaults are in JustifiedGallery.defaults)
|
40
|
+
* @constructor
|
41
|
+
*/
|
42
|
+
var JustifiedGallery = function ($gallery, settings) {
|
43
|
+
|
44
|
+
this.settings = settings;
|
45
|
+
this.checkSettings();
|
46
|
+
|
47
|
+
this.imgAnalyzerTimeout = null;
|
48
|
+
this.entries = null;
|
49
|
+
this.buildingRow = {
|
50
|
+
entriesBuff : [],
|
51
|
+
width : 0,
|
52
|
+
height : 0,
|
53
|
+
aspectRatio : 0
|
54
|
+
};
|
55
|
+
this.lastFetchedEntry = null;
|
56
|
+
this.lastAnalyzedIndex = -1;
|
57
|
+
this.yield = {
|
58
|
+
every : 2, // do a flush every n flushes (must be greater than 1)
|
59
|
+
flushed : 0 // flushed rows without a yield
|
60
|
+
};
|
61
|
+
this.border = settings.border >= 0 ? settings.border : settings.margins;
|
62
|
+
this.maxRowHeight = this.retrieveMaxRowHeight();
|
63
|
+
this.suffixRanges = this.retrieveSuffixRanges();
|
64
|
+
this.offY = this.border;
|
65
|
+
this.rows = 0;
|
66
|
+
this.spinner = {
|
67
|
+
phase : 0,
|
68
|
+
timeSlot : 150,
|
69
|
+
$el : $('<div class="spinner"><span></span><span></span><span></span></div>'),
|
70
|
+
intervalId : null
|
71
|
+
};
|
72
|
+
this.scrollBarOn = false;
|
73
|
+
this.checkWidthIntervalId = null;
|
74
|
+
this.galleryWidth = $gallery.width();
|
75
|
+
this.$gallery = $gallery;
|
76
|
+
|
77
|
+
};
|
78
|
+
|
79
|
+
/** @returns {String} the best suffix given the width and the height */
|
80
|
+
JustifiedGallery.prototype.getSuffix = function (width, height) {
|
81
|
+
var longestSide, i;
|
82
|
+
longestSide = (width > height) ? width : height;
|
83
|
+
for (i = 0; i < this.suffixRanges.length; i++) {
|
84
|
+
if (longestSide <= this.suffixRanges[i]) {
|
85
|
+
return this.settings.sizeRangeSuffixes[this.suffixRanges[i]];
|
86
|
+
}
|
87
|
+
}
|
88
|
+
return this.settings.sizeRangeSuffixes[this.suffixRanges[i - 1]];
|
89
|
+
};
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Remove the suffix from the string
|
93
|
+
*
|
94
|
+
* @returns {string} a new string without the suffix
|
95
|
+
*/
|
96
|
+
JustifiedGallery.prototype.removeSuffix = function (str, suffix) {
|
97
|
+
return str.substring(0, str.length - suffix.length);
|
98
|
+
};
|
99
|
+
|
100
|
+
/**
|
101
|
+
* @returns {boolean} a boolean to say if the suffix is contained in the str or not
|
102
|
+
*/
|
103
|
+
JustifiedGallery.prototype.endsWith = function (str, suffix) {
|
104
|
+
return str.indexOf(suffix, str.length - suffix.length) !== -1;
|
105
|
+
};
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Get the used suffix of a particular url
|
109
|
+
*
|
110
|
+
* @param str
|
111
|
+
* @returns {String} return the used suffix
|
112
|
+
*/
|
113
|
+
JustifiedGallery.prototype.getUsedSuffix = function (str) {
|
114
|
+
for (var si in this.settings.sizeRangeSuffixes) {
|
115
|
+
if (this.settings.sizeRangeSuffixes.hasOwnProperty(si)) {
|
116
|
+
if (this.settings.sizeRangeSuffixes[si].length === 0) continue;
|
117
|
+
if (this.endsWith(str, this.settings.sizeRangeSuffixes[si])) return this.settings.sizeRangeSuffixes[si];
|
118
|
+
}
|
119
|
+
}
|
120
|
+
return '';
|
121
|
+
};
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Given an image src, with the width and the height, returns the new image src with the
|
125
|
+
* best suffix to show the best quality thumbnail.
|
126
|
+
*
|
127
|
+
* @returns {String} the suffix to use
|
128
|
+
*/
|
129
|
+
JustifiedGallery.prototype.newSrc = function (imageSrc, imgWidth, imgHeight, image) {
|
130
|
+
var newImageSrc;
|
131
|
+
|
132
|
+
if (this.settings.thumbnailPath) {
|
133
|
+
newImageSrc = this.settings.thumbnailPath(imageSrc, imgWidth, imgHeight, image);
|
134
|
+
} else {
|
135
|
+
var matchRes = imageSrc.match(this.settings.extension);
|
136
|
+
var ext = (matchRes !== null) ? matchRes[0] : '';
|
137
|
+
newImageSrc = imageSrc.replace(this.settings.extension, '');
|
138
|
+
newImageSrc = this.removeSuffix(newImageSrc, this.getUsedSuffix(newImageSrc));
|
139
|
+
newImageSrc += this.getSuffix(imgWidth, imgHeight) + ext;
|
140
|
+
}
|
141
|
+
|
142
|
+
return newImageSrc;
|
143
|
+
};
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Shows the images that is in the given entry
|
147
|
+
*
|
148
|
+
* @param $entry the entry
|
149
|
+
* @param callback the callback that is called when the show animation is finished
|
150
|
+
*/
|
151
|
+
JustifiedGallery.prototype.showImg = function ($entry, callback) {
|
152
|
+
if (this.settings.cssAnimation) {
|
153
|
+
$entry.addClass('jg-entry-visible');
|
154
|
+
if (callback) callback();
|
155
|
+
} else {
|
156
|
+
$entry.stop().fadeTo(this.settings.imagesAnimationDuration, 1.0, callback);
|
157
|
+
$entry.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration, 1.0, callback);
|
158
|
+
}
|
159
|
+
};
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Extract the image src form the image, looking from the 'safe-src', and if it can't be found, from the
|
163
|
+
* 'src' attribute. It saves in the image data the 'jg.originalSrc' field, with the extracted src.
|
164
|
+
*
|
165
|
+
* @param $image the image to analyze
|
166
|
+
* @returns {String} the extracted src
|
167
|
+
*/
|
168
|
+
JustifiedGallery.prototype.extractImgSrcFromImage = function ($image) {
|
169
|
+
var imageSrc = $image.data('safe-src');
|
170
|
+
var imageSrcLoc = 'date-safe-src';
|
171
|
+
if (typeof imageSrc === 'undefined') {
|
172
|
+
imageSrc = $image.attr('src');
|
173
|
+
imageSrcLoc = 'src';
|
174
|
+
}
|
175
|
+
$image.data('jg.originalSrc', imageSrc); // this is saved for the destroy method
|
176
|
+
$image.data('jg.src', imageSrc); // this will change overtime
|
177
|
+
$image.data('jg.originalSrcLoc', imageSrcLoc); // this is saved for the destroy method
|
178
|
+
return imageSrc;
|
179
|
+
};
|
180
|
+
|
181
|
+
/** @returns {jQuery} the image in the given entry */
|
182
|
+
JustifiedGallery.prototype.imgFromEntry = function ($entry) {
|
183
|
+
var $img = $entry.find(this.settings.imgSelector);
|
184
|
+
return $img.length === 0 ? null : $img;
|
185
|
+
};
|
186
|
+
|
187
|
+
/** @returns {jQuery} the caption in the given entry */
|
188
|
+
JustifiedGallery.prototype.captionFromEntry = function ($entry) {
|
189
|
+
var $caption = $entry.find('> .caption');
|
190
|
+
return $caption.length === 0 ? null : $caption;
|
191
|
+
};
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Display the entry
|
195
|
+
*
|
196
|
+
* @param {jQuery} $entry the entry to display
|
197
|
+
* @param {int} x the x position where the entry must be positioned
|
198
|
+
* @param y the y position where the entry must be positioned
|
199
|
+
* @param imgWidth the image width
|
200
|
+
* @param imgHeight the image height
|
201
|
+
* @param rowHeight the row height of the row that owns the entry
|
202
|
+
*/
|
203
|
+
JustifiedGallery.prototype.displayEntry = function ($entry, x, y, imgWidth, imgHeight, rowHeight) {
|
204
|
+
$entry.width(imgWidth);
|
205
|
+
$entry.height(rowHeight);
|
206
|
+
$entry.css('top', y);
|
207
|
+
$entry.css('left', x);
|
208
|
+
|
209
|
+
var $image = this.imgFromEntry($entry);
|
210
|
+
if ($image !== null) {
|
211
|
+
$image.css('width', imgWidth);
|
212
|
+
$image.css('height', imgHeight);
|
213
|
+
$image.css('margin-left', - imgWidth / 2);
|
214
|
+
$image.css('margin-top', - imgHeight / 2);
|
215
|
+
|
216
|
+
// Image reloading for an high quality of thumbnails
|
217
|
+
var imageSrc = $image.data('jg.src');
|
218
|
+
if (imageSrc) {
|
219
|
+
imageSrc = this.newSrc(imageSrc, imgWidth, imgHeight, $image[0]);
|
220
|
+
|
221
|
+
$image.one('error', function () {
|
222
|
+
this.resetImgSrc($image); //revert to the original thumbnail
|
223
|
+
});
|
224
|
+
|
225
|
+
var loadNewImage = function () {
|
226
|
+
// if (imageSrc !== newImageSrc) {
|
227
|
+
$image.attr('src', imageSrc);
|
228
|
+
// }
|
229
|
+
};
|
230
|
+
|
231
|
+
if ($entry.data('jg.loaded') === 'skipped') {
|
232
|
+
this.onImageEvent(imageSrc, (function() {
|
233
|
+
this.showImg($entry, loadNewImage); //load the new image after the fadeIn
|
234
|
+
$entry.data('jg.loaded', true);
|
235
|
+
}).bind(this));
|
236
|
+
} else {
|
237
|
+
this.showImg($entry, loadNewImage); //load the new image after the fadeIn
|
238
|
+
}
|
239
|
+
|
240
|
+
}
|
241
|
+
|
242
|
+
} else {
|
243
|
+
this.showImg($entry);
|
244
|
+
}
|
245
|
+
|
246
|
+
this.displayEntryCaption($entry);
|
247
|
+
};
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Display the entry caption. If the caption element doesn't exists, it creates the caption using the 'alt'
|
251
|
+
* or the 'title' attributes.
|
252
|
+
*
|
253
|
+
* @param {jQuery} $entry the entry to process
|
254
|
+
*/
|
255
|
+
JustifiedGallery.prototype.displayEntryCaption = function ($entry) {
|
256
|
+
var $image = this.imgFromEntry($entry);
|
257
|
+
if ($image !== null && this.settings.captions) {
|
258
|
+
var $imgCaption = this.captionFromEntry($entry);
|
259
|
+
|
260
|
+
// Create it if it doesn't exists
|
261
|
+
if ($imgCaption === null) {
|
262
|
+
var caption = $image.attr('alt');
|
263
|
+
if (!this.isValidCaption(caption)) caption = $entry.attr('title');
|
264
|
+
if (this.isValidCaption(caption)) { // Create only we found something
|
265
|
+
$imgCaption = $('<div class="caption">' + caption + '</div>');
|
266
|
+
$entry.append($imgCaption);
|
267
|
+
$entry.data('jg.createdCaption', true);
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
// Create events (we check again the $imgCaption because it can be still inexistent)
|
272
|
+
if ($imgCaption !== null) {
|
273
|
+
if (!this.settings.cssAnimation) $imgCaption.stop().fadeTo(0, this.settings.captionSettings.nonVisibleOpacity);
|
274
|
+
this.addCaptionEventsHandlers($entry);
|
275
|
+
}
|
276
|
+
} else {
|
277
|
+
this.removeCaptionEventsHandlers($entry);
|
278
|
+
}
|
279
|
+
};
|
280
|
+
|
281
|
+
/**
|
282
|
+
* Validates the caption
|
283
|
+
*
|
284
|
+
* @param caption The caption that should be validated
|
285
|
+
* @return {boolean} Validation result
|
286
|
+
*/
|
287
|
+
JustifiedGallery.prototype.isValidCaption = function (caption) {
|
288
|
+
return (typeof caption !== 'undefined' && caption.length > 0);
|
289
|
+
};
|
290
|
+
|
291
|
+
/**
|
292
|
+
* The callback for the event 'mouseenter'. It assumes that the event currentTarget is an entry.
|
293
|
+
* It shows the caption using jQuery (or using CSS if it is configured so)
|
294
|
+
*
|
295
|
+
* @param {Event} eventObject the event object
|
296
|
+
*/
|
297
|
+
JustifiedGallery.prototype.onEntryMouseEnterForCaption = function (eventObject) {
|
298
|
+
var $caption = this.captionFromEntry($(eventObject.currentTarget));
|
299
|
+
if (this.settings.cssAnimation) {
|
300
|
+
$caption.addClass('caption-visible').removeClass('caption-hidden');
|
301
|
+
} else {
|
302
|
+
$caption.stop().fadeTo(this.settings.captionSettings.animationDuration,
|
303
|
+
this.settings.captionSettings.visibleOpacity);
|
304
|
+
}
|
305
|
+
};
|
306
|
+
|
307
|
+
/**
|
308
|
+
* The callback for the event 'mouseleave'. It assumes that the event currentTarget is an entry.
|
309
|
+
* It hides the caption using jQuery (or using CSS if it is configured so)
|
310
|
+
*
|
311
|
+
* @param {Event} eventObject the event object
|
312
|
+
*/
|
313
|
+
JustifiedGallery.prototype.onEntryMouseLeaveForCaption = function (eventObject) {
|
314
|
+
var $caption = this.captionFromEntry($(eventObject.currentTarget));
|
315
|
+
if (this.settings.cssAnimation) {
|
316
|
+
$caption.removeClass('caption-visible').removeClass('caption-hidden');
|
317
|
+
} else {
|
318
|
+
$caption.stop().fadeTo(this.settings.captionSettings.animationDuration,
|
319
|
+
this.settings.captionSettings.nonVisibleOpacity);
|
320
|
+
}
|
321
|
+
};
|
322
|
+
|
323
|
+
/**
|
324
|
+
* Add the handlers of the entry for the caption
|
325
|
+
*
|
326
|
+
* @param $entry the entry to modify
|
327
|
+
*/
|
328
|
+
JustifiedGallery.prototype.addCaptionEventsHandlers = function ($entry) {
|
329
|
+
var captionMouseEvents = $entry.data('jg.captionMouseEvents');
|
330
|
+
if (typeof captionMouseEvents === 'undefined') {
|
331
|
+
captionMouseEvents = {
|
332
|
+
mouseenter: $.proxy(this.onEntryMouseEnterForCaption, this),
|
333
|
+
mouseleave: $.proxy(this.onEntryMouseLeaveForCaption, this)
|
334
|
+
};
|
335
|
+
$entry.on('mouseenter', undefined, undefined, captionMouseEvents.mouseenter);
|
336
|
+
$entry.on('mouseleave', undefined, undefined, captionMouseEvents.mouseleave);
|
337
|
+
$entry.data('jg.captionMouseEvents', captionMouseEvents);
|
338
|
+
}
|
339
|
+
};
|
340
|
+
|
341
|
+
/**
|
342
|
+
* Remove the handlers of the entry for the caption
|
343
|
+
*
|
344
|
+
* @param $entry the entry to modify
|
345
|
+
*/
|
346
|
+
JustifiedGallery.prototype.removeCaptionEventsHandlers = function ($entry) {
|
347
|
+
var captionMouseEvents = $entry.data('jg.captionMouseEvents');
|
348
|
+
if (typeof captionMouseEvents !== 'undefined') {
|
349
|
+
$entry.off('mouseenter', undefined, captionMouseEvents.mouseenter);
|
350
|
+
$entry.off('mouseleave', undefined, captionMouseEvents.mouseleave);
|
351
|
+
$entry.removeData('jg.captionMouseEvents');
|
352
|
+
}
|
353
|
+
};
|
354
|
+
|
355
|
+
/**
|
356
|
+
* Clear the building row data to be used for a new row
|
357
|
+
*/
|
358
|
+
JustifiedGallery.prototype.clearBuildingRow = function () {
|
359
|
+
this.buildingRow.entriesBuff = [];
|
360
|
+
this.buildingRow.aspectRatio = 0;
|
361
|
+
this.buildingRow.width = 0;
|
362
|
+
};
|
363
|
+
|
364
|
+
/**
|
365
|
+
* Justify the building row, preparing it to
|
366
|
+
*
|
367
|
+
* @param isLastRow
|
368
|
+
* @returns a boolean to know if the row has been justified or not
|
369
|
+
*/
|
370
|
+
JustifiedGallery.prototype.prepareBuildingRow = function (isLastRow) {
|
371
|
+
var i, $entry, imgAspectRatio, newImgW, newImgH, justify = true;
|
372
|
+
var minHeight = 0;
|
373
|
+
var availableWidth = this.galleryWidth - 2 * this.border - (
|
374
|
+
(this.buildingRow.entriesBuff.length - 1) * this.settings.margins);
|
375
|
+
var rowHeight = availableWidth / this.buildingRow.aspectRatio;
|
376
|
+
var defaultRowHeight = this.settings.rowHeight;
|
377
|
+
var justifiable = this.buildingRow.width / availableWidth > this.settings.justifyThreshold;
|
378
|
+
|
379
|
+
//Skip the last row if we can't justify it and the lastRow == 'hide'
|
380
|
+
if (isLastRow && this.settings.lastRow === 'hide' && !justifiable) {
|
381
|
+
for (i = 0; i < this.buildingRow.entriesBuff.length; i++) {
|
382
|
+
$entry = this.buildingRow.entriesBuff[i];
|
383
|
+
if (this.settings.cssAnimation)
|
384
|
+
$entry.removeClass('jg-entry-visible');
|
385
|
+
else {
|
386
|
+
$entry.stop().fadeTo(0, 0.1);
|
387
|
+
$entry.find('> img, > a > img').fadeTo(0, 0);
|
388
|
+
}
|
389
|
+
}
|
390
|
+
return -1;
|
391
|
+
}
|
392
|
+
|
393
|
+
// With lastRow = nojustify, justify if is justificable (the images will not become too big)
|
394
|
+
if (isLastRow && !justifiable && this.settings.lastRow !== 'justify' && this.settings.lastRow !== 'hide') {
|
395
|
+
justify = false;
|
396
|
+
|
397
|
+
if (this.rows > 0) {
|
398
|
+
defaultRowHeight = (this.offY - this.border - this.settings.margins * this.rows) / this.rows;
|
399
|
+
justify = defaultRowHeight * this.buildingRow.aspectRatio / availableWidth > this.settings.justifyThreshold;
|
400
|
+
}
|
401
|
+
}
|
402
|
+
|
403
|
+
for (i = 0; i < this.buildingRow.entriesBuff.length; i++) {
|
404
|
+
$entry = this.buildingRow.entriesBuff[i];
|
405
|
+
imgAspectRatio = $entry.data('jg.width') / $entry.data('jg.height');
|
406
|
+
|
407
|
+
if (justify) {
|
408
|
+
newImgW = (i === this.buildingRow.entriesBuff.length - 1) ? availableWidth : rowHeight * imgAspectRatio;
|
409
|
+
newImgH = rowHeight;
|
410
|
+
} else {
|
411
|
+
newImgW = defaultRowHeight * imgAspectRatio;
|
412
|
+
newImgH = defaultRowHeight;
|
413
|
+
}
|
414
|
+
|
415
|
+
availableWidth -= Math.round(newImgW);
|
416
|
+
$entry.data('jg.jwidth', Math.round(newImgW));
|
417
|
+
$entry.data('jg.jheight', Math.ceil(newImgH));
|
418
|
+
if (i === 0 || minHeight > newImgH) minHeight = newImgH;
|
419
|
+
}
|
420
|
+
|
421
|
+
this.buildingRow.height = minHeight;
|
422
|
+
return justify;
|
423
|
+
};
|
424
|
+
|
425
|
+
/**
|
426
|
+
* Flush a row: justify it, modify the gallery height accordingly to the row height
|
427
|
+
*
|
428
|
+
* @param isLastRow
|
429
|
+
*/
|
430
|
+
JustifiedGallery.prototype.flushRow = function (isLastRow) {
|
431
|
+
var settings = this.settings;
|
432
|
+
var $entry, buildingRowRes, offX = this.border, i;
|
433
|
+
|
434
|
+
buildingRowRes = this.prepareBuildingRow(isLastRow);
|
435
|
+
if (isLastRow && settings.lastRow === 'hide' && buildingRowRes === -1) {
|
436
|
+
this.clearBuildingRow();
|
437
|
+
return;
|
438
|
+
}
|
439
|
+
|
440
|
+
if(this.maxRowHeight) {
|
441
|
+
if(this.maxRowHeight < this.buildingRow.height) this.buildingRow.height = this.maxRowHeight;
|
442
|
+
}
|
443
|
+
|
444
|
+
//Align last (unjustified) row
|
445
|
+
if (isLastRow && (settings.lastRow === 'center' || settings.lastRow === 'right')) {
|
446
|
+
var availableWidth = this.galleryWidth - 2 * this.border - (this.buildingRow.entriesBuff.length - 1) * settings.margins;
|
447
|
+
|
448
|
+
for (i = 0; i < this.buildingRow.entriesBuff.length; i++) {
|
449
|
+
$entry = this.buildingRow.entriesBuff[i];
|
450
|
+
availableWidth -= $entry.data('jg.jwidth');
|
451
|
+
}
|
452
|
+
|
453
|
+
if (settings.lastRow === 'center')
|
454
|
+
offX += availableWidth / 2;
|
455
|
+
else if (settings.lastRow === 'right')
|
456
|
+
offX += availableWidth;
|
457
|
+
}
|
458
|
+
|
459
|
+
var lastEntryIdx = this.buildingRow.entriesBuff.length - 1;
|
460
|
+
for (i = 0; i <= lastEntryIdx; i++) {
|
461
|
+
$entry = this.buildingRow.entriesBuff[ this.settings.rtl ? lastEntryIdx - i : i ];
|
462
|
+
this.displayEntry($entry, offX, this.offY, $entry.data('jg.jwidth'), $entry.data('jg.jheight'), this.buildingRow.height);
|
463
|
+
offX += $entry.data('jg.jwidth') + settings.margins;
|
464
|
+
}
|
465
|
+
|
466
|
+
//Gallery Height
|
467
|
+
this.galleryHeightToSet = this.offY + this.buildingRow.height + this.border;
|
468
|
+
this.setGalleryTempHeight(this.galleryHeightToSet + this.getSpinnerHeight());
|
469
|
+
|
470
|
+
if (!isLastRow || (this.buildingRow.height <= settings.rowHeight && buildingRowRes)) {
|
471
|
+
//Ready for a new row
|
472
|
+
this.offY += this.buildingRow.height + settings.margins;
|
473
|
+
this.rows += 1;
|
474
|
+
this.clearBuildingRow();
|
475
|
+
this.settings.triggerEvent.call(this, 'jg.rowflush');
|
476
|
+
}
|
477
|
+
};
|
478
|
+
|
479
|
+
|
480
|
+
// Scroll position not restoring: https://github.com/miromannino/Justified-Gallery/issues/221
|
481
|
+
var galleryPrevStaticHeight = 0;
|
482
|
+
|
483
|
+
JustifiedGallery.prototype.rememberGalleryHeight = function () {
|
484
|
+
galleryPrevStaticHeight = this.$gallery.height();
|
485
|
+
this.$gallery.height(galleryPrevStaticHeight);
|
486
|
+
};
|
487
|
+
|
488
|
+
// grow only
|
489
|
+
JustifiedGallery.prototype.setGalleryTempHeight = function (height) {
|
490
|
+
galleryPrevStaticHeight = Math.max(height, galleryPrevStaticHeight);
|
491
|
+
this.$gallery.height(galleryPrevStaticHeight);
|
492
|
+
};
|
493
|
+
|
494
|
+
JustifiedGallery.prototype.setGalleryFinalHeight = function (height) {
|
495
|
+
galleryPrevStaticHeight = height;
|
496
|
+
this.$gallery.height(height);
|
497
|
+
};
|
498
|
+
|
499
|
+
/**
|
500
|
+
* Checks the width of the gallery container, to know if a new justification is needed
|
501
|
+
*/
|
502
|
+
JustifiedGallery.prototype.checkWidth = function () {
|
503
|
+
this.checkWidthIntervalId = setInterval($.proxy(function () {
|
504
|
+
|
505
|
+
// if the gallery is not currently visible, abort.
|
506
|
+
if (!this.$gallery.is(":visible")) return;
|
507
|
+
|
508
|
+
var galleryWidth = parseFloat(this.$gallery.width());
|
509
|
+
if (Math.abs(galleryWidth - this.galleryWidth) > this.settings.refreshSensitivity) {
|
510
|
+
this.galleryWidth = galleryWidth;
|
511
|
+
this.rewind();
|
512
|
+
|
513
|
+
this.rememberGalleryHeight();
|
514
|
+
|
515
|
+
// Restart to analyze
|
516
|
+
this.startImgAnalyzer(true);
|
517
|
+
}
|
518
|
+
}, this), this.settings.refreshTime);
|
519
|
+
};
|
520
|
+
|
521
|
+
/**
|
522
|
+
* @returns {boolean} a boolean saying if the spinner is active or not
|
523
|
+
*/
|
524
|
+
JustifiedGallery.prototype.isSpinnerActive = function () {
|
525
|
+
return this.spinner.intervalId !== null;
|
526
|
+
};
|
527
|
+
|
528
|
+
/**
|
529
|
+
* @returns {int} the spinner height
|
530
|
+
*/
|
531
|
+
JustifiedGallery.prototype.getSpinnerHeight = function () {
|
532
|
+
return this.spinner.$el.innerHeight();
|
533
|
+
};
|
534
|
+
|
535
|
+
/**
|
536
|
+
* Stops the spinner animation and modify the gallery height to exclude the spinner
|
537
|
+
*/
|
538
|
+
JustifiedGallery.prototype.stopLoadingSpinnerAnimation = function () {
|
539
|
+
clearInterval(this.spinner.intervalId);
|
540
|
+
this.spinner.intervalId = null;
|
541
|
+
this.setGalleryTempHeight(this.$gallery.height() - this.getSpinnerHeight());
|
542
|
+
this.spinner.$el.detach();
|
543
|
+
};
|
544
|
+
|
545
|
+
/**
|
546
|
+
* Starts the spinner animation
|
547
|
+
*/
|
548
|
+
JustifiedGallery.prototype.startLoadingSpinnerAnimation = function () {
|
549
|
+
var spinnerContext = this.spinner;
|
550
|
+
var $spinnerPoints = spinnerContext.$el.find('span');
|
551
|
+
clearInterval(spinnerContext.intervalId);
|
552
|
+
this.$gallery.append(spinnerContext.$el);
|
553
|
+
this.setGalleryTempHeight(this.offY + this.buildingRow.height + this.getSpinnerHeight());
|
554
|
+
spinnerContext.intervalId = setInterval(function () {
|
555
|
+
if (spinnerContext.phase < $spinnerPoints.length) {
|
556
|
+
$spinnerPoints.eq(spinnerContext.phase).fadeTo(spinnerContext.timeSlot, 1);
|
557
|
+
} else {
|
558
|
+
$spinnerPoints.eq(spinnerContext.phase - $spinnerPoints.length).fadeTo(spinnerContext.timeSlot, 0);
|
559
|
+
}
|
560
|
+
spinnerContext.phase = (spinnerContext.phase + 1) % ($spinnerPoints.length * 2);
|
561
|
+
}, spinnerContext.timeSlot);
|
562
|
+
};
|
563
|
+
|
564
|
+
/**
|
565
|
+
* Rewind the image analysis to start from the first entry.
|
566
|
+
*/
|
567
|
+
JustifiedGallery.prototype.rewind = function () {
|
568
|
+
this.lastFetchedEntry = null;
|
569
|
+
this.lastAnalyzedIndex = -1;
|
570
|
+
this.offY = this.border;
|
571
|
+
this.rows = 0;
|
572
|
+
this.clearBuildingRow();
|
573
|
+
};
|
574
|
+
|
575
|
+
/**
|
576
|
+
* @returns {Array} all entries matched by `settings.selector`
|
577
|
+
*/
|
578
|
+
JustifiedGallery.prototype.getAllEntries = function () {
|
579
|
+
return this.$gallery.children(this.settings.selector).toArray();
|
580
|
+
};
|
581
|
+
|
582
|
+
/**
|
583
|
+
* Update the entries searching it from the justified gallery HTML element
|
584
|
+
*
|
585
|
+
* @param norewind if norewind only the new entries will be changed (i.e. randomized, sorted or filtered)
|
586
|
+
* @returns {boolean} true if some entries has been founded
|
587
|
+
*/
|
588
|
+
JustifiedGallery.prototype.updateEntries = function (norewind) {
|
589
|
+
var newEntries;
|
590
|
+
|
591
|
+
if (norewind && this.lastFetchedEntry != null) {
|
592
|
+
newEntries = $(this.lastFetchedEntry).nextAll(this.settings.selector).toArray();
|
593
|
+
} else {
|
594
|
+
this.entries = [];
|
595
|
+
newEntries = this.getAllEntries();
|
596
|
+
}
|
597
|
+
|
598
|
+
if (newEntries.length > 0) {
|
599
|
+
|
600
|
+
// Sort or randomize
|
601
|
+
if ($.isFunction(this.settings.sort)) {
|
602
|
+
newEntries = this.sortArray(newEntries);
|
603
|
+
} else if (this.settings.randomize) {
|
604
|
+
newEntries = this.shuffleArray(newEntries);
|
605
|
+
}
|
606
|
+
this.lastFetchedEntry = newEntries[newEntries.length - 1];
|
607
|
+
|
608
|
+
// Filter
|
609
|
+
if (this.settings.filter) {
|
610
|
+
newEntries = this.filterArray(newEntries);
|
611
|
+
} else {
|
612
|
+
this.resetFilters(newEntries);
|
613
|
+
}
|
614
|
+
|
615
|
+
}
|
616
|
+
|
617
|
+
this.entries = this.entries.concat(newEntries);
|
618
|
+
return true;
|
619
|
+
};
|
620
|
+
|
621
|
+
/**
|
622
|
+
* Apply the entries order to the DOM, iterating the entries and appending the images
|
623
|
+
*
|
624
|
+
* @param entries the entries that has been modified and that must be re-ordered in the DOM
|
625
|
+
*/
|
626
|
+
JustifiedGallery.prototype.insertToGallery = function (entries) {
|
627
|
+
var that = this;
|
628
|
+
$.each(entries, function () {
|
629
|
+
$(this).appendTo(that.$gallery);
|
630
|
+
});
|
631
|
+
};
|
632
|
+
|
633
|
+
/**
|
634
|
+
* Shuffle the array using the Fisher-Yates shuffle algorithm
|
635
|
+
*
|
636
|
+
* @param a the array to shuffle
|
637
|
+
* @return the shuffled array
|
638
|
+
*/
|
639
|
+
JustifiedGallery.prototype.shuffleArray = function (a) {
|
640
|
+
var i, j, temp;
|
641
|
+
for (i = a.length - 1; i > 0; i--) {
|
642
|
+
j = Math.floor(Math.random() * (i + 1));
|
643
|
+
temp = a[i];
|
644
|
+
a[i] = a[j];
|
645
|
+
a[j] = temp;
|
646
|
+
}
|
647
|
+
this.insertToGallery(a);
|
648
|
+
return a;
|
649
|
+
};
|
650
|
+
|
651
|
+
/**
|
652
|
+
* Sort the array using settings.comparator as comparator
|
653
|
+
*
|
654
|
+
* @param a the array to sort (it is sorted)
|
655
|
+
* @return the sorted array
|
656
|
+
*/
|
657
|
+
JustifiedGallery.prototype.sortArray = function (a) {
|
658
|
+
a.sort(this.settings.sort);
|
659
|
+
this.insertToGallery(a);
|
660
|
+
return a;
|
661
|
+
};
|
662
|
+
|
663
|
+
/**
|
664
|
+
* Reset the filters removing the 'jg-filtered' class from all the entries
|
665
|
+
*
|
666
|
+
* @param a the array to reset
|
667
|
+
*/
|
668
|
+
JustifiedGallery.prototype.resetFilters = function (a) {
|
669
|
+
for (var i = 0; i < a.length; i++) $(a[i]).removeClass('jg-filtered');
|
670
|
+
};
|
671
|
+
|
672
|
+
/**
|
673
|
+
* Filter the entries considering theirs classes (if a string has been passed) or using a function for filtering.
|
674
|
+
*
|
675
|
+
* @param a the array to filter
|
676
|
+
* @return the filtered array
|
677
|
+
*/
|
678
|
+
JustifiedGallery.prototype.filterArray = function (a) {
|
679
|
+
var settings = this.settings;
|
680
|
+
if ($.type(settings.filter) === 'string') {
|
681
|
+
// Filter only keeping the entries passed in the string
|
682
|
+
return a.filter(function (el) {
|
683
|
+
var $el = $(el);
|
684
|
+
if ($el.is(settings.filter)) {
|
685
|
+
$el.removeClass('jg-filtered');
|
686
|
+
return true;
|
687
|
+
} else {
|
688
|
+
$el.addClass('jg-filtered').removeClass('jg-visible');
|
689
|
+
return false;
|
690
|
+
}
|
691
|
+
});
|
692
|
+
} else if ($.isFunction(settings.filter)) {
|
693
|
+
// Filter using the passed function
|
694
|
+
var filteredArr = a.filter(settings.filter);
|
695
|
+
for (var i = 0; i < a.length; i++) {
|
696
|
+
if (filteredArr.indexOf(a[i]) === -1) {
|
697
|
+
$(a[i]).addClass('jg-filtered').removeClass('jg-visible');
|
698
|
+
} else {
|
699
|
+
$(a[i]).removeClass('jg-filtered');
|
700
|
+
}
|
701
|
+
}
|
702
|
+
return filteredArr;
|
703
|
+
}
|
704
|
+
};
|
705
|
+
|
706
|
+
/**
|
707
|
+
* Revert the image src to the default value.
|
708
|
+
*/
|
709
|
+
JustifiedGallery.prototype.resetImgSrc = function ($img) {
|
710
|
+
if ($img.data('jg.originalSrcLoc') == 'src') {
|
711
|
+
$img.attr('src', $img.data('jg.originalSrc'));
|
712
|
+
} else {
|
713
|
+
$img.attr('src', '');
|
714
|
+
}
|
715
|
+
}
|
716
|
+
|
717
|
+
/**
|
718
|
+
* Destroy the Justified Gallery instance.
|
719
|
+
*
|
720
|
+
* It clears all the css properties added in the style attributes. We doesn't backup the original
|
721
|
+
* values for those css attributes, because it costs (performance) and because in general one
|
722
|
+
* shouldn't use the style attribute for an uniform set of images (where we suppose the use of
|
723
|
+
* classes). Creating a backup is also difficult because JG could be called multiple times and
|
724
|
+
* with different style attributes.
|
725
|
+
*/
|
726
|
+
JustifiedGallery.prototype.destroy = function () {
|
727
|
+
clearInterval(this.checkWidthIntervalId);
|
728
|
+
this.stopImgAnalyzerStarter();
|
729
|
+
|
730
|
+
// Get fresh entries list since filtered entries are absent in `this.entries`
|
731
|
+
$.each(this.getAllEntries(), $.proxy(function(_, entry) {
|
732
|
+
var $entry = $(entry);
|
733
|
+
|
734
|
+
// Reset entry style
|
735
|
+
$entry.css('width', '');
|
736
|
+
$entry.css('height', '');
|
737
|
+
$entry.css('top', '');
|
738
|
+
$entry.css('left', '');
|
739
|
+
$entry.data('jg.loaded', undefined);
|
740
|
+
$entry.removeClass('jg-entry jg-filtered jg-entry-visible');
|
741
|
+
|
742
|
+
// Reset image style
|
743
|
+
var $img = this.imgFromEntry($entry);
|
744
|
+
if ($img) {
|
745
|
+
$img.css('width', '');
|
746
|
+
$img.css('height', '');
|
747
|
+
$img.css('margin-left', '');
|
748
|
+
$img.css('margin-top', '');
|
749
|
+
this.resetImgSrc($img);
|
750
|
+
$img.data('jg.originalSrc', undefined);
|
751
|
+
$img.data('jg.originalSrcLoc', undefined);
|
752
|
+
$img.data('jg.src', undefined);
|
753
|
+
}
|
754
|
+
|
755
|
+
// Remove caption
|
756
|
+
this.removeCaptionEventsHandlers($entry);
|
757
|
+
var $caption = this.captionFromEntry($entry);
|
758
|
+
if ($entry.data('jg.createdCaption')) {
|
759
|
+
// remove also the caption element (if created by jg)
|
760
|
+
$entry.data('jg.createdCaption', undefined);
|
761
|
+
if ($caption !== null) $caption.remove();
|
762
|
+
} else {
|
763
|
+
if ($caption !== null) $caption.fadeTo(0, 1);
|
764
|
+
}
|
765
|
+
|
766
|
+
}, this));
|
767
|
+
|
768
|
+
this.$gallery.css('height', '');
|
769
|
+
this.$gallery.removeClass('justified-gallery');
|
770
|
+
this.$gallery.data('jg.controller', undefined);
|
771
|
+
this.settings.triggerEvent.call(this, 'jg.destroy');
|
772
|
+
};
|
773
|
+
|
774
|
+
/**
|
775
|
+
* Analyze the images and builds the rows. It returns if it found an image that is not loaded.
|
776
|
+
*
|
777
|
+
* @param isForResize if the image analyzer is called for resizing or not, to call a different callback at the end
|
778
|
+
*/
|
779
|
+
JustifiedGallery.prototype.analyzeImages = function (isForResize) {
|
780
|
+
for (var i = this.lastAnalyzedIndex + 1; i < this.entries.length; i++) {
|
781
|
+
var $entry = $(this.entries[i]);
|
782
|
+
if ($entry.data('jg.loaded') === true || $entry.data('jg.loaded') === 'skipped') {
|
783
|
+
var availableWidth = this.galleryWidth - 2 * this.border - (
|
784
|
+
(this.buildingRow.entriesBuff.length - 1) * this.settings.margins);
|
785
|
+
var imgAspectRatio = $entry.data('jg.width') / $entry.data('jg.height');
|
786
|
+
|
787
|
+
this.buildingRow.entriesBuff.push($entry);
|
788
|
+
this.buildingRow.aspectRatio += imgAspectRatio;
|
789
|
+
this.buildingRow.width += imgAspectRatio * this.settings.rowHeight;
|
790
|
+
this.lastAnalyzedIndex = i;
|
791
|
+
|
792
|
+
if (availableWidth / (this.buildingRow.aspectRatio + imgAspectRatio) < this.settings.rowHeight) {
|
793
|
+
this.flushRow(false);
|
794
|
+
|
795
|
+
if(++this.yield.flushed >= this.yield.every) {
|
796
|
+
this.startImgAnalyzer(isForResize);
|
797
|
+
return;
|
798
|
+
}
|
799
|
+
}
|
800
|
+
} else if ($entry.data('jg.loaded') !== 'error') {
|
801
|
+
return;
|
802
|
+
}
|
803
|
+
}
|
804
|
+
|
805
|
+
// Last row flush (the row is not full)
|
806
|
+
if (this.buildingRow.entriesBuff.length > 0) this.flushRow(true);
|
807
|
+
|
808
|
+
if (this.isSpinnerActive()) {
|
809
|
+
this.stopLoadingSpinnerAnimation();
|
810
|
+
}
|
811
|
+
|
812
|
+
/* Stop, if there is, the timeout to start the analyzeImages.
|
813
|
+
This is because an image can be set loaded, and the timeout can be set,
|
814
|
+
but this image can be analyzed yet.
|
815
|
+
*/
|
816
|
+
this.stopImgAnalyzerStarter();
|
817
|
+
|
818
|
+
//On complete callback
|
819
|
+
this.settings.triggerEvent.call(this, isForResize ? 'jg.resize' : 'jg.complete');
|
820
|
+
this.setGalleryFinalHeight(this.galleryHeightToSet);
|
821
|
+
};
|
822
|
+
|
823
|
+
/**
|
824
|
+
* Stops any ImgAnalyzer starter (that has an assigned timeout)
|
825
|
+
*/
|
826
|
+
JustifiedGallery.prototype.stopImgAnalyzerStarter = function () {
|
827
|
+
this.yield.flushed = 0;
|
828
|
+
if (this.imgAnalyzerTimeout !== null) {
|
829
|
+
clearTimeout(this.imgAnalyzerTimeout);
|
830
|
+
this.imgAnalyzerTimeout = null;
|
831
|
+
}
|
832
|
+
};
|
833
|
+
|
834
|
+
/**
|
835
|
+
* Starts the image analyzer. It is not immediately called to let the browser to update the view
|
836
|
+
*
|
837
|
+
* @param isForResize specifies if the image analyzer must be called for resizing or not
|
838
|
+
*/
|
839
|
+
JustifiedGallery.prototype.startImgAnalyzer = function (isForResize) {
|
840
|
+
var that = this;
|
841
|
+
this.stopImgAnalyzerStarter();
|
842
|
+
this.imgAnalyzerTimeout = setTimeout(function () {
|
843
|
+
that.analyzeImages(isForResize);
|
844
|
+
}, 0.001); // we can't start it immediately due to a IE different behaviour
|
845
|
+
};
|
846
|
+
|
847
|
+
/**
|
848
|
+
* Checks if the image is loaded or not using another image object. We cannot use the 'complete' image property,
|
849
|
+
* because some browsers, with a 404 set complete = true.
|
850
|
+
*
|
851
|
+
* @param imageSrc the image src to load
|
852
|
+
* @param onLoad callback that is called when the image has been loaded
|
853
|
+
* @param onError callback that is called in case of an error
|
854
|
+
*/
|
855
|
+
JustifiedGallery.prototype.onImageEvent = function (imageSrc, onLoad, onError) {
|
856
|
+
if (!onLoad && !onError) return;
|
857
|
+
|
858
|
+
var memImage = new Image();
|
859
|
+
var $memImage = $(memImage);
|
860
|
+
if (onLoad) {
|
861
|
+
$memImage.one('load', function () {
|
862
|
+
$memImage.off('load error');
|
863
|
+
onLoad(memImage);
|
864
|
+
});
|
865
|
+
}
|
866
|
+
if (onError) {
|
867
|
+
$memImage.one('error', function() {
|
868
|
+
$memImage.off('load error');
|
869
|
+
onError(memImage);
|
870
|
+
});
|
871
|
+
}
|
872
|
+
memImage.src = imageSrc;
|
873
|
+
};
|
874
|
+
|
875
|
+
/**
|
876
|
+
* Init of Justified Gallery controlled
|
877
|
+
* It analyzes all the entries starting theirs loading and calling the image analyzer (that works with loaded images)
|
878
|
+
*/
|
879
|
+
JustifiedGallery.prototype.init = function () {
|
880
|
+
var imagesToLoad = false, skippedImages = false, that = this;
|
881
|
+
$.each(this.entries, function (index, entry) {
|
882
|
+
var $entry = $(entry);
|
883
|
+
var $image = that.imgFromEntry($entry);
|
884
|
+
|
885
|
+
$entry.addClass('jg-entry');
|
886
|
+
|
887
|
+
if ($entry.data('jg.loaded') !== true && $entry.data('jg.loaded') !== 'skipped') {
|
888
|
+
|
889
|
+
// Link Rel global overwrite
|
890
|
+
if (that.settings.rel !== null) $entry.attr('rel', that.settings.rel);
|
891
|
+
|
892
|
+
// Link Target global overwrite
|
893
|
+
if (that.settings.target !== null) $entry.attr('target', that.settings.target);
|
894
|
+
|
895
|
+
if ($image !== null) {
|
896
|
+
|
897
|
+
// Image src
|
898
|
+
var imageSrc = that.extractImgSrcFromImage($image);
|
899
|
+
|
900
|
+
/* If we have the height and the width, we don't wait that the image is loaded,
|
901
|
+
but we start directly with the justification */
|
902
|
+
if (that.settings.waitThumbnailsLoad === false || !imageSrc) {
|
903
|
+
var width = parseFloat($image.attr('width'));
|
904
|
+
var height = parseFloat($image.attr('height'));
|
905
|
+
if ($image.prop('tagName') === 'svg') {
|
906
|
+
width = parseFloat($image[0].getBBox().width);
|
907
|
+
height = parseFloat($image[0].getBBox().height);
|
908
|
+
}
|
909
|
+
if (!isNaN(width) && !isNaN(height)) {
|
910
|
+
$entry.data('jg.width', width);
|
911
|
+
$entry.data('jg.height', height);
|
912
|
+
$entry.data('jg.loaded', 'skipped');
|
913
|
+
skippedImages = true;
|
914
|
+
that.startImgAnalyzer(false);
|
915
|
+
return true; // continue
|
916
|
+
}
|
917
|
+
}
|
918
|
+
|
919
|
+
$entry.data('jg.loaded', false);
|
920
|
+
imagesToLoad = true;
|
921
|
+
|
922
|
+
// Spinner start
|
923
|
+
if (!that.isSpinnerActive()) that.startLoadingSpinnerAnimation();
|
924
|
+
|
925
|
+
that.onImageEvent(imageSrc, function (loadImg) { // image loaded
|
926
|
+
$entry.data('jg.width', loadImg.width);
|
927
|
+
$entry.data('jg.height', loadImg.height);
|
928
|
+
$entry.data('jg.loaded', true);
|
929
|
+
that.startImgAnalyzer(false);
|
930
|
+
}, function () { // image load error
|
931
|
+
$entry.data('jg.loaded', 'error');
|
932
|
+
that.startImgAnalyzer(false);
|
933
|
+
});
|
934
|
+
|
935
|
+
} else {
|
936
|
+
$entry.data('jg.loaded', true);
|
937
|
+
$entry.data('jg.width', $entry.width() | parseFloat($entry.css('width')) | 1);
|
938
|
+
$entry.data('jg.height', $entry.height() | parseFloat($entry.css('height')) | 1);
|
939
|
+
}
|
940
|
+
|
941
|
+
}
|
942
|
+
|
943
|
+
});
|
944
|
+
|
945
|
+
if (!imagesToLoad && !skippedImages) this.startImgAnalyzer(false);
|
946
|
+
this.checkWidth();
|
947
|
+
};
|
948
|
+
|
949
|
+
/**
|
950
|
+
* Checks that it is a valid number. If a string is passed it is converted to a number
|
951
|
+
*
|
952
|
+
* @param settingContainer the object that contains the setting (to allow the conversion)
|
953
|
+
* @param settingName the setting name
|
954
|
+
*/
|
955
|
+
JustifiedGallery.prototype.checkOrConvertNumber = function (settingContainer, settingName) {
|
956
|
+
if ($.type(settingContainer[settingName]) === 'string') {
|
957
|
+
settingContainer[settingName] = parseFloat(settingContainer[settingName]);
|
958
|
+
}
|
959
|
+
|
960
|
+
if ($.type(settingContainer[settingName]) === 'number') {
|
961
|
+
if (isNaN(settingContainer[settingName])) throw 'invalid number for ' + settingName;
|
962
|
+
} else {
|
963
|
+
throw settingName + ' must be a number';
|
964
|
+
}
|
965
|
+
};
|
966
|
+
|
967
|
+
/**
|
968
|
+
* Checks the sizeRangeSuffixes and, if necessary, converts
|
969
|
+
* its keys from string (e.g. old settings with 'lt100') to int.
|
970
|
+
*/
|
971
|
+
JustifiedGallery.prototype.checkSizeRangesSuffixes = function () {
|
972
|
+
if ($.type(this.settings.sizeRangeSuffixes) !== 'object') {
|
973
|
+
throw 'sizeRangeSuffixes must be defined and must be an object';
|
974
|
+
}
|
975
|
+
|
976
|
+
var suffixRanges = [];
|
977
|
+
for (var rangeIdx in this.settings.sizeRangeSuffixes) {
|
978
|
+
if (this.settings.sizeRangeSuffixes.hasOwnProperty(rangeIdx)) suffixRanges.push(rangeIdx);
|
979
|
+
}
|
980
|
+
|
981
|
+
var newSizeRngSuffixes = {0: ''};
|
982
|
+
for (var i = 0; i < suffixRanges.length; i++) {
|
983
|
+
if ($.type(suffixRanges[i]) === 'string') {
|
984
|
+
try {
|
985
|
+
var numIdx = parseInt(suffixRanges[i].replace(/^[a-z]+/, ''), 10);
|
986
|
+
newSizeRngSuffixes[numIdx] = this.settings.sizeRangeSuffixes[suffixRanges[i]];
|
987
|
+
} catch (e) {
|
988
|
+
throw 'sizeRangeSuffixes keys must contains correct numbers (' + e + ')';
|
989
|
+
}
|
990
|
+
} else {
|
991
|
+
newSizeRngSuffixes[suffixRanges[i]] = this.settings.sizeRangeSuffixes[suffixRanges[i]];
|
992
|
+
}
|
993
|
+
}
|
994
|
+
|
995
|
+
this.settings.sizeRangeSuffixes = newSizeRngSuffixes;
|
996
|
+
};
|
997
|
+
|
998
|
+
/**
|
999
|
+
* check and convert the maxRowHeight setting
|
1000
|
+
* requires rowHeight to be already set
|
1001
|
+
* TODO: should be always called when only rowHeight is changed
|
1002
|
+
* @return number or null
|
1003
|
+
*/
|
1004
|
+
JustifiedGallery.prototype.retrieveMaxRowHeight = function () {
|
1005
|
+
var newMaxRowHeight = null;
|
1006
|
+
var rowHeight = this.settings.rowHeight;
|
1007
|
+
|
1008
|
+
if ($.type(this.settings.maxRowHeight) === 'string') {
|
1009
|
+
if (this.settings.maxRowHeight.match(/^[0-9]+%$/)) {
|
1010
|
+
newMaxRowHeight = rowHeight * parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1]) / 100;
|
1011
|
+
} else {
|
1012
|
+
newMaxRowHeight = parseFloat(this.settings.maxRowHeight);
|
1013
|
+
}
|
1014
|
+
} else if ($.type(this.settings.maxRowHeight) === 'number') {
|
1015
|
+
newMaxRowHeight = this.settings.maxRowHeight;
|
1016
|
+
} else if (this.settings.maxRowHeight === false || this.settings.maxRowHeight == null) {
|
1017
|
+
return null;
|
1018
|
+
} else {
|
1019
|
+
throw 'maxRowHeight must be a number or a percentage';
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
// check if the converted value is not a number
|
1023
|
+
if (isNaN(newMaxRowHeight)) throw 'invalid number for maxRowHeight';
|
1024
|
+
|
1025
|
+
// check values, maxRowHeight must be >= rowHeight
|
1026
|
+
if (newMaxRowHeight < rowHeight) newMaxRowHeight = rowHeight;
|
1027
|
+
|
1028
|
+
return newMaxRowHeight;
|
1029
|
+
};
|
1030
|
+
|
1031
|
+
/**
|
1032
|
+
* Checks the settings
|
1033
|
+
*/
|
1034
|
+
JustifiedGallery.prototype.checkSettings = function () {
|
1035
|
+
this.checkSizeRangesSuffixes();
|
1036
|
+
|
1037
|
+
this.checkOrConvertNumber(this.settings, 'rowHeight');
|
1038
|
+
this.checkOrConvertNumber(this.settings, 'margins');
|
1039
|
+
this.checkOrConvertNumber(this.settings, 'border');
|
1040
|
+
|
1041
|
+
var lastRowModes = [
|
1042
|
+
'justify',
|
1043
|
+
'nojustify',
|
1044
|
+
'left',
|
1045
|
+
'center',
|
1046
|
+
'right',
|
1047
|
+
'hide'
|
1048
|
+
];
|
1049
|
+
if (lastRowModes.indexOf(this.settings.lastRow) === -1) {
|
1050
|
+
throw 'lastRow must be one of: ' + lastRowModes.join(', ');
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
this.checkOrConvertNumber(this.settings, 'justifyThreshold');
|
1054
|
+
if (this.settings.justifyThreshold < 0 || this.settings.justifyThreshold > 1) {
|
1055
|
+
throw 'justifyThreshold must be in the interval [0,1]';
|
1056
|
+
}
|
1057
|
+
if ($.type(this.settings.cssAnimation) !== 'boolean') {
|
1058
|
+
throw 'cssAnimation must be a boolean';
|
1059
|
+
}
|
1060
|
+
|
1061
|
+
if ($.type(this.settings.captions) !== 'boolean') throw 'captions must be a boolean';
|
1062
|
+
this.checkOrConvertNumber(this.settings.captionSettings, 'animationDuration');
|
1063
|
+
|
1064
|
+
this.checkOrConvertNumber(this.settings.captionSettings, 'visibleOpacity');
|
1065
|
+
if (this.settings.captionSettings.visibleOpacity < 0 ||
|
1066
|
+
this.settings.captionSettings.visibleOpacity > 1) {
|
1067
|
+
throw 'captionSettings.visibleOpacity must be in the interval [0, 1]';
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
this.checkOrConvertNumber(this.settings.captionSettings, 'nonVisibleOpacity');
|
1071
|
+
if (this.settings.captionSettings.nonVisibleOpacity < 0 ||
|
1072
|
+
this.settings.captionSettings.nonVisibleOpacity > 1) {
|
1073
|
+
throw 'captionSettings.nonVisibleOpacity must be in the interval [0, 1]';
|
1074
|
+
}
|
1075
|
+
|
1076
|
+
this.checkOrConvertNumber(this.settings, 'imagesAnimationDuration');
|
1077
|
+
this.checkOrConvertNumber(this.settings, 'refreshTime');
|
1078
|
+
this.checkOrConvertNumber(this.settings, 'refreshSensitivity');
|
1079
|
+
if ($.type(this.settings.randomize) !== 'boolean') throw 'randomize must be a boolean';
|
1080
|
+
if ($.type(this.settings.selector) !== 'string') throw 'selector must be a string';
|
1081
|
+
|
1082
|
+
if (this.settings.sort !== false && !$.isFunction(this.settings.sort)) {
|
1083
|
+
throw 'sort must be false or a comparison function';
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
if (this.settings.filter !== false && !$.isFunction(this.settings.filter) &&
|
1087
|
+
$.type(this.settings.filter) !== 'string') {
|
1088
|
+
throw 'filter must be false, a string or a filter function';
|
1089
|
+
}
|
1090
|
+
};
|
1091
|
+
|
1092
|
+
/**
|
1093
|
+
* It brings all the indexes from the sizeRangeSuffixes and it orders them. They are then sorted and returned.
|
1094
|
+
* @returns {Array} sorted suffix ranges
|
1095
|
+
*/
|
1096
|
+
JustifiedGallery.prototype.retrieveSuffixRanges = function () {
|
1097
|
+
var suffixRanges = [];
|
1098
|
+
for (var rangeIdx in this.settings.sizeRangeSuffixes) {
|
1099
|
+
if (this.settings.sizeRangeSuffixes.hasOwnProperty(rangeIdx)) suffixRanges.push(parseInt(rangeIdx, 10));
|
1100
|
+
}
|
1101
|
+
suffixRanges.sort(function (a, b) { return a > b ? 1 : a < b ? -1 : 0; });
|
1102
|
+
return suffixRanges;
|
1103
|
+
};
|
1104
|
+
|
1105
|
+
/**
|
1106
|
+
* Update the existing settings only changing some of them
|
1107
|
+
*
|
1108
|
+
* @param newSettings the new settings (or a subgroup of them)
|
1109
|
+
*/
|
1110
|
+
JustifiedGallery.prototype.updateSettings = function (newSettings) {
|
1111
|
+
// In this case Justified Gallery has been called again changing only some options
|
1112
|
+
this.settings = $.extend({}, this.settings, newSettings);
|
1113
|
+
this.checkSettings();
|
1114
|
+
|
1115
|
+
// As reported in the settings: negative value = same as margins, 0 = disabled
|
1116
|
+
this.border = this.settings.border >= 0 ? this.settings.border : this.settings.margins;
|
1117
|
+
|
1118
|
+
this.maxRowHeight = this.retrieveMaxRowHeight();
|
1119
|
+
this.suffixRanges = this.retrieveSuffixRanges();
|
1120
|
+
};
|
1121
|
+
|
1122
|
+
JustifiedGallery.prototype.defaults = {
|
1123
|
+
sizeRangeSuffixes: { }, /* e.g. Flickr configuration
|
1124
|
+
{
|
1125
|
+
100: '_t', // used when longest is less than 100px
|
1126
|
+
240: '_m', // used when longest is between 101px and 240px
|
1127
|
+
320: '_n', // ...
|
1128
|
+
500: '',
|
1129
|
+
640: '_z',
|
1130
|
+
1024: '_b' // used as else case because it is the last
|
1131
|
+
}
|
1132
|
+
*/
|
1133
|
+
thumbnailPath: undefined, /* If defined, sizeRangeSuffixes is not used, and this function is used to determine the
|
1134
|
+
path relative to a specific thumbnail size. The function should accept respectively three arguments:
|
1135
|
+
current path, width and height */
|
1136
|
+
rowHeight: 120, // required? required to be > 0?
|
1137
|
+
maxRowHeight: false, // false or negative value to deactivate. Positive number to express the value in pixels,
|
1138
|
+
// A string '[0-9]+%' to express in percentage (e.g. 300% means that the row height
|
1139
|
+
// can't exceed 3 * rowHeight)
|
1140
|
+
margins: 1,
|
1141
|
+
border: -1, // negative value = same as margins, 0 = disabled, any other value to set the border
|
1142
|
+
|
1143
|
+
lastRow: 'nojustify', // … which is the same as 'left', or can be 'justify', 'center', 'right' or 'hide'
|
1144
|
+
|
1145
|
+
justifyThreshold: 0.90, /* if row width / available space > 0.90 it will be always justified
|
1146
|
+
* (i.e. lastRow setting is not considered) */
|
1147
|
+
waitThumbnailsLoad: true,
|
1148
|
+
captions: true,
|
1149
|
+
cssAnimation: true,
|
1150
|
+
imagesAnimationDuration: 500, // ignored with css animations
|
1151
|
+
captionSettings: { // ignored with css animations
|
1152
|
+
animationDuration: 500,
|
1153
|
+
visibleOpacity: 0.7,
|
1154
|
+
nonVisibleOpacity: 0.0
|
1155
|
+
},
|
1156
|
+
rel: null, // rewrite the rel of each analyzed links
|
1157
|
+
target: null, // rewrite the target of all links
|
1158
|
+
extension: /\.[^.\\/]+$/, // regexp to capture the extension of an image
|
1159
|
+
refreshTime: 200, // time interval (in ms) to check if the page changes its width
|
1160
|
+
refreshSensitivity: 0, // change in width allowed (in px) without re-building the gallery
|
1161
|
+
randomize: false,
|
1162
|
+
rtl: false, // right-to-left mode
|
1163
|
+
sort: false, /*
|
1164
|
+
- false: to do not sort
|
1165
|
+
- function: to sort them using the function as comparator (see Array.prototype.sort())
|
1166
|
+
*/
|
1167
|
+
filter: false, /*
|
1168
|
+
- false, null or undefined: for a disabled filter
|
1169
|
+
- a string: an entry is kept if entry.is(filter string) returns true
|
1170
|
+
see jQuery's .is() function for further information
|
1171
|
+
- a function: invoked with arguments (entry, index, array). Return true to keep the entry, false otherwise.
|
1172
|
+
It follows the specifications of the Array.prototype.filter() function of JavaScript.
|
1173
|
+
*/
|
1174
|
+
selector: 'a, div:not(.spinner)', // The selector that is used to know what are the entries of the gallery
|
1175
|
+
imgSelector: '> img, > a > img, > svg, > a > svg', // The selector that is used to know what are the images of each entry
|
1176
|
+
triggerEvent: function (event) { // This is called to trigger events, the default behavior is to call $.trigger
|
1177
|
+
this.$gallery.trigger(event); // Consider that 'this' is this set to the JustifiedGallery object, so it can
|
1178
|
+
} // access to fields such as $gallery, useful to trigger events with jQuery.
|
1179
|
+
};
|
1180
|
+
|
1181
|
+
|
1182
|
+
/**
|
1183
|
+
* Justified Gallery plugin for jQuery
|
1184
|
+
*
|
1185
|
+
* Events
|
1186
|
+
* - jg.complete : called when all the gallery has been created
|
1187
|
+
* - jg.resize : called when the gallery has been resized
|
1188
|
+
* - jg.rowflush : when a new row appears
|
1189
|
+
*
|
1190
|
+
* @param arg the action (or the settings) passed when the plugin is called
|
1191
|
+
* @returns {*} the object itself
|
1192
|
+
*/
|
1193
|
+
$.fn.justifiedGallery = function (arg) {
|
1194
|
+
return this.each(function (index, gallery) {
|
1195
|
+
|
1196
|
+
var $gallery = $(gallery);
|
1197
|
+
$gallery.addClass('justified-gallery');
|
1198
|
+
|
1199
|
+
var controller = $gallery.data('jg.controller');
|
1200
|
+
if (typeof controller === 'undefined') {
|
1201
|
+
// Create controller and assign it to the object data
|
1202
|
+
if (typeof arg !== 'undefined' && arg !== null && $.type(arg) !== 'object') {
|
1203
|
+
if (arg === 'destroy') return; // Just a call to an unexisting object
|
1204
|
+
throw 'The argument must be an object';
|
1205
|
+
}
|
1206
|
+
controller = new JustifiedGallery($gallery, $.extend({}, JustifiedGallery.prototype.defaults, arg));
|
1207
|
+
$gallery.data('jg.controller', controller);
|
1208
|
+
} else if (arg === 'norewind') {
|
1209
|
+
// In this case we don't rewind: we analyze only the latest images (e.g. to complete the last unfinished row
|
1210
|
+
// ... left to be more readable
|
1211
|
+
} else if (arg === 'destroy') {
|
1212
|
+
controller.destroy();
|
1213
|
+
return;
|
1214
|
+
} else {
|
1215
|
+
// In this case Justified Gallery has been called again changing only some options
|
1216
|
+
controller.updateSettings(arg);
|
1217
|
+
controller.rewind();
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
// Update the entries list
|
1221
|
+
if (!controller.updateEntries(arg === 'norewind')) return;
|
1222
|
+
|
1223
|
+
// Init justified gallery
|
1224
|
+
controller.init();
|
1225
|
+
|
1226
|
+
});
|
1227
|
+
};
|
1228
|
+
|
1229
|
+
}));
|