public/assets/jquery-ui/effect.all-8e42208f8c55a39c39706d17acfb5836d8960b4ac244ad57c574a3c15b1ad027.js
File effect.all-8e42208f8c55a39c39706d17acfb5836d8960b4ac244ad57c574a3c15b1ad027.js
has 1894 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery UI Effects 1.11.4
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
Function size
has 156 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.size = function( o, done ) {
// Create element
var original, baseline, factor,
el = $( this ),
Function bounce
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.bounce = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
// defaults:
Function explode
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.explode = function( o, done ) {
var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
cells = rows,
el = $( this ),
Function createWrapper
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createWrapper: function( element ) {
// if the element is already wrapped, return it
if ( element.parent().is( ".ui-effects-wrapper" )) {
return element.parent();
Function parse
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function( red, green, blue, alpha ) {
if ( red === undefined ) {
this._rgba = [ null, null, null, null ];
return this;
}
Function blind
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.blind = function( o, done ) {
// Create element
var el = $( this ),
rvertical = /up|down|vertical/,
rpositivemotion = /up|left|vertical|horizontal/,
Function animateClass
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.animateClass = function( value, duration, easing, callback ) {
var o = $.speed( duration, easing, callback );
return this.queue( function() {
var animated = $( this ),
Function scale
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.scale = function( o, done ) {
// Create element
var el = $( this ),
options = $.extend( true, {}, o ),
Function fold
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.fold = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
Function shake
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.shake = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "effect" ),
Function hook
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
color.hook = function( hook ) {
var hooks = hook.split( " " );
each( hooks, function( i, hook ) {
jQuery.cssHooks[ hook ] = {
set: function( elem, value ) {
Function drop
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.drop = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
Function clip
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.clip = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
Function effect
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
effect: function( /* effect, options, speed, callback */ ) {
var args = _normalizeArguments.apply( this, arguments ),
mode = args.mode,
queue = args.queue,
effectMethod = $.effects.effect[ args.effect ];
Function slide
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.slide = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
Function pulsate
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.pulsate = function( o, done ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "show" ),
show = mode === "show",
hide = mode === "hide",
Function _normalizeArguments
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _normalizeArguments( effect, options, speed, callback ) {
// allow passing all options as the first parameter
if ( $.isPlainObject( effect ) ) {
options = effect;
Function to
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
spaces.hsla.to = function( rgba ) {
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
return [ null, null, null, rgba[ 3 ] ];
}
var r = rgba[ 0 ] / 255,
Function transition
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
transition: function( other, distance ) {
var end = color( other ),
spaceName = end._space(),
space = spaces[ spaceName ],
startColor = this.alpha() === 0 ? color( "transparent" ) : this,
Function complete
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function() {
if ( el.to.opacity === 0 ) {
el.css( "opacity", el.from.opacity );
}
if ( mode === "hide" ) {
Function highlight
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.highlight = function( o, done ) {
var elem = $( this ),
props = [ "backgroundImage", "backgroundColor", "opacity" ],
mode = $.effects.setMode( elem, o.mode || "show" ),
animation = {
Function transfer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.transfer = function( o, done ) {
var elem = $( this ),
target = $( o.to ),
targetFixed = target.css( "position" ) === "fixed",
body = $("body"),
Function puff
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.puff = function( o, done ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "hide" ),
hide = mode === "hide",
percent = parseInt( o.percent, 10 ) || 150,
Function set
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function( elem, value ) {
var parsed, curElem,
backgroundColor = "";
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
Consider simplifying this complex logical expression. Open
Open
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
while (
(backgroundColor === "" || backgroundColor === "transparent") &&
curElem && curElem.style
Consider simplifying this complex logical expression. Open
Open
if ( o.mode === "toggle" && mode === "show" ) {
el.from = o.to || zero;
el.to = o.from || original;
} else {
el.from = o.from || ( mode === "show" ? zero : original );
Function switchClass
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
switchClass: function( remove, add, speed, easing, callback) {
Avoid too many return
statements within this function. Open
Open
return false;