#native-main-well {
border-bottom: 1px solid rgba(0,0,0,0.19);
padding: 20px 0;
margin-bottom: -15px;
}
#native-boap {
position: relative;
}
#native-rr-article > div {
width: 100%;
height: 100% !important;
}
#native-rr-article {
border-bottom: 1px solid rgba(0,0,0,0.19);
margin-bottom: -20px;
}
#native-rr-article iframe {
height: 100%;
}
#native-boap iframe {
width: 100%;
height: 36rem;
}
#native-rr-article {
position: relative;
}
@media screen and (min-width: 500px) {
#native-boap iframe {
height: 25rem;
}
}
@media screen and (min-width: 1100px) {
#native-boap iframe {
height: 24.5rem;
}
}
window.googletag = window.googletag ||
{
cmd: []
};
window.googletag.cmd.push(function()
{
googletag.display(“native-main-well”);
});
window.googletag = window.googletag ||
{
cmd: []
};
window.googletag.cmd.push(function()
{
googletag.display(“native-rr-article”);
});
(function() {
var mainWellReplacedPost = document.querySelector(“._ntv_left_rail .td_block_inner .td_module_wrap:nth-child(3) .td-module-container”);
var mainWellContent = document.getElementById(‘native-main-well’);
mainWellReplacedPost.parentNode.replaceChild(mainWellContent, mainWellReplacedPost);
mainWellContent.style.height = ‘100%’;
mainWellContent.style.width = ‘100%’;
var rightRailReplacedPost = document.querySelector(‘._ntv_right_rail_latest_articles .td_block_inner .td_module_wrap:nth-child(3) .td-module-container’);
var rightRailContent = document.getElementById(‘native-rr-article’);
rightRailReplacedPost.parentNode.replaceChild(rightRailContent, rightRailReplacedPost);
rightRailContent.style.height = ‘100%’;
rightRailContent.style.width = ‘100%’;
})();
window.googletag = window.googletag ||
{
cmd: []
};
window.googletag.cmd.push(function()
{
googletag.display(“native-boap”);
});
(function() {
var boapSpot = document.querySelector(‘article.post’);
var boapAfterContent = document.querySelector(“article.post .tdb_single_next_prev”);
var boapContent = document.getElementById(‘native-boap’);
boapAfterContent.parentNode.insertBefore(boapContent, boapAfterContent.nextSibling);
boapContent.style.height = ‘auto’;
boapContent.style.width = ‘100%’;
})();
The post LinuxToday | Native Ads – Render appeared first on Linux Today.
Source: Linux Today – LinuxToday | Native Ads – Render