1/* Document Ready Event 2=============================================*/ 3$(function(){ 4 5 var pathNm = location.pathname; 6 7 switch (pathNm){ 8 9 // MEMBERSHIP 10 case '/memberShip/join_list.php' : 11 case '/memberShip/join_view.php' : 12 pathNm = "/memberShip/join_list.php"; 13 $(".lnb .menu_list li:eq(0)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 14 break; 15 case '/memberShip/secession_list.php' : 16 case '/memberShip/secession_view.php' : 17 pathNm = "/memberShip/secession_list.php"; 18 $(".lnb .menu_list li:eq(0)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 19 break; 20 21 // PRODUCT INFO 22 case '/cateInfo/cateInfo_list.php' : 23 case '/cateInfo/cateInfo_write.php' : 24 pathNm = "/cateInfo/cateInfo_list.php"; 25 $(".lnb .menu_list li:eq(1)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 26 break; 27 case '/product/product_list.php' : 28 case '/product/product_write.php' : 29 pathNm = "/product/product_list.php"; 30 $(".lnb .menu_list li:eq(1)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 31 break; 32 33 // PAYMENT 34 case '/payment/payment_list.php' :
35 case '/payment/payment_view.php' : 36 pathNm = "/payment/payment_list.php"; 37 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 38 break; 39 case '/payment_eng/payment_list.php' : 40 case '/payment_eng/payment_view.php' : 41 pathNm = "/payment_eng/payment_list.php"; 42 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 43 break; 44 case '/shippingPrice/shipping_write.php' : 45 pathNm = "/shippingPrice/shipping_write.php"; 46 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 47 break; 48 49 // COMMUNITY 50 case '/press/press_list.php' : 51 case '/press/press_write.php' : 52 pathNm = "/press/press_list.php"; 53 $(".lnb .menu_list li:eq(0)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 54 break; 55 case '/exhibitions/exhibitions_list.php' : 56 case '/exhibitions/exhibitions_write.php' : 57 pathNm = "/exhibitions/exhibitions_list.php"; 58 $(".lnb .menu_list li:eq(0)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 59 break; 60 case '/news/news_list.php' : 61 case '/news/news_write.php' : 62 pathNm = "/news/news_list.php"; 63 $(".lnb .menu_list li:eq(0)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 64 break; 65 66 // RECRUIT 67 case '/recruit/recruit_list.php' : 68 case '/recruit/recruit_write.php' : 69 pathNm = "/recruit/recruit_list.php"; 70 $(".lnb .menu_list li:eq(1)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 71 break; 72 case '/faq/faq_list.php' : 73 case '/faq/faq_write.php' : 74 pathNm = "/faq/faq_list.php"; 75 $(".lnb .menu_list li:eq(1)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 76 break; 77 78 // ADMIN 79 case '/admin/admin_list.php' : 80 case '/admin/admin_write.php' : 81 pathNm = "/admin/admin_list.php"; 82 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 83 break; 84 case '/logHistory/log_list.php' : 85 pathNm = "/logHistory/log_list.php"; 86 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 87 break; 88 case '/logHistory/log_cnt_list.php' : 89 pathNm = "/logHistory/log_cnt_list.php"; 90 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 91 break; 92 case '/accessip/accessip_list.php' : 93 case '/accessip/accessip_write.php' : 94 pathNm = "/accessip/accessip_list.php"; 95 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 96 break; 97 case '/mainContent/main_list.php' : 98 case '/mainContent/main_write.php' : 99 pathNm = "/mainContent/main_list.php"; 100 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 101 break; 102 case '/popup/popup_list.php' : 103 case '/popup/popup_write.php' : 104 pathNm = "/popup/popup_list.php"; 105 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 106 break; 107 108 case '/adminLog/log_list.php' : 109 pathNm = "/adminLog/log_list.php"; 110 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 111 break; 112 case '/adminMail/mail_list.php' : 113 case '/adminMail/mail_write.php' : 114 pathNm = "/adminMail/mail_list.php"; 115 $(".lnb .menu_list li:eq(2)").addClass("on").find(".acco_menu").show().find("a[href='"+pathNm+"']").addClass("on"); 116 break; 117 default : break; 118 } 119 120 $(".lnb .menu_list > li > a").click(function(){ 121 if($(this).parents("li").hasClass("on")){ 122 $(this).parents("li").removeClass("on"); 123 }else{ 124 $(this).parents("li").addClass("on").siblings("li.on").removeClass("on"); 125 } 126 accoMenu($(this)); 127 }); 128 129 // Input Type File Design 130 /* 131 $(".setting_form .setting_file input[type='text']").click(function(){ 132 $(this).siblings("input[type='file']").click(); 133 }); 134 $(".setting_form .setting_file input[type='file']").change(function(){ 135 $(this).siblings("input[type='text']").val($(this).val()); 136 }); 137 */ 138 139 140 // Date Picker 141 $("#datePick01, #datePick02").datepicker({ 142 changeMonth: true, 143 changeYear: true, 144 145 dateFormat: 'yy-mm-dd', 146 prevText: 'ì´ì ë¬', 147 nextText: 'ë¤ì ë¬', 148 monthNames: ['1ì','2ì','3ì','4ì','5ì','6ì','7ì','8ì','9ì','10ì','11ì','12ì'], 149 monthNamesShort: ['1ì','2ì','3ì','4ì','5ì','6ì','7ì','8ì','9ì','10ì','11ì','12ì'], 150 dayNames: ['ì¼','ì','í','ì','목','ê¸','í '], 151 dayNamesShort: ['ì¼','ì','í','ì','목','ê¸','í '], 152 dayNamesMin: ['ì¼','ì','í','ì','목','ê¸','í '], 153 showMonthAfterYear: true, 154 yearSuffix: 'ë ', 155 156 showOn: 'both', 157 buttonImage: '/images/common/icon_calendar.png' 158 }); 159 160 // Month Picker 161 $("#monthPick01, #monthPick02").datepicker({ 162 changeMonth: true, 163 changeYear: true, 164 165 dateFormat: 'yy-mm', 166 prevText: 'ì´ì ë¬', 167 nextText: 'ë¤ì ë¬', 168 monthNames: ['1ì','2ì','3ì','4ì','5ì','6ì','7ì','8ì','9ì','10ì','11ì','12ì'], 169 monthNamesShort: ['1ì','2ì','3ì','4ì','5ì','6ì','7ì','8ì','9ì','10ì','11ì','12ì'], 170 dayNames: ['ì¼','ì','í','ì','목','ê¸','í '], 171 dayNamesShort: ['ì¼','ì','í','ì','목','ê¸','í '], 172 dayNamesMin: ['ì¼','ì','í','ì','목','ê¸','í '], 173 showMonthAfterYear: true, 174 yearSuffix: 'ë ', 175 176 showOn: 'both', 177 buttonImage: '/images/common/icon_calendar.png' 178 }); 179}); 180 181/* Window Resize Event 182=============================================*/ 183$(window).resize(function(){ 184 var docHeight = $(document).height(); 185 $(".lnb").height(docHeight); 186}); 187 188/* Window Load Event 189=============================================*/ 190$(window).load(function(){ 191 var docHeight = $(document).height(); 192 $(".lnb").height(docHeight); 193}); 194 195 196/* Local Navigation Bar Height Function 197=============================================*/ 198function lnbHeight(){ 199 var docHeight = $(document).height(); 200 $("body").css("height", "auto"); 201 $(".lnb").height(docHeight); 202} 203 204/* Accordion Menu Function 205=============================================*/ 206function accoMenu(clickObj){ 207 clickObj.siblings(".acco_menu").slideToggle("fast").parents("li").siblings("li").find(".acco_menu").slideUp("fast"); 208} 209 210/* Fit Image Size 211=============================================*/ 212function fitImageSize(obj, href, maxWidth, maxHeight) { 213 var image = new Image(); 214 image.onload = function(){ 215 var width = image.width; 216 var height = image.height; 217 var scalex = maxWidth / width; 218 var scaley = maxHeight / height; 219 var scale = (scalex < scaley) ? scalex : scaley; 220 221 if (scale > 1) scale = 1; 222 223 obj.width = scale * width; 224 obj.height = scale * height; 225 obj.style.display = ""; 226 } 227 image.src = href; 228} 229 230 231/* Get End Date Function 232=============================================*/ 233function getEndDate(YY, MM){ 234 var nowDt = new Date(); 235 236 if(!YY){
237 YY = nowDt.getFullYear(); 238 239 } 240 if(!MM){ 241 MM = nowDt.getMonth()+1; 242 } 243 244 var dt = new Date(YY, MM, 0); 245 return dt.getDate(); 246} 247 248 249/* Window Print 250=============================================*/ 251function printThis(){ 252 window.print(); 253}
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.