(function(){ var iid = "5dfa7caa67781"; var CONTAINER_ID = "ai_" + iid; var container = document.getElementById(CONTAINER_ID); if(container) { container.innerHTML = "Loading..."; function getCORS(url, success) { var xhr = new XMLHttpRequest(); if (!('withCredentials' in xhr)) xhr = new XDomainRequest(); // fix IE8/9 xhr.open('GET', url); xhr.onload = success; xhr.send(); return xhr; } getCORS("https://adioma.com/embed/5dfa7caa67781.svg", function(request){ var response = request.currentTarget.response || request.target.responseText; container.innerHTML = response; }); } else { if(console && console.log) { console.log("Infographic embed code is broken. Copy and paste the code again"); } } })();