Created
July 14, 2022 08:00
-
-
Save Dragod/8107bddeef6b0784ca05f4e1b7136655 to your computer and use it in GitHub Desktop.
Vanilla js add class
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
let addClass = (el = [], className= 'disnone') => {el.forEach(el => { return document.querySelector(el).classList.add(className) })} | |
addClass(['.login .homepageLogo','.cs-login-Instruct', '.sd-login', '.loginDisclaimer', '.login']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment