document.write("
실시간 추천 기사
function logo_tg_05H4(i){ if(i == \"on\") { var image = document.getElementById(\"logoimg\"); image.setAttribute(\"src\",\"//js.ad4989.co.kr/etc/adpnut/image/powered_by_adpnut_on.jpg\"); } else if(i == \"off\") { var image = document.getElementById(\"logoimg\"); image.setAttribute(\"src\",\"//js.ad4989.co.kr/etc/adpnut/image/powered_by_adpnut_off.jpg\"); } }function goLink_05H4(url){ window.open(url,'_blank');}var url_05H4 = \"https://dspserver.adpnut.com/ron/jsonp/62e8b8eb68a87524464716*+*www.mmnews.co.kr\";var url_parse_05H4 = url_05H4.split(\"*+*\");var infiniteIndex_05H4 = 0;var mutex_05H4 = false;function infiniteAppend_05H4(){ $(\"#adpnut_05H4\").append(\"
\"); infiniteIndex_05H4 = infiniteIndex_05H4+1; bestlistinput_05H4(); mutex_05H4 = false;};function datainput_05H4(c){ if(c) { $.ajax({ type: \"GET\", async: true, url: url_parse_05H4[0], cache: false, dataType: \"jsonp\", jsonp : \"callback\", success: function(data) { var data_length = data.creatives.length; for(var i=0; i< data_length; i++) { var text = data.creatives[i].txt; var adIndex = i*2; if(text.indexOf(\"__\")>-1) { var text_array = text.split('__'); $(\"#adpnut_05H4\").find('.adBox').eq(infiniteIndex_05H4).find(\".adList\").eq(adIndex).append(\"
AD
\"+text_array[0]+\"
PR \"+text_array[1]+\"
\"); } else { $(\"#adpnut_05H4\").find('.adBox').eq(infiniteIndex_05H4).find(\".adList\").eq(adIndex).append(\"
AD
\"+data.creatives[i].txt+\"
\"); } } }, error: function(xhr, status, error) { } }); } else { $.ajax({ type: \"GET\", async: true, url: url_parse_05H4[0], cache: false, dataType: \"jsonp\", jsonp : \"callback\", success: function(data) { var data_length = data.creatives.length; for(var i=0; i< data_length; i++) { var text = data.creatives[i].txt; if(text.indexOf(\"__\")>-1) { var text_array = text.split('__'); $(\"#adpnut_05H4\").find('.adBox').eq(infiniteIndex_05H4).find(\".adList\").eq(i).append(\"
AD
\"+text_array[0]+\"
PR \"+text_array[1]+\"
\"); } else { $(\"#adpnut_05H4\").find('.adBox').eq(infiniteIndex_05H4).find(\".adList\").eq(i).append(\"
AD
\"+data.creatives[i].txt+\"
\"); } } }, error: function(xhr, status, error) { } }); }};/*매체사페이지 추천기사 추가 입력*/function bestlistinput_05H4(){ $.ajax({ type: \"GET\", async: true, url: \"https://api.tend-table.com/common/api/get_best.jsp?domain=\"+url_parse_05H4[1]+\"&rtn_type=json\", cache: false, dataType: \"jsonp\", jsonCallback : \"callback\", success: function(data) { if(data.result.data.length != 0) { var l_best_posi = new Date().getTime()%data.result.data.length; for(var i=0; i<=4; i++) { var adIndex = i+(i+1); var l_bestnow_posi = (l_best_posi+i) % data.result.data.length; $(\"#adpnut_05H4\").find('.adBox').eq(infiniteIndex_05H4).find(\".adList\").eq(adIndex).append(\"
\"+data.result.data[l_bestnow_posi].title+\"
\"); } datainput_05H4(true); } else { datainput_05H4(false); } }, error: function(xhr, status, error) { datainput_05H4(false); } }); };/*이미지 비율 유지한채로 가운데정렬시키기위한 함수*/ function resizeImg_05H4(obj,src) { var sImgWidth, sImgHeight, sTagWidth, sTagHeight, sTag, sImg, sRatio, sRatioStandard, sImgSrc, sGapW, sGapH; sTag = $(obj); sImgSrc = src; sTag.html(\"\"); sImg=sTag.find('img'); sImg.on('load',function(){ sTagWidth = sTag.width(); sTagHeight = sTag.height(); sImgWidth = sImg.width(); sImgHeight = sImg.height(); sRatio = sImgWidth / sImgHeight; sRatioStandard = sTagWidth / sTagHeight; if(sRatio >= sRatioStandard) { sImg.css({ width: 'auto', height: '100%' }); }else{ sImg.css({ width: '100%', height: 'auto' }); } /* 가운데 */ sTagWidth = sTag.width(); sTagHeight = sTag.height(); sImgWidth = sImg.width(); sImgHeight = sImg.height(); sGapW = (sTagWidth - sImgWidth) / 2; sGapH = (sTagHeight - sImgHeight) / 2; if(sRatio < 1) { sGapH = 0; } sImg.css({ position:\"absolute\", left: sGapW, top: sGapH }); }); }var timer_05H4 = 0;$(document).ready(function(){ bestlistinput_05H4(); $(window).scroll(function(){ if(infiniteIndex_05H4 >=11) { return; } var scroll_height = $(document).scrollTop() + $(window).height(); if ($(window).scrollTop() >= $(document).height() - $(window).height()-700) { if(mutex_05H4) { console.log(\"ad loading\"); return; } mutex_05H4 = true; clearTimeout(timer_05H4); timer_05H4 = setTimeout(function(){infiniteAppend_05H4();},500); } });});
")