/* ! 33 _(¾ð´õ¹Ù) 95 -(µ¥½¬ 45 ~ 126 + 43 : 58 . 46 @ 64 || event.keyCode==126 || event.keyCode==64 || event.keyCode==33 */ function keyCheck() { if ((escape(event.keyCode) >= 48 && escape(event.keyCode) <= 57) //¼ýÀÚÅ° || (event.keyCode > 64 && event.keyCode <= 90) //¿µ¾î ¼Ò¹®ÀÚ || (event.keyCode >= 97 && event.keyCode <= 122) //¿µ¾î ¼Ò¹®ÀÚ || (event.keyCode >= 129) //ÇÑ±Û || event.keyCode==8 || event.keyCode==9 || event.keyCode==32 || event.keyCode==46 || event.keyCode==95 || event.keyCode==45 || event.keyCode==43 || event.keyCode==58 || event.keyCode==126 || event.keyCode==64 || event.keyCode==33) { return true; } else if(event.keyCode==13){ // document.search_select_form.submit(); } else{event.returnValue = false;} } function keyCheckblur(thisone) { thisone.value = thisone.value.replace("'",""); } function getCookie( name ) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ) { if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } function bonClick() { //$J('#t').val(""); //º»µð½ºÅ©È¸¿ø¶§¹®¿¡ //$J("#t").css('background-image', 'none'); //$J("#t").css("color","black"); //$J('#t').css("font-size", '12px'); } $J(function(){ $J("#t").on({ click: function() { bonClick(); $J(this).css('background-image', 'none'); keyCheck(); }, focusin: function() { $J(this).css('background-image', 'none'); keyCheck(); }, keypress: function() { $J(this).css('background-image', 'none'); keyCheck(); }, keydown: function() { $J(this).css('background-image', 'none'); //keyCheck(); }, keyup: function() { $J(this).css('background-image', 'none'); keyCheck(); }, mouseenter: function() { $J(this).css('background-image', 'none'); keyCheck(); }, mouseleave: function() { if($J("#t").val()==""){ $J("#t").not(":focus").css('background','url(/images/images_re/common/bg_schinpu.gif) no-repeat 5px 6px'); } }, blur: function() { if($J("#t").val()==""){ if (getCookie('domain') == "bondisk.com") { } else { $J("#t").not(":focus").css('background','url(/images/images_re/common/bg_schinpu.gif) no-repeat 5px 6px'); } }else{ keyCheckblur(this); } }, focusout: function() { if($J("#t").val()==""){ $J("#t").not(":focus").css('background','url(/images/images_re/common/bg_schinpu.gif) no-repeat 5px 6px'); }else{ keyCheckblur(this); } } }); $J('.filesh>ul>li>a').mouseover(function() { $J('.filesh>ul>li').removeClass('on'); $J(this).closest('li').addClass('on'); }); //³×ºñ:ÀüüīÅ×°í¸® idsplay $J(".allmnBtn").click(function(){ if($J('#allbox').css('display')=='block'){ $J('.filesh>ul>li').removeClass('on'); $J(this).removeClass('open'); }else{ $J(this).addClass('open'); $J('#allbox').show(); bodyEventSet("allbox",event,"") } }); $J('#joinclub').focus(function(){ if ($J('#allbox').css('display') != 'none') { $J('#joinclub').removeClass('open'); $J('.allmnBtn>img').attr('src','/images/images_re/common/mtop_mn_all.gif'); $J('#allbox').hide(); } }); $J('.filesh a').focus(function(){ if($J('#allbox').css('display')!='none'){ $J('.allmnBtn>img').attr('src','/images/images_re/common/mtop_mn_all.gif'); $J('#allbox').hide(); } }); $J(".club").click(function(){ if(getCookie("uid")){ if(listload == 0) { $J('#joinclub').addClass('open'); setTimeout(function() {myListLoad1('club', $J('.lst.myJoiner')); }, 1); }else{ if($J('.lst').css('display')!='block'){ $J('#joinclub').addClass('open'); bodyEventSet("clublist",event,"") } else { $J('#joinclub').removeClass('open'); } $J(".lst").slideToggle('fast'); } }else{ //alert("·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù"); location.href = "https://member.pdpop.com/login/index_re.html"; return; } }); }); //document.write(""); //document.write(""); //document.write(""); //document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); //document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write("
"); document.write("
"); document.write("

ÇǵðÆË »ç¿ëÇϱâ.

"); document.write(" "); document.write(" "); document.write(" "); document.write("
"); document.write("
"); document.write(""); document.write("
"); document.write(" "); document.write("
"); document.write(" "); document.write(" "); document.write(" "); document.write("
"); document.write(" "); document.write(" "); document.write(" "); var listload = 0; function myListLoad1(target, obj){ if (document.location.href.indexOf("https") != '-1') { var url = "//www.pdpop.com/login/load_club.php"; }else { var url = "//www.pdpop.com/login/load_club.php"; } var target_name = "Ŭ·´"; var make_url = "https://jjanghard.pdpop.com/club/make_re.php"; if(!getCookie("uid")) return; var ancestor=$J("#joinclub"); var mdivPLayer=document.createElement("div"); $J.getJSON(url+'?callback=?','uid='+getCookie("uid"), function(jdata){ var mHtml=''; var jc=0; mHtml +="

°¡ÀÔÇÑ Å¬·´¸®½ºÆ®

" if(jdata.length == 0){ mHtml +="ÇǵðÆËŬ·´¸¸µé±â ÇǵðÆË Å¬·´¸¸µé±â" }else{ mHtml +="
    "; for(i in jdata){ if(target == "club" && jdata[i]!=""){ if(jdata[i].length>13){ jdata[i]=jdata[i].substring(0,10)+"..."; } mHtml+="
  • - "+jdata[i]+"
"; jc++; }else{ return; } } mHtml +=""; } $J(mdivPLayer).css("display","none").attr({"id":"clublist","class":"lst"}).insertAfter(ancestor); $J(mdivPLayer).html(mHtml); $J(mdivPLayer).slideToggle('fast') } ); listload++; } //°¡ÀÔ Å¬·´ ·Îµù function myListLoad(target, obj) { if(getCookie("uid")){ if(listload == 0) { //var scriptLink = document.createElement("script"); //scriptLink.language = "javascript"; //scriptLink.src = "/images/script/jquery-1.7.1.min.js"; //scriptLink.type = 'text/javascript'; //scriptLink.async = true; //document.body.appendChild(scriptLink); setTimeout(function() {myListLoad1(target, obj); }, 1); }else{ //myListLoad1(target, obj); /* *Ŭ¸¯°ú Áߺ¹À¸·Î ÁÖ¼®Ã³¸® if($J(".myJoiner").css('display') == 'block'){ $J(".myJoiner").hide(); return; }else{ $J(".myJoiner").slideToggle('fast'); } */ } return; }else{ alert("·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù"); return; } } function getParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } $J(function() { szSearch_differ = getParameterByName('szSearch'); szSword = getParameterByName('szSearchWord'); if (szSearch_differ == "content_id" ) { }else { if(szSword!="" && szSword!="fujrtu"){ $J("#t").val(szSword); $J("#t").css("background-image", "none"); $J("#szSearch").val(szSearch_differ); } } }); //--- °Ë»ö¾î°ü·Ã script window.addEventListener('pageshow', function () { callRecommentSearchWord(); // Ãßõ°Ë»ö¾î ajax LOAD setTimeout(callSearchWordHistory, 500); // ³»°Ë»ö¾î ajax LOAD //--- ·¹À̾î open var searchInput = document.getElementById('t'); searchInput.addEventListener('click', function() { document.getElementById('suggest_layer').style.display = 'block'; }); //-- ´Ý±â¹öÆ° ·¹À̾î close var searchLayoutCloseBtn = document.getElementById('searchLayoutCloseBtn'); searchLayoutCloseBtn.addEventListener('click', searchLayerClose); //-- ¿ÜºÎ Ŭ¸¯ ½Ã ·¹À̾î close var suggest_layer = document.getElementById('suggest_layer'); document.addEventListener('click', function(e) { if (suggest_layer.style.display == 'block' && !suggest_layer.contains(e.target) && !searchInput.contains(e.target)) { suggest_layer.style.display = 'none'; } }); var dropdown = document.getElementsByClassName('dropdown'); for (var i = 0; i < dropdown.length; i++) dropdown[i].addEventListener('click',searchLayerClose); //dropdown.forEach((selboxObj) => selboxObj.addEventListener('click', searchLayerClose)); //--- ÅǼ±Åà var suggestTab = document.querySelectorAll('.tab_suggest > ul > li'); for (var index = 0; index < suggestTab.length; index++) tabClick(index); function tabClick(index) { suggestTab[index].addEventListener("click", function() { tabSelect(index); }); } // ÅÇ ÃʱâÈ­ if (getCookie('uid')) { tabSelect(0); } else { tabSelect(1); } }); function tabSelect(index) { var suggestTab = document.querySelectorAll('.tab_suggest > ul > li'); for (var tabIdx = 0; tabIdx < suggestTab.length; tabIdx++) { suggestTab[tabIdx].classList.remove('on'); } suggestTab[index].classList.add('on'); var contents = document.querySelectorAll('.list_suggest'); for (var contentIdx = 0; contentIdx < contents.length; contentIdx++) { contents[contentIdx].style.display = 'none'; } contents[index].style.display = ''; var clearSearchWordBtn = document.getElementById('clearSearchWordBtn'); var recent_keyword = document.getElementById('recent_keyword'); if (index == 1) { clearSearchWordBtn.style.display = 'none'; recent_keyword.style.display = 'none'; } else { clearSearchWordBtn.style.display = 'block'; recent_keyword.style.display = 'block'; } } //--- °Ë»ö¾î ·¹ÀÌ¾î ´Ý±â function searchLayerClose() { var searchLayer = document.getElementById('suggest_layer'); if (searchLayer.style.display != 'none') searchLayer.style.display = 'none'; } function showEmptySearchWordText() { if (!getCookie('uid')) return; if (getCookie('searchWordHistoryOff') == 1) return; if (getCookie('searchWordHistory')) return; document.getElementById('emptySearchWordText').style.display = 'block'; document.getElementById('searchWordHistoryUl').style.display = 'none'; return; } // Ãßõ°Ë»ö¾î ³»°Ë»ö¾î cookie load function callSearchWordHistory() { if (!getCookie('uid')) return; // ºñ·Î±×Àνà ǥ½ÃµÇÁö¾ÊÀ½ var resultData = getCookie('searchWordHistory'); if (!resultData) { showEmptySearchWordText(); return; } resultData = decodeURI(resultData).split('|'); if (!resultData[0]) return; var searchWordHistoryUl = document.getElementById('searchWordHistoryUl'); searchWordHistoryUl.innerHTML = ''; for (var index = 0; index < resultData.length; index++) searchWordHistoryUl.insertAdjacentHTML('beforeend', searchHistoryTemplate(resultData[index])); //resultData.forEach(function(searchWord){searchWordHistoryUl.insertAdjacentHTML('beforeend', searchHistoryTemplate(searchWord))}); // ¸®½ºÆ® ÀÛ¼º } // Ãßõ°Ë»ö¾î ajax call function callRecommentSearchWord() { jQuery.getJSON("//bbs.pdpop.com/board_re.php?callback=?&mode=getRecommentSearchWord", function(resultData) { if (!resultData) return; var recommendSearchWordUl = document.getElementById('recommendSearchWord'); recommendSearchWordUl.innerHTML = ''; for (var index = 0; index < resultData.length; index++) recommendSearchWordUl.insertAdjacentHTML('beforeend', recommendTemplate(resultData[index])); //resultData.forEach(function(row){recommendSearchWordUl.insertAdjacentHTML('beforeend', recommendTemplate(row))}); // ¸®½ºÆ® ÀÛ¼º }); } // Ãßõ°Ë»ö¾î li »ý¼º Template function recommendTemplate(row) { var searchUrl = "//bbs.pdpop.com/search_re.php?mode=list&szSearch=content_id&szSearchWord=" + row.content_id; var listRow = ''; listRow += "
  • "; listRow += " " + row.search_word + ""; if (row.saleIcon) { listRow += " ÇÒÀÎ"; } listRow += " "; listRow += "
  • "; return listRow; } // ³»°Ë»ö¾î li »ý¼º Template var searchHistoryNum = 0; function searchHistoryTemplate(searchWord) { var searchUrl = "//bbs.pdpop.com/search_re.php?mode=list&code=&szSearch=bbs_subject&szSearchWord=" + encodeURIComponent(searchWord)+ "&hash=" + Math.random(); var listRow = ''; listRow += "
  • "; listRow += " " + searchWord + ""; listRow += " "; listRow += "
  • "; searchHistoryNum++; return listRow; } // °Ë»ö±â·Ï »èÁ¦ function deleteSearchWord(searchHistoryNum) { document.getElementById("searchWordLi-" + searchHistoryNum).style.display = 'none'; var selectObj = document.getElementById("searchWord-" + searchHistoryNum); var searchWordHistoryArray = decodeURI(getCookie('searchWordHistory')).split('|'); var deleteWord = selectObj.innerText; var newSearchWord = searchWordHistoryArray.filter(function (item, index, array) { return deleteWord != item; }); notice_setCookie('searchWordHistory', encodeURI(newSearchWord.join('|')), 30); // ¿ä¼Ò »èÁ¦ ÈÄ ´Ù½Ã ÄíÅ° ¼ÂÆà if (!newSearchWord.join('|')) showEmptySearchWordText(); return; } // °Ë»ö±â·Ï Àüü»èÁ¦ function clearSearchWord() { notice_setCookie('searchWordHistory', '', 30); var searchWordHistoryUl = document.getElementById('searchWordHistoryUl'); searchWordHistoryUl.innerHTML = ''; // Àڽijëµå Àüü Áö¿ò showEmptySearchWordText(); } // °Ë»ö ÀÚµ¿ÀúÀå ½ºÀ§Ä¡ µ¿ÀÛ¿¡ µû¸¥ proc function setSearchWordHistorySwitch(switchNode) { var noneLoginSearchWordText = document.getElementById('noneLoginSearchWordText'); var searchWordHistoryOffText = document.getElementById('searchWordHistoryOffText'); var searchWordHistorySwitchText = document.getElementById('searchWordHistorySwitchText'); var searchWordHistoryUl = document.getElementById('searchWordHistoryUl'); var noticeText = document.querySelectorAll('.kwd_info'); for (var index=0; index < noticeText.length; index++) noticeText[index].style.display = 'none'; if (!getCookie('uid')) { noneLoginSearchWordText.style.display = ''; } if (switchNode.checked) { notice_setCookie('searchWordHistoryOff', 0, 30); if (getCookie('uid')) { searchWordHistoryUl.style.display = ''; } searchWordHistorySwitchText.innerText = '°Ë»ö ÀÚµ¿ÀúÀå ²ô±â'; } else { notice_setCookie('searchWordHistoryOff', 1, 30); if (getCookie('uid')) { searchWordHistoryOffText.style.display = ''; searchWordHistoryUl.style.display = 'none'; } searchWordHistorySwitchText.innerText = '°Ë»ö ÀÚµ¿ÀúÀå Äѱâ'; } showEmptySearchWordText(); return; } // °Ë»ö¾î°ü·Ã script end //document.write("
    "); //document.write(""); //document.write(""); //document.write(""); //document.write(""); function redirectMobile() { if (navigator.userAgent.match(/iPad/) == null && navigator.userAgent.match(/iPhone|Mobile|UP.Browser|Android|BlackBerry|Windows CE|Nokia|webOS|Opera Mini|SonyEricsson|opera mobi|Windows Phone|IEMobile|POLARIS/) != null) { var key = 'todo'; key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regex = new RegExp("[\\?&]"+key+"=([^&#]*)"); var qs = regex.exec(window.location.href); if (!qs || qs[1] != 'pc') { location.replace("https://m.pdpop.com/_renew"); } } } //¸ð¹ÙÀÏ Á¢¼ÓÀÏ °æ¿ì ¸ð¹ÙÀÏ ÆäÀÌÁö·Î À̵¿ //redirectMobile();