PageSourceSearch

https://auraf.ru/bitrix/templates/aura-flowers-new/components/bitr…sale.basket.basket.small/.default/script.js

js auraf.ru collected 2026-10-07 17:01:36 UTC 1,456 bytes, 40 lines download raw bytes

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.