-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy pathslick.min.js
More file actions
2 lines (2 loc) · 3.03 KB
/
Copy pathslick.min.js
File metadata and controls
2 lines (2 loc) · 3.03 KB
1
2
/*! angular-slick v0.2.1 */
"use strict";angular.module("slick",[]).directive("slick",["$timeout","$compile",function(a,b){return{restrict:"AEC",scope:{initOnload:"@",data:"=",currentIndex:"=",accessibility:"@",adaptiveHeight:"@",arrows:"@",asNavFor:"@",appendArrows:"@",appendDots:"@",autoplay:"@",autoplaySpeed:"@",centerMode:"@",centerPadding:"@",cssEase:"@",customPaging:"&",customPagingScope:"=",dots:"@",draggable:"@",easing:"@",fade:"@",focusOnSelect:"@",infinite:"@",initialSlide:"@",lazyLoad:"@",onBeforeChange:"&",onAfterChange:"&",onInit:"&",onReInit:"&",onSetPosition:"&",pauseOnHover:"@",pauseOnDotsHover:"@",responsive:"=",rtl:"@",slide:"@",slidesToShow:"@",slidesToScroll:"@",speed:"@",swipe:"@",swipeToSlide:"@",touchMove:"@",touchThreshold:"@",useCSS:"@",variableWidth:"@",vertical:"@",prevArrow:"@",nextArrow:"@"},link:function(c,d,e){var f,g,h;return f=function(){return a(function(){var a;return a=$(d),a.slick("unslick"),a.find(".slick-list").remove(),a})},g=function(){return a(function(){var a,f,g;return g=$(d),null!=c.currentIndex&&(a=c.currentIndex),f=function(a,d){var e;return e=c.customPagingScope||c,b(c.customPaging({slick:a,index:d}))(e)},g.slick({accessibility:"false"!==c.accessibility,adaptiveHeight:"true"===c.adaptiveHeight,arrows:"false"!==c.arrows,asNavFor:c.asNavFor?c.asNavFor:void 0,appendArrows:c.appendArrows?$(c.appendArrows):$(d),appendDots:c.appendDots?$(c.appendDots):$(d),autoplay:"true"===c.autoplay,autoplaySpeed:null!=c.autoplaySpeed?parseInt(c.autoplaySpeed,10):3e3,centerMode:"true"===c.centerMode,centerPadding:c.centerPadding||"50px",cssEase:c.cssEase||"ease",customPaging:e.customPaging?f:void 0,dots:"true"===c.dots,draggable:"false"!==c.draggable,easing:c.easing||"linear",fade:"true"===c.fade,focusOnSelect:"true"===c.focusOnSelect,infinite:"false"!==c.infinite,initialSlide:c.initialSlide||0,lazyLoad:c.lazyLoad||"ondemand",beforeChange:e.onBeforeChange?c.onBeforeChange:void 0,onReInit:e.onReInit?c.onReInit:void 0,onSetPosition:e.onSetPosition?c.onSetPosition:void 0,pauseOnHover:"false"!==c.pauseOnHover,responsive:c.responsive||void 0,rtl:"true"===c.rtl,slide:c.slide||"div",slidesToShow:null!=c.slidesToShow?parseInt(c.slidesToShow,10):1,slidesToScroll:null!=c.slidesToScroll?parseInt(c.slidesToScroll,10):1,speed:null!=c.speed?parseInt(c.speed,10):300,swipe:"false"!==c.swipe,swipeToSlide:"true"===c.swipeToSlide,touchMove:"false"!==c.touchMove,touchThreshold:c.touchThreshold?parseInt(c.touchThreshold,10):5,useCSS:"false"!==c.useCSS,variableWidth:"true"===c.variableWidth,vertical:"true"===c.vertical,prevArrow:c.prevArrow?$(c.prevArrow):void 0,nextArrow:c.nextArrow?$(c.nextArrow):void 0}),g.on("init",function(b){return e.onInit&&c.onInit(),null!=a?b.slideHandler(a):void 0}),g.on("afterChange",function(b,d,e,f){return c.onAfterChange&&c.onAfterChange(),null!=a?c.$apply(function(){return a=e,c.currentIndex=e}):void 0}),c.$watch("currentIndex",function(b,c){return null!=a&&null!=b&&b!==a?g.slick("slickGoTo",b):void 0})})},c.initOnload?(h=!1,c.$watch("data",function(a,b){return null!=a?(h&&f(),g(),h=!0):void 0})):g()}}}]);