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 // elementorFrontend.hooks.addAction( 'frontend/element_ready/section', DeSticky.setStickySection ); 11 12 // $( document ).on( 'ready', DeSticky.stickySection ); 13 }, 14 15 elementorColumn: function( $scope ) { 16 var $target = $scope, 17 cek = {}, 18 $window = $( window ), 19 columnId = $target.data( 'id' ), 20 editMode = Boolean( elementor.isEditMode() ), 21 settings = {}, 22 stickyInstance = null, 23 stickyInstanceOptions = { 24 topSpacing: 50, 25 bottomSpacing: 50, 26 containerSelector: '.elementor-container', 27 innerWrapperSelector: '.elementor-column-wrap' 28 }; 29 30 if ( editMode ) { 31 settings = DeSticky.columnEditorSettings( columnId ); 32 if ( 'yes' === settings['de_icon_box'] ) { 33 // $target.addClass( 'de-carousel-tab-active-icon-box' ); 34 $target.addClass( 'de-carousel-active' ); 35 }else { 36 // $target.removeClass( 'de-carousel-tab-active-icon-box' ); 37 $target.removeClass( 'de-carousel-active' ); 38 } 39 } 40 }, 41 42 columnEditorSettings: function( columnId ) { 43 var editorElements = null, 44 columnData = {}; 45 46 if ( ! window.elementor.hasOwnProperty( 'elements' ) ) { 47 return false; 48 } 49 50 editorElements = window.elementor.elements; 51 52 if ( ! editorElements.models ) { 53 return false; 54 } 55 56 $.each( editorElements.models, function( index, obj ) { 57 58 $.each( obj.attributes.elements.models, function( index, obj ) { 59 if ( columnId == obj.id ) { 60 columnData = obj.attributes.settings.attributes; 61 } 62 } ); 63 64 } ); 65 66 return { 67 'de_icon_box': columnData['dethemekit_carousel_tab_active_icon_box'] 68 } 69 } 70 } 71 72 $( window ).on( 'elementor/frontend/init', DeSticky.init ); 73 74 75 76 }( 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.