1(function( $ ) { 2 3 var pxl_widget_tabs_handler = function( $scope, $ ) { 4 // Handle slide effect tabs 5 $scope.find(".pxl-tabs.tab-effect-slide .pxl-tab--title").on("click hover", function(e){ 6 e.preventDefault(); 7 var target = $(this).data("target"); 8 var parent = $(this).parents(".pxl-tabs"); 9 parent.find(".pxl-tabs--content .pxl-tab--content").slideUp(300); 10 parent.find(".pxl-tabs--title .pxl-tab--title").removeClass('active'); 11 $(this).addClass("active"); 12 $(target).slideDown(300); 13 }).hover(function() { 14 var target = $(this).data("target"); 15 var parent = $(this).parents(".pxl-tabs"); 16 parent.find(".pxl-tabs--content .pxl-tab--content").slideUp(300); 17 parent.find(".pxl-tabs--title .pxl-tab--title").removeClass('active'); 18 $(this).addClass("active"); 19 $(target).slideDown(300); 20 }); 21 22 // Handle fade and creative effect tabs 23 $scope.find(".pxl-tabs.tab-effect-fade .pxl-tab--title, .pxl-tabs.tab-effect-cretive .pxl-tab--title").on("click hover", function(e){ 24 e.preventDefault(); 25 var target = $(this).data("target"); 26 var parent = $(this).parents(".pxl-tabs"); 27 parent.find(".pxl-tabs--content .pxl-tab--content").removeClass("active"); 28 parent.find(".pxl-tabs--title .pxl-tab--title").removeClass('active'); 29 $(this).addClass("active"); 30 $(target).addClass("active"); 31 }).hover(function() { 32 var target = $(this).data("target"); 33 var parent = $(this).parents(".pxl-tabs"); 34 parent.find(".pxl-tabs--content .pxl-tab--content").removeClass("active"); 35 parent.find(".pxl-tabs--title .pxl-tab--title").removeClass('active'); 36 $(this).addClass("active"); 37 $(target).addClass("active"); 38 }); 39 }; 40 41 $( window ).on( 'elementor/frontend/init', function() { 42 elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_tabs.default', pxl_widget_tabs_handler ); 43 }); 44 45})( 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.