Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const equalHeight = selectors => {
- selectors.forEach(s => {
- const group = document.querySelectorAll(s);
- if (group.length) {
- const h = Array.prototype.map.call(group, x => $(x).height()).sort().pop();
- $(group).each((i, e) => $(e).height(h));
- }
- });
- };
Add Comment
Please, Sign In to add comment