Skip to content

Commit 5291327

Browse files
committed
Merge branch 'master' into more-style-fixes
2 parents 695a5c7 + a828707 commit 5291327

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

assets/js/script.js

+11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
jQuery(document).ready(function($){
2+
var equalHeight = function(group) {
3+
var tallest = 0;
4+
group.each(function() {
5+
var thisHeight = $(this).height();
6+
if(thisHeight > tallest) {
7+
tallest = thisHeight;
8+
}
9+
});
10+
group.height(tallest);
11+
};
212
$('.open-menu').on('click', function(e){
313
e.preventDefault();
414
$('.mobile-header').toggleClass('visible');
515
$('.mobile-navigation').toggleClass('visible');
616
return false;
717
});
18+
equalHeight($(".card"));
819
});

0 commit comments

Comments
 (0)