1const Utils = window.Utils = { 2 isInt: function (num) { 3 if (num % 1 === 0) { 4 return true 5 } else if (num % 1 !== 0) { 6 return false 7 } 8 }, 9 10 extend: function (a, b) { 11 for (var i in b) { 12 a[i] = b[i] 13 } 14 }, 15 16 getQueryParam: function (param) { 17 let query = window.location.search.substring(1) 18 let vars = query.split('&') 19 20 for (let i = 0; i < vars.length; i++) { 21 let pair = vars[i].split('=') 22 23 if (decodeURIComponent(pair[0]) == param) { 24 return decodeURIComponent(pair[1]) 25 } 26 } 27 }, 28 29 shouldRender: function (storedWidth, event) { 30 if (event.type === 'DOMContentLoaded' || (event.type === 'resize' && window.innerWidth !== storedWidth)) { 31 return true 32 } else { 33 return false 34 } 35 }, 36}
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.