File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ jQuery ( function ( $ ) {
2
+ function equalHeight ( 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
+ }
12
+ equalHeight ( $ ( ".equalheight" ) )
13
+ } ) ;
1
14
jQuery ( document ) . ready ( function ( $ ) {
15
+ var equalHeight = function ( group ) {
16
+ var tallest = 0 ;
17
+ group . each ( function ( ) {
18
+ var thisHeight = $ ( this ) . height ( ) ;
19
+ if ( thisHeight > tallest ) {
20
+ tallest = thisHeight ;
21
+ }
22
+ } ) ;
23
+ group . height ( tallest ) ;
24
+ } ;
2
25
$ ( '.open-menu' ) . on ( 'click' , function ( e ) {
3
26
e . preventDefault ( ) ;
4
27
$ ( '.mobile-header' ) . toggleClass ( 'visible' ) ;
5
28
$ ( '.mobile-navigation' ) . toggleClass ( 'visible' ) ;
6
29
return false ;
7
30
} ) ;
31
+ equalHeight ( $ ( ".card" ) ) ;
8
32
} ) ;
You can’t perform that action at this time.
0 commit comments