Created
August 7, 2016 18:22
-
-
Save zaurmag/d3ff7d1e56e961ab80779979c180c23e to your computer and use it in GitHub Desktop.
Одинаковая высота колонок
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======= Одинаковая высота колонок ======= | |
var max_col_height = 0; | |
$('.list_product .block_product').each(function() { | |
if ($(this).height() > max_col_height) { | |
max_col_height = $(this).height(); | |
} | |
}); | |
$('.list_product .block_product').height(max_col_height); | |
// Close Alert | |
$('.alert .close').click(function() { | |
$(this).parent().fadeOut(); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment