Last active
December 2, 2019 13:48
-
-
Save circus2271/3a7cee0cdae18074284b0e876ef4084b 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
(() => { | |
const headerAuthName = document.querySelector('.header__auth .auth__name'); | |
if (headerAuthName) { | |
const headerStateMenu = document.querySelector('.state-menu'); | |
headerAuthName.addEventListener('mouseover', () => { | |
headerStateMenu.style.display = 'block' | |
}); | |
headerStateMenu.addEventListener('mouseleave', () => { | |
headerStateMenu.style.display = 'none' | |
}) | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment