JSFiddle - React, Tailwind, and code Playground
by lotani_rtbh
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
var size = [728,90];
window.rtbhtc = window.rtbhtc || {};
window.rtbhtc.que = window.rtbhtc.que || [];
window.rtbhtc.que.push({
publisherId: "kSsCDnVtsekrXDmqULbpxx",
passback: window.innerWidth >= 728 ? '//placehold.it/728x90' : '//placehold.it/300x50',
callback: (rendered) => {
if(!rendered) {
setTimeout(() => {
document.querySelector('#rtb-wrapper').style = 'height:0;';
}, 1500);
}
},
swidth: size[0],
sheight: size[1],
type: 'display',
wrapper: 'rtb-wrapper'
});
</script>
<script src="//storage.googleapis.com/rtb-inventory-public/direct-ads/not-for-prod/rtb-engine.js?asdfasfda12"></script>
</head>
<body>
<div id="rtb-wrapper"></div>
</body>
</html>
CSS
html, body {
border: 0;
margin: 0;
padding: 0;
}
#rtb-wrapper {
width: 728px;
height: 90px;
overflow: hidden;
display: block;
transition: height 0.5s;
}