PageSourceSearch

https://icl-services.com/local/templates/icl26/components/bitrix/n…/socialmedia/script.js?17747984503293

js icl-services.com collected 2026-10-03 22:12:40 UTC 3,293 bytes, 103 lines download raw bytes

1$(function () {
2
3    $(document).ready(newsSlider);
4
5    $(window).on('resize', newsSlider);
6
7    function newsSlider () {
8        const $news = $('.js-tab-content');
9
10        $news.each(function (i, item) {
11
12            if ($(window).width() < 768) {
13
14                $(item)
15                  .addClass('owl-carousel')
16                  .owlCarousel({
17                    items: 1,
18                    loop: false,
19                    nav: true,
20                    margin: 20,
21                    dots: true,
22                    navText: [
23                        `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
24                            <path d="M15.41 16.58L10.83 12L15.41 7.41L14 6L8 12L14 18L15.41 16.58Z" fill="#FF0000"/>
25                        </svg>`,
26                        `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
27                            <path d="M15.41 16.58L10.83 12L15.41 7.41L14 6L8 12L14 18L15.41 16.58Z" fill="#FF0000"/>
28                        </svg>`
29                    ],
30                })
31
32            } else {
33
34                $(item)
35                  .removeClass('owl-carousel')
36                  .trigger('destroy.owl.carousel');
37
38            }
39
40        });
41    }
42
43    if($('.js-video-item').length > 0) {
44        $('.js-video-item').fancybox({
45            helpers: {
46                media: true
47            },
48            youtube: {
49                autoplay: 1
50            }
51        });
52    }
53
54    let $mainNewsTabs = $('.js-main-news-tabs'),
55        $tabs = $mainNewsTabs.find('.js-tab'),
56        $newsLinks = $mainNewsTabs.find('.js-news-link');
57    $tabs.each(function (index, tab) {
58        let $tab = $(tab),
59            $targetBlockID = $tab.data('href'),
60            $targetBlock = $($targetBlockID),
61            $targetBlockWrap = $targetBlock.closest('.tab-content-wrap');
62
63        if (!$tab.hasClass('current')) {
64            $targetBlockWrap.hide();
65        }
66    });
67
68    $mainNewsTabs.on('click', '.js-tab', function (e) {
69        e.preventDefault();
70
71        let $tab = $(this),
72            $targetBlockID = $tab.data('href'),
73            $targetBlock = $($targetBlockID),
74            $targetBlockWrap = $targetBlock.closest('.tab-content-wrap'),
75            $tabSiblings = $tab.siblings('.js-tab');
76
77        if (!$tab.hasClass('current')) {
78            $tabSiblings.removeClass('current');
79            $tabSiblings.each(function (index, tab) {
80                let $tab = $(this),
81                    $targetBlockID = $tab.data('href'),
82                    $targetBlock = $($targetBlockID),
83                    $targetBlockWrap = $targetBlock.closest('.tab-content-wrap');
84
85                $targetBlockWrap.hide();
86            });
87
88            $tab.addClass('current');
89            $targetBlockWrap.show();
90
91            $newsLinks.each((index, link) => {
92                let currentLink = $(link),
93                    linkTab = currentLink.data('tab');
94                if (linkTab === $targetBlockID) {
95                    currentLink.addClass('main-news-tabs__link_current');
96                } else {
97                    currentLink.removeClass('main-news-tabs__link_current');
98                }
99            });
100        }
101    });
102
103});

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.