mirror of
https://github.com/adnexus/luxr-prototype.git
synced 2026-07-27 06:13:04 +00:00
19 lines
396 B
JavaScript
19 lines
396 B
JavaScript
(function(){
|
|
var equalizeHeights = function() {
|
|
var headers = $('div.campaign'),
|
|
height = 0;
|
|
|
|
// Clear existing heights
|
|
headers.height('auto');
|
|
// Find maximum height
|
|
$.map(headers, function(el, i) { return height = (el.offsetHeight > height) ? el.offsetHeight : height; });
|
|
// Set all heights to max
|
|
headers.height(height);
|
|
}
|
|
|
|
$(function(){
|
|
equalizeHeights();
|
|
});
|
|
|
|
})();
|