芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/vticker.min.js
!function(a){var b,c,d;b={speed:700,pause:4e3,showItems:1,mousePause:!0,height:0,animate:!0,margin:0,padding:0,startPaused:!1,autoAppend:!0},c={moveUp:function(a,b){return c.showNextItem(a,b,"up")},moveDown:function(a,b){return c.showNextItem(a,b,"down")},nextItemState:function(a,b){var c,d;return d=a.element.children("ul"),c=a.itemHeight,a.options.height>0&&(c=d.children("li:first").height()),c+=a.options.margin+2*a.options.padding,{height:c,options:a.options,el:a.element,obj:d,selector:"up"===b?"li:first":"li:last",dir:b}},showNextItem:function(a,b,d){var e,f;return f=c.nextItemState(a,d),f.el.trigger("vticker.beforeTick"),e=f.obj.children(f.selector).clone(!0),"down"===f.dir&&f.obj.css("top","-"+f.height+"px").prepend(e),b&&b.animate?a.animating||c.animateNextItem(f,a):c.nonAnimatedNextItem(f),"up"===f.dir&&a.options.autoAppend&&e.appendTo(f.obj),f.el.trigger("vticker.afterTick")},animateNextItem:function(b,c){var d;return c.animating=!0,d="up"===b.dir?{top:"-="+b.height+"px"}:{top:0},b.obj.animate(d,c.options.speed,function(){return a(b.obj).children(b.selector).remove(),a(b.obj).css("top","0px"),c.animating=!1})},nonAnimatedNextItem:function(a){return a.obj.children(a.selector).remove(),a.obj.css("top","0px")},nextUsePause:function(){var b,e;if(e=a(this).data("state"),b=e.options,!e.isPaused&&!c.hasSingleItem(e))return d.next.call(this,{animate:b.animate})},startInterval:function(){var b,d;return d=a(this).data("state"),b=d.options,d.intervalId=setInterval(function(a){return function(){return c.nextUsePause.call(a)}}(this),b.pause)},stopInterval:function(){var b;if(b=a(this).data("state"))return b.intervalId&&clearInterval(b.intervalId),b.intervalId=void 0},restartInterval:function(){return c.stopInterval.call(this),c.startInterval.call(this)},getState:function(b,c){var d;if(!(d=a(c).data("state")))throw new Error("vTicker: No state available from "+b);return d},isAnimatingOrSingleItem:function(a){return a.animating||this.hasSingleItem(a)},hasMultipleItems:function(a){return a.itemCount>1},hasSingleItem:function(a){return!c.hasMultipleItems(a)},bindMousePausing:function(a){return function(a,b){return a.bind("mouseenter",function(){if(!b.isPaused)return b.pausedByCode=!0,c.stopInterval.call(this),d.pause.call(this,!0)}).bind("mouseleave",function(){if(!b.isPaused||b.pausedByCode)return b.pausedByCode=!1,d.pause.call(this,!1),c.startInterval.call(this)})}}(),setItemLayout:function(b,c,d){var e;return b.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:d.margin,padding:d.padding}),isNaN(d.height)||0===d.height?(b.children("ul").children("li").each(function(){if(a(this).height()>c.itemHeight)return c.itemHeight=a(this).height()}),b.children("ul").children("li").each(function(){return a(this).height(c.itemHeight)}),e=d.margin+2*d.padding,b.height((c.itemHeight+e)*d.showItems+d.margin)):b.height(d.height)},defaultStateAttribs:function(a,b){return{itemCount:a.children("ul").children("li").length,itemHeight:0,itemMargin:0,element:a,animating:!1,options:b,isPaused:b.startPaused,pausedByCode:!1}}},d={init:function(e){var f,g,h;if((h=a(this).data("state"))&&d.stop.call(this),h=null,f=jQuery.extend({},b),e=a.extend(f,e),g=a(this),h=c.defaultStateAttribs(g,e),a(this).data("state",h),c.setItemLayout(g,h,e),e.startPaused||c.startInterval.call(this),e.mousePause)return c.bindMousePausing(g,h)},pause:function(b){var d,e;return e=c.getState("pause",this),!!c.hasMultipleItems(e)&&(e.isPaused=b,d=e.element,b?(a(this).addClass("paused"),d.trigger("vticker.pause")):(a(this).removeClass("paused"),d.trigger("vticker.resume")))},next:function(a){var b;return b=c.getState("next",this),!c.isAnimatingOrSingleItem(b)&&(c.restartInterval.call(this),c.moveUp(b,a))},prev:function(a){var b;return b=c.getState("prev",this),!c.isAnimatingOrSingleItem(b)&&(c.restartInterval.call(this),c.moveDown(b,a))},stop:function(){return c.getState("stop",this),c.stopInterval.call(this)},remove:function(){var a,b;return b=c.getState("remove",this),c.stopInterval.call(this),a=b.element,a.unbind(),a.remove()}},a.fn.vTicker=function(b){return d[b]?d[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?a.error("Method "+b+" does not exist on jQuery.vTicker"):d.init.apply(this,arguments)}}(jQuery);