j1-template 2021.0.16 → 2021.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/blocks/footer/boxes/legal_statements.proc +4 -0
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +54 -39
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +15 -7
- data/_includes/themes/j1/modules/connectors/ads +4 -6
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +1 -1
- data/_includes/themes/j1/modules/connectors/analytics +5 -4
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +1 -1
- data/_includes/themes/j1/modules/connectors/comments +7 -6
- data/_includes/themes/j1/modules/connectors/translator +3 -4
- data/_includes/themes/j1/modules/navigator/generator.html +2 -38
- data/_includes/themes/j1/modules/navigator/generator.org.html +232 -0
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +2 -2
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +64 -22
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +14 -10
- data/_layouts/default.html +11 -1
- data/apps/public/cc/index.adoc +13 -4
- data/assets/data/authclient.html +234 -228
- data/assets/data/banner.html +34 -31
- data/assets/data/cookiebar.html +205 -198
- data/assets/data/fam.html +5 -0
- data/assets/data/footer.html +4 -0
- data/assets/data/footer.new.1.html +256 -0
- data/assets/data/footer.new.2.html +256 -0
- data/assets/data/footer.org.html +249 -0
- data/assets/data/galleries.json +2 -2
- data/assets/data/gallery_customizer.html +16 -6
- data/assets/data/menu.html +7 -2
- data/assets/data/mmenu.html +6 -2
- data/assets/data/mmenu_sidebar.html +5 -1
- data/assets/data/mmenu_toc.html +4 -0
- data/assets/data/panel.html +23 -15
- data/assets/data/quicklinks.html +6 -1
- data/assets/error_pages/HTTP204.html +2 -1
- data/assets/error_pages/HTTP400.html +2 -1
- data/assets/error_pages/HTTP401.html +2 -1
- data/assets/error_pages/HTTP403.html +2 -1
- data/assets/error_pages/HTTP404.html +2 -1
- data/assets/error_pages/HTTP500.html +2 -1
- data/assets/error_pages/HTTP501.html +2 -1
- data/assets/error_pages/HTTP502.html +2 -1
- data/assets/error_pages/HTTP503.html +2 -1
- data/assets/error_pages/HTTP520.html +2 -1
- data/assets/error_pages/HTTP521.html +2 -1
- data/assets/error_pages/HTTP533.html +2 -1
- data/assets/themes/j1/adapter/js/asciidoctor.js +166 -0
- data/assets/themes/j1/adapter/js/carousel.js +24 -0
- data/assets/themes/j1/adapter/js/fam.js +0 -12
- data/assets/themes/j1/adapter/js/j1.js +48 -25
- data/assets/themes/j1/adapter/js/j1.new.js +1878 -0
- data/assets/themes/j1/adapter/js/j1.org.js +1874 -0
- data/assets/themes/j1/adapter/js/{jf_gallery.js → justifiedGallery.js} +9 -9
- data/assets/themes/j1/adapter/js/{gallery_customizer.js → justifiedGalleryCustomizer.js} +14 -13
- data/assets/themes/j1/adapter/js/logger.js +35 -23
- data/assets/themes/j1/adapter/js/mmenu.js +8 -4
- data/assets/themes/j1/adapter/js/navigator.js +77 -34
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +17 -14
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +3959 -239
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +14 -2
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +8 -2
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +8 -2
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.css +58 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.min.css +5 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.css +778 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.min.css +5 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.css +981 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.min.css +5 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.eot +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.svg +47 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.ttf +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.woff +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/loading.gif +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/video-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/vimeo-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/youtube-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/animation-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/customize-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/dynamic-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/facebook-icon.svg +10 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/googleplus-icon.svg +30 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/html5-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/linked-in.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/module-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/play-button.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/responsive-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/thumb-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/touch-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter-icon.svg +15 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/video1-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/uno.css +262 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/uno.min.css +15 -0
- data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.js +1362 -0
- data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.min.js +4 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.js +402 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.min.js +8 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.js +206 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.js +126 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.js +101 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.js +105 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.js +107 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.js +478 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.js +342 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.js +527 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.min.js +5 -0
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +1368 -0
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.min.js +10 -0
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +344 -0
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.min.js +7 -0
- data/assets/themes/j1/modules/log4javascript/docs/backwardsincompatibilities.html +90 -0
- data/assets/themes/j1/modules/log4javascript/docs/distribution.html +87 -0
- data/assets/themes/j1/modules/log4javascript/docs/index.html +190 -0
- data/assets/themes/j1/modules/log4javascript/docs/lite.html +182 -0
- data/assets/themes/j1/modules/log4javascript/docs/manual.html +3217 -0
- data/assets/themes/j1/modules/log4javascript/docs/manual_lite.html +383 -0
- data/assets/themes/j1/modules/log4javascript/docs/quickstart.html +230 -0
- data/assets/themes/j1/modules/log4javascript/docs/whatsnew.html +86 -0
- data/assets/themes/j1/modules/log4javascript/js/log4javascript.js +5826 -0
- data/assets/themes/j1/modules/{util/js/log4javascript.js → log4javascript/js/log4javascript.min.js} +17 -0
- data/exe/j1 +1 -1
- data/lib/j1/commands/generate.rb +32 -9
- data/lib/{patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6 → j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.7}/fastfilereaderext.so +0 -0
- data/lib/{patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6 → j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.7}/rubyeventmachine.so +0 -0
- data/lib/j1/patches/rubygems/execjs-2.7.0/lib/execjs/external_runtime.rb +246 -0
- data/lib/j1/version.rb +3 -3
- data/lib/j1_app.rb +1 -1
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +8 -2
- data/lib/j1_app/j1_site_manager/static_site.no-cross-origin.rb +94 -0
- data/lib/j1_app/j1_site_manager/static_site.rb +13 -11
- data/lib/starter_web/Gemfile +20 -14
- data/lib/starter_web/_config.yml +77 -122
- data/lib/starter_web/_data/_defaults/j1_config.yml +460 -0
- data/lib/starter_web/_data/_defaults/resources.yml +626 -325
- data/lib/starter_web/_data/apps/defaults/{justified_gallery.yml → justifiedGallery.yml} +2 -2
- data/lib/starter_web/_data/apps/defaults/{gallery_customizer.yml → justifiedGalleryCustomizer.yml} +1 -0
- data/lib/starter_web/_data/apps/defaults/{light_gallery.yml → lightGallery.yml} +0 -0
- data/lib/starter_web/_data/apps/{justified_gallery.yml → justifiedGallery.yml} +7 -7
- data/lib/starter_web/_data/apps/{gallery_customizer.yml → justifiedGalleryCustomizer.yml} +0 -0
- data/lib/starter_web/_data/apps/{light_gallery.yml → lightGallery.yml} +0 -0
- data/lib/starter_web/_data/blocks/banner.yml +45 -51
- data/lib/starter_web/_data/blocks/footer.yml +15 -3
- data/lib/starter_web/_data/blocks/panel.yml +13 -13
- data/lib/starter_web/_data/builder/blog_navigator.yml +6 -1
- data/lib/starter_web/_data/j1_config.yml +8 -7
- data/lib/starter_web/_data/layouts/blog_archive.yml +9 -0
- data/lib/starter_web/_data/layouts/collection.yml +10 -0
- data/lib/starter_web/_data/layouts/default.yml +25 -59
- data/lib/starter_web/_data/layouts/home.yml +6 -5
- data/lib/starter_web/_data/layouts/page.yml +1 -1
- data/lib/starter_web/_data/modules/authentication.yml +11 -100
- data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -0
- data/lib/starter_web/_data/modules/defaults/cookiebar.yml +1 -0
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +37 -40
- data/lib/starter_web/_data/modules/defaults/navigator.yml +5 -2
- data/lib/starter_web/_data/modules/defaults/quicksearch.yml +2 -0
- data/lib/starter_web/_data/modules/log4javascript.yml +11 -83
- data/lib/starter_web/_data/modules/navigator.yml +24 -21
- data/lib/starter_web/_data/modules/navigator_menu.yml +27 -8
- data/lib/starter_web/_data/modules/quicksearch.yml +2 -0
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +15 -12
- data/lib/starter_web/_data/plugins/paginator.yml +5 -3
- data/lib/starter_web/_data/private.yml +29 -57
- data/lib/starter_web/_data/resources.yml +37 -17
- data/lib/starter_web/_data/utilities/defaults/util_srv.yml +49 -3
- data/lib/starter_web/_data/utilities/util_srv.yml +8 -65
- data/lib/starter_web/_includes/attributes.asciidoc +9 -6
- data/lib/starter_web/_plugins/asciidoctor-extensions/callout.rb +47 -5
- data/lib/starter_web/_plugins/asciidoctor-extensions/conum.rb +28 -1
- data/lib/starter_web/_plugins/lunr_index.rb +17 -2
- data/lib/starter_web/assets/images/collections/blog/featured/dynamic-web-access.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jamstack-generators.gif +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jamstack-generators.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/static-web-access.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/christa-dodoo-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/leon-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/machine-generator-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/j1-256x256.gif +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +42 -49
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-06-01-about-cookies.adoc → 2020-01-01-about-cookies.adoc} +37 -42
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-05-01-top-site-generators.adoc → 2021-03-01-site-generators.adoc} +51 -31
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +119 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +4 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +2 -8
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +3 -10
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +3 -10
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +3 -10
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +4 -2
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +4 -2
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +4 -2
- data/lib/starter_web/dot.gitattributes +1 -1
- data/lib/starter_web/dot.gitignore +5 -1
- data/lib/starter_web/index.html +7 -13
- data/lib/starter_web/package.json +5 -4
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/gallery.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/000_intro.adoc +7 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/100_chapter.adoc +5 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +7 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/900_references.adoc +5 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +7 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/100_chapter.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +2 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +7 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +6 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +41 -25
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +49 -29
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +47 -30
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +42 -14
- data/lib/starter_web/pages/public/blog/navigator/index.html +2 -5
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +45 -48
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +244 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +21 -20
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +6 -2
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +39 -35
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +38 -36
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +16 -14
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +11 -9
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +30 -27
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +50 -49
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +33 -22
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +116 -0
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +82 -0
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +77 -53
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +123 -0
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +85 -72
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/iframer.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +3 -3
- data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +1 -1940
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +7 -9
- data/lib/starter_web/pages/public/previewer/rouge.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +13 -9
- data/lib/starter_web/utilsrv/package.json +6 -2
- data/lib/starter_web/utilsrv/server.js +228 -55
- metadata +106 -216
- data/assets/data/menu.1.html +0 -505
- data/lib/starter_web/_data/_defaults/j1_light_gallery.yml +0 -110
- data/lib/starter_web/_data/_defaults/template_settings.yml +0 -258
- data/lib/starter_web/_data/plugins/defaults/notebooks.yml +0 -61
- data/lib/starter_web/_data/plugins/notebooks.yml +0 -70
- data/lib/starter_web/_data/private.yml@localhost +0 -199
- data/lib/starter_web/assets/images/collections/blog/featured/staticgen.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/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/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/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/daniel-jensen-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/florian-olivo-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/jason-rosewell-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/joel-filipe-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-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/markus-spiske-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske3-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/modules-apps-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/nicola-styles-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/no-time-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/responsive-text-1920x1280.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/spider-web-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280.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/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 +0 -2025
- 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 +0 -2020
- 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/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 +0 -432
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/auth_mgmr_signin_request_flow.uxf +0 -632
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/webhook_flow.uxf +0 -648
- 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/material/apple-touch-icon.png +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 +0 -122
- data/lib/starter_web/assets/images/pages/pen/jquery/src/banner.psd +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/coordinate-map.png +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/kibana-powershell.jpg +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/option_ignore_outgoing.png +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/winlogbeat-dashboard.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/1280px-PDCA_Process.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/annie-spratt-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/deming-cycle.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/humble-lamb-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/john-schnobrich-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/attributes.asciidoc +0 -37
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/documents/readme +0 -0
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/tables/debug_variables.asciidoc +0 -47
- data/lib/starter_web/pages/protected/site_search.adoc +0 -180
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.pdf +1 -5439
- data/lib/starter_web/pages/public/legal/en/000_copyright.adoc +0 -93
- data/lib/starter_web/pages/public/legal/en/100_impress.adoc +0 -55
- data/lib/starter_web/pages/public/legal/en/200_terms_of_use.adoc +0 -53
- data/lib/starter_web/pages/public/legal/en/eu/cookie.policy.asciidoc +0 -50
@@ -0,0 +1,5 @@
|
|
1
|
+
/*! lg-share - v1.1.0 - 2017-10-03
|
2
|
+
* http://sachinchoolur.github.io/lightGallery
|
3
|
+
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
4
|
+
|
5
|
+
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",googlePlus:!0,googlePlusDropdownText:"GooglePlus",pinterest:!0,pinterestDropdownText:"Pinterest"},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.core.s.share&&this.init(),this};c.prototype.init=function(){var b=this,c='<span id="lg-share" class="lg-icon"><ul class="lg-dropdown" style="position: absolute;">';c+=b.core.s.facebook?'<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.facebookDropdownText+"</span></a></li>":"",c+=b.core.s.twitter?'<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.twitterDropdownText+"</span></a></li>":"",c+=b.core.s.googlePlus?'<li><a id="lg-share-googleplus" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.googlePlusDropdownText+"</span></a></li>":"",c+=b.core.s.pinterest?'<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.pinterestDropdownText+"</span></a></li>":"",c+="</ul></span>",this.core.$outer.find(".lg-toolbar").append(c),this.core.$outer.find(".lg").append('<div id="lg-dropdown-overlay"></div>'),a("#lg-share").on("click.lg",function(){b.core.$outer.toggleClass("lg-dropdown-active")}),a("#lg-dropdown-overlay").on("click.lg",function(){b.core.$outer.removeClass("lg-dropdown-active")}),b.core.$el.on("onAfterSlide.lg.tm",function(c,d,e){setTimeout(function(){a("#lg-share-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(b.getSahreProps(e,"facebookShareUrl")||window.location.href)),a("#lg-share-twitter").attr("href","https://twitter.com/intent/tweet?text="+b.getSahreProps(e,"tweetText")+"&url="+encodeURIComponent(b.getSahreProps(e,"twitterShareUrl")||window.location.href)),a("#lg-share-googleplus").attr("href","https://plus.google.com/share?url="+encodeURIComponent(b.getSahreProps(e,"googleplusShareUrl")||window.location.href)),a("#lg-share-pinterest").attr("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(b.getSahreProps(e,"pinterestShareUrl")||window.location.href)+"&media="+encodeURIComponent(b.getSahreProps(e,"src"))+"&description="+b.getSahreProps(e,"pinterestText"))},100)})},c.prototype.getSahreProps=function(a,b){var c="";if(this.core.s.dynamic)c=this.core.s.dynamicEl[a][b];else{var d=this.core.$items.eq(a).attr("href"),e=this.core.$items.eq(a).data(b);c="src"===b?d||e:e}return c},c.prototype.destroy=function(){},a.fn.lightGallery.modules.share=c}()});
|
@@ -0,0 +1,478 @@
|
|
1
|
+
/*! lg-thumbnail - v1.1.0 - 2017-08-08
|
2
|
+
* http://sachinchoolur.github.io/lightGallery
|
3
|
+
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
4
|
+
|
5
|
+
(function (root, factory) {
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
7
|
+
// AMD. Register as an anonymous module unless amdModuleId is set
|
8
|
+
define(['jquery'], function (a0) {
|
9
|
+
return (factory(a0));
|
10
|
+
});
|
11
|
+
} else if (typeof exports === 'object') {
|
12
|
+
// Node. Does not work with strict CommonJS, but
|
13
|
+
// only CommonJS-like environments that support module.exports,
|
14
|
+
// like Node.
|
15
|
+
module.exports = factory(require('jquery'));
|
16
|
+
} else {
|
17
|
+
factory(jQuery);
|
18
|
+
}
|
19
|
+
}(this, function ($) {
|
20
|
+
|
21
|
+
(function() {
|
22
|
+
|
23
|
+
'use strict';
|
24
|
+
|
25
|
+
var defaults = {
|
26
|
+
thumbnail: true,
|
27
|
+
|
28
|
+
animateThumb: true,
|
29
|
+
currentPagerPosition: 'middle',
|
30
|
+
|
31
|
+
thumbWidth: 100,
|
32
|
+
thumbHeight: '80px',
|
33
|
+
thumbContHeight: 100,
|
34
|
+
thumbMargin: 5,
|
35
|
+
|
36
|
+
exThumbImage: false,
|
37
|
+
showThumbByDefault: true,
|
38
|
+
toogleThumb: true,
|
39
|
+
pullCaptionUp: true,
|
40
|
+
|
41
|
+
enableThumbDrag: true,
|
42
|
+
enableThumbSwipe: true,
|
43
|
+
swipeThreshold: 50,
|
44
|
+
|
45
|
+
loadYoutubeThumbnail: true,
|
46
|
+
youtubeThumbSize: 1,
|
47
|
+
|
48
|
+
loadVimeoThumbnail: true,
|
49
|
+
vimeoThumbSize: 'thumbnail_small',
|
50
|
+
|
51
|
+
loadDailymotionThumbnail: true
|
52
|
+
};
|
53
|
+
|
54
|
+
var Thumbnail = function(element) {
|
55
|
+
|
56
|
+
// get lightGallery core plugin data
|
57
|
+
this.core = $(element).data('lightGallery');
|
58
|
+
|
59
|
+
// extend module default settings with lightGallery core settings
|
60
|
+
this.core.s = $.extend({}, defaults, this.core.s);
|
61
|
+
|
62
|
+
this.$el = $(element);
|
63
|
+
this.$thumbOuter = null;
|
64
|
+
this.thumbOuterWidth = 0;
|
65
|
+
this.thumbTotalWidth = (this.core.$items.length * (this.core.s.thumbWidth + this.core.s.thumbMargin));
|
66
|
+
this.thumbIndex = this.core.index;
|
67
|
+
|
68
|
+
if (this.core.s.animateThumb) {
|
69
|
+
this.core.s.thumbHeight = '100%';
|
70
|
+
}
|
71
|
+
|
72
|
+
// Thumbnail animation value
|
73
|
+
this.left = 0;
|
74
|
+
|
75
|
+
this.init();
|
76
|
+
|
77
|
+
return this;
|
78
|
+
};
|
79
|
+
|
80
|
+
Thumbnail.prototype.init = function() {
|
81
|
+
var _this = this;
|
82
|
+
if (this.core.s.thumbnail && this.core.$items.length > 1) {
|
83
|
+
if (this.core.s.showThumbByDefault) {
|
84
|
+
setTimeout(function(){
|
85
|
+
_this.core.$outer.addClass('lg-thumb-open');
|
86
|
+
}, 700);
|
87
|
+
}
|
88
|
+
|
89
|
+
if (this.core.s.pullCaptionUp) {
|
90
|
+
this.core.$outer.addClass('lg-pull-caption-up');
|
91
|
+
}
|
92
|
+
|
93
|
+
this.build();
|
94
|
+
if (this.core.s.animateThumb && this.core.doCss()) {
|
95
|
+
if (this.core.s.enableThumbDrag) {
|
96
|
+
this.enableThumbDrag();
|
97
|
+
}
|
98
|
+
|
99
|
+
if (this.core.s.enableThumbSwipe) {
|
100
|
+
this.enableThumbSwipe();
|
101
|
+
}
|
102
|
+
|
103
|
+
this.thumbClickable = false;
|
104
|
+
} else {
|
105
|
+
this.thumbClickable = true;
|
106
|
+
}
|
107
|
+
|
108
|
+
this.toogle();
|
109
|
+
this.thumbkeyPress();
|
110
|
+
}
|
111
|
+
};
|
112
|
+
|
113
|
+
Thumbnail.prototype.build = function() {
|
114
|
+
var _this = this;
|
115
|
+
var thumbList = '';
|
116
|
+
var vimeoErrorThumbSize = '';
|
117
|
+
var $thumb;
|
118
|
+
var html = '<div class="lg-thumb-outer">' +
|
119
|
+
'<div class="lg-thumb lg-group">' +
|
120
|
+
'</div>' +
|
121
|
+
'</div>';
|
122
|
+
|
123
|
+
switch (this.core.s.vimeoThumbSize) {
|
124
|
+
case 'thumbnail_large':
|
125
|
+
vimeoErrorThumbSize = '640';
|
126
|
+
break;
|
127
|
+
case 'thumbnail_medium':
|
128
|
+
vimeoErrorThumbSize = '200x150';
|
129
|
+
break;
|
130
|
+
case 'thumbnail_small':
|
131
|
+
vimeoErrorThumbSize = '100x75';
|
132
|
+
}
|
133
|
+
|
134
|
+
_this.core.$outer.addClass('lg-has-thumb');
|
135
|
+
|
136
|
+
_this.core.$outer.find('.lg').append(html);
|
137
|
+
|
138
|
+
_this.$thumbOuter = _this.core.$outer.find('.lg-thumb-outer');
|
139
|
+
_this.thumbOuterWidth = _this.$thumbOuter.width();
|
140
|
+
|
141
|
+
if (_this.core.s.animateThumb) {
|
142
|
+
_this.core.$outer.find('.lg-thumb').css({
|
143
|
+
width: _this.thumbTotalWidth + 'px',
|
144
|
+
position: 'relative'
|
145
|
+
});
|
146
|
+
}
|
147
|
+
|
148
|
+
if (this.core.s.animateThumb) {
|
149
|
+
_this.$thumbOuter.css('height', _this.core.s.thumbContHeight + 'px');
|
150
|
+
}
|
151
|
+
|
152
|
+
function getThumb(src, thumb, index) {
|
153
|
+
var isVideo = _this.core.isVideo(src, index) || {};
|
154
|
+
var thumbImg;
|
155
|
+
var vimeoId = '';
|
156
|
+
|
157
|
+
if (isVideo.youtube || isVideo.vimeo || isVideo.dailymotion) {
|
158
|
+
if (isVideo.youtube) {
|
159
|
+
if (_this.core.s.loadYoutubeThumbnail) {
|
160
|
+
thumbImg = '//img.youtube.com/vi/' + isVideo.youtube[1] + '/' + _this.core.s.youtubeThumbSize + '.jpg';
|
161
|
+
} else {
|
162
|
+
thumbImg = thumb;
|
163
|
+
}
|
164
|
+
} else if (isVideo.vimeo) {
|
165
|
+
if (_this.core.s.loadVimeoThumbnail) {
|
166
|
+
thumbImg = '//i.vimeocdn.com/video/error_' + vimeoErrorThumbSize + '.jpg';
|
167
|
+
vimeoId = isVideo.vimeo[1];
|
168
|
+
} else {
|
169
|
+
thumbImg = thumb;
|
170
|
+
}
|
171
|
+
} else if (isVideo.dailymotion) {
|
172
|
+
if (_this.core.s.loadDailymotionThumbnail) {
|
173
|
+
thumbImg = '//www.dailymotion.com/thumbnail/video/' + isVideo.dailymotion[1];
|
174
|
+
} else {
|
175
|
+
thumbImg = thumb;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
} else {
|
179
|
+
thumbImg = thumb;
|
180
|
+
}
|
181
|
+
|
182
|
+
thumbList += '<div data-vimeo-id="' + vimeoId + '" class="lg-thumb-item" style="width:' + _this.core.s.thumbWidth + 'px; height: ' + _this.core.s.thumbHeight + '; margin-right: ' + _this.core.s.thumbMargin + 'px"><img src="' + thumbImg + '" /></div>';
|
183
|
+
vimeoId = '';
|
184
|
+
}
|
185
|
+
|
186
|
+
if (_this.core.s.dynamic) {
|
187
|
+
for (var i = 0; i < _this.core.s.dynamicEl.length; i++) {
|
188
|
+
getThumb(_this.core.s.dynamicEl[i].src, _this.core.s.dynamicEl[i].thumb, i);
|
189
|
+
}
|
190
|
+
} else {
|
191
|
+
_this.core.$items.each(function(i) {
|
192
|
+
|
193
|
+
if (!_this.core.s.exThumbImage) {
|
194
|
+
getThumb($(this).attr('href') || $(this).attr('data-src'), $(this).find('img').attr('src'), i);
|
195
|
+
} else {
|
196
|
+
getThumb($(this).attr('href') || $(this).attr('data-src'), $(this).attr(_this.core.s.exThumbImage), i);
|
197
|
+
}
|
198
|
+
|
199
|
+
});
|
200
|
+
}
|
201
|
+
|
202
|
+
_this.core.$outer.find('.lg-thumb').html(thumbList);
|
203
|
+
|
204
|
+
$thumb = _this.core.$outer.find('.lg-thumb-item');
|
205
|
+
|
206
|
+
// Load vimeo thumbnails
|
207
|
+
$thumb.each(function() {
|
208
|
+
var $this = $(this);
|
209
|
+
var vimeoVideoId = $this.attr('data-vimeo-id');
|
210
|
+
|
211
|
+
if (vimeoVideoId) {
|
212
|
+
$.getJSON('//www.vimeo.com/api/v2/video/' + vimeoVideoId + '.json?callback=?', {
|
213
|
+
format: 'json'
|
214
|
+
}, function(data) {
|
215
|
+
$this.find('img').attr('src', data[0][_this.core.s.vimeoThumbSize]);
|
216
|
+
});
|
217
|
+
}
|
218
|
+
});
|
219
|
+
|
220
|
+
// manage active class for thumbnail
|
221
|
+
$thumb.eq(_this.core.index).addClass('active');
|
222
|
+
_this.core.$el.on('onBeforeSlide.lg.tm', function() {
|
223
|
+
$thumb.removeClass('active');
|
224
|
+
$thumb.eq(_this.core.index).addClass('active');
|
225
|
+
});
|
226
|
+
|
227
|
+
$thumb.on('click.lg touchend.lg', function() {
|
228
|
+
var _$this = $(this);
|
229
|
+
setTimeout(function() {
|
230
|
+
|
231
|
+
// In IE9 and bellow touch does not support
|
232
|
+
// Go to slide if browser does not support css transitions
|
233
|
+
if ((_this.thumbClickable && !_this.core.lgBusy) || !_this.core.doCss()) {
|
234
|
+
_this.core.index = _$this.index();
|
235
|
+
_this.core.slide(_this.core.index, false, true, false);
|
236
|
+
}
|
237
|
+
}, 50);
|
238
|
+
});
|
239
|
+
|
240
|
+
_this.core.$el.on('onBeforeSlide.lg.tm', function() {
|
241
|
+
_this.animateThumb(_this.core.index);
|
242
|
+
});
|
243
|
+
|
244
|
+
$(window).on('resize.lg.thumb orientationchange.lg.thumb', function() {
|
245
|
+
setTimeout(function() {
|
246
|
+
_this.animateThumb(_this.core.index);
|
247
|
+
_this.thumbOuterWidth = _this.$thumbOuter.width();
|
248
|
+
}, 200);
|
249
|
+
});
|
250
|
+
|
251
|
+
};
|
252
|
+
|
253
|
+
Thumbnail.prototype.setTranslate = function(value) {
|
254
|
+
// jQuery supports Automatic CSS prefixing since jQuery 1.8.0
|
255
|
+
this.core.$outer.find('.lg-thumb').css({
|
256
|
+
transform: 'translate3d(-' + (value) + 'px, 0px, 0px)'
|
257
|
+
});
|
258
|
+
};
|
259
|
+
|
260
|
+
Thumbnail.prototype.animateThumb = function(index) {
|
261
|
+
var $thumb = this.core.$outer.find('.lg-thumb');
|
262
|
+
if (this.core.s.animateThumb) {
|
263
|
+
var position;
|
264
|
+
switch (this.core.s.currentPagerPosition) {
|
265
|
+
case 'left':
|
266
|
+
position = 0;
|
267
|
+
break;
|
268
|
+
case 'middle':
|
269
|
+
position = (this.thumbOuterWidth / 2) - (this.core.s.thumbWidth / 2);
|
270
|
+
break;
|
271
|
+
case 'right':
|
272
|
+
position = this.thumbOuterWidth - this.core.s.thumbWidth;
|
273
|
+
}
|
274
|
+
this.left = ((this.core.s.thumbWidth + this.core.s.thumbMargin) * index - 1) - position;
|
275
|
+
if (this.left > (this.thumbTotalWidth - this.thumbOuterWidth)) {
|
276
|
+
this.left = this.thumbTotalWidth - this.thumbOuterWidth;
|
277
|
+
}
|
278
|
+
|
279
|
+
if (this.left < 0) {
|
280
|
+
this.left = 0;
|
281
|
+
}
|
282
|
+
|
283
|
+
if (this.core.lGalleryOn) {
|
284
|
+
if (!$thumb.hasClass('on')) {
|
285
|
+
this.core.$outer.find('.lg-thumb').css('transition-duration', this.core.s.speed + 'ms');
|
286
|
+
}
|
287
|
+
|
288
|
+
if (!this.core.doCss()) {
|
289
|
+
$thumb.animate({
|
290
|
+
left: -this.left + 'px'
|
291
|
+
}, this.core.s.speed);
|
292
|
+
}
|
293
|
+
} else {
|
294
|
+
if (!this.core.doCss()) {
|
295
|
+
$thumb.css('left', -this.left + 'px');
|
296
|
+
}
|
297
|
+
}
|
298
|
+
|
299
|
+
this.setTranslate(this.left);
|
300
|
+
|
301
|
+
}
|
302
|
+
};
|
303
|
+
|
304
|
+
// Enable thumbnail dragging and swiping
|
305
|
+
Thumbnail.prototype.enableThumbDrag = function() {
|
306
|
+
|
307
|
+
var _this = this;
|
308
|
+
var startCoords = 0;
|
309
|
+
var endCoords = 0;
|
310
|
+
var isDraging = false;
|
311
|
+
var isMoved = false;
|
312
|
+
var tempLeft = 0;
|
313
|
+
|
314
|
+
_this.$thumbOuter.addClass('lg-grab');
|
315
|
+
|
316
|
+
_this.core.$outer.find('.lg-thumb').on('mousedown.lg.thumb', function(e) {
|
317
|
+
if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
|
318
|
+
// execute only on .lg-object
|
319
|
+
e.preventDefault();
|
320
|
+
startCoords = e.pageX;
|
321
|
+
isDraging = true;
|
322
|
+
|
323
|
+
// ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
|
324
|
+
_this.core.$outer.scrollLeft += 1;
|
325
|
+
_this.core.$outer.scrollLeft -= 1;
|
326
|
+
|
327
|
+
// *
|
328
|
+
_this.thumbClickable = false;
|
329
|
+
_this.$thumbOuter.removeClass('lg-grab').addClass('lg-grabbing');
|
330
|
+
}
|
331
|
+
});
|
332
|
+
|
333
|
+
$(window).on('mousemove.lg.thumb', function(e) {
|
334
|
+
if (isDraging) {
|
335
|
+
tempLeft = _this.left;
|
336
|
+
isMoved = true;
|
337
|
+
endCoords = e.pageX;
|
338
|
+
|
339
|
+
_this.$thumbOuter.addClass('lg-dragging');
|
340
|
+
|
341
|
+
tempLeft = tempLeft - (endCoords - startCoords);
|
342
|
+
|
343
|
+
if (tempLeft > (_this.thumbTotalWidth - _this.thumbOuterWidth)) {
|
344
|
+
tempLeft = _this.thumbTotalWidth - _this.thumbOuterWidth;
|
345
|
+
}
|
346
|
+
|
347
|
+
if (tempLeft < 0) {
|
348
|
+
tempLeft = 0;
|
349
|
+
}
|
350
|
+
|
351
|
+
// move current slide
|
352
|
+
_this.setTranslate(tempLeft);
|
353
|
+
|
354
|
+
}
|
355
|
+
});
|
356
|
+
|
357
|
+
$(window).on('mouseup.lg.thumb', function() {
|
358
|
+
if (isMoved) {
|
359
|
+
isMoved = false;
|
360
|
+
_this.$thumbOuter.removeClass('lg-dragging');
|
361
|
+
|
362
|
+
_this.left = tempLeft;
|
363
|
+
|
364
|
+
if (Math.abs(endCoords - startCoords) < _this.core.s.swipeThreshold) {
|
365
|
+
_this.thumbClickable = true;
|
366
|
+
}
|
367
|
+
|
368
|
+
} else {
|
369
|
+
_this.thumbClickable = true;
|
370
|
+
}
|
371
|
+
|
372
|
+
if (isDraging) {
|
373
|
+
isDraging = false;
|
374
|
+
_this.$thumbOuter.removeClass('lg-grabbing').addClass('lg-grab');
|
375
|
+
}
|
376
|
+
});
|
377
|
+
|
378
|
+
};
|
379
|
+
|
380
|
+
Thumbnail.prototype.enableThumbSwipe = function() {
|
381
|
+
var _this = this;
|
382
|
+
var startCoords = 0;
|
383
|
+
var endCoords = 0;
|
384
|
+
var isMoved = false;
|
385
|
+
var tempLeft = 0;
|
386
|
+
|
387
|
+
_this.core.$outer.find('.lg-thumb').on('touchstart.lg', function(e) {
|
388
|
+
if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
|
389
|
+
e.preventDefault();
|
390
|
+
startCoords = e.originalEvent.targetTouches[0].pageX;
|
391
|
+
_this.thumbClickable = false;
|
392
|
+
}
|
393
|
+
});
|
394
|
+
|
395
|
+
_this.core.$outer.find('.lg-thumb').on('touchmove.lg', function(e) {
|
396
|
+
if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
|
397
|
+
e.preventDefault();
|
398
|
+
endCoords = e.originalEvent.targetTouches[0].pageX;
|
399
|
+
isMoved = true;
|
400
|
+
|
401
|
+
_this.$thumbOuter.addClass('lg-dragging');
|
402
|
+
|
403
|
+
tempLeft = _this.left;
|
404
|
+
|
405
|
+
tempLeft = tempLeft - (endCoords - startCoords);
|
406
|
+
|
407
|
+
if (tempLeft > (_this.thumbTotalWidth - _this.thumbOuterWidth)) {
|
408
|
+
tempLeft = _this.thumbTotalWidth - _this.thumbOuterWidth;
|
409
|
+
}
|
410
|
+
|
411
|
+
if (tempLeft < 0) {
|
412
|
+
tempLeft = 0;
|
413
|
+
}
|
414
|
+
|
415
|
+
// move current slide
|
416
|
+
_this.setTranslate(tempLeft);
|
417
|
+
|
418
|
+
}
|
419
|
+
});
|
420
|
+
|
421
|
+
_this.core.$outer.find('.lg-thumb').on('touchend.lg', function() {
|
422
|
+
if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
|
423
|
+
|
424
|
+
if (isMoved) {
|
425
|
+
isMoved = false;
|
426
|
+
_this.$thumbOuter.removeClass('lg-dragging');
|
427
|
+
if (Math.abs(endCoords - startCoords) < _this.core.s.swipeThreshold) {
|
428
|
+
_this.thumbClickable = true;
|
429
|
+
}
|
430
|
+
|
431
|
+
_this.left = tempLeft;
|
432
|
+
} else {
|
433
|
+
_this.thumbClickable = true;
|
434
|
+
}
|
435
|
+
} else {
|
436
|
+
_this.thumbClickable = true;
|
437
|
+
}
|
438
|
+
});
|
439
|
+
|
440
|
+
};
|
441
|
+
|
442
|
+
Thumbnail.prototype.toogle = function() {
|
443
|
+
var _this = this;
|
444
|
+
if (_this.core.s.toogleThumb) {
|
445
|
+
_this.core.$outer.addClass('lg-can-toggle');
|
446
|
+
_this.$thumbOuter.append('<span class="lg-toogle-thumb lg-icon"></span>');
|
447
|
+
_this.core.$outer.find('.lg-toogle-thumb').on('click.lg', function() {
|
448
|
+
_this.core.$outer.toggleClass('lg-thumb-open');
|
449
|
+
});
|
450
|
+
}
|
451
|
+
};
|
452
|
+
|
453
|
+
Thumbnail.prototype.thumbkeyPress = function() {
|
454
|
+
var _this = this;
|
455
|
+
$(window).on('keydown.lg.thumb', function(e) {
|
456
|
+
if (e.keyCode === 38) {
|
457
|
+
e.preventDefault();
|
458
|
+
_this.core.$outer.addClass('lg-thumb-open');
|
459
|
+
} else if (e.keyCode === 40) {
|
460
|
+
e.preventDefault();
|
461
|
+
_this.core.$outer.removeClass('lg-thumb-open');
|
462
|
+
}
|
463
|
+
});
|
464
|
+
};
|
465
|
+
|
466
|
+
Thumbnail.prototype.destroy = function() {
|
467
|
+
if (this.core.s.thumbnail && this.core.$items.length > 1) {
|
468
|
+
$(window).off('resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb');
|
469
|
+
this.$thumbOuter.remove();
|
470
|
+
this.core.$outer.removeClass('lg-has-thumb');
|
471
|
+
}
|
472
|
+
};
|
473
|
+
|
474
|
+
$.fn.lightGallery.modules.Thumbnail = Thumbnail;
|
475
|
+
|
476
|
+
})();
|
477
|
+
|
478
|
+
}));
|