X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/958 tfcarousel/assets/js
home
/
freights
/
public_html
/
wp-content
/
plugins
/
958 tfcarousel
/
assets
/
js
/
??
..
??
9ecuzgu2
(9.03 KB)
??
owl.carousel.min.js
(41.57 KB)
??
tf-main.js
(1.95 KB)
??
vzw35m5p
(9.03 KB)
??
wlpbvr1b
(9.03 KB)
Editing: tf-main.js
;(function($) { "use strict"; var carousel_Box = function() { if ( $().owlCarousel ) { $('.tf-carousel-box').each(function(){ var $this = $(this), item = $this.data("column"), item2 = $this.data("column2"), item3 = $this.data("column3"), spacer = Number($this.data("spacer")), prev_icon = $this.data("prev_icon"), next_icon = $this.data("next_icon"); var loop = false; if ($this.data("loop") == 'yes') { loop = true; } var arrow = false; if ($this.data("arrow") == 'yes') { arrow = true; } var auto = false; if ($this.data("auto") == 'yes') { auto = true; } $this.find('.owl-carousel').owlCarousel({ loop: loop, margin: spacer, nav: true, pagination: true, autoplay: auto, autoplayTimeout: 5000, autoplayHoverPause: true, navText : ["<i class=\""+prev_icon+"\"></i>","<i class=\""+next_icon+"\"></i>"], responsive: { 0:{ items:item3 }, 768:{ items:item2 }, 1000:{ items:item } } }); }); } } $(window).on('elementor/frontend/init', function() { elementorFrontend.hooks.addAction( 'frontend/element_ready/tfcarousel.default', carousel_Box ); }); })(jQuery);
Upload File
Create Folder