adfinityInContent.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. ?>
  3. <div style="max-height: 50vh;margin-bottom: 20px;height: 50vh;overflow-y:hidden;">
  4. <div class='adfinity_block_2416'></div>
  5. </div>
  6. <?
  7. /*
  8. *
  9. *<style>
  10. @media screen and (min-device-width: 900px) {
  11. #adfox_167091964852627830 {
  12. display: none;
  13. }
  14. }
  15. </style>
  16. <div style="min-height: 300px;" class="adfox_placeholder"></div>
  17. <script>
  18. window.yaContextCb.push(()=>{
  19. Ya.adfoxCode.createAdaptive({
  20. ownerId: 359693,
  21. containerId: 'adfox_167091964852627830',
  22. params: {
  23. pp: 'bufl',
  24. ps: 'gduo',
  25. p2: 'hywx'
  26. },
  27. lazyLoad: {
  28. fetchMargin: 100,
  29. mobileScaling: 1.3
  30. }
  31. },
  32. ['tablet', 'phone'], {
  33. tabletWidth: 899,
  34. phoneWidth: 480,
  35. isAutoReloads: true
  36. })
  37. });
  38. setInterval(function() {
  39. Ya.adfoxCode.reload(adfox_167091964852627830, {onlyIfWasVisible: true});
  40. }, 30000);
  41. </script>
  42. */