1/*--------------------------------------------------------------------------------------------- 2 JAVASCRIPT CODE 3 --------------------------------------------------------------------------------------------- 4 function name | description | use process 5 --------------------------------------------------------------------------------------------- 6 setCookie(ì¿ í¤ëª , ê°, ì í¨ê¸°ê°(ì¼)) | | ì¿ í¤ìì± 7 getCookie(ì¿ í¤ëª ) | | ì¿ í¤ê°ì ¸ì¤ê¸° 8 ---------------------------------------------------------------------------------------------*/ 9 10// ì¿ í¤ ìì± 11function setCookie(cName, cValue, cDay, cDomain){ 12 var expire = new Date(); 13 expire.setDate(expire.getDate() + cDay); 14 cookies = cName + '=' + escape(cValue) + '; path=/ '; // íê¸ ê¹¨ì§ì ë§ê¸°ìí´ escape(cValue)를 í©ëë¤. 15 if(typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';'; 16 document.cookie = cookies; 17 if (cDomain) { 18 document.cookie += "domain=" + cDomain + ";"; 19 } 20} 21 22// ì¿ í¤ ê°ì ¸ì¤ê¸° 23function getCookie(cName) { 24 cName = cName + '='; 25 var cookieData = document.cookie; 26 var start = cookieData.indexOf(cName); 27 var cValue = ''; 28 if(start != -1){ 29 start += cName.length; 30 var end = cookieData.indexOf(';', start); 31 if(end == -1)end = cookieData.length; 32 cValue = cookieData.substring(start, end); 33 } 34 return unescape(cValue); 35} 36 37// ì¿ í¤ ì§ì 38function delCookie(cName) { 39 var today = new Date(); 40 41 today.setTime(today.getTime() - 1); 42 var value = getCookie(cName); 43 if(value != "") 44 document.cookie = cName + "=" + value + "; path=/; expires=" + today.toGMTString(); 45} 46 47 48/*--------------------------------------------------------------------------------------------- 49 JAVASCRIPT CODE 50 --------------------------------------------------------------------------------------------- 51 function name | description | use process 52 --------------------------------------------------------------------------------------------- 53 checkMsgLength() | ì ë ¥ë 문ìì´ ê¸¸ì´ ê²ì¬ | ê¸°ì¬ ëê¸ 54 calculateMsgLength() | 문ìì´ ê¸¸ì´ ë°í | ê¸°ì¬ ëê¸ 55 assertMsgLength() | 문ìì´ ê¸¸ì´ë§í¼ ìë¼ ë³í | ê¸°ì¬ ëê¸ 56 ---------------------------------------------------------------------------------------------*/ 57 58// 문ìì´ê¸¸ì´ ê²ì¬ 59function checkMsgLength(frm, id, lenStr) { 60 var length = calculateMsgLength(document.getElementById(frm).value); 61 document.getElementById(id).innerHTML = length; 62 if (length > lenStr) { 63 alert("ìµë "+lenStr+" ë°ì´í¸ê¹ì§ ë¨ê¸°ì¤ ì ììµëë¤.\r\nì´ê³¼ë " + (length - lenStr) + "ë°ì´í¸ë ìëì¼ë¡ ìì ë©ëë¤."); 64 document.getElementById(frm).value = assertMsgLength(document.getElementById(frm).value, lenStr, id); 65 } 66} 67 68//문ìì´ê¸¸ì´ ë°í 69function calculateMsgLength(message) { 70 var nbytes = 0; 71 72 for (i=0; i<message.length; i++) { 73 var ch = message.charAt(i); 74 75 if (escape(ch).length > 4) { 76 nbytes += 2; 77 } else if (ch != "\r") { 78 nbytes++; 79 } 80 } 81 82 return nbytes; 83} 84 85//문ìì´ ê¸¸ì´ë§í¼ ìë¼ ë³í 86function assertMsgLength(message, maximum, id) { 87 var inc = 0; 88 var nbytes = 0; 89 var msg = ""; 90 var msglen = message.length; 91 92 for (i=0; i<msglen; i++) { 93 var ch = message.charAt(i); 94 95 if (escape(ch).length > 4) { 96 inc = 2; 97 } else if (ch != "\r") { 98 inc = 1; 99 } 100 101 if ((nbytes + inc) > maximum) { 102 break; 103 } 104 105 nbytes += inc; 106 msg += ch; 107 } 108 109 document.getElementById(id).innerHTML = nbytes; 110 return msg; 111} 112 113/*--------------------------------------------------------------------------------------------- 114 JAVASCRIPT CODE 115 --------------------------------------------------------------------------------------------- 116 function name | description | use process 117 --------------------------------------------------------------------------------------------- 118 articleHeader() | 기ì¬ë·° í¤ë ë¤ë¹ | 기ì¬ë·° í¤ë ë¤ë¹ 119 ---------------------------------------------------------------------------------------------*/ 120 121var articleHeader = { 122 123 // í¤ë ë¤ë¹ê²ì´ì ìì± 124 setScroll:function(){ 125 jQuery(window).scroll(function() { 126 if (jQuery(this).scrollTop() > 300) { 127 jQuery('#article-header-title').slideDown(300); 128 } else { 129 jQuery('#article-header-title').slideUp(300); 130 } 131 }); 132 }, 133 134 135 // 기ì¬ì´ë 136 move:function(mod, order_type, order_value, section_code, sub_section_code, serial_code){ 137 jQuery.post( "ajaxGetForwardIdxno.php", { mod: mod, order_type:order_type, order_value: order_value, section_code: section_code, sub_section_code: sub_section_code, serial_code: serial_code }, function( f_idxno ) { 138 139 if(f_idxno){ 140 location.href = '/news/articleView.html?idxno='+f_idxno 141 }else{ 142 alert('기ì¬ê° ì¡´ì¬íì§ ììµëë¤'); 143 } 144 145 }); 146 } 147 148} 149 150 151/*--------------------------------------------------------------------------------------------- 152 JAVASCRIPT CODE 153 --------------------------------------------------------------------------------------------- 154 function name | description | use process 155 --------------------------------------------------------------------------------------------- 156 articlePrint(idxno) | ì¸ìì°½ ì¤í | ì¸ìì°½ ì¤í 157 articleMail(idxno) | ë©ì¼ë³´ë´ê¸°ì°½ ì¤í | ë©ì¼ë³´ë´ê¸°ì°½ ì¤í 158 articleErr(idxno) | ì¤ë¥ì ê³ ì°½ ì¤í | ì¤ë¥ì ê³ ì°½ ì¤í 159 articleSingo(idxno) | ëê¸ì ê³ ì°½ ì¤í | ëê¸ì ê³ ì°½ ì¤í 160 ---------------------------------------------------------------------------------------------*/ 161 162// ì¸ìì°½ ì¤í 163function articlePrint( idxno ) { 164 window.open('/news/articlePrint.html?idxno='+idxno, 'articlePrint', 'width=660,height=500,scrollbars=yes'); 165} 166 167// ë©ì¼ë³´ë´ê¸°ì°½ ì¤í 168function articleMail( idxno ) { 169 window.open('/news/articleMail.html?idxno='+idxno, 'articleMail', 'width=660,height=500,scrollbars=yes'); 170} 171 172// ì¤ë¥ì ê³ ì°½ ì¤í 173function articleErr( idxno ) { 174 window.open('/news/articleErr.html?idxno='+idxno, 'articleErr', 'width=660,height=500,scrollbars=yes'); 175} 176 177// ëê¸ì ê³ ì°½ ì¤í 178function articleSingo( idxno ) { 179 window.open('/news/articleSingo.html?idxno='+idxno, 'articleSingo', 'width=660,height=500,scrollbars=yes'); 180}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.