Last active
February 1, 2017 01:34
-
-
Save DaBs/a1d6014d5c04a10bb5fa99983b297a22 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 elems = document.querySelectorAll('.element-selector'); | |
window.addEventListener('resize', function(e) { | |
elems.forEach(function(elem){ | |
elem.clientHeight = window.innerHeight; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment