crazyyy
4/29/2014 - 11:15 PM

JS: some height of block

JS: some height of block

var impressumHeadin = $(".impressum-headin");


SetAllBlocksHeight(impressumHeadin);

function SetAllBlocksHeight(containersNames) {

  var blockHeight = 0;

  $(containersNames).each(function() {
    var evenContainerBlock = $(this).height();
    if (evenContainerBlock > blockHeight) {
      blockHeight = evenContainerBlock;
    }
  });
  $(containersNames).css('height', blockHeight)

}
(function() {
  var $elements = $('.looper');
  var maxheight = 0;
  $elements.each(function() {
    if ($(this).height() > maxheight) {
      maxheight = $(this).height();
    }
  });
  $elements.height(maxheight);

}());
var maxheight = 0;
$("div.col").each(function() {
  if ($(this).height() > maxheight) {
    maxheight = $(this).height();
  }
});

$("div.col").height(maxheight);