PageSourceSearch

https://oboi-italii.ru/bitrix/templates/aspro_next/js/custom.js

js oboi-italii.ru collected 2026-10-04 18:29:06 UTC 2,708 bytes, 99 lines download raw bytes

1/*
2You can use this file with your scripts.
3It will not be overwritten when you upgrade solution.
4*/
5
6$(function () {
7    $('.tizers_block .col-md-3').last().wrap('<a href="https://oboi-italii.ru/sale/" class="col-md-3 col-sm-6 col-xs-6 replacer--link"></a>');
8    $('.replacer--link .item').unwrap();
9    $('.banner_buttons .btn').text('Перейти в каталог');
10    $('.social-icons ul').append('<li class="whats-up"><a href="https://api.whatsapp.com/send?phone=79384140404" target="_blank" rel="nofollow" title="Whats-up">Whats-up</a></li>');
11
12    document.querySelector('.social-icons--item.social-icons--item-whats-up').setAttribute('href', 'https://api.whatsapp.com/send?phone=79384140404');
13
14    //в шапке к номерам телефонов добавлялся адрес уберём его из ссылки
15    $('a[href^=tel]').each(function () {
16        var tv = $(this).attr('href');
17        tv = tv.replace(/[^\d;]/g, '');
18        tv = tv.substring(0, 11);
19        $(this).attr('href', 'tel:+' + tv);
20        console.log(tv);
21    });
22});
23
24
25
26document.addEventListener('click', function (event) {
27
28    if (event.target.closest('.social-icons--item-whats-up')) {
29
30        console.log('reachGoal(whatsapp)');
31        yaCounter52047252.reachGoal('whatsapp');
32
33    }
34
35    if (event.target.closest('.social-icons--item-insta')) {
36
37        console.log('reachGoal(instagram)');
38        yaCounter52047252.reachGoal('instagram');
39
40    }
41
42    if (event.target.closest('a')) {
43        let a = event.target.closest('a');
44
45
46        if (a.getAttribute('href').includes('tel:')) {
47            console.log('reachGoal(\'zvonok\')');
48
49            yaCounter52047252.reachGoal('zvonok');
50        }
51    }
52});
53
54// fbq - добавление в корзину
55function addToCartFbEvent(item) {
56    // console.log('AddToCart',
57    //     'content_ids:' + [item.ID],
58    //     'content_name:' + item.NAME,
59    //     'content_type:' + 'product',
60    //     'contents:[{' +
61    //     'id:' + item.ID +
62    //     'quantity:' + item.QUANTITY +
63    //     '}]',
64    //     'currency:	' + item.CURRENCY);
65
66
67    fbq('track', 'AddToCart', {
68        content_ids: [item.ID],
69        content_name: item.NAME,
70        content_type: 'product',
71        contents: [{
72            'id': item.ID,
73            'quantity': item.QUANTITY
74        }],
75        currency: item.CURRENCY,
76        value: 1,
77
78    });
79}
80
81
82
83
84
85
86function buyFbEvent() {
87    fbq('track', 'Purchase', {
88        content_ids: [item.ID],
89        content_type: 'product',
90        contents: [{
91            'id': item.ID,
92            'quantity': item.QUANTITY
93        }],
94        currency: item.CURRENCY,
95        value: 1,
96        num_items: ''
97
98    });
99}

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.