1function addItems(type) { 2 3 let butadd = document.getElementById("butadd"); 4 let listItems = document.getElementById("listItems"); 5 6 if (type != "section" && type != "story") { 7 butadd = document.getElementById(`butadd${type}`); 8 listItems = document.getElementById(`listItems${type}`); 9 } 10 11 let kw = butadd.dataset.kw; 12 let n = butadd.dataset.count; 13 14 let xhr = new XMLHttpRequest(); 15 xhr.open('GET', `/adaptiveblue/getitemsadditionaly?kw=${kw}&n=${n}&type=${type}`); 16 xhr.setRequestHeader('Content-Type', 'text/html'); 17 xhr.onload = function() { 18 if (xhr.status === 200) { 19 // console.log(xhr.responseText) 20 if (xhr.responseText == "") { 21 butadd.style.cssText = "display: none;"; 22 } 23 listItems.innerHTML = listItems.innerHTML + xhr.responseText; 24 butadd.dataset.count++; 25 } 26 else { 27 console.log('lox') 28 } 29 }; 30 xhr.send(); 31} 32
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.