{"size": 1172, "ext": "js", "max_stars_repo_path": "foundation-portal/src/main/webapp/scripts/lib/jquery/development-bundle/ui/jquery.effects.transfer.js", "max_stars_repo_name": "zhangjunfang/eclipse-dir", "max_stars_repo_stars_event_min_datetime": "2018-12-18T12:38:14.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-18T12:38:14.000Z", "max_issues_repo_path": "foundation-portal/src/main/webapp/scripts/lib/jquery/development-bundle/ui/jquery.effects.transfer.js", "max_issues_repo_name": "zhangjunfang/eclipse-dir", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "foundation-portal/src/main/webapp/scripts/lib/jquery/development-bundle/ui/jquery.effects.transfer.js", "max_forks_repo_name": "zhangjunfang/eclipse-dir", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.3, "max_line_length": 92, "alphanum_fraction": 0.6100682594}
/*
 * jQuery UI Effects Transfer 1.8.16
 * 
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) Dual licensed under
 * the MIT or GPL Version 2 licenses. http://jquery.org/license
 * 
 * http://docs.jquery.com/UI/Effects/Transfer
 * 
 * Depends: jquery.effects.core.js
 */
(function($, undefined) {

	$.effects.transfer = function(o) {
		return this.queue(function() {
			var elem = $(this), target = $(o.options.to), endPosition = target
					.offset(), animation = {
				top : endPosition.top,
				left : endPosition.left,
				height : target.innerHeight(),
				width : target.innerWidth()
			}, startPosition = elem.offset(), transfer = $('<div class="ui-effects-transfer"></div>')
					.appendTo(document.body).addClass(o.options.className).css(
							{
								top : startPosition.top,
								left : startPosition.left,
								height : elem.innerHeight(),
								width : elem.innerWidth(),
								position : 'absolute'
							}).animate(animation, o.duration, o.options.easing,
							function() {
								transfer.remove();
								(o.callback && o.callback.apply(elem[0],
										arguments));
								elem.dequeue();
							});
		});
	};

})(jQuery);
