This commit is contained in:
2024-08-27 01:09:00 +03:00
parent 689a195c9d
commit 2cf8c378b0
4 changed files with 30 additions and 37 deletions

View File

@@ -321,24 +321,7 @@ document.write('<img src="'+pr+'?uid=18820&ref='+r+'&rd='+rd+'" width="88" heigh
</footer>
<?php get_template_part( 'partials/formhash' );?>
<!-- Yandex.RTB R-A-4145099-7 -->
<script>
(function renderInImage(images) {
if (!images.length) {
return
}
const image = images.shift()
image.id = `yandex_rtb_R-A-4145099-7-${Math.random().toString(16).slice(2)}`
window.yaContextCb.push(() => {
Ya.Context.AdvManager.render({
"renderTo": image.id,
"blockId": "R-A-4145099-7",
"type": "inImage"
})
})
renderInImage(images)
})(Array.from(document.querySelectorAll("#post-img")))
</script>
</body>
</html>