Sha256: 4e0f2e274404548c42acd7dc7346f516274dfa643aa2d591b8b273512f666505

Contents?: true

Size: 1.21 KB

Versions: 18

Compression:

Stored size: 1.21 KB

Contents

/*!
 * jQuery UI Effects Puff 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/puff-effect/
 */
(function( factory ) {
	if ( typeof define === "function" && define.amd ) {

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

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

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,
		factor = percent / 100,
		original = {
			height: elem.height(),
			width: elem.width(),
			outerHeight: elem.outerHeight(),
			outerWidth: elem.outerWidth()
		};

	$.extend( o, {
		effect: "scale",
		queue: false,
		fade: true,
		mode: mode,
		complete: done,
		percent: hide ? percent : 100,
		from: hide ?
			original :
			{
				height: original.height * factor,
				width: original.width * factor,
				outerHeight: original.outerHeight * factor,
				outerWidth: original.outerWidth * factor
			}
	});

	elem.effect( o );
};

}));

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
radius-rails-3.1.4 app/assets/components/jquery-ui/ui/effect-puff.js
catscope-0.1.6 assets/bower_components/jquery-ui/ui/effect-puff.js
catscope-0.1.5 assets/bower_components/jquery-ui/ui/effect-puff.js
jinda_lte-0.0.1 lib/generators/jinda_lte/templates/app/assets/jinda_assets/bower_components/jquery-ui/ui/effect-puff.js
catscope-0.1.4 assets/bower_components/jquery-ui/ui/effect-puff.js
catscope-0.1.3 assets/bower_components/jquery-ui/ui/effect-puff.js
catscope-0.1.2 assets/bower_components/jquery-ui/ui/effect-puff.js
catscope-0.1.1 assets/bower_components/jquery-ui/ui/effect-puff.js
rubyneat_dashboard-0.4.1 bower_components/jquery-ui/ui/effect-puff.js
date_picker-0.0.8 test/dummy/vendor/assets/components/jquery-ui/ui/effect-puff.js
date_picker-0.0.7 test/dummy/vendor/assets/components/jquery-ui/ui/effect-puff.js
date_picker-0.0.6 test/dummy/vendor/assets/components/jquery-ui/ui/effect-puff.js
date_picker-0.0.5 test/dummy/vendor/assets/components/jquery-ui/ui/effect-puff.js
date_picker-0.0.4 test/dummy/vendor/assets/components/jquery-ui/ui/effect-puff.js
date_picker-0.0.3 test/dummy/vendor/assets/components/jquery-ui/ui/effect-puff.js
date_picker-0.0.2 test/dummy/vendor/assets/components/jquery-ui/ui/effect-puff.js
date_picker-0.0.1 test/dummy/vendor/assets/components/jquery-ui/ui/effect-puff.js
catscope-0.1.0 assets/bower_components/jquery-ui/ui/effect-puff.js