Give Away

<div id="gleam_competition"></div> <script> function embedCompetition(el, html) { el.innerHTML = html; Array.from(el.querySelectorAll("script")).forEach(oldScript => { const newScript = document.createElement("script"); Array.from(oldScript.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value)); newScript.appendChild(document.createTextNode(oldScript.innerHTML)); oldScript.parentNode.replaceChild(newScript, oldScript); }); } /* Replace with your embed code */ const embedCode = '<a class="e-widget generic-loader" href="https://gleam.io/abcde/test" rel="nofollow">My Competition</a><script type="text/javascript" src="https://widget.gleamjs.io/e.js" async="true"><\/script>'; embedCompetition(document.querySelector('#gleam_competition'), embedCode); </script>