');
$owl.find('.owl-dots').after('
');
$owl.find('.owl-nav, .owl-dots, .stm-owl-prev, .stm-owl-next').wrapAll("
");
$owl.trigger("to.owl.carousel", [0, 200]);
}, 500);
});
$owl.owlCarousel({
startPosition: 0,
rtl: owlRtl,
items: 3,
smartSpeed: 800,
dots: true,
margin: 10,
autoplay: false,
loop: true,
responsiveRefreshRate: 1000,
responsive: {
0: {
items: 1
},
500: {
items: 2
},
768: {
items: 3
},
1000: {
items:4 }
}
});
$owl.on('click', '.stm-owl-prev', function () {
$owl.trigger('prev.owl.carousel');
});
$owl.on('click', '.stm-owl-next', function () {
$owl.trigger('next.owl.carousel');
});
$('.vc_tta-tabs .vc_tta-tab a').on('click', function () {
var tabId = $(this).attr('href');
setTimeout(function () {
var $owlTab = $(tabId + ' .media-carousel-50256');
$owlTab.trigger('destroy.owl.carousel');
$owlTab.html($owlTab.find('.owl-stage-outer').html()).removeClass('owl-loaded');
$owlTab.on('initialized.owl.carousel', function (e) {
setTimeout(function () {
$owlTab.find('.owl-dots').before('
');
$owlTab.find('.owl-dots').after('
');
$owlTab.find('.owl-nav, .owl-dots, .stm-owl-prev, .stm-owl-next').wrapAll("
");
$owl.trigger("to.owl.carousel", [0, 200]);
}, 500);
});
$owlTab.owlCarousel({
rtl: owlRtl,
items: 3,
smartSpeed: 800,
dots: true,
margin: 10,
autoplay: false,
loop: true,
responsiveRefreshRate: 1000,
responsive: {
0: {
items: 1
},
500: {
items: 2,
loop: false
},
768: {
items: 3,
loop: false
},
991: {
items: 4,
loop: false
},
1025: {
items:4 }
}
});
}, 2000);
});
});
})(jQuery);