correct index.php

This commit is contained in:
2024-08-16 22:29:48 +03:00
parent e7dfc26f59
commit 3604fe5845
3 changed files with 145 additions and 0 deletions

View File

@@ -316,6 +316,24 @@ 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>