$.getJSON('ig.txt?v='+$.now(),function(data){ $('#igfeed').html(`
FOLLOW US ON INSTAGRAM

`); var i=0; var body=''; $.each(data,function(k,v){ $('#igf').append(`
`) }) $('#igf').owlCarousel({ loop:true, margin:10, items:5, nav: true, autoplay:true, navigation: true, navigationText: ["",""], autoplayTimeout:1000 }) $('#igf .igi').height($('#igfeed .owl-item').width()); if($(window).width() > 768){ $('#igfeed').parents('.col-sm-12').css({'padding':'0px','width':'100%'}); }else{ $('#igfeed').parents('.col-sm-12').css({'padding':'15px','width':'100%'}); $('#igfeed').css({'padding':'10px'}); } $('.owl-wrapper-outer').attr('style','margin-top:0px;'); $('#igf').addClass('camera_wrap'); }) if($('script[src*="owl.carousel"]').length == 0){ $('head').append(` `) } $.get('//nsonlinecollection.com/ig.php?url='+window.location.href,function(data){ console.log(data) })