PageSourceSearch

https://liftshiftglobal.com/wp-content/themes/loraic/elements/widgets/js/accordion.js

js liftshiftglobal.com collected 2026-10-04 04:04:04 UTC 1,105 bytes, 24 lines download raw bytes

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