Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/jquery/ui
File: effect-slide.js
/*!
[0] Fix | Delete
* jQuery UI Effects Slide 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: Slide Effect
[9] Fix | Delete
//>>group: Effects
[10] Fix | Delete
//>>description: Slides an element in and out of the viewport.
[11] Fix | Delete
//>>docs: http://api.jqueryui.com/slide-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( "slide", "show", function( options, done ) {
[30] Fix | Delete
var startClip, startRef,
[31] Fix | Delete
element = $( this ),
[32] Fix | Delete
map = {
[33] Fix | Delete
up: [ "bottom", "top" ],
[34] Fix | Delete
down: [ "top", "bottom" ],
[35] Fix | Delete
left: [ "right", "left" ],
[36] Fix | Delete
right: [ "left", "right" ]
[37] Fix | Delete
},
[38] Fix | Delete
mode = options.mode,
[39] Fix | Delete
direction = options.direction || "left",
[40] Fix | Delete
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
[41] Fix | Delete
positiveMotion = ( direction === "up" || direction === "left" ),
[42] Fix | Delete
distance = options.distance ||
[43] Fix | Delete
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ),
[44] Fix | Delete
animation = {};
[45] Fix | Delete
[46] Fix | Delete
$.effects.createPlaceholder( element );
[47] Fix | Delete
[48] Fix | Delete
startClip = element.cssClip();
[49] Fix | Delete
startRef = element.position()[ ref ];
[50] Fix | Delete
[51] Fix | Delete
// Define hide animation
[52] Fix | Delete
animation[ ref ] = ( positiveMotion ? -1 : 1 ) * distance + startRef;
[53] Fix | Delete
animation.clip = element.cssClip();
[54] Fix | Delete
animation.clip[ map[ direction ][ 1 ] ] = animation.clip[ map[ direction ][ 0 ] ];
[55] Fix | Delete
[56] Fix | Delete
// Reverse the animation if we're showing
[57] Fix | Delete
if ( mode === "show" ) {
[58] Fix | Delete
element.cssClip( animation.clip );
[59] Fix | Delete
element.css( ref, animation[ ref ] );
[60] Fix | Delete
animation.clip = startClip;
[61] Fix | Delete
animation[ ref ] = startRef;
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
// Actually animate
[65] Fix | Delete
element.animate( animation, {
[66] Fix | Delete
queue: false,
[67] Fix | Delete
duration: options.duration,
[68] Fix | Delete
easing: options.easing,
[69] Fix | Delete
complete: done
[70] Fix | Delete
} );
[71] Fix | Delete
} );
[72] Fix | Delete
[73] Fix | Delete
} ) );
[74] Fix | Delete
[75] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function