text: $(document).ready((function(){$(".navbar .dropdown-item.dropdown").on("click",(function(e){var $el=$(this).children(".dropdown-toggle");if($el.length>0&&$(e.target).hasClass("dropdown-toggle")){var $parent=$el.offsetParent(".dropdown-menu");return $(this).parent("li").toggleClass("open"),void($parent.parent().hasClass("navbar-nav")||($parent.hasClass("show")?($parent.removeClass("show"),$el.next().removeClass("show"),$el.next().css({top:-999,left:-999})):($parent.parent().find(".show").removeClass("show"),$parent.addClass("show"),$el.next().addClass("show"),$el.next().css({top:$el[0].offsetTop,left:$parent.outerWidth()-4})),e.preventDefault(),e.stopPropagation()))}})),$(".navbar .dropdown").on("hidden.bs.dropdown",(function(){$(this).find("li.dropdown").removeClass("show open"),$(this).find("ul.dropdown-menu").removeClass("show open")}))}));