Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. function setEqualHeight(columns) {//одинаковая высота блоков
  2. var tallestcolumn = 0;
  3. columns.each(
  4. function() {
  5. var currentHeight = $(this).height();
  6. if(currentHeight > tallestcolumn) {
  7. tallestcolumn = currentHeight;
  8. }
  9. }
  10. );
  11. columns.height(tallestcolumn);
  12. }
  13.  
  14. setEqualHeight($(".services-top"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement