1window.jsFunctions = { 2 openModal: (id) => document.getElementById(id).showModal(), 3 closeModal: (id) => document.getElementById(id).close(), 4 openInNewTab: (url) => { 5 window.open(url, '_blank'); 6 }, 7 OnScrollEvent() { 8 document.documentElement.scrollTop = 0; 9 }, 10 11 //// Add the getImageMetadata function 12 //getImageMetadata: (imageUrl) => { 13 // return new Promise((resolve, reject) => { 14 // const img = new Image(); 15 // img.onload = function () { 16 // resolve({ 17 // width: img.width, 18 // height: img.height, 19 // contentType: img.src.substring(img.src.lastIndexOf('.') + 1), 20 // fileName: img.src.split('/').pop() 21 // }); 22 // }; 23 // img.onerror = function () { 24 // reject("Error loading image"); 25 // }; 26 // img.src = imageUrl; 27 // }); 28 //}, 29}; 30
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.