芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js
!function(u){var a=!0;u.flexslider=function(v,e){var t,p=u(v),r=("undefined"==typeof e.rtl&&"rtl"==u("html").attr("dir")&&(e.rtl=!0),p.vars=u.extend({},u.flexslider.defaults,e),p.vars.namespace),o=("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&p.vars.touch,s="click touchend keyup",l="",m="vertical"===p.vars.direction,f=p.vars.reverse,h=0
'),1
").attr("href","#").text(a),"thumbnails"===p.vars.controlNav&&(e=u("
",{onload:"this.width = this.naturalWidth; this.height = this.naturalHeight",src:i.attr("data-thumb"),alt:i.attr("alt")})),""!==i.attr("data-thumb-alt")&&e.attr("alt",i.attr("data-thumb-alt")),"thumbnails"!==p.vars.controlNav||!0!==p.vars.thumbCaptions||""!==(i=i.attr("data-thumbcaption"))&&undefined!==i&&(i=u("
").addClass(r+"caption").text(i),e.append(i)),u("
"));e.appendTo(i),i.append("
"),p.controlNavScaffold.append(i),a++}(p.controlsContainer?u(p.controlsContainer):p).append(p.controlNavScaffold),d.controlNav.set(),d.controlNav.active(),p.controlNavScaffold.on(s,"a, img",function(e){var t,a;e.preventDefault(),""!==l&&l!==e.type||(t=u(this),a=p.controlNav.index(t),t.hasClass(r+"active")||(p.direction=a>p.currentSlide?"next":"prev",p.flexAnimate(a,p.vars.pauseOnAction))),""===l&&(l=e.type),d.setToClearWatchedEvent()})},setupManual:function(){p.controlNav=p.manualControls,d.controlNav.active(),p.controlNav.on(s,function(e){var t,a;e.preventDefault(),""!==l&&l!==e.type||(t=u(this),a=p.controlNav.index(t),t.hasClass(r+"active")||(a>p.currentSlide?p.direction="next":p.direction="prev",p.flexAnimate(a,p.vars.pauseOnAction))),""===l&&(l=e.type),d.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===p.vars.controlNav?"img":"a";p.controlNav=u("."+r+"control-nav li "+e,p.controlsContainer||p)},active:function(){p.controlNav.removeClass(r+"active").eq(p.animatingTo).addClass(r+"active")},update:function(e,t){1
'+p.count+"
")):(1===p.pagingCount?p.controlNavScaffold.find("li"):p.controlNav.eq(t).closest("li")).remove(),d.controlNav.set(),1
'+p.vars.prevText+'
'+p.vars.nextText+"
");p.customDirectionNav?p.directionNav=p.customDirectionNav:p.controlsContainer?(u(p.controlsContainer).append(e),p.directionNav=u("."+r+"direction-nav li a",p.controlsContainer)):(p.append(e),p.directionNav=u("."+r+"direction-nav li a",p)),d.directionNav.update(),p.directionNav.on(s,function(e){var t;e.preventDefault(),""!==l&&l!==e.type||(t=u(this).hasClass(r+"next")?p.getTarget("next"):p.getTarget("prev"),p.flexAnimate(t,p.vars.pauseOnAction)),""===l&&(l=e.type),d.setToClearWatchedEvent()})},update:function(){var e=r+"disabled";1===p.pagingCount?p.directionNav.addClass(e).attr("tabindex","-1"):p.vars.animationLoop?p.directionNav.removeClass(e).prop("tabindex","-1"):0===p.animatingTo?p.directionNav.removeClass(e).filter("."+r+"prev").addClass(e).attr("tabindex","-1"):p.animatingTo===p.last?p.directionNav.removeClass(e).filter("."+r+"next").addClass(e).attr("tabindex","-1"):p.directionNav.removeClass(e).prop("tabindex","-1")}},pausePlay:{setup:function(){var e=u('
');p.controlsContainer?(p.controlsContainer.append(e),p.pausePlay=u("."+r+"pauseplay a",p.controlsContainer)):(p.append(e),p.pausePlay=u("."+r+"pauseplay a",p)),d.pausePlay.update(p.vars.slideshow?r+"pause":r+"play"),p.pausePlay.on(s,function(e){e.preventDefault(),""!==l&&l!==e.type||(u(this).hasClass(r+"pause")?(p.manualPause=!0,p.manualPlay=!1,p.pause()):(p.manualPause=!1,p.manualPlay=!0,p.play())),""===l&&(l=e.type),d.setToClearWatchedEvent()})},update:function(e){"play"===e?p.pausePlay.removeClass(r+"pause").addClass(r+"play").html(p.vars.playText):p.pausePlay.removeClass(r+"play").addClass(r+"pause").html(p.vars.pauseText)}},touch:function(){var n,i,s,r,o,l,c=!1,t=0,a=0,d=function(e){t=e.touches[0].pageX,a=e.touches[0].pageY,o=m?n-a:(p.vars.rtl?-1:1)*(n-t);(!(c=m?Math.abs(o)
r/2)?p.flexAnimate(a,p.vars.pauseOnAction):g||p.flexAnimate(p.currentSlide,p.vars.pauseOnAction,!0)),v.removeEventListener("touchend",u,!1),s=o=i=n=null};v.addEventListener("touchstart",function(e){p.animating?e.preventDefault():1===e.touches.length&&(p.pause(),r=m?p.h:p.w,l=Number(new Date),t=e.touches[0].pageX,a=e.touches[0].pageY,s=h&&f&&p.animatingTo===p.last?0:h&&f?p.limit-(p.itemW+p.vars.itemMargin)*p.move*p.animatingTo:h&&p.currentSlide===p.last?p.limit:h?(p.itemW+p.vars.itemMargin)*p.move*p.currentSlide:f?(p.last-p.currentSlide+p.cloneOffset)*r:(p.currentSlide+p.cloneOffset)*r,n=m?a:t,i=m?t:a,v.addEventListener("touchmove",d,!1),v.addEventListener("touchend",u,!1))},!1)},resize:function(){!p.animating&&p.is(":visible")&&(h||p.doMath(),g?d.smoothHeight():h?(p.slides.width(p.computedW),p.update(p.pagingCount),p.setProps()):m?(p.viewport.height(p.h),p.setProps(p.h,"setTotal")):(p.setProps(p.computedW,"setTotal"),p.newSlides.width(p.computedW),p.vars.smoothHeight&&d.smoothHeight()))},smoothHeight:function(e){var t;m&&!g||(t=g?p:p.viewport,e?t.animate({height:p.slides.eq(p.animatingTo).innerHeight()},e):t.innerHeight(p.slides.eq(p.animatingTo).innerHeight()))},sync:function(e){var t=u(p.vars.sync).data("flexslider"),a=p.animatingTo;switch(e){case"animate":t.flexAnimate(a,p.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=u(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:function(){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState?p.startTimeout?clearTimeout(p.startTimeout):p.pause():!p.started&&0
p.currentSlide?"next":"prev"),c&&1===p.pagingCount&&(p.direction=p.currentItem
p.limit&&1!==p.visible?p.limit:a):0===p.currentSlide&&e===p.count-1&&p.vars.animationLoop&&"next"!==p.direction?f?(p.count+p.cloneOffset)*s:0:p.currentSlide===p.last&&0===e&&p.vars.animationLoop&&"prev"!==p.direction?f?0:(p.count+1)*s:f?(p.count-1-e+p.cloneOffset)*s:(e+p.cloneOffset)*s,p.setProps(t,"",p.vars.animationSpeed),p.transitions?(p.vars.animationLoop&&p.atEnd||(p.animating=!1,p.currentSlide=p.animatingTo),p.container.off("transitionend"),p.container.on("transitionend",function(){clearTimeout(p.ensureAnimationEnd),p.wrapup(s)}),clearTimeout(p.ensureAnimationEnd),p.ensureAnimationEnd=setTimeout(function(){p.wrapup(s)},p.vars.animationSpeed+100)):p.container.animate(p.args,p.vars.animationSpeed,p.vars.easing,function(){p.wrapup(s)})),p.vars.smoothHeight&&d.smoothHeight(p.vars.animationSpeed)}},p.wrapup=function(e){g||h||(0===p.currentSlide&&p.animatingTo===p.last&&p.vars.animationLoop?p.setProps(e,"jumpEnd"):p.currentSlide===p.last&&0===p.animatingTo&&p.vars.animationLoop&&p.setProps(e,"jumpStart")),p.animating=!1,p.currentSlide=p.animatingTo,p.vars.after(p)},p.animateSlides=function(){!p.animating&&a&&p.flexAnimate(p.getTarget("next"))},p.pause=function(){clearInterval(p.animatedSlides),p.animatedSlides=null,p.playing=!1,p.vars.pausePlay&&d.pausePlay.update("play"),p.syncExists&&d.sync("pause")},p.play=function(){p.playing&&clearInterval(p.animatedSlides),p.animatedSlides=p.animatedSlides||setInterval(p.animateSlides,p.vars.slideshowSpeed),p.started=p.playing=!0,p.vars.pausePlay&&d.pausePlay.update("pause"),p.syncExists&&d.sync("play")},p.stop=function(){p.pause(),p.stopped=!0},p.canAdvance=function(e,t){var a=c?p.pagingCount-1:p.last;return!!t||(c&&p.currentItem===p.count-1&&0===e&&"prev"===p.direction||(!c||0!==p.currentItem||e!==p.pagingCount-1||"next"===p.direction)&&((e!==p.currentSlide||c)&&(!!p.vars.animationLoop||(!p.atEnd||0!==p.currentSlide||e!==a||"next"===p.direction)&&(!p.atEnd||p.currentSlide!==a||0!==e||"next"!==p.direction))))},p.getTarget=function(e){return"next"===(p.direction=e)?p.currentSlide===p.last?0:p.currentSlide+1:0===p.currentSlide?p.last:p.currentSlide-1},p.setProps=function(e,t,a){n=e||(p.itemW+p.vars.itemMargin)*p.move*p.animatingTo;var n,i=function(){if(h)return"setTouch"===t?e:f&&p.animatingTo===p.last?0:f?p.limit-(p.itemW+p.vars.itemMargin)*p.move*p.animatingTo:p.animatingTo===p.last?p.limit:n;switch(t){case"setTotal":return f?(p.count-1-p.currentSlide+p.cloneOffset)*e:(p.currentSlide+p.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return f?e:p.count*e;case"jumpStart":return f?p.count*e:e;default:return e}}()*(p.vars.rtl?1:-1)+"px";p.transitions&&(i=m?"translate3d(0,"+i+",0)":"translate3d("+parseInt(i)+"px,0,0)",a=a!==undefined?a/1e3+"s":"0s",p.container.css("transition-duration",a)),p.args[p.prop]=i,!p.transitions&&a!==undefined||p.container.css(p.args),p.container.css("transform",i)},p.setup=function(e){var t,a;g?(p.vars.rtl?p.slides.css({width:"100%","float":"right",marginLeft:"-100%",position:"relative"}):p.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===e&&(o?p.slides.css({opacity:0,display:"block",transition:"opacity "+p.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(p.currentSlide).css({opacity:1,zIndex:2}):0==p.vars.fadeFirstSlide?p.slides.css({opacity:0,display:"block",zIndex:1}).eq(p.currentSlide).css({zIndex:2}).css({opacity:1}):p.slides.css({opacity:0,display:"block",zIndex:1}).eq(p.currentSlide).css({zIndex:2}).animate({opacity:1},p.vars.animationSpeed,p.vars.easing)),p.vars.smoothHeight&&d.smoothHeight()):("init"===e&&(p.viewport=u('
').css({overflow:"hidden",position:"relative"}).appendTo(p).append(p.container),p.cloneCount=0,p.cloneOffset=0,f&&(a=u.makeArray(p.slides).reverse(),p.slides=u(a),p.container.empty().append(p.slides))),p.vars.animationLoop&&!h&&(p.cloneCount=2,p.cloneOffset=1,"init"!==e&&p.container.find(".clone").remove(),p.container.append(d.uniqueID(p.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(d.uniqueID(p.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),p.newSlides=u(p.vars.selector,p),t=f?p.count-1-p.currentSlide+p.cloneOffset:p.currentSlide+p.cloneOffset,m&&!h?(p.container.height(200*(p.count+p.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){p.newSlides.css({display:"block"}),p.doMath(),p.viewport.height(p.h),p.setProps(t*p.h,"init")},"init"===e?100:0)):(p.container.width(200*(p.count+p.cloneCount)+"%"),p.setProps(t*p.computedW,"init"),setTimeout(function(){p.doMath(),p.vars.rtl?p.newSlides.css({width:p.computedW,marginRight:p.computedM,"float":"right",display:"block"}):p.newSlides.css({width:p.computedW,marginRight:p.computedM,"float":"left",display:"block"}),p.vars.smoothHeight&&d.smoothHeight()},"init"===e?100:0))),h||p.slides.removeClass(r+"active-slide").eq(p.currentSlide).addClass(r+"active-slide"),p.vars.init(p)},p.doMath=function(){var e=p.slides.first(),t=p.vars.itemMargin,a=p.vars.minItems,n=p.vars.maxItems;p.w=(p.viewport===undefined?p:p.viewport).width(),p.isFirefox&&(p.w=p.width()),p.h=e.height(),p.boxPadding=e.outerWidth()-e.width(),h?(p.itemT=p.vars.itemWidth+t,p.itemM=t,p.minW=a?a*p.itemT:p.w,p.maxW=n?n*p.itemT-t:p.w,p.itemW=p.minW>p.w?(p.w-t*(a-1))/a:p.maxW
p.w?p.w:p.vars.itemWidth,p.visible=Math.floor(p.w/p.itemW),p.move=0
p.w?p.itemW*(p.count-1)+t*(p.count-1):(p.itemW+t)*p.count-p.w-t):(p.itemW=p.w,p.itemM=t,p.pagingCount=p.count,p.last=p.count-1),p.computedW=p.itemW-p.boxPadding,p.computedM=p.itemM},p.update=function(e,t){p.doMath(),h||(e
p.controlNav.length?d.controlNav.update("add"):("remove"===t&&!h||p.pagingCount
p.last&&(--p.currentSlide,--p.animatingTo),d.controlNav.update("remove",p.last))),p.vars.directionNav&&d.directionNav.update()},p.addSlide=function(e,t){e=u(e);p.count+=1,p.last=p.count-1,m&&f?t!==undefined?p.slides.eq(p.count-t).after(e):p.container.prepend(e):t!==undefined?p.slides.eq(t).before(e):p.container.append(e),p.update(t,"add"),p.slides=u(p.vars.selector+":not(.clone)",p),p.setup(),p.vars.added(p)},p.removeSlide=function(e){var t=isNaN(e)?p.slides.index(u(e)):e;--p.count,p.last=p.count-1,(isNaN(e)?u(e,p.slides):m&&f?p.slides.eq(p.last):p.slides.eq(e)).remove(),p.doMath(),p.update(t,"remove"),p.slides=u(p.vars.selector+":not(.clone)",p),p.setup(),p.vars.removed(p)},d.init()},u(window).on("blur",function(e){a=!1}).on("focus",function(e){a=!0}),u.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,isFirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},u.fn.flexslider=function(a){if("object"==typeof(a=a===undefined?{}:a))return this.each(function(){var e=u(this),t=a.selector||".slides > li",t=e.find(t);1===t.length&&!1===a.allowOneSlide||0===t.length?(t.fadeIn(400),a.start&&a.start(e)):e.data("flexslider")===undefined&&new u.flexslider(this,a)});var e=u(this).data("flexslider");switch(a){case"play":e.play();break;case"pause":e.pause();break;case"stop":e.stop();break;case"next":e.flexAnimate(e.getTarget("next"),!0);break;case"prev":case"previous":e.flexAnimate(e.getTarget("prev"),!0);break;default:"number"==typeof a&&e.flexAnimate(a,!0)}}}(jQuery);