Skip to content

Instantly share code, notes, and snippets.

@kasper93

kasper93/.js Secret

Created May 1, 2018 12:30
Show Gist options
  • Save kasper93/b58594a074f77083bb06a8995ac9c891 to your computer and use it in GitHub Desktop.
Save kasper93/b58594a074f77083bb06a8995ac9c891 to your computer and use it in GitHub Desktop.
(function() {
const avek = document.querySelector('.logged-user > a:first-child');
avek.addEventListener('click', () => window.location.href = avek.href);
avek.addEventListener('mouseenter', () => avek.classList.add('show-next-drop'));
avek.addEventListener('mouseleave', () => avek.classList.remove('show-next-drop'));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment