1function CMSContextualSearch(){let $this=this;this.create=function(){$this.bindEvent()};this.bindEvent=function(){$("#contextualSearchResult .contextualSearchWord").off("change").change(function(){let url=$("#contextualSearchResult a")[0],newSearchKeys=[];$("#contextualSearchResult").find(".contextualSearchWord").each(function(){newSearchKeys.push($(this).find("option").filter(":selected").text())});url.href=$this.updateURLParameter(url.href,"Key",newSearchKeys.join("+"))})};this.updateURLParameter=function(url,param,paramVal){let newAdditionalURL="",tempArray=url.split("?"),baseURL=tempArray[0],additionalURL=tempArray[1],temp="";if(additionalURL){tempArray=additionalURL.split("&");for(let i=0;i<tempArray.length;i++){if(tempArray[i].split("=")[0]!==param){newAdditionalURL+=temp+tempArray[i];temp="&"}}}return baseURL+"?"+newAdditionalURL+""+temp+""+param+"="+paramVal}}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.