Created
August 29, 2020 12:30
-
-
Save viller239/0e84badc5f2ff4fa8014191d1880dbda 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
function path(el) { return (el.parentElement ? path(el.parentElement) + ' > ': '' ) + el.tagName + (el.id ? '#' + el.id : '') + Array.from(el.classList).map(x => '.' + x).join('')}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment