Created
July 31, 2020 21:39
-
-
Save Fobiya/20374569236d2f410ff13fd4b89bdce2 to your computer and use it in GitHub Desktop.
Js Native nab
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
for(let link of document.querySelectorAll('.block-black')){ | |
link.onclick = (e) =>{ | |
if(e.target === link.querySelector('.title')){ | |
link.classList.toggle('active'); | |
// link.parentElement.classList.toggle('active'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment