Sha256: 23778a05f76dcfec520e5f591f95e5fb8cc76da9f925c3fedb8786d1fcf482af

Contents?: true

Size: 1.16 KB

Versions: 31

Compression:

Stored size: 1.16 KB

Contents

/* */ 
"format amd";
/*!
 * jQuery UI Effects Highlight 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/highlight-effect/
 */
(function( factory ) {
	if ( typeof define === "function" && define.amd ) {

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

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

return $.effects.effect.highlight = function( o, done ) {
	var elem = $( this ),
		props = [ "backgroundImage", "backgroundColor", "opacity" ],
		mode = $.effects.setMode( elem, o.mode || "show" ),
		animation = {
			backgroundColor: elem.css( "backgroundColor" )
		};

	if (mode === "hide") {
		animation.opacity = 0;
	}

	$.effects.save( elem, props );

	elem
		.show()
		.css({
			backgroundImage: "none",
			backgroundColor: o.color || "#ffff99"
		})
		.animate( animation, {
			queue: false,
			duration: o.duration,
			easing: o.easing,
			complete: function() {
				if ( mode === "hide" ) {
					elem.hide();
				}
				$.effects.restore( elem, props );
				done();
			}
		});
};

}));

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-3.1.2 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-3.1.1 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-3.1.0 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-3.0.1 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-3.0 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.2.0 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.1.0 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.rc8 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.rc7 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.rc6 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.rc5 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.rc4 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.rc3 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.rc2 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.rc1 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.beta4 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.beta3 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js
sequenceserver-2.0.0.beta1 public/vendor/github/components/jqueryui@1.11.4/ui/effect-highlight.js