/* document.oncontextmenu = new Function ('return false'); document.ondragstart = new Function ('return false'); document.onselectstart = new Function ('return false'); document.cookie="Name=Value; httpOnly"; */ //datepicker //$.datepicker.setDefaults({ // dateFormat: 'yy-mm-dd', // prevText: 'ÀÌÀü ´Þ', // nextText: '´ÙÀ½ ´Þ', // monthNames: ['1¿ù', '2¿ù', '3¿ù', '4¿ù', '5¿ù', '6¿ù', '7¿ù', '8¿ù', '9¿ù', '10¿ù', '11¿ù', '12¿ù'], // monthNamesShort: ['1¿ù', '2¿ù', '3¿ù', '4¿ù', '5¿ù', '6¿ù', '7¿ù', '8¿ù', '9¿ù', '10¿ù', '11¿ù', '12¿ù'], // dayNames: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], // dayNamesShort: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], // dayNamesMin: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], // showMonthAfterYear: true, // yearSuffix: '³â', // showOn: 'both', // buttonText:'´Þ·Â' //}); // ´Þ·Â function datepicker() { //¸ðµç datepicker¿¡ ´ëÇÑ °øÅë ¿É¼Ç ¼³Á¤ $.datepicker.setDefaults({ dateFormat: 'yy-mm-dd' //Input Display Format º¯°æ , showOtherMonths: true //ºó °ø°£¿¡ ÇöÀç¿ùÀÇ ¾ÕµÚ¿ùÀÇ ³¯Â¥¸¦ Ç¥½Ã , showMonthAfterYear: true //³âµµ ¸ÕÀú ³ª¿À°í, µÚ¿¡ ¿ù Ç¥½Ã , changeYear: false //ÄÞº¸¹Ú½º¿¡¼­ ³â ¼±Åà °¡´É , changeMonth: false //ÄÞº¸¹Ú½º¿¡¼­ ¿ù ¼±Åà °¡´É , showOn: "both" //button:¹öÆ°À» Ç¥½ÃÇÏ°í,¹öÆ°À» ´­·¯¾ß¸¸ ´Þ·Â Ç¥½Ã ^ both:¹öÆ°À» Ç¥½ÃÇÏ°í,¹öÆ°À» ´©¸£°Å³ª inputÀ» Ŭ¸¯ÇÏ¸é ´Þ·Â Ç¥½Ã , // buttonImage: "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif" //¹öÆ° À̹ÌÁö °æ·Î // , buttonImageOnly: false //±âº» ¹öÆ°ÀÇ È¸»ö ºÎºÐÀ» ¾ø¾Ö°í, À̹ÌÁö¸¸ º¸ÀÌ°Ô ÇÔ , buttonText: false //¹öÆ°¿¡ ¸¶¿ì½º °®´Ù ´òÀ» ¶§ Ç¥½ÃµÇ´Â ÅؽºÆ® , yearSuffix: "³â" //´Þ·ÂÀÇ ³âµµ ºÎºÐ µÚ¿¡ ºÙ´Â ÅؽºÆ® , monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] //´Þ·ÂÀÇ ¿ù ºÎºÐ ÅؽºÆ® , monthNames: ['1¿ù', '2¿ù', '3¿ù', '4¿ù', '5¿ù', '6¿ù', '7¿ù', '8¿ù', '9¿ù', '10¿ù', '11¿ù', '12¿ù' ] //´Þ·ÂÀÇ ¿ù ºÎºÐ Tooltip ÅؽºÆ® , dayNamesMin: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'] //´Þ·ÂÀÇ ¿äÀÏ ºÎºÐ ÅؽºÆ® , dayNames: ['ÀÏ¿äÀÏ', '¿ù¿äÀÏ', 'È­¿äÀÏ', '¼ö¿äÀÏ', '¸ñ¿äÀÏ', '±Ý¿äÀÏ', 'Åä¿äÀÏ'] //´Þ·ÂÀÇ ¿äÀÏ ºÎºÐ Tooltip ÅؽºÆ® // , //minDate: "-1M" //ÃÖ¼Ò ¼±ÅÃÀÏÀÚ(-1D:ÇÏ·çÀü, -1M:ÇÑ´ÞÀü, -1Y:ÀϳâÀü) // , //maxDate: "+1M" //ÃÖ´ë ¼±ÅÃÀÏÀÚ(+1D:ÇÏ·çÈÄ, -1M:ÇÑ´ÞÈÄ, -1Y:ÀϳâÈÄ) }); //inputÀ» datepicker·Î ¼±¾ð $(".datepicker").datepicker(); $(".datepicker2").datepicker(); //FromÀÇ ÃʱⰪÀ» ¿À´Ã ³¯Â¥·Î ¼³Á¤ //$('.datepicker').datepicker('setDate', 'today'); //(-1D:ÇÏ·çÀü, -1M:ÇÑ´ÞÀü, -1Y:ÀϳâÀü), (+1D:ÇÏ·çÈÄ, -1M:ÇÑ´ÞÈÄ, -1Y:ÀϳâÈÄ) //ToÀÇ ÃʱⰪÀ» ³»ÀÏ·Î ¼³Á¤ //$('.datepicker2').datepicker('setDate', '+1D'); //(-1D:ÇÏ·çÀü, -1M:ÇÑ´ÞÀü, -1Y:ÀϳâÀü), (+1D:ÇÏ·çÈÄ, -1M:ÇÑ´ÞÈÄ, -1Y:ÀϳâÈÄ) } $(function(){ //$(".datepicker").datepicker(); datepicker(); //¹ÝÀÀÇü-À̹ÌÁöº¯°æ imgSwipeInit(); }); function resize(){ var doc = document.body; if(doc.offsetHeight == 0){ }else{ pageheight = doc.offsetHeight; parent.document.getElementById("ifrm").height = pageheight + 40 + "px"; //console.log("** doc.offsetHeight="+doc.offsetHeight); //console.log("** doc.offsetWidth="+doc.offsetWidth); //console.log("** ifrm.width="+parent.document.getElementById("ifrm").width); //console.log("** ifrm.height="+parent.document.getElementById("ifrm").height); } //console.log("fund_common:"+doc.offsetHeight); } /** remove xss */ function cfn_removeXss(str){ str = str.replace(/\/g,""); str = str.replace(/\"/g,""); str = str.replace(/\'/g,""); str = str.replace(/\;/g,""); str = str.replace(/\(/g,""); str = str.replace(/\)/g,""); str = str.replace("/",""); str = str.replace(/document/gi,""); str = str.replace(/cookie/gi,""); str = str.replace(/alert/gi,""); str = str.replace(/script/gi,""); return str; } /** ¼Ò¹®ÀÚ º¯È¯ */ function cfn_toLowerCase(str){ if($.trim(str) == null || $.trim(str) == "") return str; str += ""; // null¹æÁö return str.toLowerCase(); } /** È­¸éÀ̵¿ : href */ function cfn_moveDirectUrl(str, target) { // »õâ À̵¿ if (target == '_blank') { window.open('about:blank').location.href = str; } // ÇöÀçâ À̵¿ else { parent.location.href = str; } } /** ±¹¹® ¸ÞÀÎ È­¸éÀ̵¿ : href */ function cfn_moveMainUrl() { cfn_moveDirectUrl("/jsppage/fund/fund_main.jsp"); } /** ¿µ¹® ¸ÞÀÎ È­¸éÀ̵¿ : href */ function cfn_moveEnMainUrl() { cfn_moveDirectUrl("/jsppage/fund/fund_main_e.jsp"); } /** ¸ð¹ÙÀÏÀ¥ ÀüÈ­°É±â * telno - ÀüÈ­¹øÈ£ * mode - A:Àüü, M:only ¸ð¹ÙÀÏÀ¥,¾Û */ function cfn_callTelNo(telno, mode) { var realtime_size = $('html,body').outerWidth(); if ('M' == mode) { if (realtime_size <= 1280) { parent.location.href = "tel:"+telno; } } else { parent.location.href = "tel:"+telno; } } //¹ÝÀÀÇü-À̹ÌÁöº¯°æ $(window).resize(function(){ imgSwipeInit(); }); function imgSwipeInit(){ var w = $(window).width(); //console.log(w); if(w < 1280){ imgSwipe("m"); }else{ imgSwipe(); } } function imgSwipe(type){ $(".resize-swipe").each(function(){ $this = $(this); var url = $(this).attr("src"); if(type=="m"){ $this.attr("src", $this.attr("data-url")); }else{ $this.attr("src", $this.attr("src").replace("_m.",".")); } }); }