Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/jquery/ui
File: effect-fold.js
/*!
[0] Fix | Delete
* jQuery UI Effects Fold 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: Fold Effect
[9] Fix | Delete
//>>group: Effects
[10] Fix | Delete
//>>description: Folds an element first horizontally and then vertically.
[11] Fix | Delete
//>>docs: http://api.jqueryui.com/fold-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( "fold", "hide", function( options, done ) {
[30] Fix | Delete
[31] Fix | Delete
// Create element
[32] Fix | Delete
var element = $( this ),
[33] Fix | Delete
mode = options.mode,
[34] Fix | Delete
show = mode === "show",
[35] Fix | Delete
hide = mode === "hide",
[36] Fix | Delete
size = options.size || 15,
[37] Fix | Delete
percent = /([0-9]+)%/.exec( size ),
[38] Fix | Delete
horizFirst = !!options.horizFirst,
[39] Fix | Delete
ref = horizFirst ? [ "right", "bottom" ] : [ "bottom", "right" ],
[40] Fix | Delete
duration = options.duration / 2,
[41] Fix | Delete
[42] Fix | Delete
placeholder = $.effects.createPlaceholder( element ),
[43] Fix | Delete
[44] Fix | Delete
start = element.cssClip(),
[45] Fix | Delete
animation1 = { clip: $.extend( {}, start ) },
[46] Fix | Delete
animation2 = { clip: $.extend( {}, start ) },
[47] Fix | Delete
[48] Fix | Delete
distance = [ start[ ref[ 0 ] ], start[ ref[ 1 ] ] ],
[49] Fix | Delete
[50] Fix | Delete
queuelen = element.queue().length;
[51] Fix | Delete
[52] Fix | Delete
if ( percent ) {
[53] Fix | Delete
size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];
[54] Fix | Delete
}
[55] Fix | Delete
animation1.clip[ ref[ 0 ] ] = size;
[56] Fix | Delete
animation2.clip[ ref[ 0 ] ] = size;
[57] Fix | Delete
animation2.clip[ ref[ 1 ] ] = 0;
[58] Fix | Delete
[59] Fix | Delete
if ( show ) {
[60] Fix | Delete
element.cssClip( animation2.clip );
[61] Fix | Delete
if ( placeholder ) {
[62] Fix | Delete
placeholder.css( $.effects.clipToBox( animation2 ) );
[63] Fix | Delete
}
[64] Fix | Delete
[65] Fix | Delete
animation2.clip = start;
[66] Fix | Delete
}
[67] Fix | Delete
[68] Fix | Delete
// Animate
[69] Fix | Delete
element
[70] Fix | Delete
.queue( function( next ) {
[71] Fix | Delete
if ( placeholder ) {
[72] Fix | Delete
placeholder
[73] Fix | Delete
.animate( $.effects.clipToBox( animation1 ), duration, options.easing )
[74] Fix | Delete
.animate( $.effects.clipToBox( animation2 ), duration, options.easing );
[75] Fix | Delete
}
[76] Fix | Delete
[77] Fix | Delete
next();
[78] Fix | Delete
} )
[79] Fix | Delete
.animate( animation1, duration, options.easing )
[80] Fix | Delete
.animate( animation2, duration, options.easing )
[81] Fix | Delete
.queue( done );
[82] Fix | Delete
[83] Fix | Delete
$.effects.unshift( element, queuelen, 4 );
[84] Fix | Delete
} );
[85] Fix | Delete
[86] Fix | Delete
} ) );
[87] Fix | Delete
[88] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function