PageSourceSearch

https://konditerhauz.ru/bitrix/templates/profood30_default/assets/js/tabs.js

js konditerhauz.ru collected 2026-10-07 15:33:33 UTC 1,368 bytes, 44 lines download raw bytes

1function rsGoProInitTab($tab) {
2    var tabId = $tab.attr('id');
3
4    if ($tab.data('ajax-load') == 'Y') {
5        $(document).on('click', '#' + tabId + ' a', function(){
6            var $tabSwitcher = $(this),
7                $contentBlock = $($tabSwitcher.attr('href')).find('.js-tabs__put-content'),
8                url = $tabSwitcher.data('tab-path') + '?fancybox=true&x-fancybox=y',
9                data = {};
10
11            if (!$tabSwitcher.hasClass('js-tab-loaded') && url != '') {
12                $.ajax({
13                    type: 'POST',
14                    url: url,
15                    data: data
16                }).done(function(response) {
17                    $contentBlock.html(response);
18                    $tabSwitcher.addClass('js-tab-loaded');
19                }).fail(function(){
20                    console.warn( 'tabs -> fail loading tab content' );
21                }).always(function(){
22                    setTimeout(function(){
23                        RSGoPro_SetSet();
24                    }, 150);
25                });
26            }
27
28            return false;
29        });
30    }
31}
32
33function rsGoProInitTabs() {
34    $('.js-tabs').each(function(){
35        $tab = $(this);
36        rsGoProInitTab($tab);
37    });
38}
39
40$(document).on('rsGoPro.document.ready', function(){
41
42    rsGoProInitTabs();
43        
44});

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.