PageSourceSearch

https://www.aspromotion.it/wp-content/themes/consultio/elementor/js/ct-accordion-widget.js?ver=3.2.8

js aspromotion.it collected 2026-10-05 04:09:48 UTC 1,409 bytes, 35 lines download raw bytes

1(function ($) {
2    /**
3     * @param $scope The Widget wrapper element as a jQuery element
4     * @param $ The jQuery alias
5     */
6    var WidgetCTAccordionHandler = function ($scope, $) {
7        $scope
8            .find(".ct-accordion .ct-accordion-item .ct-ac-title")
9            .on("click", function (e) {
10                e.preventDefault();
11                var target = $(this).data("target");
12                var parent = $(this).parents(".ct-accordion");
13                var active_items = parent.find(".ct-ac-title.active");
14                $.each(active_items, function (index, item) {
15                    var item_target = $(item).data("target");
16                    if (item_target != target) {
17                        $(item).removeClass("active");
18                        $(this).parent().removeClass("active");
19                        $(item_target).slideUp(400);
20                    }
21                });
22                $(this).parent().toggleClass("active");
23                $(this).toggleClass("active");
24                $(target).slideToggle(400);
25            });
26    };
27
28    // Make sure you run this code under Elementor.
29    $(window).on("elementor/frontend/init", function () {
30        elementorFrontend.hooks.addAction(
31            "frontend/element_ready/ct_accordion.default",
32            WidgetCTAccordionHandler
33        );
34    });
35})(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.