Created
October 22, 2018 17:00
-
-
Save clayb/cf2097de41c8e7a2c3163f9d0e09629e to your computer and use it in GitHub Desktop.
Reset Inline dislplay styles
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
function resetInlineDisplay() { | |
for (var i = 0; i < arguments.length; i++) { | |
arguments[i].css('display', ''); | |
} | |
} | |
// example usage | |
var navEls = $('.nav-link-text, #nav-overlay'); | |
var navLinks = $('.nav-links'); | |
// remove inline styles for display | |
resetInlineDisplay(navLinks, navEls); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment