{I" class:ETI"ProcessedAsset; FI"logical_path; TI" jquery-ui/effect-explode.js; FI" pathname; TI"u/Users/austin/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/effect-explode.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+\•ËTI"length; Ti I"digest; TI"%b0209055d72ad014b94fcc667e029fe0; FI"source; TI" /*! * jQuery UI Effects Explode 1.11.2 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/explode-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.explode = function( o, done ) { var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3, cells = rows, el = $( this ), mode = $.effects.setMode( el, o.mode || "hide" ), show = mode === "show", // show and then visibility:hidden the element before calculating offset offset = el.show().css( "visibility", "hidden" ).offset(), // width and height of a piece width = Math.ceil( el.outerWidth() / cells ), height = Math.ceil( el.outerHeight() / rows ), pieces = [], // loop i, j, left, top, mx, my; // children animate complete: function childComplete() { pieces.push( this ); if ( pieces.length === rows * cells ) { animComplete(); } } // clone the element for each row and cell. for ( i = 0; i < rows ; i++ ) { // ===> top = offset.top + i * height; my = i - ( rows - 1 ) / 2 ; for ( j = 0; j < cells ; j++ ) { // ||| left = offset.left + j * width; mx = j - ( cells - 1 ) / 2 ; // Create a clone of the now hidden main element that will be absolute positioned // within a wrapper div off the -left and -top equal to size of our pieces el .clone() .appendTo( "body" ) .wrap( "
" ) .css({ position: "absolute", visibility: "visible", left: -j * width, top: -i * height }) // select the wrapper - make it overflow: hidden and absolute positioned based on // where the original was located +left and +top equal to the size of pieces .parent() .addClass( "ui-effects-explode" ) .css({ position: "absolute", overflow: "hidden", width: width, height: height, left: left + ( show ? mx * width : 0 ), top: top + ( show ? my * height : 0 ), opacity: show ? 0 : 1 }).animate({ left: left + ( show ? 0 : mx * width ), top: top + ( show ? 0 : my * height ), opacity: show ? 1 : 0 }, o.duration || 500, o.easing, childComplete ); } } function animComplete() { el.css({ visibility: "visible" }); $( pieces ).remove(); if ( !show ) { el.hide(); } done(); } }; })); ; TI"dependency_digest; TI"%96b7a79194136b82c2dd9d47c3b3060a; FI"required_paths; T[I"m/Users/austin/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/effect.js; FI"u/Users/austin/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/effect-explode.js; FI"dependency_paths; T[{I" path; TI"u/Users/austin/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/effect-explode.js; FI" mtime; TI"2015-01-30T15:29:48+01:00; TI"digest; TI"%2e0b81d3f72172b87947257332762b97; F{@I"m/Users/austin/.rvm/gems/ruby-2.1.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/effect.js; F@ I"2015-01-30T15:29:48+01:00; T@"I"%adcfd47780592e229e4a5ab859f8ba02; FI" _version; TI"%64e62ddc273c2f5847f30d698ca14b67; F