document.addEventListener("DOMContentLoaded", function() { var ___dmc___timer___slt_testspotal_1 = null; const ___dmc___adImage___slt_testspotal_1 = document.getElementById('___adImageArea___slt_testspotal_1'), ___dmc___observer___Option___slt_testspotal_1 = { threshold: 0.5 } if('https://adapi.feeldmc.com/ad/p/in/v1_0/vwi?slotid=slt_testspotal_1&adgroupid=agr_spotaltest_20240809_1&adid=adc_spotaltest_20240809_1&rnd=c77b3c3ebc5943d8b2dbf7a3c617fe09' !== ''){ if ('IntersectionObserver' in window && 'IntersectionObserverEntry' in window && 'intersectionRatio' in window.IntersectionObserverEntry.prototype) { var ___dmc___observer___slt_testspotal_1 = new IntersectionObserver(function(entries) { entries.forEach(function(entry) { if (entry.isIntersecting) { ___dmc___timer___slt_testspotal_1 = setTimeout(function() { var xhr = new XMLHttpRequest(); xhr.open("GET", 'https://adapi.feeldmc.com/ad/p/in/v1_0/vwi?slotid=slt_testspotal_1&adgroupid=agr_spotaltest_20240809_1&adid=adc_spotaltest_20240809_1&rnd=c77b3c3ebc5943d8b2dbf7a3c617fe09' + '&clihnt=' + parent.___dmc___unique___get___id___() + '&clisid=' + parent.___dmc___unique___get___sid___(), true); xhr.send(); }, 1000); } else { clearTimeout(___dmc___timer___slt_testspotal_1) } }); }, ___dmc___observer___Option___slt_testspotal_1); ___dmc___observer___slt_testspotal_1.observe(___dmc___adImage___slt_testspotal_1); } else { console.warn('dmc ::: Intersection Observer Not Available'); // IE10 or older: Use scroll event listener function checkVisibility() { var rect = ___dmc___adImage___slt_testspotal_1.getBoundingClientRect(); var isVisible = (rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth)); if (isVisible) { ___dmc___timer___slt_testspotal_1 = setTimeout(function() { var xhr = new XMLHttpRequest(); xhr.open("GET", 'https://adapi.feeldmc.com/ad/p/in/v1_0/vwi?slotid=slt_testspotal_1&adgroupid=agr_spotaltest_20240809_1&adid=adc_spotaltest_20240809_1&rnd=c77b3c3ebc5943d8b2dbf7a3c617fe09' + '&clihnt=' + parent.___dmc___unique___get___id___() + '&clisid=' + parent.___dmc___unique___get___sid___(), true); xhr.send(); }, 1000); window.removeEventListener('scroll', checkVisibility); // Only trigger once } else { clearTimeout(___dmc___timer___slt_testspotal_1); } } window.addEventListener('scroll', checkVisibility); window.addEventListener('resize', checkVisibility); // Check on resize as well checkVisibility(); // Initial check } } }); document.write('뉴시스 교환 광고 소재');