PageRenderTime 30ms CodeModel.GetById 12ms app.highlight 14ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/skyarch-iijima/wordpress
JavaScript | 11 lines | 1 code | 0 blank | 10 comment | 0 complexity | addbe09f173c4f1bd86d41ac5f3b4f4c MD5 | raw file
 1/*!
 2 * jQuery UI Effects Blind 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/blind-effect/
10 */
11!function(a){"function"==typeof define&&define.amd?define(["jquery","./effect"],a):a(jQuery)}(function(a){return a.effects.effect.blind=function(b,c){var d,e,f,g=a(this),h=/up|down|vertical/,i=/up|left|vertical|horizontal/,j=["position","top","bottom","left","right","height","width"],k=a.effects.setMode(g,b.mode||"hide"),l=b.direction||"up",m=h.test(l),n=m?"height":"width",o=m?"top":"left",p=i.test(l),q={},r="show"===k;g.parent().is(".ui-effects-wrapper")?a.effects.save(g.parent(),j):a.effects.save(g,j),g.show(),d=a.effects.createWrapper(g).css({overflow:"hidden"}),e=d[n](),f=parseFloat(d.css(o))||0,q[n]=r?e:0,p||(g.css(m?"bottom":"right",0).css(m?"top":"left","auto").css({position:"absolute"}),q[o]=r?f:e+f),r&&(d.css(n,0),p||d.css(o,f+e)),d.animate(q,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===k&&g.hide(),a.effects.restore(g,j),a.effects.removeWrapper(g),c()}})}});