1(function () { 2 var token = $("meta[name='_csrf']").attr("content"); 3 var header = $("meta[name='_csrf_header']").attr("content"); 4 var param = $("meta[name='_csrf_parameter']").attr("content"); 5 6 if (token && header) { 7 $(document).ajaxSend(function (e, xhr, options) { 8 xhr.setRequestHeader(header, token); 9 }); 10 } 11 12 if (token && param) { 13 $(document).ready(function () { 14 $('form').each(function () { 15 if ($(this).find('input[name="' + param + '"]').length === 0) { 16 $(this).append('<input type="hidden" name="' + param + '" value="' + token + '"/>'); 17 } 18 }); 19 }); 20 } 21})(); 22 23function goSite(obj, frm) { 24 frm.action = obj.value; 25 frm.submit(); 26} 27 28// ê²ì ìì§ 29function searchEngine() { 30 var speachText = document.getElementById("qt"); 31 if (speachText.value == '') { 32 alert("ê²ìì´ë¥¼ ì ë ¥í´ ì£¼ì¸ì."); 33 speachTex.focus(); 34 return false; 35 } 36 37 return true; 38} 39 40 41// layout íì 컨í¸ë¡¤ 42function LayoutShow(showpop) { 43 var objDiv = document.getElementById(showpop); 44 45 if (objDiv.style.display == "block") { 46 objDiv.style.display = "none"; 47 } else { 48 objDiv.style.display = "block"; 49 } 50} 51 52function footerShow(showpop) { 53 jQuery("#footer_link_box").children().each(function () { 54 if (jQuery(this).children().filter("div").first().attr("id") == showpop) { 55 if (jQuery(this).children().filter("div").first().css("display") == "none") { 56 jQuery(this).children().filter("div").first().show(); 57 } else { 58 jQuery(this).children().filter("div").first().hide(); 59 } 60 } else { 61 jQuery(this).children().filter("div").first().hide(); 62 } 63 }); 64} 65 66function goPopup(url, w, h, l, t, ScrollbarsYn, name) { 67 if (ScrollbarsYn == 'Y') { 68 ScrollbarsYn = "yes"; 69 } else { 70 ScrollbarsYn = "no"; 71 } 72 var x = (screen.availWidth - w) / 2; 73 var y = (screen.availHeight - h) / 2; 74 window.open(url, name, 'width=' + w + ', height=' + h + ', left=' + x + ', top=' + y + ', location=no ,scrollbars=' + ScrollbarsYn); 75} 76 77 78function goPopup2(url, w, h, l, t, ScrollbarsYn, resizable, name) { 79 if (ScrollbarsYn == 'Y') { 80 ScrollbarsYn = "yes"; 81 } else { 82 ScrollbarsYn = "no"; 83 } 84 var x = (screen.availWidth - w) / 2; 85 var y = (screen.availHeight - h) / 2; 86 window.open(url, name, 'width=' + w + ', height=' + h + ', left=' + x + ', top=' + y + ', resizable=' + resizable + ', location=no ,scrollbars=' + ScrollbarsYn); 87} 88 89// í¬í ë©ì¸ ìê³ íì 90var dayNames = new Array("(ì¼)", "(ì)", "(í)", "(ì)", "(목)", "(ê¸)", "(í )"); 91function clock(dobj, tobj) { 92 dt = new Date(); 93 // ìê°ê³¼ ê´ë ¨ë ì 보를 ì ì¥íë¤. 94 hours = dt.getHours(); 95 minutes = dt.getMinutes(); 96 seconds = dt.getSeconds(); 97 timeStr = hours; 98 timeStr += ((minutes < 10) ? ":0" : ":") + minutes; 99 timeStr += ((seconds < 10) ? ":0" : ":") + seconds; 100 // í¼ì ìê°ì íìíë ì ë ¥ëì 문ìì´ì ì¶ë ¥íë¤. 101 jQuery("#" + tobj).text(timeStr); 102 // ì¼ìì ê´ë ¨ë ì 보를 ì ì¥íë¤. 103 months = dt.getMonth() + 1; 104 days = dt.getDate(); 105 years = dt.getFullYear(); 106 dateStr = years + "ë "; 107 dateStr += ((months < 10) ? "0" : "") + months + "ì "; 108 dateStr += ((days < 10) ? "0" : "") + days + "ì¼" + dayNames[dt.getDay()]; 109 110 // í¼ì ì¼ì를 íìíë ì ë ¥ëì 문ìì´ì ì¶ë ¥íë¤. 111 jQuery("#" + dobj).text(dateStr); 112 // 1ì´ë§ë¤ ì¼ìì ìê°ì ê°±ì íë¤. 113 Timer = setTimeout("clock('" + dobj + "','" + tobj + "')", 1000); 114} 115 116function goFileOld(file, path) { 117 //window.open(yh.contextPath + '/common/file_down.jsp?path=/portal/download' + path + "/&filename=" + file); 118 window.open(yh.contextPath + '/download' + path + "/" + encodeURIComponent(file)); 119 //encodeURI(file) 120} 121 122function goFile(file, path) { 123 //window.open(yh.contextPath + '/common/file_down.jsp?path=/portal/download' + path + "/&filename=" + file); 124 window.open(yh.contextPath + '/FileDown_direct.do?path=' + path + "&file=" + encodeURIComponent(file)); 125 encodeURI(file) 126} 127 128//ì¬ì´í¸ë³íì ì°½ ì¿ í¤ê° get ì¤í¬ë¦½í¸ 129function getCookie(name) { 130 var nameOfCookie = name + "="; 131 var x = 0; 132 while (x <= document.cookie.length) { 133 var y = (x + nameOfCookie.length); 134 if (document.cookie.substring(x, y) == nameOfCookie) { 135 if ((endOfCookie = document.cookie.indexOf(";", y)) == -1) 136 endOfCookie = document.cookie.length; 137 return unescape(document.cookie.substring(y, endOfCookie)); 138 } 139 x = document.cookie.indexOf(" ", x) + 1; 140 if (x == 0) 141 break; 142 } 143 return ""; 144} 145 146function openWindow(url, lecName) { 147 window.open(url, lecName, "width=800,height=600,resizable=yes,menubar=no,scrollbars=yes"); 148} 149 150function openWindow2(url, lecName) { 151 window.open(url, lecName, "width=1014,height=650,resizable=yes,menubar=no,scrollbars=yes"); 152} 153 154/** 155 * ì¤ì§ ì«ìë§ ì ë ¥ì´ ê°ë¥í¨. 156 * @param loc 157 * @return 158 */ 159function onlyNumber2(loc) { 160 if (/[^0123456789]/g.test(loc.value)) { 161 alert("ì«ì ì´ì¸ì 문ìë ì ë ¥í ì ììµëë¤."); 162 loc.value = ""; 163 loc.focus(); 164 } 165} 166 167// scrollTop ë²í¼ 168$(window).scroll(function () { 169 if ($(this).scrollTop() > 200) { 170 $('.btn_scroll_top').fadeIn(); 171 } else { 172 $('.btn_scroll_top').fadeOut(); 173 } 174}); 175 176$('.btn_scroll_top').click(function () { 177 $('html, body').animate({ scrollTop: 0 }, 400); 178 return false; 179});
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.