Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var MenuFocusModule = {
- elementsFocusable: function () {
- var navigationElementList = document.querySelector('.navigation-list-element');
- [].slice.call(navigationElementList).forEach(function (el) {
- el.firstChild.addEventListener('onFocus', function () {
- el.parentElement.style.borderColor = '#ed1c24';
- });
- });
- }
- , init: function () {
- elementsFocusable();
- }
- }
Add Comment
Please, Sign In to add comment