(function(){ var iid = "f7c469c2-932d-11e7-9f8f-0cc47ac421a0"; 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/f7c469c2-932d-11e7-9f8f-0cc47ac421a0.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"); } } })();