Sid Gifari File Manager
🏠 Root
/
home1
/
plant149
/
public_html
/
wp-content
/
plugins
/
google-analytics-dashboard-for-wp
/
assets
/
js
/
Editing: popular-posts.min.js
;var ExactMetrics_Popular_Posts={init:function(){document.addEventListener('DOMContentLoaded',this.grab_widgets_with_ajax)},grab_widgets_with_ajax:function(){var e=new XMLHttpRequest(),i=exactmetrics_pp.ajaxurl,n=document.querySelectorAll('.exactmetrics-popular-posts-widget-json'),t,o=n.length,s='action=exactmetrics_popular_posts_get_widget_output&post_id='+exactmetrics_pp.post_id;s+='&_ajax_nonce='+exactmetrics_pp.nonce;for(t=0;t<o;++t){s+='&data[]='+n[t].innerHTML};e.open('POST',i);e.setRequestHeader('Content-Type','application/x-www-form-urlencoded');e.onload=function(){if(e.status===200){let rendered_widgets=JSON.parse(e.responseText);for(t=0;t<o;++t){n[t].parentElement.innerHTML=rendered_widgets[t]}}};e.send(s)},};ExactMetrics_Popular_Posts.init();
Save
Cancel