j1-template 2022.4.9 → 2022.4.10
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/modules/navigator/generator.html +30 -30
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +1 -1
- data/assets/data/authclient.html +8 -6
- data/assets/data/banner.html +4 -0
- data/assets/data/carousel.json +10 -0
- data/assets/data/cookieconsent.html +2 -0
- data/assets/data/fab.html +19 -6
- data/assets/data/footer.html +6 -6
- data/assets/data/galleries.json +7 -0
- data/assets/data/gallery_customizer.html +10 -7
- data/assets/data/iso-639-language-codes-flags.json +9 -0
- data/assets/data/iso-639-language-codes.json +9 -0
- data/assets/data/j1_config.json +8 -2
- data/assets/data/masterslider.html +10 -2
- data/assets/data/mdi_icons.json +5 -0
- data/assets/data/mdil_icons.json +5 -0
- data/assets/data/menu.html +16 -13
- data/assets/data/mmenu.html +9 -5
- data/assets/data/mmenu_sidebar.html +5 -3
- data/assets/data/mmenu_toc.html +8 -5
- data/assets/data/nbinteract.html +2 -1
- data/assets/data/panel.html +9 -7
- data/assets/data/private.json +2 -2
- data/assets/data/quicklinks.html +4 -2
- data/assets/data/rtext_resizer.html +9 -5
- data/assets/data/themes.bootswatch.json +4 -0
- data/assets/data/themes.json +4 -0
- data/assets/data/translator.html +2 -0
- data/assets/data/twa_v1.json +6 -0
- data/assets/themes/j1/adapter/js/advertising.js +2 -0
- data/assets/themes/j1/adapter/js/algolia.js +2 -0
- data/assets/themes/j1/adapter/js/analytics.js +2 -0
- data/assets/themes/j1/adapter/js/asciidoctor.js +16 -0
- data/assets/themes/j1/adapter/js/attic.js +2 -0
- data/assets/themes/j1/adapter/js/bmd.js +16 -0
- data/assets/themes/j1/adapter/js/carousel.js +7 -6
- data/assets/themes/j1/adapter/js/clipboard.js +2 -1
- data/assets/themes/j1/adapter/js/comments.js +2 -0
- data/assets/themes/j1/adapter/js/cookieConsent.js +2 -0
- data/assets/themes/j1/adapter/js/customFunctions.js +2 -0
- data/assets/themes/j1/adapter/js/customModule.js +2 -0
- data/assets/themes/j1/adapter/js/dropdowns.js +2 -0
- data/assets/themes/j1/adapter/js/fab.js +2 -0
- data/assets/themes/j1/adapter/js/framer.js +2 -0
- data/assets/themes/j1/adapter/js/j1.js +1 -1
- data/assets/themes/j1/adapter/js/justifiedGallery.js +2 -0
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +2 -0
- data/assets/themes/j1/adapter/js/lightbox.js +2 -0
- data/assets/themes/j1/adapter/js/logger.js +2 -0
- data/assets/themes/j1/adapter/js/lunr.js +2 -0
- data/assets/themes/j1/adapter/js/masterslider.js +9 -1
- data/assets/themes/j1/adapter/js/mmenu.js +2 -0
- data/assets/themes/j1/adapter/js/navigator.js +716 -72
- data/assets/themes/j1/adapter/js/nbinteract.js +2 -0
- data/assets/themes/j1/adapter/js/rangeSlider.js +2 -0
- data/assets/themes/j1/adapter/js/rouge.js +7 -0
- data/assets/themes/j1/adapter/js/rtable.js +2 -0
- data/assets/themes/j1/adapter/js/rtextResizer.js +2 -1
- data/assets/themes/j1/adapter/js/scroller.js +2 -0
- data/assets/themes/j1/adapter/js/themer.js +26 -34
- data/assets/themes/j1/adapter/js/toccer.js +2 -0
- data/assets/themes/j1/adapter/js/translator.js +2 -0
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +1938 -1379
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +3 -3
- data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.css +1939 -1380
- data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.min.css +3 -3
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +2189 -1486
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +3 -3
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +2167 -1501
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +10 -9
- data/assets/themes/j1/core/js/template.js +3 -3
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/lightbox/js/lightbox.js +1 -1
- data/assets/themes/j1/modules/lightbox/js/lightbox.min.js +1 -1
- data/assets/themes/j1/modules/masterslider/js/masterslider.js +48 -195
- data/assets/themes/j1/modules/masterslider/js/masterslider.min.js +1 -2
- 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/rouge/css/uno.dark/theme.css +11 -11
- data/assets/themes/j1/modules/rouge/css/uno.light/theme.css +24 -18
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +2 -2
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +304 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +2 -2
- data/lib/starter_web/_data/blocks/banner.yml +8 -5
- data/lib/starter_web/_data/blocks/footer.yml +1 -1
- data/lib/starter_web/_data/modules/attics.yml +15 -3
- data/lib/starter_web/_data/modules/defaults/navigator.yml +7 -5
- data/lib/starter_web/_data/modules/fab.yml +39 -118
- data/lib/starter_web/_data/modules/masterslider.yml +2 -2
- data/lib/starter_web/_data/modules/navigator_menu.yml +17 -21
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/learn/quickstart.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +1 -1
- data/lib/starter_web/pages/public/plans/plans.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +139 -130
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +2 -4
- data/_includes/themes/j1/procedures/global/create_bs_button.1.proc +0 -172
- data/assets/themes/j1/modules/masterslider/js/masterslider.min.js.map +0 -1
@@ -139,7 +139,7 @@
|
|
139
139
|
// on the page below.
|
140
140
|
//
|
141
141
|
// Github issue: https://github.com/lokesh/lightbox2/issues/663
|
142
|
-
$('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev link-no-decoration" aria-label="Previous image" href="" ></a><a class="lb-next link-no-decoration" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a href="#" class="lb-cancel link-no-decoration"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="link-no-decoration lb-close"></a></div></div></div></div>').appendTo($('body'));
|
142
|
+
$('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt="lightbox-v2"/><div class="lb-nav"><a class="lb-prev link-no-decoration" aria-label="Previous image" href="#void" ></a><a class="lb-next link-no-decoration" aria-label="Next image" href="#void" ></a></div><div class="lb-loader"><a href="#" class="lb-cancel link-no-decoration"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="link-no-decoration lb-close" href="#void"></a></div></div></div></div>').appendTo($('body'));
|
143
143
|
|
144
144
|
// Cache jQuery objects
|
145
145
|
this.$lightbox = $('#lightbox');
|
@@ -16,4 +16,4 @@
|
|
16
16
|
# See: https://github.com/lokesh/lightbox2/blob/master/LICENSE
|
17
17
|
# -----------------------------------------------------------------------------
|
18
18
|
*/
|
19
|
-
!function(t,i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof exports?module.exports=i(require("jquery")):t.lightbox=i(t.jQuery)}(this,function(t){function i(i){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=t.extend({},this.constructor.defaults),this.option(i)}return i.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},i.prototype.option=function(i){t.extend(this.options,i)},i.prototype.imageCountLabel=function(t,i){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,i)},i.prototype.init=function(){var i=this;t(document).ready(function(){i.enable(),i.build()})},i.prototype.enable=function(){var i=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(e){return i.start(t(e.currentTarget)),!1})},i.prototype.build=function(){if(!(t("#lightbox").length>0)){var i=this;t('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" aria-label="Previous image" href="" ></a><a class="lb-next" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a href="#" class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="link-no-decoration lb-close"></a></div></div></div></div>').appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return i.end(),!1}),this.$lightbox.hide().on("click",function(e){"lightbox"===t(e.target).attr("id")&&i.end()}),this.$outerContainer.on("click",function(e){return"lightbox"===t(e.target).attr("id")&&i.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===i.currentImageIndex?i.changeImage(i.album.length-1):i.changeImage(i.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return i.currentImageIndex===i.album.length-1?i.changeImage(0):i.changeImage(i.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(t){3===t.which&&(i.$nav.css("pointer-events","none"),i.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(i),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return i.end(),!1})}},i.prototype.start=function(i){var e=this,n=t(window);n.on("resize",t.proxy(this.sizeOverlay,this)),this.sizeOverlay(),this.album=[];var
|
19
|
+
!function(t,i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof exports?module.exports=i(require("jquery")):t.lightbox=i(t.jQuery)}(this,function(t){function i(i){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=t.extend({},this.constructor.defaults),this.option(i)}return i.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},i.prototype.option=function(i){t.extend(this.options,i)},i.prototype.imageCountLabel=function(t,i){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,i)},i.prototype.init=function(){var i=this;t(document).ready(function(){i.enable(),i.build()})},i.prototype.enable=function(){var i=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(e){return i.start(t(e.currentTarget)),!1})},i.prototype.build=function(){if(!(t("#lightbox").length>0)){var i=this;t('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt="lightbox-v2"/><div class="lb-nav"><a class="lb-prev link-no-decoration" aria-label="Previous image" href="#void" ></a><a class="lb-next link-no-decoration" aria-label="Next image" href="#void" ></a></div><div class="lb-loader"><a href="#" class="lb-cancel link-no-decoration"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="link-no-decoration lb-close" href="#void"></a></div></div></div></div>').appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return i.end(),!1}),this.$lightbox.hide().on("click",function(e){"lightbox"===t(e.target).attr("id")&&i.end()}),this.$outerContainer.on("click",function(e){return"lightbox"===t(e.target).attr("id")&&i.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===i.currentImageIndex?i.changeImage(i.album.length-1):i.changeImage(i.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return i.currentImageIndex===i.album.length-1?i.changeImage(0):i.changeImage(i.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(t){3===t.which&&(i.$nav.css("pointer-events","none"),i.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(i),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return i.end(),!1})}},i.prototype.start=function(i){var e=this,n=t(window);n.on("resize",t.proxy(this.sizeOverlay,this)),this.sizeOverlay(),this.album=[];var o=0;function a(t){e.album.push({alt:t.attr("data-alt"),link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var s,h=i.attr("data-lightbox");if(h){s=t(i.prop("tagName")+'[data-lightbox="'+h+'"]');for(var r=0;r<s.length;r=++r)a(t(s[r])),s[r]===i[0]&&(o=r)}else if("lightbox"===i.attr("rel"))a(i);else{s=t(i.prop("tagName")+'[rel="'+i.attr("rel")+'"]');for(var l=0;l<s.length;l=++l)a(t(s[l])),s[l]===i[0]&&(o=l)}var d=n.scrollTop()+this.options.positionFromTop,g=n.scrollLeft();this.$lightbox.css({top:d+"px",left:g+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&t("body").addClass("lb-disable-scrolling"),this.changeImage(o)},i.prototype.changeImage=function(i){var e=this,n=this.album[i].link,o=n.split(".").slice(-1)[0],a=this.$lightbox.find(".lb-image");this.disableKeyboardNav(),this.$overlay.fadeIn(this.options.fadeDuration),t(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var s=new Image;s.onload=function(){var h,r,l,d,g,b;a.attr({alt:e.album[i].alt,src:n}),t(s),a.width(s.width),a.height(s.height),b=t(window).width(),g=t(window).height(),d=b-e.containerPadding.left-e.containerPadding.right-e.imageBorderWidth.left-e.imageBorderWidth.right-20,l=g-e.containerPadding.top-e.containerPadding.bottom-e.imageBorderWidth.top-e.imageBorderWidth.bottom-e.options.positionFromTop-70,"svg"===o&&(a.width(d),a.height(l)),e.options.fitImagesInViewport?(e.options.maxWidth&&e.options.maxWidth<d&&(d=e.options.maxWidth),e.options.maxHeight&&e.options.maxHeight<l&&(l=e.options.maxHeight)):(d=e.options.maxWidth||s.width||d,l=e.options.maxHeight||s.height||l),(s.width>d||s.height>l)&&(s.width/d>s.height/l?(r=d,h=parseInt(s.height/(s.width/r),10),a.width(r),a.height(h)):(h=l,r=parseInt(s.width/(s.height/h),10),a.width(r),a.height(h))),e.sizeContainer(a.width(),a.height())},s.src=this.album[i].link,this.currentImageIndex=i},i.prototype.sizeOverlay=function(){var i=this;setTimeout(function(){i.$overlay.width(t(document).width()).height(t(document).height())},0)},i.prototype.sizeContainer=function(t,i){var e=this,n=this.$outerContainer.outerWidth(),o=this.$outerContainer.outerHeight(),a=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,s=i+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;function h(){e.$lightbox.find(".lb-dataContainer").width(a),e.$lightbox.find(".lb-prevLink").height(s),e.$lightbox.find(".lb-nextLink").height(s),e.$overlay.focus(),e.showImage()}n!==a||o!==s?this.$outerContainer.animate({width:a,height:s},this.options.resizeDuration,"swing",function(){h()}):h()},i.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},i.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),t&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),t&&this.$lightbox.find(".lb-next").css("opacity","1"))))},i.prototype.updateDetails=function(){var t=this;if(void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var i=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?i.text(this.album[this.currentImageIndex].title):i.html(this.album[this.currentImageIndex].title),i.fadeIn("fast")}if(this.album.length>1&&this.options.showImageNumberLabel){var e=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(e).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return t.sizeOverlay()})},i.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link);this.currentImageIndex>0&&((new Image).src=this.album[this.currentImageIndex-1].link)},i.prototype.enableKeyboardNav=function(){this.$lightbox.on("keyup.keyboard",t.proxy(this.keyboardAction,this)),this.$overlay.on("keyup.keyboard",t.proxy(this.keyboardAction,this))},i.prototype.disableKeyboardNav=function(){this.$lightbox.off(".keyboard"),this.$overlay.off(".keyboard")},i.prototype.keyboardAction=function(t){var i=t.keyCode;27===i?(t.stopPropagation(),this.end()):37===i?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):39===i&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},i.prototype.end=function(){this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),this.options.disableScrolling&&t("body").removeClass("lb-disable-scrolling")},new i});
|
@@ -5420,6 +5420,7 @@ MSViewEvents.CHANGE_END = 'slideChangeEnd';
|
|
5420
5420
|
window.msCli = function(f){f=f||'pause';var m=masterslider_instances;for(var i in m){m[i].api[f]();}}
|
5421
5421
|
})(jQuery);
|
5422
5422
|
|
5423
|
+
|
5423
5424
|
/**
|
5424
5425
|
* Master Slider Filters Plugin for J1 Template
|
5425
5426
|
* This plugin adds CSS3 filters to the slides, like brightness, grayscale,
|
@@ -5445,15 +5446,15 @@ MSViewEvents.CHANGE_END = 'slideChangeEnd';
|
|
5445
5446
|
|
5446
5447
|
// check if master slider is available
|
5447
5448
|
if (!window.MasterSlider) {
|
5448
|
-
|
5449
|
+
return;
|
5449
5450
|
}
|
5450
5451
|
|
5451
5452
|
var Filters = function (slider) {
|
5452
|
-
|
5453
|
+
this.slider = slider;
|
5453
5454
|
|
5454
|
-
|
5455
|
-
|
5456
|
-
|
5455
|
+
if ( this.slider.options.filters ) {
|
5456
|
+
slider.api.addEventListener(MSSliderEvent.INIT, this.init, this);
|
5457
|
+
}
|
5457
5458
|
};
|
5458
5459
|
|
5459
5460
|
Filters.name = 'MSFilters';
|
@@ -5463,27 +5464,27 @@ MSViewEvents.CHANGE_END = 'slideChangeEnd';
|
|
5463
5464
|
* initiate the plugin
|
5464
5465
|
*/
|
5465
5466
|
p.init = function () {
|
5466
|
-
|
5467
|
-
|
5467
|
+
var api = this.slider.api,
|
5468
|
+
view = api.view;
|
5468
5469
|
|
5469
|
-
|
5470
|
-
|
5471
|
-
|
5472
|
-
|
5473
|
-
|
5474
|
-
|
5475
|
-
|
5470
|
+
this.filters = this.slider.options.filters;
|
5471
|
+
this.slideList = view.slideList;
|
5472
|
+
this.slidesCount = view.slidesCount;
|
5473
|
+
this.dimension = view[view.__dimension];
|
5474
|
+
this.target = this.slider.options.filterTarget === 'slide' ? '$element' : '$bg_img';
|
5475
|
+
this.applyFiltersAllSlides = this.slider.options.applyFiltersAllSlides === true ? true : false;
|
5476
|
+
this.filterName = window.MSBrowserInfo.webkit ? 'WebkitFilter' : 'filter';
|
5476
5477
|
|
5477
|
-
|
5478
|
-
|
5479
|
-
|
5478
|
+
// override the controller update callback
|
5479
|
+
var superFun = view.controller.__renderHook.fun,
|
5480
|
+
superRef = view.controller.__renderHook.ref;
|
5480
5481
|
|
5481
|
-
|
5482
|
-
|
5483
|
-
|
5484
|
-
|
5482
|
+
view.controller.renderCallback(function (controller, value) {
|
5483
|
+
superFun.call(superRef, controller, value);
|
5484
|
+
this.applyEffect(value);
|
5485
|
+
}, this);
|
5485
5486
|
|
5486
|
-
|
5487
|
+
this.applyEffect(view.controller.value);
|
5487
5488
|
};
|
5488
5489
|
|
5489
5490
|
/**
|
@@ -5491,25 +5492,26 @@ MSViewEvents.CHANGE_END = 'slideChangeEnd';
|
|
5491
5492
|
* @param {Number} value Current position of slider controller
|
5492
5493
|
*/
|
5493
5494
|
p.applyEffect = function (value) {
|
5494
|
-
|
5495
|
+
var factor, slide;
|
5495
5496
|
|
5496
|
-
|
5497
|
-
|
5498
|
-
if (this.applyFiltersAllSlides) {
|
5499
|
-
// use filters on all slide positions
|
5500
|
-
factor = 1;
|
5501
|
-
} else {
|
5502
|
-
factor = Math.min(1 , Math.abs(value - slide.position) / this.dimension);
|
5503
|
-
}
|
5497
|
+
for( var i = 0; i < this.slidesCount; ++i ) {
|
5498
|
+
slide = this.slideList[i];
|
5504
5499
|
|
5505
|
-
|
5506
|
-
|
5507
|
-
|
5508
|
-
|
5509
|
-
|
5510
|
-
}
|
5511
|
-
}
|
5500
|
+
if (this.applyFiltersAllSlides) {
|
5501
|
+
// use filters on all slide positions
|
5502
|
+
factor = 1;
|
5503
|
+
} else {
|
5504
|
+
factor = Math.min(1 , Math.abs(value - slide.position) / this.dimension);
|
5512
5505
|
}
|
5506
|
+
|
5507
|
+
if ( slide[this.target] ) {
|
5508
|
+
if ( !window.MSBrowserInfo.msie ) {
|
5509
|
+
slide[this.target][0].style[this.filterName] = this.generateStyle(factor);
|
5510
|
+
} else if ( this.filters.opacity != null ) {
|
5511
|
+
slide[this.target].opacity( 1 - this.filters.opacity * factor);
|
5512
|
+
}
|
5513
|
+
}
|
5514
|
+
}
|
5513
5515
|
};
|
5514
5516
|
|
5515
5517
|
/**
|
@@ -5518,174 +5520,25 @@ MSViewEvents.CHANGE_END = 'slideChangeEnd';
|
|
5518
5520
|
* @return {String} CSS style
|
5519
5521
|
*/
|
5520
5522
|
p.generateStyle = function (factor) {
|
5521
|
-
|
5522
|
-
|
5523
|
+
var style = '',
|
5524
|
+
unit;
|
5523
5525
|
|
5524
|
-
|
5525
|
-
|
5526
|
+
for (var filter in this.filters) {
|
5527
|
+
unit = filterUnits[filter] || '';
|
5526
5528
|
style += filter + '(' + ( initialValues[filter] + (this.filters[filter] - initialValues[filter]) * factor) + ') ';
|
5527
|
-
|
5529
|
+
}
|
5528
5530
|
|
5529
|
-
|
5531
|
+
return style;
|
5530
5532
|
};
|
5531
5533
|
|
5532
5534
|
/**
|
5533
5535
|
* destroy the plugin
|
5534
5536
|
*/
|
5535
|
-
p.destroy = function(){
|
5536
|
-
|
5537
|
+
p.destroy = function() {
|
5538
|
+
this.slider.api.removeEventListener(MSSliderEvent.INIT, this.init, this);
|
5537
5539
|
};
|
5538
5540
|
|
5539
5541
|
// install plugin for master slider
|
5540
5542
|
MasterSlider.registerPlugin(Filters);
|
5541
5543
|
|
5542
5544
|
})(document, window, jQuery);
|
5543
|
-
|
5544
|
-
|
5545
|
-
/*
|
5546
|
-
* Master Slider MSScrollParallax plugin version for J1 Template
|
5547
|
-
*/
|
5548
|
-
(function($){
|
5549
|
-
'use strict';
|
5550
|
-
|
5551
|
-
window.MSScrollParallax = function (slider, parallax, bgparallax, fade) {
|
5552
|
-
this.fade = fade;
|
5553
|
-
this.slider = slider;
|
5554
|
-
this.parallax = parallax/100;
|
5555
|
-
this.bgparallax = bgparallax/100;
|
5556
|
-
|
5557
|
-
slider.api.addEventListener(MSSliderEvent.INIT, this.init, this);
|
5558
|
-
slider.api.addEventListener(MSSliderEvent.DESTROY, this.destory, this);
|
5559
|
-
slider.api.addEventListener(MSSliderEvent.CHANGE_END, this.resetLayers, this);
|
5560
|
-
slider.api.addEventListener(MSSliderEvent.CHANGE_START, this.updateCurrentSlide, this);
|
5561
|
-
};
|
5562
|
-
|
5563
|
-
window.MSScrollParallax.setup = function(slider, parallax, bgparallax, fade) {
|
5564
|
-
// disable in mobile devices
|
5565
|
-
if (window._mobile) {
|
5566
|
-
return;
|
5567
|
-
}
|
5568
|
-
if (parallax == null) {
|
5569
|
-
parallax = 50;
|
5570
|
-
}
|
5571
|
-
if (bgparallax == null) {
|
5572
|
-
bgparallax = 40;
|
5573
|
-
}
|
5574
|
-
return new MSScrollParallax(slider, parallax, bgparallax, fade);
|
5575
|
-
};
|
5576
|
-
|
5577
|
-
var p = window.MSScrollParallax.prototype;
|
5578
|
-
|
5579
|
-
p.init = function (e) {
|
5580
|
-
this.slider.$element.addClass('ms-scroll-parallax');
|
5581
|
-
this.sliderOffset = this.slider.$element.offset().top;
|
5582
|
-
this.updateCurrentSlide();
|
5583
|
-
// wrap layers element
|
5584
|
-
var slides = this.slider.api.view.slideList,
|
5585
|
-
slide;
|
5586
|
-
for(var i = 0, l = slides.length; i!==l ; i++) {
|
5587
|
-
slide = slides[i];
|
5588
|
-
if( slide.hasLayers ) {
|
5589
|
-
slide.layerController.$layers.wrap('<div class="ms-scroll-parallax-cont"></div>');
|
5590
|
-
slide.$scrollParallaxCont = slide.layerController.$layers.parent();
|
5591
|
-
}
|
5592
|
-
}
|
5593
|
-
|
5594
|
-
$(window).on('scroll', {that:this}, this.moveParallax).trigger('scroll');
|
5595
|
-
};
|
5596
|
-
|
5597
|
-
p.resetLayers = function (e) {
|
5598
|
-
if (!this.lastSlide) {
|
5599
|
-
return;
|
5600
|
-
}
|
5601
|
-
|
5602
|
-
var layers = this.lastSlide.$scrollParallaxCont;
|
5603
|
-
if (window._css2d) {
|
5604
|
-
if (layers) {
|
5605
|
-
layers[0].style[window._jcsspfx + 'Transform'] = '';
|
5606
|
-
}
|
5607
|
-
if (this.lastSlide.hasBG) {
|
5608
|
-
this.lastSlide.$imgcont[0].style[window._jcsspfx + 'Transform'] = '';
|
5609
|
-
}
|
5610
|
-
} else {
|
5611
|
-
if(layers) {
|
5612
|
-
layers[0].style.top = '';
|
5613
|
-
}
|
5614
|
-
if (this.lastSlide.hasBG) {
|
5615
|
-
this.lastSlide.$imgcont[0].style.top = '0px';
|
5616
|
-
}
|
5617
|
-
}
|
5618
|
-
};
|
5619
|
-
|
5620
|
-
p.updateCurrentSlide = function (e) {
|
5621
|
-
this.lastSlide = this.currentSlide;
|
5622
|
-
this.currentSlide = this.slider.api.currentSlide;
|
5623
|
-
this.moveParallax({data:{that:this}});
|
5624
|
-
};
|
5625
|
-
|
5626
|
-
p.moveParallax = function (e) {
|
5627
|
-
var that = e.data.that,
|
5628
|
-
slider = that.slider,
|
5629
|
-
offset = that.sliderOffset,
|
5630
|
-
scrollTop = $(window).scrollTop(),
|
5631
|
-
layers = that.currentSlide.$scrollParallaxCont,
|
5632
|
-
out = offset - scrollTop;
|
5633
|
-
|
5634
|
-
if (out <= 0) {
|
5635
|
-
if(layers) {
|
5636
|
-
if (window._css3d) {
|
5637
|
-
layers[0].style[window._jcsspfx + 'Transform'] = 'translateY(' + -out * that.parallax + 'px) translateZ(0.4px)';
|
5638
|
-
} else if (window._css2d) {
|
5639
|
-
layers[0].style[window._jcsspfx + 'Transform'] = 'translateY(' + -out * that.parallax + 'px)';
|
5640
|
-
} else {
|
5641
|
-
layers[0].style.top = -out * that.parallax + 'px';
|
5642
|
-
}
|
5643
|
-
}
|
5644
|
-
|
5645
|
-
that.updateSlidesBG(-out * that.bgparallax + 'px', true);
|
5646
|
-
|
5647
|
-
if (layers && that.fade) {
|
5648
|
-
layers.css('opacity', (1 - Math.min(1, -out / slider.api.height)) );
|
5649
|
-
}
|
5650
|
-
} else {
|
5651
|
-
if (layers) {
|
5652
|
-
if (window._css2d) {
|
5653
|
-
layers[0].style[window._jcsspfx + 'Transform'] = '';
|
5654
|
-
} else {
|
5655
|
-
layers[0].style.top = '';
|
5656
|
-
}
|
5657
|
-
}
|
5658
|
-
that.updateSlidesBG('0px', false);
|
5659
|
-
|
5660
|
-
if (layers && that.fade) {
|
5661
|
-
layers.css('opacity', 1 );
|
5662
|
-
}
|
5663
|
-
}
|
5664
|
-
};
|
5665
|
-
|
5666
|
-
p.updateSlidesBG = function(pos, fixed) {
|
5667
|
-
var slides = this.slider.api.view.slideList,
|
5668
|
-
position = (fixed && !window.MSBrowserInfo.msie && !window.MSBrowserInfo.opera ? 'fixed' : '');
|
5669
|
-
|
5670
|
-
for (var i = 0, l = slides.length; i!==l ; i++) {
|
5671
|
-
if (slides[i].hasBG) {
|
5672
|
-
slides[i].$imgcont[0].style.position = position;
|
5673
|
-
slides[i].$imgcont[0].style.top = pos;
|
5674
|
-
}
|
5675
|
-
|
5676
|
-
if (slides[i].$bgvideocont) {
|
5677
|
-
slides[i].$bgvideocont[0].style.position = position;
|
5678
|
-
slides[i].$bgvideocont[0].style.top = pos;
|
5679
|
-
}
|
5680
|
-
}
|
5681
|
-
};
|
5682
|
-
|
5683
|
-
p.destory = function () {
|
5684
|
-
slider.api.removeEventListener(MSSliderEvent.INIT, this.init, this);
|
5685
|
-
slider.api.removeEventListener(MSSliderEvent.DESTROY, this.destory, this);
|
5686
|
-
slider.api.removeEventListener(MSSliderEvent.CHANGE_END, this.resetLayers, this);
|
5687
|
-
slider.api.removeEventListener(MSSliderEvent.CHANGE_START, this.updateCurrentSlide, this);
|
5688
|
-
$(window).off('scroll', this.moveParallax);
|
5689
|
-
};
|
5690
|
-
|
5691
|
-
})(jQuery);
|