1( function( $ ) { 2 var pxl_widget_accordion_handler = function( $scope, $ ) { 3 $scope.find(".pxl-accordion .pxl-accordion--title").on("click", function(e){ 4 e.preventDefault(); 5 var pxl_target = $(this).data("target"); 6 var pxl_parent = $(this).parents(".pxl-accordion"); 7 var pxl_active = pxl_parent.find(".pxl-accordion--title"); 8 $.each(pxl_active, function (index, item) { 9 var pxl_item_target = $(item).data("target"); 10 if(pxl_item_target != pxl_target){ 11 $(item).removeClass("active"); 12 $(this).parent().removeClass("active"); 13 $(pxl_item_target).slideUp(400); 14 } 15 }); 16 $(this).parent().toggleClass("active"); 17 $(pxl_target).slideToggle(400); 18 }); 19 }; 20 $( window ).on( 'elementor/frontend/init', function() { 21 elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_accordion.default', pxl_widget_accordion_handler ); 22 } ); 23} )( 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.