Skip to content

Instantly share code, notes, and snippets.

View lukemoody's full-sized avatar

Luke Moody lukemoody

View GitHub Profile
/**
* Match Height Function
* @note A helper function for setting a group of divs to the same height.
* @param {el} is the group element the height is being set
* @callback matchHeights('example_element');
*/
export function matchHeights(el) {
// Grab divs with 'data-matchheights'
let getDivs = document.querySelectorAll(el);