PageSourceSearch

https://www.speicher.ch/compiled/index/js/waterwheel-npm.cd12065866b6a68048ef.js

js speicher.ch collected 2026-10-02 22:09:39 UTC 7,753 bytes, 2 lines download raw bytes

1/*! For license information please see waterwheel-npm.cd12065866b6a68048ef.js.LICENSE.txt */
2(self.webpackChunkCMS=self.webpackChunkCMS||[]).push([[2788],{98724:(t,e,i)=>{var n,a=i(19755);(n=a).fn.waterwheelCarousel=function(t){if(this.length>1)return this.each((function(){n(this).waterwheelCarousel(t)})),this;var e=this,i={},a={};function r(t){clearTimeout(a.autoPlayTimer),t||0===i.autoPlay||(a.autoPlayTimer=setTimeout((function(){i.autoPlay>0?c("forward"):c("backward")}),Math.abs(i.autoPlay)))}function o(t,e){Math.abs(e)<=i.flankingItems+1?(function(t,e){var n=Math.abs(e);if(n<i.flankingItems+1)var r=a.calculations[n];else r=a.calculations[i.flankingItems+1];var o,s=Math.pow(i.sizeMultiplier,n),c=s*t.data("original_width"),l=s*t.data("original_height"),h=(Math.abs(t.width()-c),Math.abs(t.height()-l),r.offset),d=r.distance;if(e<0&&(d*=-1),"horizontal"==i.orientation)var u=(f=a.containerWidth/2)+d-c/2,m=i.horizon-h-l/2;else{var f=a.containerHeight/2;u=i.horizon-h-c/2,m=f+d-l/2}o=0===e?1:r.opacity;var g=i.flankingItems+2-n;t.data("width",c),t.data("height",l),t.data("top",m),t.data("left",u),t.data("oldPosition",t.data("currentPosition")),t.data("depth",g),t.data("opacity",o)}(t,e),a.itemsAnimating++,t.css("z-index",t.data().depth).animate({left:t.data().left,width:t.data().width,height:t.data().height,top:t.data().top,opacity:t.data().opacity},a.currentSpeed,i.animationEasing,(function(){!function(t,e){a.itemsAnimating--,t.data("currentPosition",e),0===e&&(a.currentCenterItem=t),0===a.itemsAnimating&&(a.carouselRotationsLeft-=1,a.currentlyMoving=!1,a.carouselRotationsLeft>0?s(0):(a.currentSpeed=i.speed,a.currentCenterItem.addClass(i.activeClassName),!1===a.performingSetup&&(i.movedToCenter(a.currentCenterItem),i.movedFromCenter(a.previousCenterItem)),a.performingSetup=!1,r()))}(t,e)}))):(t.data("currentPosition",e),0===t.data("oldPosition")&&t.css({left:t.data().left,width:t.data().width,height:t.data().height,top:t.data().top,opacity:t.data().opacity,"z-index":t.data().depth}))}function s(t){if(!1===a.currentlyMoving){a.currentCenterItem.removeClass(i.activeClassName),a.currentlyMoving=!0,a.itemsAnimating=0,a.carouselRotationsLeft+=t,!0===i.quickerForFurther&&(t>1&&(a.currentSpeed=i.speed/t),a.currentSpeed=a.currentSpeed<100?100:a.currentSpeed);for(var e=0;e<a.totalItems;e++){var r,s=n(a.items[e]),c=s.data("currentPosition"),l=(r="forward"==a.currentDirection?c-1:c+1)>0?a.rightItemsCount:a.leftItemsCount;Math.abs(r)>l&&(r=-1*c,a.totalItems%2==0&&(r+=1)),o(s,r)}}}function c(t){!1===a.currentlyMoving&&(a.previousCenterItem=a.currentCenterItem,i.movingFromCenter(a.currentCenterItem),"backward"==t?(i.movingToCenter(function(){var t=a.currentCenterItem.prev();return t.length<=0&&(t=a.currentCenterItem.parent().children().last()),t}()),a.currentDirection="backward"):"forward"==t&&(i.movingToCenter(function(){var t=a.currentCenterItem.next();return t.length<=0&&(t=a.currentCenterItem.parent().children().first()),t}()),a.currentDirection="forward")),s(1)}return n(this).find("img").bind("click",(function(){var t=n(this).data().currentPosition;if(0!=i.imageNav&&!(Math.abs(t)>=i.flankingItems+1||a.currentlyMoving)){a.previousCenterItem=a.currentCenterItem,r(!0),i.autoPlay=0;var e=Math.abs(t);0==t?i.clickedCenter(n(this)):(i.movingFromCenter(a.currentCenterItem),i.movingToCenter(n(this)),t<0?(a.currentDirection="backward",s(e)):t>0&&(a.currentDirection="forward",s(e)))}})),n(this).find("a").bind("click",(function(t){var e=0==n(this).find("img").data("currentPosition");if(1===i.linkHandling||2===i.linkHandling&&!e)return t.preventDefault(),!1})),n(document).keydown((function(t){if(i.keyboardNav&&(37===t.which&&"horizontal"==i.orientation||38===t.which&&"vertical"==i.orientation?(r(!0),i.autoPlay=0,c("backward")):(39===t.which&&"horizontal"==i.orientation||40===t.which&&"vertical"==i.orientation)&&(r(!0),i.autoPlay=0,c("forward")),i.keyboardNavOverride&&("horizontal"==i.orientation&&(37===t.which||39===t.which)||"vertical"==i.orientation&&(38===t.which||40===t.which))))return t.preventDefault(),!1})),this.reload=function(t){i=n.extend({},n.fn.waterwheelCarousel.defaults,t),(a={itemsContainer:n(e),totalItems:n(e).find("img").length,containerWidth:n(e).width(),containerHeight:n(e).height(),currentCenterItem:null,previousCenterItem:null,items:[],calculations:[],carouselRotationsLeft:0,currentlyMoving:!1,itemsAnimating:0,currentSpeed:i.speed,intervalTimer:null,currentDirection:"forward",leftItemsCount:0,rightItemsCount:0,performingSetup:!0}).itemsContainer.find("img").removeClass(i.activeClassName),a.itemsContainer.find("img").hide(),i.forcedImageWidth&&i.forcedImageHeight&&a.itemsContainer.find("img").each((function(){n(this).width(i.forcedImageWidth),n(this).height(i.forcedImageHeight)})),function(t){if(!1!==i.preloadImages){var e=a.itemsContainer.find("img"),r=0,o=e.length;e.each((function(){n(this).bind("load",(function(){(r+=1)!==o||t()})),n(this).attr("src",n(this).attr("src")),this.complete&&n(this).trigger("load")}))}else t()}((function(){a.itemsContainer.find("img").each((function(){(null==n(this).data("original_width")||i.forcedImageWidth>0)&&n(this).data("original_width",n(this).width()),(null==n(this).data("original_height")||i.forcedImageHeight>0)&&n(this).data("original_height",n(this).height())})),function(){a.itemsContainer.find("img:first"),a.calculations[0]={distance:0,offset:0,opacity:1};for(var t=i.horizonOffset,e=i.separation,n=1;n<=i.flankingItems+2;n++)n>1&&(t*=i.horizonOffsetMultiplier,e*=i.separationMultiplier),a.calculations[n]={distance:a.c
2alculations[n-1].distance+e,offset:a.calculations[n-1].offset+t,opacity:a.calculations[n-1].opacity*i.opacityMultiplier};i.edgeFadeEnabled?a.calculations[i.flankingItems+1].opacity=0:a.calculations[i.flankingItems+1]={distance:0,offset:0,opacity:0}}(),function(){a.items=a.itemsContainer.find("img");for(var t=0;t<a.totalItems;t++)a.items[t]=n(a.items[t]);0===i.horizon&&("horizontal"===i.orientation?i.horizon=a.containerHeight/2:i.horizon=a.containerWidth/2),a.itemsContainer.css("position","relative").find("img").each((function(){var t,e;"horizontal"===i.orientation?(t=a.containerWidth/2-n(this).data("original_width")/2,e=i.horizon-n(this).data("original_height")/2):(t=i.horizon-n(this).data("original_width")/2,e=a.containerHeight/2-n(this).data("original_height")/2),n(this).css({left:t,top:e,visibility:"visible",position:"absolute","z-index":0,opacity:0}).data({top:e,left:t,oldPosition:0,currentPosition:0,depth:0,opacity:0}).show()}))}(),function(){i.startingItem=0===i.startingItem?Math.round(a.totalItems/2):i.startingItem,a.rightItemsCount=Math.ceil((a.totalItems-1)/2),a.leftItemsCount=Math.floor((a.totalItems-1)/2),a.carouselRotationsLeft=1,o(a.items[i.startingItem-1],0),a.items[i.startingItem-1].css("opacity",1);for(var t=i.startingItem-1,e=1;e<=a.rightItemsCount;e++)t<a.totalItems-1?t+=1:t=0,a.items[t].css("opacity",1),o(a.items[t],e);for(t=i.startingItem-1,e=-1;e>=-1*a.leftItemsCount;e--)t>0?t-=1:t=a.totalItems-1,a.items[t].css("opacity",1),o(a.items[t],e)}()}))},this.next=function(){r(!0),i.autoPlay=0,c("forward")},this.prev=function(){r(!0),i.autoPlay=0,c("backward")},this.reload(t),this},n.fn.waterwheelCarousel.defaults={startingItem:1,separation:175,separationMultiplier:.6,horizonOffset:0,horizonOffsetMultiplier:1,sizeMultiplier:.7,opacityMultiplier:.8,horizon:0,flankingItems:3,speed:300,animationEasing:"linear",quickerForFurther:!0,edgeFadeEnabled:!1,linkHandling:2,autoPlay:0,orientation:"horizontal",activeClassName:"carousel-center",keyboardNav:!1,keyboardNavOverride:!0,imageNav:!0,preloadImages:!0,forcedImageWidth:0,forcedImageHeight:0,movingToCenter:n.noop,movedToCenter:n.noop,clickedCenter:n.noop,movingFromCenter:n.noop,movedFromCenter:n.noop}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.