PageRenderTime 29ms CodeModel.GetById 16ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 1ms

/wp-includes/js/jquery/ui/effect-slide.min.js

https://bitbucket.org/skyarch-iijima/wordpress
JavaScript | 11 lines | 1 code | 0 blank | 10 comment | 0 complexity | fa23475fb01c8f4d56da98ca0c1179b5 MD5 | raw file
 1/*!
 2 * jQuery UI Effects Slide 1.11.4
 3 * http://jqueryui.com
 4 *
 5 * Copyright jQuery Foundation and other contributors
 6 * Released under the MIT license.
 7 * http://jquery.org/license
 8 *
 9 * http://api.jqueryui.com/slide-effect/
10 */
11!function(a){"function"==typeof define&&define.amd?define(["jquery","./effect"],a):a(jQuery)}(function(a){return a.effects.effect.slide=function(b,c){var d,e=a(this),f=["position","top","bottom","left","right","width","height"],g=a.effects.setMode(e,b.mode||"show"),h="show"===g,i=b.direction||"left",j="up"===i||"down"===i?"top":"left",k="up"===i||"left"===i,l={};a.effects.save(e,f),e.show(),d=b.distance||e["top"===j?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(e).css({overflow:"hidden"}),h&&e.css(j,k?isNaN(d)?"-"+d:-d:d),l[j]=(h?k?"+=":"-=":k?"-=":"+=")+d,e.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===g&&e.hide(),a.effects.restore(e,f),a.effects.removeWrapper(e),c()}})}});