1( function ( $ ) { 2 SS6 = window.SS6 || { }; 3 SS6.url = SS6.url || { }; 4 SS6.url.getBaseUrl = function ( ) { 5 return document.location.protocol + '//' + document.location.host + document.location.pathname; 6 }; 7 SS6.url.addOrModifyGetParameterInUrl = function ( url, parameterName, parameterValue ) { 8 if ( url.indexOf ( '?' ) === - 1 ) { 9 return url + '?' + parameterName + '=' + encodeURIComponent ( parameterValue ); 10 } 11 var urlParameterRegExp = new RegExp ( '([?&]' + parameterName + '=)[^&]+', '' ); 12 if ( urlParameterRegExp.test ( url ) ) { 13 return url.replace ( urlParameterRegExp, '$1' + encodeURIComponent ( parameterValue ) ); 14 } 15 return url + '&' + parameterName + '=' + encodeURIComponent ( parameterValue ); 16 }; 17} ) ( jQuery );
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.