JSFiddle - React, Tailwind, and code Playground

by FiNGAHOLiC

HTML

<div class="tom-products-widget"></div>
<script>
(function() {
window.tomClickURL = '%%CLICK_URL_UNESC%%';
var type = "figures-dolls";
var utm_source = "mal";
var utm_medium = "widget";
var utm_content = "widget_728_120";
var utm_campaign = "ad_widget_mal";
var width = 728;
var height = 120;
(function(){var a,b,c,d;if(null!=type&&null!=width&&null!=height){c=[];a={keyword:"undefined"!==typeof keyword&&null!==keyword?keyword:"",type:null!=type?type:"",utm_medium:"undefined"!==typeof utm_medium&&null!==utm_medium?utm_medium:"",utm_content:null!=utm_content?utm_content:"",utm_campaign:null!=utm_campaign?utm_campaign:"",utm_source:null!=utm_source?utm_source:"",resolution:width+"x"+height,titleBackground:"undefined"!==typeof titleBackground&&null!==titleBackground?titleBackground:"",textColor:"undefined"!==typeof textColor&&null!==textColor?textColor:""};for(b in a)(d=a[b])&&c.push(b+"="+encodeURIComponent(d));b="https://otakumode.com/widget/embed?"+c.join("&");a=document.createElement("iframe");a.src="javascript:void(0)";a.width=width;a.height=height;a.style.cssText="border:0;";"undefined"!==typeof border&&null!==border&&(a.style.cssText+="border:"+border+";");"undefined"!==typeof background&&null!==background&&(a.style.cssText+="background:"+background+";");c=document.getElementsByClassName("tom-products-widget")[0];c.appendChild(a);a=a.contentWindow.document;a.open().write("<body onload=\"var js = document.createElement('script');js.src = '"+b+"';document.body.appendChild(js);\"/>");return a.close()}})();})();
</script>