var/www/html/servotec-doerpen/wp-includes/js/jquery/ui | uid:33
effect-fold.js [X]
/*!
 * jQuery UI Effects Fold 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */

//>>label: Fold Effect
//>>group: Effects
//>>description: Folds an element first horizontally and then vertically.
//>>docs: https://api.jqueryui.com/fold-effect/
//>>demos: https://jqueryui.com/effect/

( function( factory ) {
	"use strict";

	if ( typeof define === "function" && define.amd ) {

		// AMD. Register as an anonymous module.
		define( [
			"jquery",
			"../version",
			"../effect"
		], factory );
	} else {

		// Browser globals
		factory( jQuery );
	}
} )( function( $ ) {
"use strict";

return $.effects.define( "fold", "hide", function( options, done ) {

	// Create element
	var element = $( this ),
		mode = options.mode,
		show = mode === "show",
		hide = mode === "hide",
		size = options.size || 15,
		percent = /([0-9]+)%/.exec( size ),
		horizFirst = !!options.horizFirst,
		ref = horizFirst ? [ "right", "bottom" ] : [ "bottom", "right" ],
		duration = options.duration / 2,

		placeholder = $.effects.createPlaceholder( element ),

		start = element.cssClip(),
		animation1 = { clip: $.extend( {}, start ) },
		animation2 = { clip: $.extend( {}, start ) },

		distance = [ start[ ref[ 0 ] ], start[ ref[ 1 ] ] ],

		queuelen = element.queue().length;

	if ( percent ) {
		size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];
	}
	animation1.clip[ ref[ 0 ] ] = size;
	animation2.clip[ ref[ 0 ] ] = size;
	animation2.clip[ ref[ 1 ] ] = 0;

	if ( show ) {
		element.cssClip( animation2.clip );
		if ( placeholder ) {
			placeholder.css( $.effects.clipToBox( animation2 ) );
		}

		animation2.clip = start;
	}

	// Animate
	element
		.queue( function( next ) {
			if ( placeholder ) {
				placeholder
					.animate( $.effects.clipToBox( animation1 ), duration, options.easing )
					.animate( $.effects.clipToBox( animation2 ), duration, options.easing );
			}

			next();
		} )
		.animate( animation1, duration, options.easing )
		.animate( animation2, duration, options.easing )
		.queue( done );

	$.effects.unshift( element, queuelen, 4 );
} );

} );
accordion.js15.8KV E R D
accordion.min.js8.7KV E R D
autocomplete.js17.1KV E R D
button.js11.4KV E R D
button.min.js6KV E R D
checkboxradio.js7.4KV E R D
checkboxradio.min.js4.2KV E R D
controlgroup.js8.4KV E R D
core.js48.7KV E R D
datepicker.js80.6KV E R D
datepicker.min.js35.9KV E R D
dialog.js23.3KV E R D
dialog.min.js12.8KV E R D
draggable.js34.7KV E R D
draggable.min.js18KV E R D
droppable.js12.6KV E R D
effect-blind.js1.6KV E R D
effect-bounce.js2.6KV E R D
effect-clip.min.js796V E R D
effect-drop.js1.6KV E R D
effect-drop.min.js753V E R D
effect-explode.min.js1.1KV E R D
effect-fade.js968V E R D
effect-fade.min.js525V E R D
effect-fold.js2.1KV E R D
effect-highlight.js1.2KV E R D
effect-puff.js995V E R D
effect-pulsate.min.js688V E R D
effect-scale.js1.3KV E R D
effect-scale.min.js723V E R D
effect-shake.js1.8KV E R D
effect-size.js5.3KV E R D
effect-size.min.js2.4KV E R D
effect-slide.js1.9KV E R D
effect-transfer.js888V E R D
effect-transfer.min.js442V E R D
effect.js24KV E R D
effect.min.js10.1KV E R D
menu.js18.5KV E R D
mouse.js6.1KV E R D
progressbar.js4.1KV E R D
progressbar.min.js2.5KV E R D
resizable.min.js18.4KV E R D
selectable.js7.9KV E R D
selectable.min.js4.4KV E R D
selectmenu.js16KV E R D
selectmenu.min.js9.3KV E R D
slider.js19.1KV E R D
slider.min.js10.5KV E R D
sortable.js46.5KV E R D
sortable.min.js24.9KV E R D
spinner.min.js7.5KV E R D
tabs.js23.1KV E R D
tabs.min.js11.7KV E R D
tooltip.js14.1KV E R D
tooltip.min.js6.1KV E R D