adfinityInContent.php 1.1 KB

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