Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery/ui
File: effect-shake.js
/*!
[0] Fix | Delete
* jQuery UI Effects Shake 1.13.3
[1] Fix | Delete
* https://jqueryui.com
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright OpenJS Foundation and other contributors
[4] Fix | Delete
* Released under the MIT license.
[5] Fix | Delete
* https://jquery.org/license
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
//>>label: Shake Effect
[9] Fix | Delete
//>>group: Effects
[10] Fix | Delete
//>>description: Shakes an element horizontally or vertically n times.
[11] Fix | Delete
//>>docs: https://api.jqueryui.com/shake-effect/
[12] Fix | Delete
//>>demos: https://jqueryui.com/effect/
[13] Fix | Delete
[14] Fix | Delete
( function( factory ) {
[15] Fix | Delete
"use strict";
[16] Fix | Delete
[17] Fix | Delete
if ( typeof define === "function" && define.amd ) {
[18] Fix | Delete
[19] Fix | Delete
// AMD. Register as an anonymous module.
[20] Fix | Delete
define( [
[21] Fix | Delete
"jquery",
[22] Fix | Delete
"../version",
[23] Fix | Delete
"../effect"
[24] Fix | Delete
], factory );
[25] Fix | Delete
} else {
[26] Fix | Delete
[27] Fix | Delete
// Browser globals
[28] Fix | Delete
factory( jQuery );
[29] Fix | Delete
}
[30] Fix | Delete
} )( function( $ ) {
[31] Fix | Delete
"use strict";
[32] Fix | Delete
[33] Fix | Delete
return $.effects.define( "shake", function( options, done ) {
[34] Fix | Delete
[35] Fix | Delete
var i = 1,
[36] Fix | Delete
element = $( this ),
[37] Fix | Delete
direction = options.direction || "left",
[38] Fix | Delete
distance = options.distance || 20,
[39] Fix | Delete
times = options.times || 3,
[40] Fix | Delete
anims = times * 2 + 1,
[41] Fix | Delete
speed = Math.round( options.duration / anims ),
[42] Fix | Delete
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
[43] Fix | Delete
positiveMotion = ( direction === "up" || direction === "left" ),
[44] Fix | Delete
animation = {},
[45] Fix | Delete
animation1 = {},
[46] Fix | Delete
animation2 = {},
[47] Fix | Delete
[48] Fix | Delete
queuelen = element.queue().length;
[49] Fix | Delete
[50] Fix | Delete
$.effects.createPlaceholder( element );
[51] Fix | Delete
[52] Fix | Delete
// Animation
[53] Fix | Delete
animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
[54] Fix | Delete
animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
[55] Fix | Delete
animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
[56] Fix | Delete
[57] Fix | Delete
// Animate
[58] Fix | Delete
element.animate( animation, speed, options.easing );
[59] Fix | Delete
[60] Fix | Delete
// Shakes
[61] Fix | Delete
for ( ; i < times; i++ ) {
[62] Fix | Delete
element
[63] Fix | Delete
.animate( animation1, speed, options.easing )
[64] Fix | Delete
.animate( animation2, speed, options.easing );
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
element
[68] Fix | Delete
.animate( animation1, speed, options.easing )
[69] Fix | Delete
.animate( animation, speed / 2, options.easing )
[70] Fix | Delete
.queue( done );
[71] Fix | Delete
[72] Fix | Delete
$.effects.unshift( element, queuelen, anims + 1 );
[73] Fix | Delete
} );
[74] Fix | Delete
[75] Fix | Delete
} );
[76] Fix | Delete
[77] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function