1BX.ajax({ 2 url: arAsproOptions["SITE_DIR"] + "ajax/bottom_panel.php", 3 processData: false, 4 onsuccess: function (html) { 5 const ob = BX.processHTML(html); 6 if (ob.STYLE.length > 0) { 7 BX.loadCSS(ob.STYLE); 8 } 9 10 document.querySelector("body").insertAdjacentHTML("beforeend", ob.HTML); 11 if (location.pathname) { 12 document.querySelectorAll('.bottom-icons-panel__content-link').forEach(node => { 13 node.classList.remove('bottom-icons-panel__content-link--active') 14 if (node.getAttribute('href') === location.pathname) { 15 node.classList.add('bottom-icons-panel__content-link--active') 16 } 17 }) 18 } 19 20 BX.ajax.processScripts(ob.SCRIPT); 21 22 if (typeof updateBottomIconsPanel === 'function') { 23 var counter = 0; 24 var arItemsCompare = []; 25 for(var key in arBasketAspro["COMPARE"]){ 26 if(arBasketAspro["COMPARE"].hasOwnProperty(key)) { 27 arItemsCompare[counter] = arBasketAspro["COMPARE"][key]; 28 counter++; 29 } 30 } 31 32 updateBottomIconsPanel({ 33 "COMPARE":{ 34 "COUNT": arItemsCompare.length, 35 } 36 }); 37 } 38 }, 39});
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.