';
}
$("#instafeed").html( $("#instafeed").html() + img_html );
}
$('#instafeed').imagesLoaded( function() {
$('#instafeed').owlCarousel({
items : 3,
itemsDesktop : [1200,3],
itemsDesktopSmall : [992,3],
itemsTablet : [768,3],
itemsMobile : [576,3],
itemsCustom : false,
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,
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%');
};
}
});
feed.run();
});
var array_chunk = function(arr, chunkSize) {
var groups = [], i;
for (i = 0; i