document.write("var view_flag04tp0 = true;var view_flag04tp1 = true; var adIndex04tp1 = 1;var adIndex04tp2 = 3;function closeBtn_04tp(i){ document.getElementById(\"foin_04tp\"+i).style.display = \"none\"; if(i == adIndex04tp1) { view_flag04tp0 = false; } if(i == adIndex04tp2) { view_flag04tp1 = false; }};function goLink_04tp(url) { window.open(url,'_blank');};jQuery(document).ready(function(){ for(var i=0; i<=1; i++) { var index = i; if(i == 0) { index = adIndex04tp1; } if(i == 1) { index = adIndex04tp2; } jQuery(\"body\").append('
code:04tp
device:
'); } var filter = \"win16|win32|win64|mac\"; var vWebType = \"\"; if (navigator.platform ) { if (filter.indexOf(navigator.platform.toLowerCase()) < 0) { vWebType = \"MOBILE\"; } else { vWebType = \"PC\"; } } jQuery(\".device\").html(vWebType); setTimeout(\"adGet04tp(adIndex04tp1)\",1000); setTimeout(\"adGet04tp(adIndex04tp2)\",1000); jQuery(window).scroll(function(){ if(view_flag04tp0) { adGet04tp(adIndex04tp1); } if(view_flag04tp1) { adGet04tp(adIndex04tp2); } });});function adGet04tp(i){ var contentid = \".entry-content\"; var imgX = \"\"; var imgY = \"\"; var adView = false; $(\".entry-content img\").filter(function(){return $(this).attr(\"src\").indexOf(\"plugin.adplex.co.kr\") < 1 }).each(function(index){ if(index == i) { imgY = jQuery(this).offset().top + (jQuery(this).height()-200); if(jQuery(this).width() >= jQuery(window).width()) { imgX = jQuery(this).offset().left + ((jQuery(contentid).width()-200)); } else { imgX = jQuery(this).offset().left + ((jQuery(this).width()-200)); } jQuery(\"#foin_04tp\"+i).css(\"left\",imgX); jQuery(\"#foin_04tp\"+i).css(\"top\",imgY); adView = true; return false; } }); if(adView) { jQuery(\"#foin_04tp\"+i).css(\"display\",\"inline-block\"); var rand_0_99 = Math.floor(Math.random() * 100); var agent_04tp = navigator.userAgent.toLowerCase(); if(agent_04tp.indexOf(\"firefox\")==-1 && rand_0_99 <= 75) { setTimeout(function(){ window.focus(); }, 100); if (jQuery.type( jQuery(\"#foin_04tp\"+i).find(\"iframe\") ) == \"object\" && document.cookie.match('(^|;) ?vi_04tp=([^;]*)(;|$)') == null && document.cookie.match('(^|;) ?vs_04tp=([^;]*)(;|$)') == null ) { jQuery('.foin_close_04tp').css('pointer-events', 'none'); } jQuery(window).blur(function(){ if (jQuery(document.activeElement)[0] === jQuery(\"#foin_04tp\"+i).find(\"iframe\")[0]) { setTimeout(function(){ document.cookie = 'vi_04tp=on;'; document.cookie = 'vs_04tp=on;SameSite=None;Secure'; jQuery('.foin_close_04tp').css('pointer-events', 'auto'); window.focus(); }, 100); } }); } }}
")