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
/** | |
* 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); |