document.write("
$(document).ready(function(){ $wheight = $(\"#mcontent\").width(); $height = 210; /* $height = 360; */ $vheight = 0; if($wheight <= 150) { $vheight = $height;} else { $vheight = $height + ($wheight - 150) * 0.33; } $(\"#_adinc_Ad_08xq\").height($vheight); }); $(window).resize(function() { $wheight = $(\"#mcontent\").width(); $height = 210; /* $height = 360; */ $vheight = 0; if($wheight <= 150) { $vheight = $height;} else { $vheight = $height + ($wheight - 150) * 0.33; } $(\"#_adinc_Ad_08xq\").height($vheight); }); $(document).ready(function() { var _addrop_cover_ = _ainc_getCookie(\"_addrop_cover_\"); if(_addrop_cover_ == \"\" || _addrop_cover_ == null) { $_iframe_ = $('iframe'); $_index_ = 0; $.each($_iframe_, function(i, v) { if($_iframe_.eq(i).attr('src').indexOf('08Ut') >= 0) $_index_ = i; document.querySelectorAll('iframe')[i].addEventListener('load', () => { document.querySelectorAll('iframe')[i].contentWindow?.postMessage('_addrop_cover_', 'https://ad.adinc.kr'); }) }); } window.addEventListener(\"message\", _ainc_processFn, false); }); function _ainc_processFn(event) { if(event.origin === 'https://ad.adinc.kr' || event.origin === 'https://adinc.co.kr') { _ainc_setCookie(\"_addrop_cover_\", 1, 1); } } function _ainc_setCookie(name, value, day) { const date = new Date(); date.setTime(date.getTime() + day * 24 * 60 * 60 * 1000); document.cookie = name + '=' + value + ';expires=' + date.toUTCString() + ';path=/'; } function _ainc_getCookie(name) { const value = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)'); return value ? value[2] : null; } ")