Scroll result page to the search term
…{ “containsNC”: function(elem, i, match, array) { return (elem.textContent || elem.innerText || “”).toLowerCase().indexOf((match[3] || “”).toLowerCase()) >= 0; } }); var mySearchString = getParams(“highlight”); var offsetToWord = $(“p:containsNC(‘” +mySearchString + “‘):first”).offset().top; $(“html, body”).animate({ scrollTop: offsetToWord }, 0); function getParams(param) { var vars = {}; window.location.href.replace( location.hash, ” ).replace( /[?&]+([^=&]+)=?([^&]*)?/gi, // regexp…