1class CreativoPostsSliderModule extends elementorModules.frontend.handlers.Base { 2 3 crPostsSlider() { 4 jQuery( this.$element ).find( '.cr-posts-slider' ).each( function() { 5 var $this = jQuery( this ), 6 timeout = $this.attr( 'data-timeout' ), 7 clientsNo = $this.attr( 'data-visible-items' ), 8 clientsAutoPlay = $this.attr( 'data-autoplay' ), 9 dotsNavigation = $this.attr( 'data-navigation' ), 10 showNav = $this.attr( 'show-nav' ), 11 display_0 = $this.attr( 'data-0' ), 12 display_480 = $this.attr( 'data-480' ), 13 display_768 = $this.attr( 'data-768' ), 14 display_992 = $this.attr( 'data-992' ), 15 carouselSpeed = $this.attr( 'data-speed' ), 16 itemMargin = $this.attr( 'data-items-margin' ), 17 navigation_text; 18 19 if ( !carouselSpeed ) { 20 carouselSpeed = 400; 21 } 22 23 if ( !showNav || 'no' === showNav ) { 24 showNav = false; 25 navigation_text = ''; 26 } else { 27 showNav = true; 28 navigation_text = [ '<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>' ]; 29 } 30 31 if ( 'yes' === clientsAutoPlay ) { 32 clientsAutoPlay = true; 33 } else { 34 clientsAutoPlay = false; 35 } 36 37 if ( 'yes' === dotsNavigation ) { 38 dotsNavigation = true; 39 } else { 40 dotsNavigation = false; 41 } 42 43 if ( 'no' === itemMargin ) { 44 itemMargin = 0; 45 } else { 46 itemMargin = 30; 47 } 48 49 $this.owlCarousel( { 50 items: 1, 51 margin: 0, 52 loop: true, 53 nav: true, 54 autoHeight: true, 55 navText: [ '<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>' ], 56 autoplay: false, 57 autoplayTimeout: 4000, 58 autoplayHoverPause: true, 59 autoplaySpeed: 800, 60 navSpeed: 800, 61 dragEndSpeed: 800, 62 dots: false, 63 lazyLoad:true, 64 checkVisible: false, 65 } ); 66 } ); 67 } 68 69 onInit() { 70 this.crPostsSlider(); 71 } 72 73 onElementChange( propertyName ) { 74 this.crPostsSlider(); 75 } 76} 77 78jQuery( window ).on( 'elementor/frontend/init', () => { 79 const addHandler = ( $element ) => { 80 elementorFrontend.elementsHandler.addHandler( CreativoPostsSliderModule, { 81 $element, 82 } ); 83 }; 84 85 elementorFrontend.hooks.addAction( 'frontend/element_ready/creativo_posts_slider.default', addHandler ); 86} );
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.