comicpress-2.8/js/equalheight.js

16 lines
261 B
JavaScript
Raw Normal View History

function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if (thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
$(document).ready(function() {
equalHeight($(".sidebar"));
});