1console.log("reatil"); 2 3function retail_basket(){ 4 console.log("start_retail"); 5 var url = document.location.href; 6 7 $.post(url, {}, function(result){ 8 try { 9 // â ÐÑавилÑнÑй паÑÑинг HTML-ÑÑÑоки 10 var $parsed = $($.parseHTML(result)); 11 var component_resultation = $parsed.find(".top-user-basket"); 12 13 if (component_resultation.length) { 14 $(".top-user-basket").html(component_resultation.html()); 15 16 // ÐбновлÑем ÑÐµÐ½Ñ ÐºÐ¾ÑÐ·Ð¸Ð½Ñ 17 var $price = $parsed.find(".basket-price"); 18 if ($price.length) { 19 $(".basket-price").text($price.text()); 20 } 21 22 // ÐбновлÑем мобилÑнÑÑ ÐºÐ¾ÑÐ·Ð¸Ð½Ñ 23 var $cartValue = $parsed.find(".new-cart__content-value").first(); 24 if ($cartValue.length) { 25 $(".new-cart__content-value").text($cartValue.text()); 26 } 27 } 28 } catch(e) { 29 console.error('ÐÑибка Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ ÐºÐ¾ÑзинÑ:', e); 30 location.reload(); 31 } 32 }, 'html'); // â Явно ÑказÑваем Ñип даннÑÑ 33 34 console.log("find_retail"); 35} 36// $("body").on("click", ".to_basket", function(){ 37// console. 38// retail_basket(); 39// }); 40// retail_basket();
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.