PageSourceSearch

https://ritual-regions.ru/wp-content/plugins/dethemekit-for-elementor/assets/js/de-active-column.js?ver=2.1.10

js ritual-regions.ru collected 2026-10-06 17:56:13 UTC 3,796 bytes, 97 lines download raw bytes

1( function( $, elementor ) {
2
3	'use strict';
4
5	var DeSticky = {
6
7		init: function() {
8			elementor.hooks.addAction( 'frontend/element_ready/column', DeSticky.elementorColumn );
9
10		},
11
12		elementorColumn: function( $scope ) {
13			var $target  = $scope,
14				cek = {},
15				$window  = $( window ),
16				columnId = $target.data( 'id' ),
17				editMode = Boolean( elementor.isEditMode() ),
18				settings = {},
19				stickyInstance = null,
20				stickyInstanceOptions = {
21					topSpacing: 50,
22					bottomSpacing: 50,
23					containerSelector: '.e-con-inner',
24					innerWrapperSelector: '.e-con-inner > div'
25				};
26
27                if ( editMode ) {
28                    settings = DeSticky.columnEditorSettings( columnId );
29                    if ( 'yes' === settings['de_column1'] ) {
30                        $target.addClass( 'dethemekit_child_de_carousel_1 de-carousel-active' );
31                    }else {
32                        if ( $target.hasClass('dethemekit_child_de_carousel_1') ){
33                            $target.removeClass( 'dethemekit_child_de_carousel_1 de-carousel-active' );
34                        }
35                    }
36                    if ( 'yes' === settings['de_column2'] ) {
37                        $target.addClass( 'dethemekit_child_de_carousel_2 de-carousel-active' );
38                    }else {
39                        if ( $target.hasClass('dethemekit_child_de_carousel_2') ){
40                            $target.removeClass( 'dethemekit_child_de_carousel_2 de-carousel-active' );
41                        }
42                    }
43                    if ( 'yes' === settings['de_column3'] ) {
44                        $target.addClass( 'dethemekit_child_de_carousel_3 de-carousel-active' );
45                    }else {
46                        if ( $target.hasClass('dethemekit_child_de_carousel_3') ){
47                            $target.removeClass( 'dethemekit_child_de_carousel_3 de-carousel-active' );
48                        }
49                    }
50                    if ( 'yes' === settings['de_column4'] ) {
51                        $target.addClass( 'dethemekit_child_de_carousel_4 de-carousel-active' );
52                    }else {
53                        if ( $target.hasClass('dethemekit_child_de_carousel_4') ){
54                            $target.removeClass( 'dethemekit_child_de_carousel_4 de-carousel-active' );
55                        }
56                    }
57                }
58            },
59
60            columnEditorSettings: function( columnId ) {
61                var editorElements = null,
62                    columnData     = {};
63    
64                if ( ! window.elementor.hasOwnProperty( 'elements' ) ) {
65                    return false;
66                }
67    
68                editorElements = window.elementor.elements;
69    
70                if ( ! editorElements.models ) {
71                    return false;
72                }
73    
74                $.each( editorElements.models, function( index, obj ) {
75    
76                    $.each( obj.attributes.elements.models, function( index, obj ) {
77                        if ( columnId == obj.id ) {
78                            columnData = obj.attributes.settings.attributes;
79                        }
80                    } );
81    
82                } );
83    
84                return {
85                    'de_column1': columnData['dethemekit_carousel_tab_active1'] || false,
86                    'de_column2': columnData['dethemekit_carousel_tab_active2'] || false,
87                    'de_column3': columnData['dethemekit_carousel_tab_active3'] || false,
88                    'de_column4': columnData['dethemekit_carousel_tab_active4'] || false
89                }
90            }
91        }
92
93        $( window ).on( 'elementor/frontend/init', DeSticky.init );
94
95        
96
97    }( jQuery, window.elementorFrontend ) );

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.