document.write("
당신을 위한 무한피드
\"powered_by_adpnut\"
function logo_tg_05Vl(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_05Vl(url){ window.open(url,'_blank');}/*피넛테크 광고 노출*/var url_05Vl = \"https://dspserver.adpnut.com/ron/jsonp/63c736c03b3bf683414799*+*\";var url_parse_05Vl = url_05Vl.split(\"*+*\");var infiniteIndex = 0;var infi_flag05Vl = true;var timer_05Vl = 0;var mutex_05Vl = false;function datainput_05Vl(c){ if(c) { /*추천기사가 있을때*/ $.ajax({ type: \"GET\", async: true, url: url_parse_05Vl[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+(i+1); /*광고주명이 있을때*/ if(text.indexOf(\"__\")>-1) { /*추천기사를 우선 광고구역에 채운뒤 나머지는 피넛테크 광고로 채움*/ if($(\"#adpnut_05Vl\").find(\".adContents\").eq(infiniteIndex).find(\".adList\").eq(adIndex).find(\".summary\").text() == \"\") { var text_array = text.split('__'); $(\"#adpnut_05Vl\").find(\".adContents\").eq(infiniteIndex).find(\".adList\").eq(adIndex).append(\"
AD
광고
\"+text_array[0]+\"
PR \"+text_array[1]+\"
\"); } } else { if($(\"#adpnut_05Vl\").find(\".adContents\").eq(infiniteIndex).find(\".adList\").eq(adIndex).find(\".summary\").text() == \"\") { $(\"#adpnut_05Vl\").find(\".adContents\").eq(infiniteIndex).find(\".adList\").eq(adIndex).append(\"
AD
광고
\"+data.creatives[i].txt+\"
\"); } } } }, error: function(xhr, status, error) { } }); } else { /*추천기사가 없을때*/ $.ajax({ type: \"GET\", async: true, url: url_parse_05Vl[0], cache: false, dataType: \"jsonp\", jsonp : \"callback\", success: function(data) { var data_length = data.creatives.length; if(data_length > 12) { data_length = 12; } for(var i=0; i< data_length; i++) { var text = data.creatives[i].txt; if(text.indexOf(\"__\")>-1) { var text_array = text.split('__'); $(\"#adpnut_05Vl\").find(\".adContents\").eq(infiniteIndex).find(\".adList\").eq(i).append(\"
AD
광고
\"+text_array[0]+\"
PR \"+text_array[1]+\"
\"); } else { $(\"#adpnut_05Vl\").find(\".adContents\").eq(infiniteIndex).find(\".adList\").eq(i).append(\"
AD
광고
\"+data.creatives[i].txt+\"
\"); } } }, error: function(xhr, status, error) { } }); } };/*매체사페이지 추천기사 추가 입력*/function bestlistinput_05Vl(adL){ $.ajax({ type: \"GET\", async: true, url: \"//api.tend-table.com/common/api/get_best.jsp?domain=\"+url_parse_05Vl[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; var dataL = data.result.data.length; if(data.result.data.length > 5) { /*추천기사가 4개 이상일때 3개까지만 보여지도록*/ dataL = 6; } for(var i=0; i
\"); } datainput_05Vl(true);/*추천기사 있을때*/ } else { datainput_05Vl(false);/*추천기사 없을때*/ } }, error: function(xhr, status, error) { } }); };/*이미지 비율 유지한채로 가운데정렬시키기위한 함수*/function resizeImg_05Vl(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 }); });}$(document).ready(function(){ datainput_05Vl(false); });
")