PageSourceSearch

https://www.tankbus.org/wp-content/plugins/advanced-gutenberg-pro/…/blocks/advtabs/frontend.js?ver=3.2.0

js tankbus.org collected 2026-09-24 09:59:34 UTC 3,059 bytes, 70 lines download raw bytes

1jQuery(document).ready(function ($) {
2    $(".advgb-tab a:not(.ui-tabs-anchor)").unbind("click");
3    $(".advgb-tabs-block").tabs();
4
5    $('.advgb-tabs-wrapper').each(function () {
6        var activeTab = $(this).data('tab-active');
7        var tabPanel = $(this).find('.advgb-tab-panel');
8
9        var tab = $(this).find('li.advgb-tab:not(".advgb-tab-active")');
10        if($(this).prop('id') !== '') {
11            tab = $(this).find('li.advgb-tab:not(".ui-state-active")');
12        }
13        var tabs = $(this).find('.advgb-tab');
14        var bodyHeaders = $(this).find('.advgb-tab-body-header');
15        var bodyContainers = $(this).find('.advgb-tab-body-container');
16        var bgColor = tab.css('background-color');
17        var borderColor = tab.css('border-color');
18        var borderWidth = tab.css('border-width');
19        var borderStyle = tab.css('border-style');
20        var borderRadius = tab.css('border-radius');
21        var textColor = tab.find('a').css('color');
22
23        $( this ).find( ".advgb-tab a:not(.advgb-tabs-anchor)" ).unbind( "click" );
24
25        tabs.on( 'click', function ( event ) {
26            event.preventDefault();
27            var currentTabActive = $( event.target ).closest( '.advgb-tab' );
28            var href = currentTabActive.find( 'a' ).attr( 'href' );
29            var currentContentActive = bodyContainers.find( '.advgb-tab-body[aria-labelledby="' + href.replace( /^#/, "" ) + '"]' );
30
31            tabs.removeClass( 'advgb-tab-active' );
32            currentTabActive.addClass( 'advgb-tab-active' );
33            bodyContainers.find( '.advgb-tab-body' ).hide();
34            currentContentActive.show();
35            // Check if Images Slider is present in the current active tab's content
36            if( currentContentActive.find('.advgb-images-slider-block').length && $.fn.slick ) {
37                currentContentActive.find('.advgb-images-slider-block > .slick-initialized').slick(
38                    'slickSetOption',
39                    'refresh',
40                    true,
41                    true
42                );
43            }
44        } );
45
46        tabs.eq( activeTab ).trigger( 'click' ); // Default
47
48        bodyHeaders.eq(activeTab).addClass('header-active');
49        bodyHeaders.css({
50            backgroundColor: bgColor,
51            color: textColor,
52            borderColor: borderColor,
53            borderWidth: borderWidth,
54            borderStyle: borderStyle,
55            borderRadius: borderRadius
56        })
57    });
58
59    $('.advgb-tab-body-header').click(function () {
60        var bodyContainer = $(this).closest('.advgb-tab-body-container');
61        var bodyWrapper = $(this).closest('.advgb-tab-body-wrapper');
62        var tabsWrapper = $(this).closest('.advgb-tabs-wrapper');
63        var tabsPanel = tabsWrapper.find('.advgb-tabs-panel');
64        var idx = bodyContainer.index();
65
66        bodyWrapper.find('.advgb-tab-body-header').removeClass('header-active');
67        $(this).addClass('header-active');
68        tabsPanel.find('.advgb-tab').eq(idx).find('a').trigger('click');
69    });
70});

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.