Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-includes/js/jquery/ui
NameTypeSizeActions
📁 .. Folder -
📄 accordion.js File 16138
Edit Download
📄 accordion.min.js File 8860
Edit Download
📄 autocomplete.js File 17530
Edit Download
📄 autocomplete.min.js File 8536
Edit Download
📄 button.js File 11706
Edit Download
📄 button.min.js File 6154
Edit Download
📄 checkboxradio.js File 7589
Edit Download
📄 checkboxradio.min.js File 4348
Edit Download
📄 controlgroup.js File 8626
Edit Download
📄 controlgroup.min.js File 4402
Edit Download
📄 core.js File 49888
Edit Download
📄 core.min.js File 21464
Edit Download
📄 datepicker.js File 82523
Edit Download
📄 datepicker.min.js File 36748
Edit Download
📄 dialog.js File 23896
Edit Download
📄 dialog.min.js File 13098
Edit Download
📄 draggable.js File 35546
Edit Download
📄 draggable.min.js File 18420
Edit Download
📄 droppable.js File 12899
Edit Download
📄 droppable.min.js File 6665
Edit Download
📄 effect-blind.js File 1644
Edit Download
📄 effect-blind.min.js File 880
Edit Download
📄 effect-bounce.js File 2660
Edit Download
📄 effect-bounce.min.js File 991
Edit Download
📄 effect-clip.js File 1577
Edit Download
📄 effect-clip.min.js File 796
Edit Download
📄 effect-drop.js File 1595
Edit Download
📄 effect-drop.min.js File 753
Edit Download
📄 effect-explode.js File 2924
Edit Download
📄 effect-explode.min.js File 1122
Edit Download
📄 effect-fade.js File 968
Edit Download
📄 effect-fade.min.js File 525
Edit Download
📄 effect-fold.js File 2185
Edit Download
📄 effect-fold.min.js File 1020
Edit Download
📄 effect-highlight.js File 1243
Edit Download
📄 effect-highlight.min.js File 648
Edit Download
📄 effect-puff.js File 995
Edit Download
📄 effect-puff.min.js File 510
Edit Download
📄 effect-pulsate.js File 1567
Edit Download
📄 effect-pulsate.min.js File 688
Edit Download
📄 effect-scale.js File 1373
Edit Download
📄 effect-scale.min.js File 723
Edit Download
📄 effect-shake.js File 1884
Edit Download
📄 effect-shake.min.js File 846
Edit Download
📄 effect-size.js File 5418
Edit Download
📄 effect-size.min.js File 2491
Edit Download
📄 effect-slide.js File 1967
Edit Download
📄 effect-slide.min.js File 917
Edit Download
📄 effect-transfer.js File 888
Edit Download
📄 effect-transfer.min.js File 442
Edit Download
📄 effect.js File 24613
Edit Download
📄 effect.min.js File 10332
Edit Download
📄 menu.js File 18960
Edit Download
📄 menu.min.js File 10199
Edit Download
📄 mouse.js File 6227
Edit Download
📄 mouse.min.js File 3428
Edit Download
📄 progressbar.js File 4239
Edit Download
📄 progressbar.min.js File 2558
Edit Download
📄 resizable.js File 30490
Edit Download
📄 resizable.min.js File 18824
Edit Download
📄 selectable.js File 8129
Edit Download
📄 selectable.min.js File 4506
Edit Download
📄 selectmenu.js File 16346
Edit Download
📄 selectmenu.min.js File 9502
Edit Download
📄 slider.js File 19599
Edit Download
📄 slider.min.js File 10759
Edit Download
📄 sortable.js File 47641
Edit Download
📄 sortable.min.js File 25504
Edit Download
📄 spinner.js File 14434
Edit Download
📄 spinner.min.js File 7676
Edit Download
📄 tabs.js File 23664
Edit Download
📄 tabs.min.js File 12008
Edit Download
📄 tooltip.js File 14476
Edit Download
📄 tooltip.min.js File 6244
Edit Download

View File: effect-size.js

/*!
 * jQuery UI Effects Size 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */

