1function updateQueryStringParameter(uri, key, value) { 2 var re = new RegExp("([?|&])" + key + "=.*?(&|$)", "i"); 3 separator = uri.indexOf('?') !== -1 ? "&" : "?"; 4 if (uri.match(re)) { 5 return uri.replace(re, '$1' + key + "=" + value + '$2'); 6 } 7 else { 8 return uri + separator + key + "=" + value; 9 } 10} 11 12function getUrlVars() { 13 var vars = [], hash; 14 var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); 15 for (var i = 0; i < hashes.length; i++) { 16 hash = hashes[i].split('='); 17 vars.push(hash[0]); 18 vars[hash[0]] = hash[1]; 19 } 20 return vars; 21}
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.