File "instagram.min.js"

Full Path: /home/ycoalition/public_html/blog/wp-content/themes/woodmart/js/scripts/elements/instagram.min.js
File size: 766 bytes
MIME-type: text/plain
Charset: utf-8

!function(o){woodmartThemeModule.instagramAjaxQuery=function(){o(".instagram-widget").each(function(){var t,a,r=o(this);r.hasClass("instagram-with-error")&&(a=r.data("username"),t=r.data("atts"),a="https://www.instagram.com/"+(-1<a.indexOf("#")?"explore/tags/"+a.substr(1):a)+"/",r.addClass("loading"),o.ajax({url:a,success:function(a){o.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_instagram_ajax_query",body:a,atts:t},dataType:"json",method:"POST",success:function(a){r.parent().html(a),woodmartThemeModule.$document.trigger("wdInstagramAjaxSuccess")},error:function(){console.log("instagram ajax error")}})},error:function(){console.log("instagram ajax error")}}))})},o(document).ready(function(){woodmartThemeModule.instagramAjaxQuery()})}(jQuery);