//>>label: Size Effect
//>>group: Effects
//>>description: Resize an element to a specified width and height.
//>>docs: https://api.jqueryui.com/size-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( "size", function( options, done ) {

	// Create element
	var baseline, factor, temp,
		element = $( this ),

		// Copy for children
		cProps = [ "fontSize" ],
		vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],
		hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],

		// Set options
		mode = options.mode,
		restore = mode !== "effect",
		scale = options.scale || "both",
		origin = options.origin || [ "middle", "center" ],
		position = element.css( "position" ),
		pos = element.position(),
		original = $.effects.scaledDimensions( element ),
		from = options.from || original,
		to = options.to || $.effects.scaledDimensions( element, 0 );

	$.effects.createPlaceholder( element );

	if ( mode === "show" ) {
		temp = from;
		from = to;
		to = temp;
	}

	// Set scaling factor
	factor = {
		from: {
			y: from.height / original.height,
			x: from.width / original.width
		},
		to: {
			y: to.height / original.height,
			x: to.width / original.width
		}
	};

	// Scale the css box
	if ( scale === "box" || scale === "both" ) {

		// Vertical props scaling
		if ( factor.from.y !== factor.to.y ) {
			from = $.effects.setTransition( element, vProps, factor.from.y, from );
			to = $.effects.setTransition( element, vProps, factor.to.y, to );
		}

		// Horizontal props scaling
		if ( factor.from.x !== factor.to.x ) {
			from = $.effects.setTransition( element, hProps, factor.from.x, from );
			to = $.effects.setTransition( element, hProps, factor.to.x, to );
		}
	}

	// Scale the content
	if ( scale === "content" || scale === "both" ) {

		// Vertical props scaling
		if ( factor.from.y !== factor.to.y ) {
			from = $.effects.setTransition( element, cProps, factor.from.y, from );
			to = $.effects.setTransition( element, cProps, factor.to.y, to );
		}
	}

	// Adjust the position properties based on the provided origin points
	if ( origin ) {
		baseline = $.effects.getBaseline( origin, original );
		from.top = ( original.outerHeight - from.outerHeight ) * baseline.y + pos.top;
		from.left = ( original.outerWidth - from.outerWidth ) * baseline.x + pos.left;
		to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top;
		to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left;
	}
	delete from.outerHeight;
	delete from.outerWidth;
	element.css( from );

	// Animate the children if desired
	if ( scale === "content" || scale === "both" ) {

		vProps = vProps.concat( [ "marginTop", "marginBottom" ] ).concat( cProps );
		hProps = hProps.concat( [ "marginLeft", "marginRight" ] );

		// Only animate children with width attributes specified
		// TODO: is this right? should we include anything with css width specified as well
		element.find( "*[width]" ).each( function() {
			var child = $( this ),
				childOriginal = $.effects.scaledDimensions( child ),
				childFrom = {
					height: childOriginal.height * factor.from.y,
					width: childOriginal.width * factor.from.x,
					outerHeight: childOriginal.outerHeight * factor.from.y,
					outerWidth: childOriginal.outerWidth * factor.from.x
				},
				childTo = {
					height: childOriginal.height * factor.to.y,
					width: childOriginal.width * factor.to.x,
					outerHeight: childOriginal.height * factor.to.y,
					outerWidth: childOriginal.width * factor.to.x
				};

			// Vertical props scaling
			if ( factor.from.y !== factor.to.y ) {
				childFrom = $.effects.setTransition( child, vProps, factor.from.y, childFrom );
				childTo = $.effects.setTransition( child, vProps, factor.to.y, childTo );
			}

			// Horizontal props scaling
			if ( factor.from.x !== factor.to.x ) {
				childFrom = $.effects.setTransition( child, hProps, factor.from.x, childFrom );
				childTo = $.effects.setTransition( child, hProps, factor.to.x, childTo );
			}

			if ( restore ) {
				$.effects.saveStyle( child );
			}

			// Animate children
			child.css( childFrom );
			child.animate( childTo, options.duration, options.easing, function() {

				// Restore children
				if ( restore ) {
					$.effects.restoreStyle( child );
				}
			} );
		} );
	}

	// Animate
	element.animate( to, {
		queue: false,
		duration: options.duration,
		easing: options.easing,
		complete: function() {

			var offset = element.offset();

			if ( to.opacity === 0 ) {
				element.css( "opacity", from.opacity );
			}

			if ( !restore ) {
				element
					.css( "position", position === "static" ? "relative" : position )
					.offset( offset );

				// Need to save style here so that automatic style restoration
				// doesn't restore to the original styles from before the animation.
				$.effects.saveStyle( element );
			}

			done();
		}
	} );

} );

} );