Sha256: bf607b1a615bf083e738576e2ffffdcfa592eb4b99336d94af136f6f236127e8
Contents?: true
Size: 1.69 KB
Versions: 4
Compression:
Stored size: 1.69 KB
Contents
{I" class:ETI"BundledAsset;FI"logical_path;TI"equalize.js;FI" pathname;TI"b/usr/local/rvm/gems/ruby-2.1.2/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