adfinityInContent.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. ?>
  3. <style>
  4. @media screen and (min-device-width: 900px) {
  5. #adfox_167091964852627830 {
  6. display: none;
  7. }
  8. }
  9. </style>
  10. <div style="max-height: 50vh;margin-bottom: 20px;height: 50vh;overflow-y:hidden;">
  11. <div class='adfinity_block_2416'></div>
  12. </div>
  13. <?
  14. /*
  15. *
  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. */