j1-template 2023.0.17 → 2023.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_collection.html +2 -3
- data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +2 -2
- data/_includes/themes/j1/modules/attics/generator.html +3 -1
- data/_includes/themes/j1/modules/navigator/generator.html +2 -2
- data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +1 -1
- data/_layouts/{paginator/autopage_category.html → autopage_category.html} +1 -1
- data/_layouts/{paginator/autopage_collection.html → autopage_collection.html} +1 -6
- data/_layouts/{paginator/autopage_collections_tags.html → autopage_collections_tags.html} +1 -1
- data/_layouts/category.html +67 -0
- data/_layouts/readme +2 -0
- data/assets/data/banner.html +8 -6
- data/assets/data/masonry.html +397 -0
- data/assets/data/panel.html +1 -1
- data/assets/data/quicklinks.html +12 -12
- data/assets/data/slick.html +288 -0
- data/assets/error_pages/HTTP204.html +1 -1
- data/assets/error_pages/HTTP400.html +1 -1
- data/assets/error_pages/HTTP401.html +1 -1
- data/assets/error_pages/HTTP403.html +1 -1
- data/assets/error_pages/HTTP404.html +1 -1
- data/assets/error_pages/HTTP444.html +1 -1
- data/assets/error_pages/HTTP445.html +1 -1
- data/assets/error_pages/HTTP446.html +1 -1
- data/assets/error_pages/HTTP447.html +1 -1
- data/assets/error_pages/HTTP448.html +1 -1
- data/assets/error_pages/HTTP500.html +1 -1
- data/assets/error_pages/HTTP501.html +1 -1
- data/assets/error_pages/HTTP502.html +1 -1
- data/assets/error_pages/HTTP503.html +1 -1
- data/assets/themes/j1/adapter/js/attic.js +31 -16
- data/assets/themes/j1/adapter/js/j1.js +55 -21
- data/assets/themes/j1/adapter/js/masonry.js +119 -49
- data/assets/themes/j1/adapter/js/mmenu.js +4 -3
- data/assets/themes/j1/adapter/js/navigator.js +69 -19
- data/assets/themes/j1/adapter/js/slick.js +293 -44
- data/assets/themes/j1/adapter/js/toccer.js +27 -14
- data/assets/themes/j1/adapter/js/waves.js +3 -1
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +294 -364
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +2 -2
- data/assets/themes/j1/core/js/template.js +56 -60
- data/assets/themes/j1/core/js/template.min.js +6 -6
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/masonry/css/theme/uno.css +35 -0
- data/assets/themes/j1/modules/masonry/css/theme/uno.min.css +15 -0
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +3 -3
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +1 -1
- data/assets/themes/j1/modules/slick/lightbox/LICENSE +20 -0
- data/assets/themes/j1/modules/slick/lightbox/README.md +138 -0
- data/assets/themes/j1/modules/slick/lightbox/css/slick-lightbox.css +128 -0
- data/assets/themes/j1/modules/slick/lightbox/css/slick-lightbox.min.css +1 -0
- data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.css +36 -0
- data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.min.css +15 -0
- data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.js +353 -0
- data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js +2 -0
- data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js.map +1 -0
- data/assets/themes/j1/modules/slick/{README.md → slider/README.md} +13 -14
- data/assets/themes/j1/modules/slick/{css → slider/css}/slick.css +16 -10
- data/assets/themes/j1/modules/slick/slider/css/slick.min.css +15 -0
- data/assets/themes/j1/modules/slick/slider/css/theme/uno.css +292 -0
- data/assets/themes/j1/modules/slick/slider/css/theme/uno.min.css +15 -0
- data/assets/themes/j1/modules/slick/{fonts → slider/fonts}/slick.svg +14 -14
- data/assets/themes/j1/modules/slick/slider/js/slick.js +3037 -0
- data/assets/themes/j1/modules/translator/css/translator.css +3 -19
- data/assets/themes/j1/modules/translator/css/translator.min.css +1 -1
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.2/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.2/rubyeventmachine.so +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app/log4r/yamlconfigurator.rb +41 -41
- data/lib/starter_web/Gemfile +4 -4
- data/lib/starter_web/README.md +142 -143
- data/lib/starter_web/_config.yml +55 -25
- data/lib/starter_web/_data/blocks/banner.yml +45 -46
- data/lib/starter_web/_data/blocks/defaults/banner.yml +4 -4
- data/lib/starter_web/_data/blocks/defaults/panel.yml +11 -11
- data/lib/starter_web/_data/blocks/footer.yml +2 -2
- data/lib/starter_web/_data/blocks/panel.yml +9 -9
- data/lib/starter_web/_data/layouts/collection.yml +9 -0
- data/lib/starter_web/_data/layouts/home.yml +51 -21
- data/lib/starter_web/_data/layouts/page.yml +36 -3
- data/lib/starter_web/_data/layouts/post.yml +36 -3
- data/lib/starter_web/_data/layouts/raw.yml +35 -3
- data/lib/starter_web/_data/modules/advertising.yml +1 -2
- data/lib/starter_web/_data/modules/analytics.yml +1 -2
- data/lib/starter_web/_data/modules/attics.yml +2 -2
- data/lib/starter_web/_data/modules/blog_navigator.yml +1 -2
- data/lib/starter_web/_data/modules/carousel.yml +1 -2
- data/lib/starter_web/_data/modules/comments.yml +1 -2
- data/lib/starter_web/_data/modules/cookieconsent.yml +1 -2
- data/lib/starter_web/_data/modules/cookies.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/advertising.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/analytics.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/attics.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/carousel.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/comments.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/cookies.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/dropdowns.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/fab.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/framer.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/justifiedGallery.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/lightGallery.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/lightbox.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/log4r.yml +7 -9
- data/lib/starter_web/_data/modules/defaults/lunr.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/masonry.yml +52 -23
- data/lib/starter_web/_data/modules/defaults/navigator.yml +13 -12
- data/lib/starter_web/_data/modules/defaults/nbinteract.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/particles.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/rangeSlider.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/rtable.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/{scoller.yml → scroller.yml} +8 -2
- data/lib/starter_web/_data/modules/defaults/slick.yml +493 -0
- data/lib/starter_web/_data/modules/defaults/themer.yml +1 -2
- data/lib/starter_web/_data/modules/defaults/toccer.yml +2 -3
- data/lib/starter_web/_data/modules/defaults/translator.yml +2 -3
- data/lib/starter_web/_data/modules/defaults/waves.yml +1 -2
- data/lib/starter_web/_data/modules/dropdowns.yml +1 -2
- data/lib/starter_web/_data/modules/fab.yml +1 -2
- data/lib/starter_web/_data/modules/framer.yml +1 -2
- data/lib/starter_web/_data/modules/justifiedGallery.yml +1 -2
- data/lib/starter_web/_data/modules/lightGallery.yml +1 -2
- data/lib/starter_web/_data/modules/lightbox.yml +1 -2
- data/lib/starter_web/_data/modules/log4r.yml +140 -7
- data/lib/starter_web/_data/modules/lunr.yml +1 -2
- data/lib/starter_web/_data/modules/masonry.yml +293 -24
- data/lib/starter_web/_data/modules/masterslider.yml +2 -1
- data/lib/starter_web/_data/modules/navigator.yml +13 -25
- data/lib/starter_web/_data/modules/navigator_menu.yml +632 -560
- data/lib/starter_web/_data/modules/particles.yml +1 -2
- data/lib/starter_web/_data/modules/rangeSlider.yml +1 -2
- data/lib/starter_web/_data/modules/rtable.yml +1 -2
- data/lib/starter_web/_data/modules/scroller.yml +9 -3
- data/lib/starter_web/_data/modules/slick.yml +501 -0
- data/lib/starter_web/_data/modules/themer.yml +1 -2
- data/lib/starter_web/_data/modules/toccer.yml +1 -2
- data/lib/starter_web/_data/modules/translator.yml +1 -2
- data/lib/starter_web/_data/modules/waves.yml +1 -2
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +23 -4
- data/lib/starter_web/_data/plugins/paginator.yml +10 -13
- data/lib/starter_web/_data/puma/config.rb +10 -0
- data/lib/starter_web/_data/resources.yml +36 -29
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_data/utilities/defaults/util_srv.yml +2 -2
- data/lib/starter_web/_data/utilities/util_srv.yml +2 -3
- data/lib/starter_web/_includes/attributes.asciidoc +24 -0
- data/lib/starter_web/_includes/custom/static/readme +1 -1
- data/lib/starter_web/_includes/custom/templates/collection_panel.html +131 -0
- data/lib/starter_web/_includes/custom/templates/custom_header.html +98 -0
- data/lib/starter_web/_includes/custom/templates/people_panel.html +144 -0
- data/lib/starter_web/_includes/custom/templates/readme +1 -1
- data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +50 -0
- data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +7 -6
- data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +10 -0
- data/lib/starter_web/_plugins/asciidoctor/placeholder-inline.rb +44 -0
- data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +49 -0
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/images/collections/people/diana-petersen.jpg +0 -0
- data/lib/starter_web/assets/images/collections/people/larry-parker.jpg +0 -0
- data/lib/starter_web/assets/images/collections/people/parveen-anand.jpg +0 -0
- data/lib/starter_web/assets/images/collections/portfolio/1.jpg +0 -0
- data/lib/starter_web/assets/images/collections/portfolio/2.jpg +0 -0
- data/lib/starter_web/assets/images/collections/portfolio/3.jpg +0 -0
- data/lib/starter_web/assets/images/collections/portfolio/4.jpg +0 -0
- data/lib/starter_web/assets/images/collections/portfolio/5.jpg +0 -0
- data/lib/starter_web/assets/images/collections/portfolio/6.jpg +0 -0
- data/lib/starter_web/assets/images/custom/header/avatar.svg +248 -0
- data/lib/starter_web/assets/images/custom/header/family.svg +2209 -0
- data/lib/starter_web/assets/images/icons/controls/close-icon.svg +1 -0
- data/lib/starter_web/assets/images/icons/controls/up.svg +1 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/kelly-sikkemal.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/kira-auf-der-heide.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/old_times/image_02.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-1.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-2.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-3.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-4.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-5.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-1.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-10.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-11.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-12.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-13.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-2.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-3.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-4.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-5.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-6.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-7.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-8.jpg +0 -0
- data/lib/starter_web/assets/images/posts/natural_food/post-9.jpg +0 -0
- data/lib/starter_web/assets/images/posts/post-img.jpg +0 -0
- data/lib/starter_web/assets/images/posts/post-single.jpg +0 -0
- data/lib/starter_web/collections/_biography/a-life-in-questions.adoc +12 -8
- data/lib/starter_web/collections/_biography/becoming.adoc +11 -8
- data/lib/starter_web/collections/_biography/born-to-run.adoc +11 -8
- data/lib/starter_web/collections/_biography/forty-autumns.adoc +11 -7
- data/lib/starter_web/collections/_biography/not-dead-yet.adoc +11 -9
- data/lib/starter_web/collections/_biography/princess-diarist-the.adoc +11 -7
- data/lib/starter_web/collections/_biography/when-breath-becomes-air.adoc +12 -10
- data/lib/starter_web/collections/_fantasy/harry-potter-deathly-hallows.adoc +92 -0
- data/lib/starter_web/collections/_fantasy/harry-potter-philosophers-stone.adoc +92 -0
- data/lib/starter_web/collections/_fantasy/mistborn-trilogy.adoc +88 -0
- data/lib/starter_web/collections/_fantasy/ready-player-one.adoc +94 -0
- data/lib/starter_web/collections/_fantasy/sword-of-destiny.adoc +88 -0
- data/lib/starter_web/collections/_fantasy/terry-pratchet-diary-2017.adoc +86 -0
- data/lib/starter_web/collections/_people/diana-petersen.adoc +167 -0
- data/lib/starter_web/collections/_people/larry-parker.adoc +167 -0
- data/lib/starter_web/collections/_people/parveen-anand.adoc +167 -0
- data/lib/starter_web/collections/_portfolio/branding.adoc +97 -0
- data/lib/starter_web/collections/_portfolio/graphic_design.adoc +97 -0
- data/lib/starter_web/collections/_portfolio/identity.adoc +99 -0
- data/lib/starter_web/collections/_portfolio/illustration.adoc +101 -0
- data/lib/starter_web/collections/_portfolio/photography.adoc +100 -0
- data/lib/starter_web/collections/_portfolio/web_design.adoc +109 -0
- data/lib/starter_web/collections/_romance/breath-of-snow-and-ashes-a.adoc +95 -0
- data/lib/starter_web/collections/_romance/dressmaker-the.adoc +86 -0
- data/lib/starter_web/collections/_romance/fiery-cross-the.adoc +97 -0
- data/lib/starter_web/collections/_romance/it-ends-with-us.adoc +92 -0
- data/lib/starter_web/collections/_romance/outlander-novel.adoc +105 -0
- data/lib/starter_web/collections/_romance/virgins-outlander-short-story.adoc +92 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +49 -6
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +0 -13
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-01-organize-your-life.adoc +118 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-02-organize-your-life.adoc +118 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-03-organize-your-life.adoc +118 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2022-09-01-organize-your-life.adoc +117 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2022-09-02-organize-your-life.adoc +117 -0
- data/lib/starter_web/dot.bundle/config +2 -0
- data/lib/starter_web/index.html +19 -4
- data/lib/starter_web/package.json +9 -9
- data/lib/starter_web/pages/public/about/site.adoc +2 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/allview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -1
- data/lib/starter_web/pages/public/features/template.adoc +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +107 -0
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +98 -0
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +86 -0
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +87 -0
- data/lib/starter_web/pages/public/{bookshelf/whats_up.adoc → learn/bookshelf/jekyll_collections.adoc} +31 -23
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +8 -4
- data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +21 -13
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +10 -1
- data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +22 -5
- data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +14 -8
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +61 -5
- data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +15 -3
- data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +13 -1
- data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +10 -3
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +4 -4
- data/lib/starter_web/pages/public/plans/plans.adoc +25 -12
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +117 -116
- data/lib/starter_web/utilsrv/_defaults/package.json +2 -2
- data/lib/starter_web/utilsrv/package.json +2 -2
- metadata +120 -38
- data/_layouts/paginator/readme +0 -2
- data/assets/themes/j1/modules/slick/css/slick.min.css +0 -15
- data/assets/themes/j1/modules/slick/js/slick.js +0 -2295
- 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/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +0 -144
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +0 -103
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +0 -117
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/attributes.asciidoc +0 -44
- 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/readme +0 -0
- data/lib/starter_web/pages/public/bookshelf/viewer_biography.adoc +0 -58
- /data/_layouts/{paginator/autopage_tags.html → autopage_tags.html} +0 -0
- /data/assets/themes/j1/modules/slick/{LICENSE → slider/LICENSE} +0 -0
- /data/assets/themes/j1/modules/slick/{fonts → slider/fonts}/slick.eot +0 -0
- /data/assets/themes/j1/modules/slick/{fonts → slider/fonts}/slick.ttf +0 -0
- /data/assets/themes/j1/modules/slick/{fonts → slider/fonts}/slick.woff +0 -0
- /data/assets/themes/j1/modules/slick/{ajax-loader.gif → slider/images/ajax-loader.gif} +0 -0
- /data/assets/themes/j1/modules/slick/{js → slider/js}/slick.min.js +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/dynamic-web-access.png +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jamstack-generators.png +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jekyll.1200x400.png +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jekyll.png +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/static-web-access.png +0 -0
@@ -0,0 +1,353 @@
|
|
1
|
+
'use strict';
|
2
|
+
(function ($) {
|
3
|
+
var SlickLightbox, defaults;
|
4
|
+
SlickLightbox = function () {
|
5
|
+
/*
|
6
|
+
The core class.
|
7
|
+
*/
|
8
|
+
function SlickLightbox(element, options1) {
|
9
|
+
var slickLightbox;
|
10
|
+
this.options = options1;
|
11
|
+
/* Binds the plugin. */
|
12
|
+
this.$element = $(element);
|
13
|
+
this.didInit = false;
|
14
|
+
slickLightbox = this;
|
15
|
+
this.$element.on('click.slickLightbox', this.options.itemSelector, function (e) {
|
16
|
+
var $clickedItem, $items;
|
17
|
+
e.preventDefault();
|
18
|
+
$clickedItem = $(this);
|
19
|
+
$clickedItem.blur();
|
20
|
+
if (typeof slickLightbox.options.shouldOpen === 'function') {
|
21
|
+
if (!slickLightbox.options.shouldOpen(slickLightbox, $clickedItem, e)) {
|
22
|
+
return;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
$items = slickLightbox.$element.find(slickLightbox.options.itemSelector);
|
26
|
+
if (slickLightbox.elementIsSlick()) {
|
27
|
+
$items = slickLightbox.filterOutSlickClones($items);
|
28
|
+
$clickedItem = slickLightbox.handlePossibleCloneClick($clickedItem, $items);
|
29
|
+
}
|
30
|
+
return slickLightbox.init($items.index($clickedItem));
|
31
|
+
});
|
32
|
+
}
|
33
|
+
SlickLightbox.prototype.init = function (index) {
|
34
|
+
/* Creates the lightbox, opens it, binds events and calls `slick`. Accepts `index` of the element, that triggered it (so that we know, on which slide to start slick). */
|
35
|
+
this.didInit = true;
|
36
|
+
this.detectIE();
|
37
|
+
this.createModal();
|
38
|
+
this.bindEvents();
|
39
|
+
this.initSlick(index);
|
40
|
+
return this.open();
|
41
|
+
};
|
42
|
+
SlickLightbox.prototype.createModalItems = function () {
|
43
|
+
/* Creates individual slides to be used with slick. If `options.images` array is specified, it uses it's contents, otherwise loops through elements' `options.itemSelector`. */
|
44
|
+
var $items, createItem, itemTemplate, lazyPlaceholder, length, links;
|
45
|
+
lazyPlaceholder = this.options.lazyPlaceholder || 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
|
46
|
+
itemTemplate = function (source, caption, lazy) {
|
47
|
+
var imgSourceParams;
|
48
|
+
if (lazy === true) {
|
49
|
+
imgSourceParams = ' data-lazy="' + source + '" src="' + lazyPlaceholder + '" ';
|
50
|
+
} else {
|
51
|
+
imgSourceParams = ' src="' + source + '" ';
|
52
|
+
}
|
53
|
+
return '<div class="slick-lightbox-slick-item">\n <div class="slick-lightbox-slick-item-inner">\n <img class="slick-lightbox-slick-img" ' + imgSourceParams + ' />\n ' + caption + '\n </div>\n</div>';
|
54
|
+
};
|
55
|
+
if (this.options.images) {
|
56
|
+
links = $.map(this.options.images, function (_this) {
|
57
|
+
return function (img) {
|
58
|
+
return itemTemplate(img, _this.options.lazy);
|
59
|
+
};
|
60
|
+
}(this));
|
61
|
+
} else {
|
62
|
+
$items = this.filterOutSlickClones(this.$element.find(this.options.itemSelector));
|
63
|
+
length = $items.length;
|
64
|
+
createItem = function (_this) {
|
65
|
+
return function (el, index) {
|
66
|
+
var caption, info, src;
|
67
|
+
info = {
|
68
|
+
index: index,
|
69
|
+
length: length
|
70
|
+
};
|
71
|
+
caption = _this.getElementCaption(el, info);
|
72
|
+
src = _this.getElementSrc(el);
|
73
|
+
return itemTemplate(src, caption, _this.options.lazy);
|
74
|
+
};
|
75
|
+
}(this);
|
76
|
+
links = $.map($items, createItem);
|
77
|
+
}
|
78
|
+
return links;
|
79
|
+
};
|
80
|
+
SlickLightbox.prototype.createModal = function () {
|
81
|
+
/* Creates a `slick`-friendly modal. */
|
82
|
+
var html, links;
|
83
|
+
links = this.createModalItems();
|
84
|
+
html = '<div class="slick-lightbox slick-lightbox-hide-init' + (this.isIE ? ' slick-lightbox-ie' : '') + '" style="background: ' + this.options.background + ';">\n <div class="slick-lightbox-inner">\n <div class="slick-lightbox-slick slick-caption-' + this.options.captionPosition + '">' + links.join('') + '</div>\n <div>\n<div>';
|
85
|
+
this.$modalElement = $(html);
|
86
|
+
this.$parts = {};
|
87
|
+
this.$parts['closeButton'] = $(this.options.layouts.closeButton);
|
88
|
+
this.$modalElement.find('.slick-lightbox-inner').append(this.$parts['closeButton']);
|
89
|
+
return $('body').append(this.$modalElement);
|
90
|
+
};
|
91
|
+
SlickLightbox.prototype.initSlick = function (index) {
|
92
|
+
/* Runs slick by default, using `options.slick` if provided. If `options.slick` is a function, it gets fired instead of us initializing slick. Merges in initialSlide option. */
|
93
|
+
var additional;
|
94
|
+
additional = { initialSlide: index };
|
95
|
+
if (this.options.lazy) {
|
96
|
+
additional.lazyLoad = 'ondemand';
|
97
|
+
}
|
98
|
+
if (this.options.slick != null) {
|
99
|
+
if (typeof this.options.slick === 'function') {
|
100
|
+
this.slick = this.options.slick(this.$modalElement);
|
101
|
+
} else {
|
102
|
+
this.slick = this.$modalElement.find('.slick-lightbox-slick').slick($.extend({}, this.options.slick, additional));
|
103
|
+
}
|
104
|
+
} else {
|
105
|
+
this.slick = this.$modalElement.find('.slick-lightbox-slick').slick(additional);
|
106
|
+
}
|
107
|
+
return this.$modalElement.trigger('init.slickLightbox');
|
108
|
+
};
|
109
|
+
SlickLightbox.prototype.open = function () {
|
110
|
+
/* Opens the lightbox. */
|
111
|
+
if (this.options.useHistoryApi) {
|
112
|
+
this.writeHistory();
|
113
|
+
}
|
114
|
+
this.$element.trigger('show.slickLightbox');
|
115
|
+
setTimeout(function (_this) {
|
116
|
+
return function () {
|
117
|
+
return _this.$element.trigger('shown.slickLightbox');
|
118
|
+
};
|
119
|
+
}(this), this.getTransitionDuration());
|
120
|
+
return this.$modalElement.removeClass('slick-lightbox-hide-init');
|
121
|
+
};
|
122
|
+
SlickLightbox.prototype.close = function () {
|
123
|
+
/* Closes the lightbox and destroys it, maintaining the original element bindings. */
|
124
|
+
this.$element.trigger('hide.slickLightbox');
|
125
|
+
setTimeout(function (_this) {
|
126
|
+
return function () {
|
127
|
+
return _this.$element.trigger('hidden.slickLightbox');
|
128
|
+
};
|
129
|
+
}(this), this.getTransitionDuration());
|
130
|
+
this.$modalElement.addClass('slick-lightbox-hide');
|
131
|
+
return this.destroy();
|
132
|
+
};
|
133
|
+
SlickLightbox.prototype.bindEvents = function () {
|
134
|
+
/* Binds global events. */
|
135
|
+
var resizeSlides;
|
136
|
+
resizeSlides = function (_this) {
|
137
|
+
return function () {
|
138
|
+
var h;
|
139
|
+
h = _this.$modalElement.find('.slick-lightbox-inner').height();
|
140
|
+
_this.$modalElement.find('.slick-lightbox-slick-item').height(h);
|
141
|
+
return _this.$modalElement.find('.slick-lightbox-slick-img, .slick-lightbox-slick-item-inner').css('max-height', Math.round(_this.options.imageMaxHeight * h));
|
142
|
+
};
|
143
|
+
}(this);
|
144
|
+
$(window).on('orientationchange.slickLightbox resize.slickLightbox', resizeSlides);
|
145
|
+
if (this.options.useHistoryApi) {
|
146
|
+
$(window).on('popstate.slickLightbox', function (_this) {
|
147
|
+
return function () {
|
148
|
+
return _this.close();
|
149
|
+
};
|
150
|
+
}(this));
|
151
|
+
}
|
152
|
+
this.$modalElement.on('init.slickLightbox', resizeSlides);
|
153
|
+
this.$modalElement.on('destroy.slickLightbox', function (_this) {
|
154
|
+
return function () {
|
155
|
+
return _this.destroy();
|
156
|
+
};
|
157
|
+
}(this));
|
158
|
+
this.$element.on('destroy.slickLightbox', function (_this) {
|
159
|
+
return function () {
|
160
|
+
return _this.destroy(true);
|
161
|
+
};
|
162
|
+
}(this));
|
163
|
+
this.$parts['closeButton'].on('click.slickLightbox touchstart.slickLightbox', function (_this) {
|
164
|
+
return function (e) {
|
165
|
+
e.preventDefault();
|
166
|
+
return _this.close();
|
167
|
+
};
|
168
|
+
}(this));
|
169
|
+
if (this.options.closeOnEscape || this.options.navigateByKeyboard) {
|
170
|
+
$(document).on('keydown.slickLightbox', function (_this) {
|
171
|
+
return function (e) {
|
172
|
+
var code;
|
173
|
+
code = e.keyCode ? e.keyCode : e.which;
|
174
|
+
if (_this.options.navigateByKeyboard) {
|
175
|
+
if (code === 37) {
|
176
|
+
_this.slideSlick('left');
|
177
|
+
} else if (code === 39) {
|
178
|
+
_this.slideSlick('right');
|
179
|
+
}
|
180
|
+
}
|
181
|
+
if (_this.options.closeOnEscape) {
|
182
|
+
if (code === 27) {
|
183
|
+
return _this.close();
|
184
|
+
}
|
185
|
+
}
|
186
|
+
};
|
187
|
+
}(this));
|
188
|
+
}
|
189
|
+
if (this.options.closeOnBackdropClick) {
|
190
|
+
this.$modalElement.on('click.slickLightbox touchstart.slickLightbox', '.slick-lightbox-slick-img', function (e) {
|
191
|
+
return e.stopPropagation();
|
192
|
+
});
|
193
|
+
return this.$modalElement.on('click.slickLightbox', '.slick-lightbox-slick-item', function (_this) {
|
194
|
+
return function (e) {
|
195
|
+
e.preventDefault();
|
196
|
+
return _this.close();
|
197
|
+
};
|
198
|
+
}(this));
|
199
|
+
}
|
200
|
+
};
|
201
|
+
SlickLightbox.prototype.slideSlick = function (direction) {
|
202
|
+
/* Moves the slick prev or next. */
|
203
|
+
if (direction === 'left') {
|
204
|
+
return this.slick.slick('slickPrev');
|
205
|
+
} else {
|
206
|
+
return this.slick.slick('slickNext');
|
207
|
+
}
|
208
|
+
};
|
209
|
+
SlickLightbox.prototype.detectIE = function () {
|
210
|
+
/* Detects usage of IE8 and lower. */
|
211
|
+
var ieversion;
|
212
|
+
this.isIE = false;
|
213
|
+
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
|
214
|
+
ieversion = new Number(RegExp.$1);
|
215
|
+
if (ieversion < 9) {
|
216
|
+
return this.isIE = true;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
};
|
220
|
+
SlickLightbox.prototype.getElementCaption = function (el, info) {
|
221
|
+
/* Returns caption for each slide based on the type of `options.caption`. */
|
222
|
+
var c;
|
223
|
+
if (!this.options.caption) {
|
224
|
+
return '';
|
225
|
+
}
|
226
|
+
c = function () {
|
227
|
+
switch (typeof this.options.caption) {
|
228
|
+
case 'function':
|
229
|
+
return this.options.caption(el, info);
|
230
|
+
case 'string':
|
231
|
+
return $(el).data(this.options.caption);
|
232
|
+
}
|
233
|
+
}.call(this);
|
234
|
+
return '<span class="slick-lightbox-slick-caption">' + c + '</span>';
|
235
|
+
};
|
236
|
+
SlickLightbox.prototype.getElementSrc = function (el) {
|
237
|
+
/* Returns src for each slide image based on the type of `options.src`. */
|
238
|
+
switch (typeof this.options.src) {
|
239
|
+
case 'function':
|
240
|
+
return this.options.src(el);
|
241
|
+
case 'string':
|
242
|
+
return $(el).attr(this.options.src);
|
243
|
+
default:
|
244
|
+
return el.href;
|
245
|
+
}
|
246
|
+
};
|
247
|
+
SlickLightbox.prototype.unbindEvents = function () {
|
248
|
+
/* Unbinds global events. */
|
249
|
+
$(window).off('.slickLightbox');
|
250
|
+
$(document).off('.slickLightbox');
|
251
|
+
return this.$modalElement.off('.slickLightbox');
|
252
|
+
};
|
253
|
+
SlickLightbox.prototype.destroy = function (unbindAnchors) {
|
254
|
+
if (unbindAnchors == null) {
|
255
|
+
unbindAnchors = false;
|
256
|
+
}
|
257
|
+
/* Destroys the lightbox and unbinds global events. If `true` is passed as an argument, unbinds the original element as well. */
|
258
|
+
if (this.didInit) {
|
259
|
+
this.unbindEvents();
|
260
|
+
setTimeout(function (_this) {
|
261
|
+
return function () {
|
262
|
+
return _this.$modalElement.remove();
|
263
|
+
};
|
264
|
+
}(this), this.options.destroyTimeout);
|
265
|
+
}
|
266
|
+
if (unbindAnchors) {
|
267
|
+
this.$element.off('.slickLightbox');
|
268
|
+
return this.$element.off('.slickLightbox', this.options.itemSelector);
|
269
|
+
}
|
270
|
+
};
|
271
|
+
SlickLightbox.prototype.destroyPrevious = function () {
|
272
|
+
/* Destroys lightboxes currently in DOM. */
|
273
|
+
return $('body').children('.slick-lightbox').trigger('destroy.slickLightbox');
|
274
|
+
};
|
275
|
+
SlickLightbox.prototype.getTransitionDuration = function () {
|
276
|
+
/* Detects the transition duration to know when to remove stuff from DOM etc. */
|
277
|
+
var duration;
|
278
|
+
if (this.transitionDuration) {
|
279
|
+
return this.transitionDuration;
|
280
|
+
}
|
281
|
+
duration = this.$modalElement.css('transition-duration');
|
282
|
+
if (typeof duration === 'undefined') {
|
283
|
+
return this.transitionDuration = 500;
|
284
|
+
} else {
|
285
|
+
return this.transitionDuration = duration.indexOf('ms') > -1 ? parseFloat(duration) : parseFloat(duration) * 1000;
|
286
|
+
}
|
287
|
+
};
|
288
|
+
SlickLightbox.prototype.writeHistory = function () {
|
289
|
+
/* Writes an empty state to the history API if supported. */
|
290
|
+
return typeof history !== 'undefined' && history !== null ? typeof history.pushState === 'function' ? history.pushState(null, null, '') : void 0 : void 0;
|
291
|
+
};
|
292
|
+
SlickLightbox.prototype.filterOutSlickClones = function ($items) {
|
293
|
+
/* Removes all slick clones from the set of elements. Only does so, if the target element is a slick slider. */
|
294
|
+
if (!this.elementIsSlick()) {
|
295
|
+
return $items;
|
296
|
+
}
|
297
|
+
return $items = $items.filter(function () {
|
298
|
+
var $item;
|
299
|
+
$item = $(this);
|
300
|
+
return !$item.hasClass('slick-cloned') && $item.parents('.slick-cloned').length === 0;
|
301
|
+
});
|
302
|
+
};
|
303
|
+
SlickLightbox.prototype.handlePossibleCloneClick = function ($clickedItem, $items) {
|
304
|
+
var href;
|
305
|
+
if (!this.elementIsSlick()) {
|
306
|
+
return $clickedItem;
|
307
|
+
}
|
308
|
+
if (!$clickedItem.closest('.slick-slide').hasClass('slick-cloned')) {
|
309
|
+
return $clickedItem;
|
310
|
+
}
|
311
|
+
href = $clickedItem.attr('href');
|
312
|
+
return $items.filter(function () {
|
313
|
+
return $(this).attr('href') === href;
|
314
|
+
}).first();
|
315
|
+
};
|
316
|
+
SlickLightbox.prototype.elementIsSlick = function () {
|
317
|
+
return this.$element.hasClass('slick-slider');
|
318
|
+
};
|
319
|
+
return SlickLightbox;
|
320
|
+
}();
|
321
|
+
defaults = {
|
322
|
+
background: 'rgba(0,0,0,.8)',
|
323
|
+
closeOnEscape: true,
|
324
|
+
closeOnBackdropClick: true,
|
325
|
+
destroyTimeout: 500,
|
326
|
+
itemSelector: 'a',
|
327
|
+
navigateByKeyboard: true,
|
328
|
+
src: false,
|
329
|
+
caption: false,
|
330
|
+
captionPosition: 'dynamic',
|
331
|
+
images: false,
|
332
|
+
slick: {},
|
333
|
+
useHistoryApi: false,
|
334
|
+
layouts: { closeButton: '<button type="button" class="slick-lightbox-close"></button>' },
|
335
|
+
shouldOpen: null,
|
336
|
+
imageMaxHeight: 0.9,
|
337
|
+
lazy: false
|
338
|
+
};
|
339
|
+
$.fn.slickLightbox = function (options) {
|
340
|
+
/* Fires the plugin. */
|
341
|
+
options = $.extend({}, defaults, options);
|
342
|
+
$(this).each(function () {
|
343
|
+
return this.slickLightbox = new SlickLightbox(this, options);
|
344
|
+
});
|
345
|
+
return this;
|
346
|
+
};
|
347
|
+
$.fn.unslickLightbox = function () {
|
348
|
+
/* Removes everything. */
|
349
|
+
return $(this).trigger('destroy.slickLightbox').each(function () {
|
350
|
+
return this.slickLightbox = null;
|
351
|
+
});
|
352
|
+
};
|
353
|
+
}(jQuery));
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";!function(t){var i,n;i=function(){function i(i,n){var o;this.options=n,this.$element=t(i),this.didInit=!1,o=this,this.$element.on("click.slickLightbox",this.options.itemSelector,function(i){var n,e;if(i.preventDefault(),n=t(this),n.blur(),"function"!=typeof o.options.shouldOpen||o.options.shouldOpen(o,n,i))return e=o.$element.find(o.options.itemSelector),o.elementIsSlick()&&(e=o.filterOutSlickClones(e),n=o.handlePossibleCloneClick(n,e)),o.init(e.index(n))})}return i.prototype.init=function(t){return this.didInit=!0,this.detectIE(),this.createModal(),this.bindEvents(),this.initSlick(t),this.open()},i.prototype.createModalItems=function(){var i,n,o,e,s,l;return e=this.options.lazyPlaceholder||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",o=function(t,i,n){return'<div class="slick-lightbox-slick-item">\n <div class="slick-lightbox-slick-item-inner">\n <img class="slick-lightbox-slick-img" '+(!0===n?' data-lazy="'+t+'" src="'+e+'" ':' src="'+t+'" ')+" />\n "+i+"\n </div>\n</div>"},this.options.images?l=t.map(this.options.images,function(t){return function(i){return o(i,t.options.lazy)}}(this)):(i=this.filterOutSlickClones(this.$element.find(this.options.itemSelector)),s=i.length,n=function(t){return function(i,n){var e,l,r;return l={index:n,length:s},e=t.getElementCaption(i,l),r=t.getElementSrc(i),o(r,e,t.options.lazy)}}(this),l=t.map(i,n)),l},i.prototype.createModal=function(){var i,n;return n=this.createModalItems(),i='<div class="slick-lightbox slick-lightbox-hide-init'+(this.isIE?" slick-lightbox-ie":"")+'" style="background: '+this.options.background+';">\n <div class="slick-lightbox-inner">\n <div class="slick-lightbox-slick slick-caption-'+this.options.captionPosition+'">'+n.join("")+"</div>\n <div>\n<div>",this.$modalElement=t(i),this.$parts={},this.$parts.closeButton=t(this.options.layouts.closeButton),this.$modalElement.find(".slick-lightbox-inner").append(this.$parts.closeButton),t("body").append(this.$modalElement)},i.prototype.initSlick=function(i){var n;return n={initialSlide:i},this.options.lazy&&(n.lazyLoad="ondemand"),null!=this.options.slick?"function"==typeof this.options.slick?this.slick=this.options.slick(this.$modalElement):this.slick=this.$modalElement.find(".slick-lightbox-slick").slick(t.extend({},this.options.slick,n)):this.slick=this.$modalElement.find(".slick-lightbox-slick").slick(n),this.$modalElement.trigger("init.slickLightbox")},i.prototype.open=function(){return this.options.useHistoryApi&&this.writeHistory(),this.$element.trigger("show.slickLightbox"),setTimeout(function(t){return function(){return t.$element.trigger("shown.slickLightbox")}}(this),this.getTransitionDuration()),this.$modalElement.removeClass("slick-lightbox-hide-init")},i.prototype.close=function(){return this.$element.trigger("hide.slickLightbox"),setTimeout(function(t){return function(){return t.$element.trigger("hidden.slickLightbox")}}(this),this.getTransitionDuration()),this.$modalElement.addClass("slick-lightbox-hide"),this.destroy()},i.prototype.bindEvents=function(){var i;if(i=function(t){return function(){var i;return i=t.$modalElement.find(".slick-lightbox-inner").height(),t.$modalElement.find(".slick-lightbox-slick-item").height(i),t.$modalElement.find(".slick-lightbox-slick-img, .slick-lightbox-slick-item-inner").css("max-height",Math.round(t.options.imageMaxHeight*i))}}(this),t(window).on("orientationchange.slickLightbox resize.slickLightbox",i),this.options.useHistoryApi&&t(window).on("popstate.slickLightbox",function(t){return function(){return t.close()}}(this)),this.$modalElement.on("init.slickLightbox",i),this.$modalElement.on("destroy.slickLightbox",function(t){return function(){return t.destroy()}}(this)),this.$element.on("destroy.slickLightbox",function(t){return function(){return t.destroy(!0)}}(this)),this.$parts.closeButton.on("click.slickLightbox touchstart.slickLightbox",function(t){return function(i){return i.preventDefault(),t.close()}}(this)),(this.options.closeOnEscape||this.options.navigateByKeyboard)&&t(document).on("keydown.slickLightbox",function(t){return function(i){var n;if(n=i.keyCode?i.keyCode:i.which,t.options.navigateByKeyboard&&(37===n?t.slideSlick("left"):39===n&&t.slideSlick("right")),t.options.closeOnEscape&&27===n)return t.close()}}(this)),this.options.closeOnBackdropClick)return this.$modalElement.on("click.slickLightbox touchstart.slickLightbox",".slick-lightbox-slick-img",function(t){return t.stopPropagation()}),this.$modalElement.on("click.slickLightbox",".slick-lightbox-slick-item",function(t){return function(i){return i.preventDefault(),t.close()}}(this))},i.prototype.slideSlick=function(t){return"left"===t?this.slick.slick("slickPrev"):this.slick.slick("slickNext")},i.prototype.detectIE=function(){if(this.isIE=!1,/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&new Number(RegExp.$1)<9)return this.isIE=!0},i.prototype.getElementCaption=function(i,n){return this.options.caption?'<span class="slick-lightbox-slick-caption">'+function(){switch(typeof this.options.caption){case"function":return this.options.caption(i,n);case"string":return t(i).data(this.options.caption)}}.call(this)+"</span>":""},i.prototype.getElementSrc=function(i){switch(typeof this.options.src){case"function":return this.options.src(i);case"string":return t(i).attr(this.options.src);default:return i.href}},i.prototype.unbindEvents=function(){return t(window).off(".slickLightbox"),t(document).off(".slickLightbox"),this.$modalElement.off(".slickLightbox")},i.prototype.destroy=function(t){if(null==t&&(t=!1),this.didInit&&(this.unbindEvents(),setTimeout(function(t){return function(){return t.$modalElement.remove()}}(this),this.options.destroyTimeout)),t)return this.$element.off(".slickLightbox"),this.$element.off(".slickLightbox",this.options.itemSelector)},i.prototype.destroyPrevious=function(){return t("body").children(".slick-lightbox").trigger("destroy.slickLightbox")},i.prototype.getTransitionDuration=function(){var t;return this.transitionDuration?this.transitionDuration:(t=this.$modalElement.css("transition-duration"),this.transitionDuration=void 0===t?500:t.indexOf("ms")>-1?parseFloat(t):1e3*parseFloat(t))},i.prototype.writeHistory=function(){return"undefined"!=typeof history&&null!==history&&"function"==typeof history.pushState?history.pushState(null,null,""):void 0},i.prototype.filterOutSlickClones=function(i){return this.elementIsSlick()?i=i.filter(function(){var i;return i=t(this),!i.hasClass("slick-cloned")&&0===i.parents(".slick-cloned").length}):i},i.prototype.handlePossibleCloneClick=function(i,n){var o;return this.elementIsSlick()&&i.closest(".slick-slide").hasClass("slick-cloned")?(o=i.attr("href"),n.filter(function(){return t(this).attr("href")===o}).first()):i},i.prototype.elementIsSlick=function(){return this.$element.hasClass("slick-slider")},i}(),n={background:"rgba(0,0,0,.8)",closeOnEscape:!0,closeOnBackdropClick:!0,destroyTimeout:500,itemSelector:"a",navigateByKeyboard:!0,src:!1,caption:!1,captionPosition:"dynamic",images:!1,slick:{},useHistoryApi:!1,layouts:{closeButton:'<button type="button" class="slick-lightbox-close"></button>'},shouldOpen:null,imageMaxHeight:.9,lazy:!1},t.fn.slickLightbox=function(o){return o=t.extend({},n,o),t(this).each(function(){return this.slickLightbox=new i(this,o)}),this},t.fn.unslickLightbox=function(){return t(this).trigger("destroy.slickLightbox").each(function(){return this.slickLightbox=null})}}(jQuery);
|
2
|
+
//# sourceMappingURL=slick-lightbox.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["dist/slick-lightbox.js"],"names":["$","SlickLightbox","defaults","element","options1","slickLightbox","this","options","$element","didInit","on","itemSelector","e","$clickedItem","$items","preventDefault","blur","shouldOpen","find","elementIsSlick","filterOutSlickClones","handlePossibleCloneClick","init","index","prototype","detectIE","createModal","bindEvents","initSlick","open","createModalItems","createItem","itemTemplate","lazyPlaceholder","length","links","source","caption","lazy","images","map","_this","img","el","info","src","getElementCaption","getElementSrc","html","isIE","background","captionPosition","join","$modalElement","$parts","layouts","closeButton","append","additional","initialSlide","lazyLoad","slick","extend","trigger","useHistoryApi","writeHistory","setTimeout","getTransitionDuration","removeClass","close","addClass","destroy","resizeSlides","h","height","css","Math","round","imageMaxHeight","window","closeOnEscape","navigateByKeyboard","document","code","keyCode","which","slideSlick","closeOnBackdropClick","stopPropagation","direction","test","navigator","userAgent","Number","RegExp","$1","data","call","attr","href","unbindEvents","off","unbindAnchors","remove","destroyTimeout","destroyPrevious","children","duration","transitionDuration","indexOf","parseFloat","history","pushState","filter","$item","hasClass","parents","closest","first","fn","each","unslickLightbox","jQuery"],"mappings":"AAAA,cACC,SAAUA,GACP,GAAIC,GAAeC,CACnBD,GAAgB,WAIZ,QAASA,GAAcE,EAASC,GAC5B,GAAIC,EACJC,MAAKC,QAAUH,EAEfE,KAAKE,SAAWR,EAAEG,GAClBG,KAAKG,SAAU,EACfJ,EAAgBC,KAChBA,KAAKE,SAASE,GAAG,sBAAuBJ,KAAKC,QAAQI,aAAc,SAAUC,GACzE,GAAIC,GAAcC,CAIlB,IAHAF,EAAEG,iBACFF,EAAeb,EAAEM,MACjBO,EAAaG,OACmC,kBAArCX,GAAcE,QAAQU,YACxBZ,EAAcE,QAAQU,WAAWZ,EAAeQ,EAAcD,GASvE,MALAE,GAAST,EAAcG,SAASU,KAAKb,EAAcE,QAAQI,cACvDN,EAAcc,mBACdL,EAAST,EAAce,qBAAqBN,GAC5CD,EAAeR,EAAcgB,yBAAyBR,EAAcC,IAEjET,EAAciB,KAAKR,EAAOS,MAAMV,MAiS/C,MA9RAZ,GAAcuB,UAAUF,KAAO,SAAUC,GAOrC,MALAjB,MAAKG,SAAU,EACfH,KAAKmB,WACLnB,KAAKoB,cACLpB,KAAKqB,aACLrB,KAAKsB,UAA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KAAMC,KAEjDD,MAEXN,EAAEuH,GAAGE,gBAAkB,WAEnB,MAAOzH,GAAEM,MAAMyD,QAAQ,yBAAyByD,KAAK,WACjD,MAAOlH,MAAKD,cAAgB,SAGtCqH","file":"slick-lightbox.min.js","sourceRoot":"/home/petr/work/slick-lightbox"}
|
@@ -1,15 +1,14 @@
|
|
1
|
-
slick
|
2
|
-
-------
|
1
|
+
## slick
|
3
2
|
|
4
3
|
[1]: <https://github.com/kenwheeler/slick>
|
5
4
|
|
6
5
|
_the last carousel you'll ever need_
|
7
6
|
|
8
|
-
|
7
|
+
### Demo
|
9
8
|
|
10
9
|
[http://kenwheeler.github.io/slick](http://kenwheeler.github.io/slick/)
|
11
10
|
|
12
|
-
|
11
|
+
### CDN
|
13
12
|
|
14
13
|
To start working with Slick right away, there's a couple of CDN choices availabile
|
15
14
|
to serve the files as close, and fast as possible to your users:
|
@@ -17,7 +16,7 @@ to serve the files as close, and fast as possible to your users:
|
|
17
16
|
- https://cdnjs.com/libraries/slick-carousel
|
18
17
|
- https://www.jsdelivr.com/projects/jquery.slick
|
19
18
|
|
20
|
-
|
19
|
+
#### Example using jsDelivr
|
21
20
|
|
22
21
|
Just add a link to the css file in your `<head>`:
|
23
22
|
|
@@ -34,7 +33,7 @@ Then, before your closing ```<body>``` tag add:
|
|
34
33
|
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
|
35
34
|
```
|
36
35
|
|
37
|
-
|
36
|
+
### Package Managers
|
38
37
|
|
39
38
|
```sh
|
40
39
|
# Bower
|
@@ -44,7 +43,7 @@ bower install --save slick-carousel
|
|
44
43
|
npm install slick-carousel
|
45
44
|
```
|
46
45
|
|
47
|
-
|
46
|
+
### Contributing
|
48
47
|
|
49
48
|
PLEASE review CONTRIBUTING.markdown prior to requesting a feature, filing a pull request or filing an issue.
|
50
49
|
|
@@ -119,7 +118,7 @@ verticalSwiping | boolean | false | Changes swipe direction to vertical
|
|
119
118
|
waitForAnimate | boolean | true | Ignores requests to advance the slide while animating
|
120
119
|
zIndex | number | 1000 | Set the zIndex values for slides, useful for IE9 and lower
|
121
120
|
|
122
|
-
|
121
|
+
#### Responsive Option Example
|
123
122
|
The responsive option, and value, is quite unique and powerful.
|
124
123
|
You can use it like so:
|
125
124
|
|
@@ -195,7 +194,7 @@ lazyLoaded | event, slick, image, imageSource | Fires after image loads lazily
|
|
195
194
|
lazyLoadError | event, slick, image, imageSource | Fires after image fails to load
|
196
195
|
|
197
196
|
|
198
|
-
|
197
|
+
### Methods
|
199
198
|
|
200
199
|
Methods are called on slick instances through the slick method itself in version 1.4, see below:
|
201
200
|
|
@@ -236,7 +235,7 @@ Method | Argument | Description
|
|
236
235
|
| `{ option: value, option: value, ... }, refresh` | change [multiple `option`s](https://github.com/kenwheeler/slick#settings) to corresponding `value`s.
|
237
236
|
|
238
237
|
|
239
|
-
|
238
|
+
### Example
|
240
239
|
|
241
240
|
Initialize with:
|
242
241
|
|
@@ -260,7 +259,7 @@ $(element).slick('unslick');
|
|
260
259
|
```
|
261
260
|
|
262
261
|
|
263
|
-
|
262
|
+
### Sass Variables
|
264
263
|
|
265
264
|
Variable | Type | Default | Description
|
266
265
|
------ | ---- | ------- | -----------
|
@@ -275,15 +274,15 @@ $slick-next-character | string | '\2192' | Unicode character code for the next a
|
|
275
274
|
$slick-dot-character | string | '\2022' | Unicode character code for the navigation dot icon
|
276
275
|
$slick-dot-size | pixels | 6px | Size of the navigation dots
|
277
276
|
|
278
|
-
|
277
|
+
### Browser support
|
279
278
|
|
280
279
|
Slick works on IE8+ in addition to other modern browsers such as Chrome, Firefox, and Safari.
|
281
280
|
|
282
|
-
|
281
|
+
### Dependencies
|
283
282
|
|
284
283
|
jQuery 1.7
|
285
284
|
|
286
|
-
|
285
|
+
### License
|
287
286
|
|
288
287
|
Copyright (c) 2017 Ken Wheeler
|
289
288
|
|
@@ -13,17 +13,26 @@
|
|
13
13
|
Issues: http://github.com/kenwheeler/slick/issues
|
14
14
|
*/
|
15
15
|
|
16
|
+
/* Icons
|
17
|
+
-------------------------------------------------------------------------------- */
|
18
|
+
@font-face {
|
19
|
+
font-family: 'slick';
|
20
|
+
font-weight: normal;
|
21
|
+
font-style: normal;
|
22
|
+
src: url('../fonts/slick.eot');
|
23
|
+
src: url('../fonts/slick.eot?#iefix') format('embedded-opentype'), url('../fonts/slick.woff') format('woff'), url('../fonts/slick.ttf') format('truetype'), url('../fonts/slick.svg#slick') format('svg');
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Slider
|
27
|
+
-------------------------------------------------------------------------------- */
|
16
28
|
.slick-slider {
|
17
29
|
position: relative;
|
18
|
-
|
19
30
|
display: block;
|
20
31
|
box-sizing: border-box;
|
21
|
-
|
22
32
|
-webkit-user-select: none;
|
23
33
|
-moz-user-select: none;
|
24
34
|
-ms-user-select: none;
|
25
35
|
user-select: none;
|
26
|
-
|
27
36
|
-webkit-touch-callout: none;
|
28
37
|
-khtml-user-select: none;
|
29
38
|
-ms-touch-action: pan-y;
|
@@ -33,10 +42,8 @@
|
|
33
42
|
|
34
43
|
.slick-list {
|
35
44
|
position: relative;
|
36
|
-
|
37
45
|
display: block;
|
38
46
|
overflow: hidden;
|
39
|
-
|
40
47
|
margin: 0;
|
41
48
|
padding: 0;
|
42
49
|
}
|
@@ -50,6 +57,10 @@
|
|
50
57
|
cursor: hand;
|
51
58
|
}
|
52
59
|
|
60
|
+
.slick-list .slick-loading {
|
61
|
+
background: #fff url('../../images/ajax-loader.gif') center center no-repeat;
|
62
|
+
}
|
63
|
+
|
53
64
|
.slick-slider .slick-track,
|
54
65
|
.slick-slider .slick-list {
|
55
66
|
-webkit-transform: translate3d(0, 0, 0);
|
@@ -63,7 +74,6 @@
|
|
63
74
|
position: relative;
|
64
75
|
top: 0;
|
65
76
|
left: 0;
|
66
|
-
|
67
77
|
display: block;
|
68
78
|
margin-left: auto;
|
69
79
|
margin-right: auto;
|
@@ -72,7 +82,6 @@
|
|
72
82
|
.slick-track:before,
|
73
83
|
.slick-track:after {
|
74
84
|
display: table;
|
75
|
-
|
76
85
|
content: '';
|
77
86
|
}
|
78
87
|
|
@@ -87,7 +96,6 @@
|
|
87
96
|
.slick-slide {
|
88
97
|
display: none;
|
89
98
|
float: left;
|
90
|
-
|
91
99
|
height: 100%;
|
92
100
|
min-height: 1px;
|
93
101
|
}
|
@@ -118,9 +126,7 @@
|
|
118
126
|
|
119
127
|
.slick-vertical .slick-slide {
|
120
128
|
display: block;
|
121
|
-
|
122
129
|
height: auto;
|
123
|
-
|
124
130
|
border: 1px solid transparent;
|
125
131
|
}
|
126
132
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
_ _ _ _
|
3
|
+
___| (_) ___| | __ (_)___
|
4
|
+
/ __| | |/ __| |/ / | / __|
|
5
|
+
\__ \ | | (__| < _ | \__ \
|
6
|
+
|___/_|_|\___|_|\_(_)/ |___/
|
7
|
+
|__/
|
8
|
+
Version: 1.8.1
|
9
|
+
Author: Ken Wheeler
|
10
|
+
Website: http://kenwheeler.github.io
|
11
|
+
Docs: http://kenwheeler.github.io/slick
|
12
|
+
Repo: http://github.com/kenwheeler/slick
|
13
|
+
Issues: http://github.com/kenwheeler/slick/issues
|
14
|
+
*/
|
15
|
+
@font-face{font-family:'slick';font-weight:normal;font-style:normal;src:url('../fonts/slick.eot');src:url('../fonts/slick.eot?#iefix') format('embedded-opentype'),url('../fonts/slick.woff') format('woff'),url('../fonts/slick.ttf') format('truetype'),url('../fonts/slick.svg#slick') format('svg')}.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0}.slick-list:focus{outline:0}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-list .slick-loading{background:#fff url('../../images/ajax-loader.gif') center center no-repeat}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.slick-track{position:relative;top:0;left:0;display:block;margin-left:auto;margin-right:auto}.slick-track:before,.slick-track:after{display:table;content:''}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{display:none;float:left;height:100%;min-height:1px}[dir='rtl'] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}.slick-arrow.slick-hidden{display:none}
|