Skip to content

Instantly share code, notes, and snippets.

View italodr's full-sized avatar

Italo Devoto Ramella italodr

View GitHub Profile
@italodr
italodr / equalizr.js
Created November 5, 2015 22:17
Equalize height of objects.
(function($) {
'use strict';
/**
* Set all elements within the collection to have the same height.
*/
$.fn.equalHeight = function() {
var heights = [];
$.each(this, function(i, element) {
var $element = $(element);