if(window.top == window.self) { window.__cmp = { config: { logging: "debug", globalVendorListLocation:"https://www.advfn.com/vendorlist.json", storeConsentGlobally:true, globalConsentLocation:"https://www.advfn.com/common/vendor/cmp/docs/portal" } } aps.jqueryReady( function() { var s = document.createElement("script"); el = document.getElementsByTagName("script")[0]; s.async = true; s.src = "/common/vendor/cmp/cmp.complete.bundle.js?v=20181012145646_aacbf0b860e2f7a630399e4be9e2cb10"; el.parentNode.insertBefore(s, el); var cmp_callback_timer = setInterval(cmpCallbackCounter, 100); function cmpCallbackCounter() { if( typeof window.__cmp == "function") { clearInterval(cmp_callback_timer); window.__cmp( "addEventListener", "onSubmit", function(result) { __cmp('getConsentData', null, function(data){ $.getJSON('/common/vendor/cmp/store', data); }); $("body").append(""); }); } } }); }