mumuki.faqs = class { constructor() { this.faqs = $('.mu-faqs'); this.topHierarchyElem = "H2"; } // ================ // == Public API == // ================ /** * Actually setup the faqs page */ load() { if(!this.faqs) return; this._createFaqsGroups(); this._createNavbar(); } // ================= // == Private API == // ================= _createNavbar() { const $faqsNavbar = $(".mu-faqs-navbar nav ul"); $('.mu-faqs-group').each((_index, faqGroup) => { const $navItem = this._createNavbarItem($faqsNavbar, faqGroup); const $faqGroup = $(faqGroup); this._configureClickFor($navItem, $faqGroup, $faqsNavbar); }); } _createNavbarItem($faqsNavbar, faqGroup) { const $navItem = $(`