EPOSTJS.util.addSelectOption(obj); Notes: - ÆÄ¶ó¹ÌÅÍ´Â objÇü½ÄÀ¸·Î ³Ö¾îÁØ´Ù. - ÇÊ¿ä ¿©ºÎ¿¡ µû¶ó ÃʱⰪÀ» ³Ö¾îÁØ´Ù. */ function addSelectOption($this, obj, selectValue){ $('._sel_option', $this).remove(); if(obj != undefined && obj != '') { $.each(obj, function(index, optionData){ var option = new Option(optionData.dtlsCdnm, optionData.value); $(option).attr('class', '_sel_option'); $this.append(option); }); if(selectValue != undefined && selectValue != ''){ //$this.val(selectValue).refreshElement(); } } }; function setPopTitle() { var title = $("h3").text(); //var popTitle = $("li[class=depth1]").text(); var tabTitle = ""; var tabTitle2 = ""; //var popTitle = $(".tab01.tabtit").text(); if($('.appcenter').length > 0){ tabTitle = $('.on_app').text(); } // if($('#tab01').length > 0){ // tabTitle = $('#tabit01').text(); // }else if($('#tab02').length > 0){ // tabTitle = $('#tabit02').text(); //} // if($('.tab02').length > 0){ // tabTitle2 = $('on3').text(); //} title +=$('.titleNM').text(); title += ((tabTitle != "") ? (" > " + tabTitle) : "" ); if($('.tab01').length > 0){ tabTitle2 = $(".on").text(); }else if($('.tab02').length > 0){ tabTitle2 = $(".on").text(); }else{ tabTitle2 = $('.on3').text(); } if($('.listtit').length > 0){ tabTitle2 = $(".listtit > .on").text(); } title += ((tabTitle2 != "") ? (" > " + tabTitle2 ) : "" ); if($('#titid').length > 0){ title += " - " + $('#titid').text(); } if( $(".faqtit").length > 0){ //alert($(".faqtit").find('.on3').text()); title += " - " + $(".faqtit").find('.on3').text(); if($("#FaqTitOn4Id").length > 0){ title += " - " + $("#FaqTitOn4Id").text(); //title += " - " + $(".faqTitOn4").find('#FaqTitOn4Id').text(); } } title += " | ¿ìü±¹¿¹±Ýº¸Çè"; document.title = title; } //Nethru_getDomain(); Kakao.init('23fa704f41369d17d5f04002bd074e7e'); /**///javascript key Value ¿î¿µºÐ¹è½Ã ÁÖ¼®»èÁ¦ function sendLink(value, selname) { if(value == "") { alert("¼±ÅÃÇϽŠīī¿ÀÅ帵ũ°¡ ¾ø½À´Ï´Ù."); return false; } var SelTitle = selname; var Value = value; var thisUrl2 = "http://m.epostbank.kr" + Value; Kakao.Link.sendDefault({ objectType: 'feed', content: { title: "[º¸Çè¾à°ü]"+SelTitle, imageUrl: thisUrl2, link: { mobileWebUrl: thisUrl2, } }, buttons: [ { title: "[º¸Çè¾à°ü] ´Ù¿î·Îµå" , link: { mobileWebUrl: thisUrl2, } } ] }); /* Kakao.Link.sendTalkLink({ label : "[º¸Çè¾à°ü]"+SelTitle , webLink : { //text : "[º¸Çè¾à°ü]"+SelTitle +" ´Ù¿î·Îµå" , text : "[º¸Çè¾à°ü] ´Ù¿î·Îµå" , url : thisUrl2 } }); */ } $(document).ready(function() { var prevUrl = document.referrer; // if(prevUrl.split("/")[3] == "") { // Ȩ¹öư // $(".btn-prev").attr("class","btn-home"); // } $(".btn-home").click(function() { location.href = "/"; return false; }); // »ó´Ü ¹Ù À̵¿ $(".btn-prev").click(function() { history.go(-1); return false; }); // ÅÇŸÀÌÆ² $(".tabtit").click(function() { setPopTitle(); }); //¸Þ´º¿µ¿ªÁ¦¾î $(".btnallmenu").click(function() { if($('nav').attr('class') == 'open'){ $('.containerwrap').css('margin', '0 0 0'); $('#container').css('padding','0 0 0'); }else{ $('.containerwrap').css('margin', '-44px 0 -50px'); $('#container').css('padding','44px 0 50px'); } }); /** $(".btn-prev,.btn-next").click(function() { var title = $("h3").text(); var targetIndex = 0; var menuList = $(".menu > ul > li[class=depth1] > a"); var menuCnt = menuList.length; menuList.each(function(index) { if($(this).text() == title) { targetIndex = index; } }); var prevIndex = targetIndex - 1; if(prevIndex < 0) prevIndex = menuCnt-1; var nextIndex = targetIndex + 1; if(nextIndex > (menuCnt-1)) nextIndex = 0; if($(this).attr("class") == "btn-prev") { // ÀÌÀü location.href = $(".menu > ul > li[class=depth1] > a").eq(prevIndex).attr("href"); } else { // ´ÙÀ½ location.href = $(".menu > ul > li[class=depth1] > a").eq(nextIndex).attr("href"); } }); */ // »óǰ»ó¼¼ ÆäÀÌÁö SNS ¸µÅ© $(".ico-twitter,.ico-facebook,.ico-metoday").click(function() { $(this).attr("target","_blank"); var clickedClass = $(this).attr("class"); var linkAddr = ""; var thisUrl = location.href; var title = encodeURIComponent(window.document.title); if(clickedClass == "ico-twitter") { // Æ®À§ÅÍ linkAddr = "http://twitter.com/share?text="+title+"&url="+thisUrl; } else if(clickedClass == "ico-facebook") { // ÆäÀ̽ººÏ linkAddr = "http://www.facebook.com/sharer.php?u="+thisUrl; } else { // ¹ÌÅõµ¥ÀÌ linkAddr = "http://me2day.net/posts/new?new_post[body]="+title+"&new_post[tags]="+thisUrl; } $(this).attr("href",linkAddr); }); // »óǰ»ó¼¼ ÆäÀÌÁö SNS ¸µÅ© $(".logo1").click(function() { if(isIPhone()) { window.open('https://itunes.apple.com/app/adobe-reader/id469337564?mt=8',"_blank"); } else { window.open('https://play.google.com/store/apps/details?id=com.adobe.reader',"_blank"); } }); if($(".downapp").length > 0) { // ¾ÆÀÌÆùÀÌ³Ä ¾Èµå·ÎÀ̵å³Ä ¶Ç´Â µÑ´Ù ¾Æ´Ï³Ä.. if(isIPhone()) { $(".downapp > li").eq(0).hide(); $(".downapp > li").eq(1).show(); } else if(isAndroid()) { $(".downapp > li").eq(0).show(); $(".downapp > li").eq(1).hide(); } else { $(".downapp > li").eq(0).show(); $(".downapp > li").eq(1).show(); } } });