PageSourceSearch

https://nichesoft.ai/wp-content/themes/orritech/elements/widgets/js/accordion.js?ver=1.0.0

js nichesoft.ai collected 2026-10-05 14:57:25 UTC 1,205 bytes, 24 lines download raw bytes

1( function( $ ) {
2    var pxl_widget_accordion_handler = function( $scope, $ ) {
3        $scope.find(".pxl-accordion .pxl-item--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-item--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        elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_test.default', pxl_widget_accordion_handler );
23    } );
24} )( 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.