1const getParameterByName = (name, url) => { 2 if (!url) { 3 url = window.location.href 4 } 5 name = name.replace(/[\[\]]/g, '\$&') 6 const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)') 7 const results = regex.exec(url) 8 if (!results) return null 9 if (!results[2]) return '' 10 return decodeURIComponent(results[2].replace(/\+/g, ' ')) 11} 12if (getParameterByName('utm_source')) { 13 window.sessionStorage.setItem('utm_source', getParameterByName('utm_source')) 14} 15if (getParameterByName('utm_medium')) { 16 window.sessionStorage.setItem('utm_medium', getParameterByName('utm_medium')) 17} 18window.utmSource = (window.sessionStorage.getItem('utm_source') != null) ? window.sessionStorage.utm_source : '' 19window.utmMedium = (window.sessionStorage.getItem('utm_medium') != null) ? window.sessionStorage.utm_medium : ''
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.