Good evening. Such a question is how to remove # (hash / grid) in the URL when scrolling to the anchor for this example:
$(document).ready(function () { $(document).on("scroll", onScroll); $("a[href^=#]").click(function(e){ e.preventDefault(); $(document).off("scroll"); $(menu_selector + " a.active").removeClass("active"); $(this).addClass("active"); var hash = $(this).attr("href"); var target = $(hash); $("html, body").animate({ scrollTop: target.offset().top }, 900, function(){ window.location.hash = hash; $(document).on("scroll", onScroll); }); }); });