1( function( $ ) { 2 "use strict"; 3 4 const tabsHandler = function( $scope) { 5 let tabs = $scope.find('.pxl-tabs'); 6 if(!tabs.length) return; 7 let index = 0; 8 tabs.each(function(i, tab) { 9 const tabTitles = $(tab).find('.pxl-tab-title'); 10 const tabContents = $(tab).find('.pxl-tab-content'); 11 tabTitles.each(function(j, title) { 12 if($(title).hasClass('active')) { 13 index = $(this).attr('data-tab-index'); 14 $(tabContents[parseInt(index)]).addClass('active').slideDown(350); 15 } 16 }) 17 $(tabTitles).on('click', function(e) { 18 e.preventDefault(); 19 tabTitles.removeClass('active'); 20 tabContents.removeClass('active').slideUp(350); 21 $(this).addClass('active'); 22 index = $(this).attr('data-tab-index'); 23 $(tabContents[parseInt(index)]).addClass('active').slideDown(350); 24 }) 25 }) 26 }; 27 28 $( window ).on( 'elementor/frontend/init', function() { 29 elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_tabs.default', function($scope) { 30 tabsHandler($scope) 31 } ); 32 } ); 33 34} )( jQuery );
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.