Skip to content

Instantly share code, notes, and snippets.

@slimelbasti
Created May 16, 2017 16:19
Show Gist options
  • Save slimelbasti/b58a727990ebe0aabfbbeafcb684236f to your computer and use it in GitHub Desktop.
Save slimelbasti/b58a727990ebe0aabfbbeafcb684236f to your computer and use it in GitHub Desktop.
$(document).on('click', 'A.clickMe', function(event){
$.console.log('Hello World');
});
var equalizeHeights = function () {
$(".equalizer").each(function(ix, el) {
var heights = $(el).find('.eq-watch').map(function() {
return $(this).height();
}).get();
maxHeight = Math.max.apply(null, heights);
$(el).find('.eq-watch').height(maxHeight);
});
};
equalizeHeights();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment