1document.addEventListener('DOMContentLoaded', function() { 2 var productId = new URLSearchParams(window.location.search).get('product_id'); 3 if(productId) { 4 fetch(productData.ajax_url, { 5 method: 'POST', 6 headers: { 7 'Content-Type': 'application/x-www-form-urlencoded', 8 }, 9 body: 'action=get_product_stock&product_id=' + productId 10 }) 11 .then(response => response.text()) 12 .then(stockQuantity => { 13 console.log('IloÅÄ produktów na stanie: ' + stockQuantity); 14 }); 15 } 16});
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.