document.write("/* function configureLinks(adincId, customBackUrl, customBackOutUrl) { var backUrl = customBackUrl || 'https://l.newslab.co.kr/back/p1'; var backOutUrl = customBackOutUrl || 'https://l.newslab.co.kr/back/p1#aaa'; function goLink(event, href) { const currentDate = new Date(); localStorage.setItem('pop', currentDate); window.open(href, '_blank'); } function isLocalStorageSupported() { try { const testKey = 'test'; localStorage.setItem(testKey, testKey); localStorage.removeItem(testKey); return true; } catch (e) { return false; } } function isWithinEightHours(dateString) { const storedDate = new Date(dateString); const currentDate = new Date(); const timeDifference = currentDate - storedDate; const hoursDifference = timeDifference / (1000 * 60 * 60); return hoursDifference < 8; } function checkLocalStorageValidity() { if (!isLocalStorageSupported()) { return false; } const storedDateString = localStorage.getItem('pop'); if (!storedDateString) { return true; } if (!isWithinEightHours(storedDateString)) { return true; } else { return false; } } function initialize() { if (!checkLocalStorageValidity()) return; var aTagSum = document.getElementById(adincId).getElementsByTagName('a'); for (var i = 0; i < aTagSum.length; i++) { (function(index) { var href = aTagSum[index].getAttribute('href'); aTagSum[index].addEventListener('click', function(event) { goLink(event, href); }); })(i); aTagSum[i].setAttribute('target', '_top'); aTagSum[i].setAttribute('href', backUrl); } } window.addEventListener('load', initialize, false); } const pageid = 'adinc_08ho'; const backurl = 'https://l.newslab.co.kr/back/p1'; const outUrl = 'https://l.newslab.co.kr/back/p1#aaaaa';*/ configureLinks('adinc_08ho', 'https://l.newslab.co.kr/back/p1', 'https://l.newslab.co.kr/back/p1');")