-
-
Save KaiserEMP/9c847d9b9fc66df1e1d3b8167ff2ef9f to your computer and use it in GitHub Desktop.
This file contains 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 maxHeight = -1; | |
boxes.each(function (){ | |
//(question)?(result if true):(result is false) | |
//maxHeight = maxHeight > $(this).outerHeight() ? maxHeight : $(this).outerHeight(); //shorthand | |
if (maxHeight > $(this).outerHeight() ) { | |
maxHeight = maxHeight | |
console.log('isit') | |
} else { | |
maxHeight = $(this).outerHeight(); | |
console.log('isit22222') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment