Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/jquery/ui
File: effect-drop.js
/*!
[0] Fix | Delete
* jQuery UI Effects Drop 1.12.1
[1] Fix | Delete
* http://jqueryui.com
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright jQuery Foundation and other contributors
[4] Fix | Delete
* Released under the MIT license.
[5] Fix | Delete
* http://jquery.org/license
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
//>>label: Drop Effect
[9] Fix | Delete
//>>group: Effects
[10] Fix | Delete
//>>description: Moves an element in one direction and hides it at the same time.
[11] Fix | Delete
//>>docs: http://api.jqueryui.com/drop-effect/
[12] Fix | Delete
//>>demos: http://jqueryui.com/effect/
[13] Fix | Delete
[14] Fix | Delete
( function( factory ) {
[15] Fix | Delete
if ( typeof define === "function" && define.amd ) {
[16] Fix | Delete
[17] Fix | Delete
// AMD. Register as an anonymous module.
[18] Fix | Delete
define( [
[19] Fix | Delete
"jquery",
[20] Fix | Delete
"./effect"
[21] Fix | Delete
], factory );
[22] Fix | Delete
} else {
[23] Fix | Delete
[24] Fix | Delete
// Browser globals
[25] Fix | Delete
factory( jQuery );
[26] Fix | Delete
}
[27] Fix | Delete
}( function( $ ) {
[28] Fix | Delete
[29] Fix | Delete
return $.effects.define( "drop", "hide", function( options, done ) {
[30] Fix | Delete
[31] Fix | Delete
var distance,
[32] Fix | Delete
element = $( this ),
[33] Fix | Delete
mode = options.mode,
[34] Fix | Delete
show = mode === "show",
[35] Fix | Delete
direction = options.direction || "left",
[36] Fix | Delete
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
[37] Fix | Delete
motion = ( direction === "up" || direction === "left" ) ? "-=" : "+=",
[38] Fix | Delete
oppositeMotion = ( motion === "+=" ) ? "-=" : "+=",
[39] Fix | Delete
animation = {
[40] Fix | Delete
opacity: 0
[41] Fix | Delete
};
[42] Fix | Delete
[43] Fix | Delete
$.effects.createPlaceholder( element );
[44] Fix | Delete
[45] Fix | Delete
distance = options.distance ||
[46] Fix | Delete
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
[47] Fix | Delete
[48] Fix | Delete
animation[ ref ] = motion + distance;
[49] Fix | Delete
[50] Fix | Delete
if ( show ) {
[51] Fix | Delete
element.css( animation );
[52] Fix | Delete
[53] Fix | Delete
animation[ ref ] = oppositeMotion + distance;
[54] Fix | Delete
animation.opacity = 1;
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
// Animate
[58] Fix | Delete
element.animate( animation, {
[59] Fix | Delete
queue: false,
[60] Fix | Delete
duration: options.duration,
[61] Fix | Delete
easing: options.easing,
[62] Fix | Delete
complete: done
[63] Fix | Delete
} );
[64] Fix | Delete
} );
[65] Fix | Delete
[66] Fix | Delete
} ) );
[67] Fix | Delete
[68] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function