/
usr
/
share
/
javascript
/
jquery-ui
/
ui
/
/usr/share/javascript/jquery-ui/ui
mkdir
upload
Name
Size
Mode
Actions
effects/
-
0755
rm
i18n/
-
0755
rm
vendor/
-
0755
rm
widgets/
-
0755
rm
core.js
361
0644
edit
dl
rm
core.min.js
257
0644
edit
dl
rm
data.js
934
0644
edit
dl
rm
data.min.js
360
0644
edit
dl
rm
disable-selection.js
1079
0644
edit
dl
rm
disable-selection.min.js
461
0644
edit
dl
rm
effect.js
24612
0644
edit
dl
rm
effect.min.js
14041
0644
edit
dl
rm
focusable.js
2295
0644
edit
dl
rm
focusable.min.js
1107
0644
edit
dl
rm
form-reset-mixin.js
1827
0644
edit
dl
rm
form-reset-mixin.min.js
959
0644
edit
dl
rm
form.js
581
0644
edit
dl
rm
form.min.js
256
0644
edit
dl
rm
ie.js
385
0644
edit
dl
rm
ie.min.js
224
0644
edit
dl
rm
jquery-patch.js
2168
0644
edit
dl
rm
jquery-patch.min.js
725
0644
edit
dl
rm
jquery-var-for-color.js
530
0644
edit
dl
rm
jquery-var-for-color.min.js
141
0644
edit
dl
rm
keycode.js
820
0644
edit
dl
rm
keycode.min.js
322
0644
edit
dl
rm
labels.js
1775
0644
edit
dl
rm
labels.min.js
586
0644
edit
dl
rm
plugin.js
1020
0644
edit
dl
rm
plugin.min.js
617
0644
edit
dl
rm
position.js
15125
0644
edit
dl
rm
position.min.js
9694
0644
edit
dl
rm
safe-active-element.js
1014
0644
edit
dl
rm
safe-active-element.min.js
406
0644
edit
dl
rm
safe-blur.js
523
0644
edit
dl
rm
safe-blur.min.js
270
0644
edit
dl
rm
scroll-parent.js
1280
0644
edit
dl
rm
scroll-parent.min.js
674
0644
edit
dl
rm
tabbable.js
883
0644
edit
dl
rm
tabbable.min.js
367
0644
edit
dl
rm
unique-id.js
976
0644
edit
dl
rm
unique-id.min.js
391
0644
edit
dl
rm
version.js
322
0644
edit
dl
rm
version.min.js
184
0644
edit
dl
rm
widget.js
20283
0644
edit
dl
rm
widget.min.js
11885
0644
edit
dl
rm
Edit:
/usr/share/javascript/jquery-ui/ui/effect.min.js
(14041B)
!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],factory):factory(jQuery)}(function($){"use strict";var orig,classAnimationActions,shorthandStyles,baseEasings;function getElementStyles(elem){var key,len,style=elem.ownerDocument.defaultView?elem.ownerDocument.defaultView.getComputedStyle(elem,null):elem.currentStyle,styles={};if(style&&style.length&&style[0]&&style[style[0]])for(len=style.length;len--;)"string"==typeof style[key=style[len]]&&(styles[key.replace(/-([\da-z])/gi,function(all,letter){return letter.toUpperCase()})]=style[key]);else for(key in style)"string"==typeof style[key]&&(styles[key]=style[key]);return styles}return $.effects={effect:{}},classAnimationActions=["add","remove","toggle"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(_,prop){$.fx.step[prop]=function(fx){("none"!==fx.end&&!fx.setAttr||1===fx.pos&&!fx.setAttr)&&(jQuery.style(fx.elem,prop,fx.end),fx.setAttr=!0)}}),$.fn.addBack||($.fn.addBack=function(selector){return this.add(null==selector?this.prevObject:this.prevObject.filter(selector))}),$.effects.animateClass=function(value,duration,easing,callback){var o=$.speed(duration,easing,callback);return this.queue(function(){var animated=$(this),baseClass=animated.attr("class")||"",allAnimations=(allAnimations=o.children?animated.find("*").addBack():animated).map(function(){return{el:$(this),start:getElementStyles(this)}}),applyClassChange=function(){$.each(classAnimationActions,function(i,action){value[action]&&animated[action+"Class"](value[action])})};applyClassChange(),allAnimations=allAnimations.map(function(){return this.end=getElementStyles(this.el[0]),this.diff=function(oldStyle,newStyle){var name,value,diff={};for(name in newStyle)value=newStyle[name],oldStyle[name]!==value&&(shorthandStyles[name]||!$.fx.step[name]&&isNaN(parseFloat(value))||(diff[name]=value));return diff}(this.start,this.end),this}),animated.attr("class",baseClass),allAnimations=allAnimations.map(function(){var styleInfo=this,dfd=$.Deferred(),opts=$.extend({},o,{queue:!1,complete:function(){dfd.resolve(styleInfo)}});return this.el.animate(this.diff,opts),dfd.promise()}),$.when.apply($,allAnimations.get()).done(function(){applyClassChange(),$.each(arguments,function(){var el=this.el;$.each(this.diff,function(key){el.css(key,"")})}),o.complete.call(animated[0])})})},$.fn.extend({addClass:(orig=$.fn.addClass,function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{add:classNames},speed,easing,callback):orig.apply(this,arguments)}),removeClass:function(orig){return function(classNames,speed,easing,callback){return 1<arguments.length?$.effects.animateClass.call(this,{remove:classNames},speed,easing,callback):orig.apply(this,arguments)}}($.fn.removeClass),toggleClass:function(orig){return function(classNames,force,speed,easing,callback){return"boolean"==typeof force||void 0===force?speed?$.effects.animateClass.call(this,force?{add:classNames}:{remove:classNames},speed,easing,callback):orig.apply(this,arguments):$.effects.animateClass.call(this,{toggle:classNames},force,speed,easing)}}($.fn.toggleClass),switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.call(this,{add:add,remove:remove},speed,easing,callback)}}),function(){var orig;function _normalizeArguments(effect,options,speed,callback){return effect={effect:effect=$.isPlainObject(effect)?(options=effect).effect:effect},"function"==typeof(options=null==options?{}:options)&&(callback=options,speed=null,options={}),"number"!=typeof options&&!$.fx.speeds[options]||(callback=speed,speed=options,options={}),"function"==typeof speed&&(callback=speed,speed=null),options&&$.extend(effect,options),speed=speed||options.duration,effect.duration=$.fx.off?0:"number"==typeof speed?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default,effect.complete=callback||options.complete,effect}function standardAnimationOption(option){return!option||"number"==typeof option||$.fx.speeds[option]||("string"==typeof option&&!$.effects.effect[option]||("function"==typeof option||"object"==typeof option&&!option.effect))}function parseClip(str,element){var outerWidth=element.outerWidth(),element=element.outerHeight(),str=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(str)||["",0,outerWidth,element,0];return{top:parseFloat(str[1])||0,right:"auto"===str[2]?outerWidth:parseFloat(str[2]),bottom:"auto"===str[3]?element:parseFloat(str[3]),left:parseFloat(str[4])||0}}$.expr&&$.expr.pseudos&&$.expr.pseudos.animated&&($.expr.pseudos.animated=(orig=$.expr.pseudos.animated,function(elem){return!!$(elem).data("ui-effects-animated")||orig(elem)})),!1!==$.uiBackCompat&&$.extend($.effects,{save:function(element,set){for(var i=0,length=set.length;i<length;i++)null!==set[i]&&element.data("ui-effects-"+set[i],element[0].style[set[i]])},restore:function(element,set){for(var val,i=0,length=set.length;i<length;i++)null!==set[i]&&(val=element.data("ui-effects-"+set[i]),element.css(set[i],val))},setMode:function(el,mode){return mode="toggle"===mode?el.is(":hidden")?"show":"hide":mode},createWrapper:function(element){if(element.parent().is(".ui-effects-wrapper"))return element.parent();var props={width:element.outerWidth(!0),height:element.outerHeight(!0),float:element.css("float")},wrapper=$("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),size={width:element.width(),height:element.height()},active=document.activeElement;try{active.id}catch(e){active=document.body}return element.wrap(wrapper),element[0]!==active&&!$.contains(element[0],active)||$(active).trigger("focus"),wrapper=element.parent(),"static"===element.css("position")?(wrapper.css({position:"relative"}),element.css({position:"relative"})):($.extend(props,{position:element.css("position"),zIndex:element.css("z-index")}),$.each(["top","left","bottom","right"],function(i,pos){props[pos]=element.css(pos),isNaN(parseInt(props[pos],10))&&(props[pos]="auto")}),element.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),element.css(size),wrapper.css(props).show()},removeWrapper:function(element){var active=document.activeElement;return element.parent().is(".ui-effects-wrapper")&&(element.parent().replaceWith(element),element[0]!==active&&!$.contains(element[0],active)||$(active).trigger("focus")),element}}),$.extend($.effects,{version:"1.13.1",define:function(name,mode,effect){return effect||(effect=mode,mode="effect"),$.effects.effect[name]=effect,$.effects.effect[name].mode=mode,effect},scaledDimensions:function(element,percent,direction){if(0===percent)return{height:0,width:0,outerHeight:0,outerWidth:0};var x="horizontal"!==direction?(percent||100)/100:1,direction="vertical"!==direction?(percent||100)/100:1;return{height:element.height()*direction,width:element.width()*x,outerHeight:element.outerHeight()*direction,outerWidth:element.outerWidth()*x}},clipToBox:function(animation){return{width:animation.clip.right-animation.clip.left,height:animation.clip.bottom-animation.clip.top,left:animation.clip.left,top:animation.clip.top}},unshift:function(element,queueLength,count){var queue=element.queue();1<queueLength&&queue.splice.apply(queue,[1,0].concat(queue.splice(queueLength,count))),element.dequeue()},saveStyle:function(element){element.data("ui-effects-style",element[0].style.cssText)},restoreStyle:function(element){element[0].style.cssText=element.data("ui-effects-style")||"",element.removeData("ui-effects-style")},mode:function(element,mode){element=element.is(":hidden");return"toggle"===mode&&(mode=element?"show":"hide"),mode=(element?"hide"===mode:"show"===mode)?"none":mode},getBaseline:function(origin,original){var y,x;switch(origin[0]){case"top":y=0;break;case"middle":y=.5;break;case"bottom":y=1;break;default:y=origin[0]/original.height}switch(origin[1]){case"left":x=0;break;case"center":x=.5;break;case"right":x=1;break;default:x=origin[1]/original.width}return{x:x,y:y}},createPlaceholder:function(element){var placeholder,cssPosition=element.css("position"),position=element.position();return element.css({marginTop:element.css("marginTop"),marginBottom:element.css("marginBottom"),marginLeft:element.css("marginLeft"),marginRight:element.css("marginRight")}).outerWidth(element.outerWidth()).outerHeight(element.outerHeight()),/^(static|relative)/.test(cssPosition)&&(cssPosition="absolute",placeholder=$("<"+element[0].nodeName+">").insertAfter(element).css({display:/^(inline|ruby)/.test(element.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:element.css("marginTop"),marginBottom:element.css("marginBottom"),marginLeft:element.css("marginLeft"),marginRight:element.css("marginRight"),float:element.css("float")}).outerWidth(element.outerWidth()).outerHeight(element.outerHeight()).addClass("ui-effects-placeholder"),element.data("ui-effects-placeholder",placeholder)),element.css({position:cssPosition,left:position.left,top:position.top}),placeholder},removePlaceholder:function(element){var dataKey="ui-effects-placeholder",placeholder=element.data(dataKey);placeholder&&(placeholder.remove(),element.removeData(dataKey))},cleanUp:function(element){$.effects.restoreStyle(element),$.effects.removePlaceholder(element)},setTransition:function(element,list,factor,value){return value=value||{},$.each(list,function(i,x){var unit=element.cssUnit(x);0<unit[0]&&(value[x]=unit[0]*factor+unit[1])}),value}}),$.fn.extend({effect:function(){function prefilter(next){var el=$(this),normalizedMode=$.effects.mode(el,mode)||defaultMode;el.data("ui-effects-animated",!0),modes.push(normalizedMode),defaultMode&&("show"===normalizedMode||normalizedMode===defaultMode&&"hide"===normalizedMode)&&el.show(),defaultMode&&"none"===normalizedMode||$.effects.saveStyle(el),"function"==typeof next&&next()}var args=_normalizeArguments.apply(this,arguments),effectMethod=$.effects.effect[args.effect],defaultMode=effectMethod.mode,queue=args.queue,queueName=queue||"fx",complete=args.complete,mode=args.mode,modes=[];return $.fx.off||!effectMethod?mode?this[mode](args.duration,complete):this.each(function(){complete&&complete.call(this)}):!1===queue?this.each(prefilter).each(run):this.queue(queueName,prefilter).queue(queueName,run);function run(next){var elem=$(this);function done(){"function"==typeof complete&&complete.call(elem[0]),"function"==typeof next&&next()}args.mode=modes.shift(),!1===$.uiBackCompat||defaultMode?"none"===args.mode?(elem[mode](),done()):effectMethod.call(elem[0],args,function(){elem.removeData("ui-effects-animated"),$.effects.cleanUp(elem),"hide"===args.mode&&elem.hide(),done()}):(elem.is(":hidden")?"hide"===mode:"show"===mode)?(elem[mode](),done()):effectMethod.call(elem[0],args,done)}},show:function(orig){return function(option){return standardAnimationOption(option)?orig.apply(this,arguments):((option=_normalizeArguments.apply(this,arguments)).mode="show",this.effect.call(this,option))}}($.fn.show),hide:function(orig){return function(option){return standardAnimationOption(option)?orig.apply(this,arguments):((option=_normalizeArguments.apply(this,arguments)).mode="hide",this.effect.call(this,option))}}($.fn.hide),toggle:function(orig){return function(option){return standardAnimationOption(option)||"boolean"==typeof option?orig.apply(this,arguments):((option=_normalizeArguments.apply(this,arguments)).mode="toggle",this.effect.call(this,option))}}($.fn.toggle),cssUnit:function(key){var style=this.css(key),val=[];return $.each(["em","px","%","pt"],function(i,unit){0<style.indexOf(unit)&&(val=[parseFloat(style),unit])}),val},cssClip:function(clipObj){return clipObj?this.css("clip","rect("+clipObj.top+"px "+clipObj.right+"px "+clipObj.bottom+"px "+clipObj.left+"px)"):parseClip(this.css("clip"),this)},transfer:function(options,done){var element=$(this),target=$(options.to),targetFixed="fixed"===target.css("position"),body=$("body"),fixTop=targetFixed?body.scrollTop():0,body=targetFixed?body.scrollLeft():0,endPosition=target.offset(),endPosition={top:endPosition.top-fixTop,left:endPosition.left-body,height:target.innerHeight(),width:target.innerWidth()},target=element.offset(),transfer=$("<div class='ui-effects-transfer'></div>");transfer.appendTo("body").addClass(options.className).css({top:target.top-fixTop,left:target.left-body,height:element.innerHeight(),width:element.innerWidth(),position:targetFixed?"fixed":"absolute"}).animate(endPosition,options.duration,options.easing,function(){transfer.remove(),"function"==typeof done&&done()})}}),$.fx.step.clip=function(fx){fx.clipInit||(fx.start=$(fx.elem).cssClip(),"string"==typeof fx.end&&(fx.end=parseClip(fx.end,fx.elem)),fx.clipInit=!0),$(fx.elem).cssClip({top:fx.pos*(fx.end.top-fx.start.top)+fx.start.top,right:fx.pos*(fx.end.right-fx.start.right)+fx.start.right,bottom:fx.pos*(fx.end.bottom-fx.start.bottom)+fx.start.bottom,left:fx.pos*(fx.end.left-fx.start.left)+fx.start.left})}}(),baseEasings={},$.each(["Quad","Cubic","Quart","Quint","Expo"],function(i,name){baseEasings[name]=function(p){return Math.pow(p,i+2)}}),$.extend(baseEasings,{Sine:function(p){return 1-Math.cos(p*Math.PI/2)},Circ:function(p){return 1-Math.sqrt(1-p*p)},Elastic:function(p){return 0===p||1===p?p:-Math.pow(2,8*(p-1))*Math.sin((80*(p-1)-7.5)*Math.PI/15)},Back:function(p){return p*p*(3*p-2)},Bounce:function(p){for(var pow2,bounce=4;p<((pow2=Math.pow(2,--bounce))-1)/11;);return 1/Math.pow(4,3-bounce)-7.5625*Math.pow((3*pow2-2)/22-p,2)}}),$.each(baseEasings,function(name,easeIn){$.easing["easeIn"+name]=easeIn,$.easing["easeOut"+name]=function(p){return 1-easeIn(1-p)},$.easing["easeInOut"+name]=function(p){return p<.5?easeIn(2*p)/2:1-easeIn(-2*p+2)/2}}),$.effects});
Save
cmd:
run