//Adds role="menuitem" to subpages for ADA Compliance function adaPrepSubMenu() { var subPageAda = document.querySelectorAll('.dropdown-item'); for(var i=0; i < subPageAda.length; i++) { subPageAda[i].setAttribute("role", "menuitem"); } console.log(subPageAda); }; adaPrepSubMenu(); //SCRIPT for ADA Compliance jQuery(document).ready(function ($) { let selectedTab = window.location.hash; $('.nav-link[href="' + selectedTab + '"]' ).trigger('click'); }); $(window).on('hashchange ready', function () { let selectedTab = window.location.hash; $('a[href="' + selectedTab + '"][data-toggle="pill"]').trigger('click'); }); $('.navbar .dropdown > a').click(function() { if (!$(this).hasClass("parent-clicked")) { $(this).addClass("parent-clicked"); } else { location.href = this.href; } });