Sha256: 831bd3f0850cbfa7ab581113e2f46eb4c36934b5982df31aca102d44cfe7fd64
Contents?: true
Size: 1.7 KB
Versions: 4
Compression:
Stored size: 1.7 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"equalize.js; FI" pathname; TI"g/usr/local/rvm/gems/ruby-2.0.0-p481/gems/spree_backend-2.2.4/vendor/assets/javascripts/equalize.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+Æ‘TI"length; TióI"digest; TI"%96f9e69326f102437d147d83d823665f; FI"source; TI"ó/** * equalize.js * Author & copyright (c) 2012: Tim Svensen * Dual MIT & GPL license * * Page: http://tsvensen.github.com/equalize.js * Repo: https://github.com/tsvensen/equalize.js/ * * The jQuery plugin for equalizing the height or width of elements. * * Equalize will accept any of the jQuery Dimension methods: * height, outerHeight, innerHeight, * width, outerWidth, innerWidth. * * EXAMPLE * $('.parent').equalize(); // defaults to 'height' * $('.parent').equalize('width'); // equalize the widths */ (function($, window, document, undefined) { $.fn.equalize = function(equalize) { var $containers = this, // this is the jQuery object equalize = equalize || 'height', type = (equalize.indexOf('eight') > 0) ? 'height' : 'width'; if (!$.isFunction($.fn[equalize])) { return false; } return $containers.each(function() { var $children = $(this).children(), max = 0; // reset for each container $children.each(function() { var value = $(this)[equalize](); // call height(), outerHeight(), etc. if (value > max) { max = value; } // update max }); $children.css(type, max +'px'); // add CSS to children }); }; }(jQuery, window, document)); ; TI"required_assets_digest; TI"%283d093431f844509ab402528ff60a9b; FI" _version; TI"%5ef14a844324cba3e114bd0123f88a5e; F
Version data entries
4 entries across 2 versions & 1 rubygems