1( function( $ ) { 2 3 var WidgetAfeSliderHandler = function( $scope, $ ) { 4 /*console.log( $scope );*/ 5 var carousel_elem = $scope.find('.afe-slides'); 6 /*console.log(carousel_elem);*/ 7 if (carousel_elem.length > 0) { 8 var settings = carousel_elem.data('slider_options'); 9 $arrows_size = carousel_elem.data('arrows-size'); 10 $arrows_color = carousel_elem.data('arrows-color'); 11 $dots_size = carousel_elem.data('dots-size'); 12 $dots_color = carousel_elem.data('dots-color'); 13 carousel_elem.owlCarousel(settings); 14 carousel_elem.find('.owl-nav [class*=owl-]').css({ 15 'font-size' : $arrows_size +'px', 16 'color' : $arrows_color 17 }); 18 carousel_elem.find('.owl-dots .owl-dot span').css({ 19 'width' : $dots_size +'px', 20 'height' : $dots_size +'px', 21 'background' : $dots_color 22 }); 23 carousel_elem.on('change.owl.carousel', function(e){ 24 $(this).find('.afe-slide-content').css('opacity', '0'); 25 idx = e.item.index - (e.relatedTarget._clones.length / 2); /*get current index*/ 26 $(this).find('.owl-item').removeAnimateItem(idx); 27 /*add animation heading*/ 28 $(this).find('.owl-item').removeAnimateClass(idx); 29 /*add animation description*/ 30 $(this).find('.owl-item').removeAnimateClass(idx, '.afe-slide-description'); 31 /*add animation button*/ 32 $(this).find('.owl-item').removeAnimateClass(idx, '.afe-slide-button'); 33 }); 34 carousel_elem.on('translated.owl.carousel', function(e){ 35 $(this).find('.afe-slide-content').css('opacity', '1'); 36 idx = e.item.index - (e.relatedTarget._clones.length / 2); /*get current index*/ 37 /*add animation heading*/ 38 $(this).find('.owl-item').addAnimateClass(idx); 39 /*add animation description*/ 40 $(this).find('.owl-item').addAnimateClass(idx, '.afe-slide-description'); 41 /*add animation button*/ 42 $(this).find('.owl-item').addAnimateClass(idx, '.afe-slide-button'); 43 }); 44 } 45 }; 46 47 $( window ).on( 'elementor/frontend/init', function() { 48 elementorFrontend.hooks.addAction( 'frontend/element_ready/afe-image-slider.default', WidgetAfeSliderHandler ); 49 } ); 50 $.fn.removeAnimateItem = function(idx) { 51 if ($(this).eq(idx-1).hasClass('cloned')) { 52 $(this).eq(idx-1).removeClass().addClass('owl-item cloned'); 53 } else { 54 $(this).eq(idx-1).removeClass().addClass('owl-item'); 55 } 56 if ($(this).eq(idx+1).hasClass('cloned')) { 57 $(this).eq(idx+1).removeClass().addClass('owl-item cloned'); 58 } else { 59 $(this).eq(idx+1).removeClass().addClass('owl-item'); 60 } 61 } 62 $.fn.addAnimateClass = function(idx, fe) { 63 fe = typeof fe !== 'undefined' ? fe : '.afe-slide-heading'; 64 elcurrent = $(this).not('.cloned').eq(idx).find(fe); 65 dacurrent = elcurrent.data('animation'); 66 elcurrent.addClass('animated '+dacurrent); 67 return this; 68 }; 69 $.fn.removeAnimateClass = function(idx, fe) { 70 fe = typeof fe !== 'undefined' ? fe : '.afe-slide-heading'; 71 72 el = $(this).not('.cloned').eq(idx-1).find(fe); 73 da = el.data('animation'); 74 el.removeClass('animated '+da); 75 76 el1 = $(this).not('.cloned').eq(idx+1).find(fe); 77 da1 = el1.data('animation'); 78 el1.removeClass('animated '+da1); 79 return this; 80 }; 81 /*afe fancy flipbox*/ 82 var WidgetAfeFlipboxHandler = function( $scope, $ ) { 83 var flipbox_cube = $scope.find('.afe-flipbox'); 84 if (flipbox_cube.length > 0) { 85 $.each(flipbox_cube, function(key, value){ 86 console.log($(this).find('.afe-flipbox-front').height()); 87 }); 88 } 89 } 90 $( window ).on( 'elementor/frontend/init', function() { 91 elementorFrontend.hooks.addAction( 'frontend/element_ready/afe-flipbox.default', WidgetAfeFlipboxHandler ); 92 } ); 93} )( jQuery ); 94 95 96
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.