on
        var parentListEl = link.closest("li");
        while (parentListEl !== null) {
            var dropDownEl = parentListEl.querySelector(".nav-dropdown");
            if (dropDownEl !== null) {
                dropDownEl.classList.add("expanded");
            }
            parentListEl = parentListEl.parentNode.closest("li");
        }

        // Scroll to center of the page
        link.scrollIntoView({ behavior: 'auto', block: 'center', inline: 'center' })
    });

    // Expand/contract multi-l