ap_list_functions_loaded.push(function(){
if($('#carousel-2990679801').parents('.tab-pane').length)
{
if(!$('#carousel-2990679801').parents('.tab-pane').hasClass('active'))
{
var width_owl_active_tab = $('#carousel-2990679801').parents('.tab-pane').siblings('.active').find('.owl-carousel').width();
$('#carousel-2990679801').width(width_owl_active_tab);
}
}
$('#carousel-2990679801').owlCarousel({
items : 4,
itemsDesktop : [1200,4],
itemsDesktopSmall : [992,3],
itemsTablet : [768,2],
itemsMobile : [576,1],
itemsCustom : [[1199,4],[992,3],[768,3],[481,2],[0,1]],
singleItem : false, // true : show only 1 item
itemsScaleUp : false,
slideSpeed : 200, // change speed when drag and drop a item
paginationSpeed : 800, // change speed when go next page
autoPlay : false, // time to show each item
stopOnHover : false,
navigation : false,
navigationText : ["‹", "›"],
scrollPerPage : false,
pagination : false, // show bullist
paginationNumbers : false, // show number
responsive : true,
responsiveRefreshRate : 0,
lazyLoad : false,
lazyFollow : false, // true : go to page 7th and load all images page 1...7. false : go to page 7th and load only images of page 7th
lazyEffect : "fade",
autoHeight : false,
mouseDrag : true,
touchDrag : true,
addClassActive : true,
direction: 'rtl',
afterInit: OwlLoaded,
afterAction : SetOwlCarouselFirstLast,
});
});
function OwlLoaded(el){
el.removeClass('owl-loading').addClass('owl-loaded').parents('.owl-row').addClass('hide-loading');
if ($(el).parents('.tab-pane').length && !$(el).parents('.tab-pane').hasClass('active'))
el.width('100%');
};