1$(document).ready(function() { 2 $('.Tmenu li').hover(function() { 3 $('ul', this).slideDown(200);//$('ul', this).show(); 4 $('.Tmenu li a').removeClass("hovx"); 5 $(this).children('a:first').addClass("hov"); 6 }, function() { 7 $('ul', this).hide(); 8 $(this).children('a:first').removeClass("hov"); 9 $('.sel').children('a:first').addClass("hovx"); 10 }); 11}); 12(function( $ ){ 13 $.xmlmenu_bar = function(div, gnum, sel, pnum) { 14 $.ajax({ 15 type: "GET", 16 url: "/support/menu.xml?2311", 17 dataType: "xml", 18 success: function(xml){ 19 var ul_main=$("<dl />"); 20 $(xml).find('menu:eq('+ gnum +')').each(function(){ 21 if($(this).find("submenu").children().length){ 22 $(this).find("submenu").children().each(function(index){ 23 if(index == sel){ 24 var select=" class='sel'"; 25 $("#subTitle").html($(this).attr("name")); 26 }else{ 27 var select=''; 28 } 29 var s_item=""; 30 if($(this).find("subitem").children().length){ 31 s_item="<ul>"; 32 $(this).find("subitem").children().each(function(x){ 33 if(x == pnum && index == sel){ 34 var pselect=" class='sel'"; 35 //$("#sitemTitle").html(" - " + $(this).attr("name")); 36 }else{ 37 var pselect=''; 38 } 39 s_item += "<li"+pselect+"><a href="+$(this).attr("linkurl")+">- "+$(this).attr("name")+"</a></li>"; 40 }); 41 s_item += "</ul>"; 42 } 43 44 ul_main.append("<dd"+select+"><a href="+$(this).attr("linkurl")+">"+$(this).attr("name")+"</a>" + s_item + "</dd>"); 45 46 }); 47 } 48 }); 49 return $(div).append(ul_main); 50 } 51 }); 52 }; 53 $.xmlmenu_bar0 = function(div, gnum, sel, pnum) { 54 $.ajax({ 55 type: "GET", 56 url: "/support/menu.xml?23031", 57 dataType: "xml", 58 success: function(xml){ 59 var t_main=$("<dl />"); 60 $(xml).find('menu').each(function(idx){ 61 if(idx >= 5) return false; 62 var subject=$(this).find("subject").text(); 63 var linkurl=$(this).find("linkurl").text(); 64 if(idx == gnum && gnum) var select=" class='sel'"; else var select=''; 65 t_main.append($("<dd"+select+"><a href=" + linkurl + ">" + subject + "</a></dd>")); 66 }); 67 return $(div).append(t_main); 68 69 } 70 }); 71 }; 72 $.xmlmenu_bar2 = function(div, gnum, sel, pnum) { 73 74 $.ajax({ 75 type: "GET", 76 url: "/support/menu.xml?23031", 77 dataType: "xml", 78 success: function(xml){ 79 var ul_main=$("<dl />"); 80 $(xml).find('menu:eq('+ gnum +')').each(function(){ 81 82 $(this).find('subitem:eq('+ sel +')').children().each(function(index){ 83 if(index == pnum){ 84 var select=" class='sel'"; 85 }else{ 86 var select=''; 87 } 88 ul_main.append("<dd"+select+"><a href="+$(this).attr("linkurl")+">"+$(this).attr("name")+"</a></dd>"); 89 }); 90 91 }); 92 return $(div).append(ul_main); 93 } 94 }); 95 }; 96})( jQuery ); 97 98function setPng24(obj) { 99 obj.width=obj.height=1; 100 obj.className=obj.className.replace(/\bpng24\b/i,''); 101 obj.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"; 102 obj.src=''; 103 return ''; 104} 105function bluring() { 106 if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 107 document.body.focus(); 108} 109function window_open(w_url, w_name, w_width, w_height, w_scroll, w_resize, w_menu, w_toolbar, w_addrbar, w_status, w_fulls) { 110 var w_Left = (screen.width - w_width) / 2; 111 var w_Top = (screen.height - w_height) / 2; 112 var w_properties = 'height=' + w_height + ',width=' + w_width + ',top=' + w_Top + ',left=' + w_Left + ',scrollbars=' + w_scroll + ',resizable=' + w_resize + ',menubar=' + w_menu + ',toolbar=' + w_toolbar + ',location=' + w_addrbar + ',statusbar=' + w_status + ',fullscreen=' + w_fulls + ''; 113 var obj_window = window.open(w_url, w_name, w_properties) 114 if (parseInt(navigator.appVersion) >= 4) { 115 obj_window.window.focus(); 116 } 117} 118function flashDP(s,d,w,h,t){ 119} 120function swfobjectFuc(url,did,w,h,gnum,snum,t){ 121} 122function window_close() { 123 return window.close(); 124} 125function postPopup(pf,p1,p2,a1,a2){ 126} 127function SelectTabMove(b,m,o,s,x) { 128 for(i=1; i <= $$('#'+b+' li').length; i++){ 129 if(x==i){ 130 $(b).className = "selected0"+x; 131 $(m+i).className = "select"; 132 }else{ 133 $(m+i).className = ""; 134 } 135 } 136 $$(o).each(function(value, index) { 137 if(value.id==s+x){ 138 $(value.id).style.display='block'; 139 }else{ 140 $(value.id).style.display='none'; 141 } 142 }); 143} 144 145function mod_view( obj, mode, tag ){ 146 var length = $(obj).children(tag).size(); 147 var nextObjNum = ''; 148 var viewObjNum = ''; 149 $(obj).children(tag).each(function(){ 150 var i = $(this).index(); 151 var state = $(obj + '_'+ i).css("display"); 152 if( state == 'block' ) viewObjNum = i; 153 }); 154 if( mode == "pre" ){ 155 if( viewObjNum == 0 ) nextObjNum = length-1; else nextObjNum = viewObjNum-1; 156 } else if( mode == "next" ){ 157 if( viewObjNum == length-1 ) nextObjNum = 0; else nextObjNum = viewObjNum+1; 158 } 159 if( length > 1 ){ 160 for( var i=0; i<length; i++ ){ 161 if( i == viewObjNum ) $(obj + '_'+i).css('display', 'none'); else if( i == nextObjNum ) $(obj + '_'+i).css('display', 'block'); 162 } 163 } 164} 165function copyClip(clip) { 166 var clip = document.getElementById (clip); 167 copyOption = document.body.createTextRange(); 168 copyOption.moveToElementText(clip); 169 copyOption.execCommand('copy'); 170 alert('í´ë¦½ë³´ëì ë³µì¬ëììµëë¤.'); 171 } 172 173function setCookie( name, value, expirehours ) { 174 var todayDate = new Date(); 175 todayDate.setHours( todayDate.getHours() + expirehours ); 176 document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 177} 178function getCookie(cname) { 179 var name = cname + "="; 180 var ca = document.cookie.split(';'); 181 for(var i = 0; i < ca.length; i++) { 182 var c = ca[i]; 183 while (c.charAt(0) == ' ') { 184 c = c.substring(1); 185 } 186 if (c.indexOf(name) == 0) { 187 return c.substring(name.length, c.length); 188 } 189 } 190 return ""; 191} 192function closeDiv(xid){ 193 $('#divpop_'+xid).hide(); 194} 195function closeToday(xid){ 196 setCookie("pop"+xid, xid, 1); 197 $('#divpop_'+xid).hide(); 198} 199function linkBlank(URL){ 200 window.open(URL); 201 window.close(); 202} 203function linkTo(URL){ 204 if (window.opener && !window.opener.closed) window.opener.location = URL; 205 window.close(); 206} 207/** 208* ì¤ë³µìë¸ë° ë°©ì§ 209*
210* @returns {Boolean} 211*/ 212var doubleSubmitFlag = false; 213function doubleSubmitCheck(){ 214 if(doubleSubmitFlag){ 215 return doubleSubmitFlag; 216 }else{ 217 doubleSubmitFlag = true; 218 return false; 219 } 220} 221/** 222* ì¤í¬ë¡¤ 223*/ 224onScrollFixReset(); 225var topLastScroll=0,intScroll=0;function onScrollFixReset(){var t=function(){var t=jQuery(document).scrollTop();window.intScroll=t-window.topLastScroll,window.topLastScroll=t,jQuery(window).trigger("onScrollFix")};jQuery(window).scroll(t),jQuery(window).resize(t),setTimeout(function(){window.intScroll=-1,jQuery(window).trigger("onScrollFix")},200)}function onScrollFix(t,o,i){jQuery(window).on("onScrollFix",function(){var l=jQuery(t),e=jQuery(o),p=jQuery(i);if(e&&l&&p){var s=p.offset().top,r=jQuery(document).scrollTop(),n=e.offset().top,c=l.offset().top,d=e.offset().left,w=e.width(),x=jQuery(window).height(),f=l.height(),a=p.height(),u=r+x,h=c+f,S=s+a,v=c+f-n-a;e.css({height:a+"px"}),0==window.intScroll&&"fixed"==p.css("position")&&p.css({left:d+"px"}),a>=h-n?p.css({position:"relative",top:"0px",left:"0px",width:""}):x>c+f-n?p.css({position:"relative",top:"0px",left:"0px",width:""}):x>a?n>=r?p.css({position:"relative",top:"0px",left:"0px",width:""}):n+v<=r?p.css({position:"relative",top:v+"px",left:"0px",width:""}):p.css({position:"fixed",top:"0px",left:d+"px",width:w+"px"}):(window.intScroll<0&&(n>=r?p.css({position:"relative",top:"0px",left:"0px",width:""}):s>=r?p.css({position:"fixed",top:"0px",left:d+"px",width:w+"px"}):"down"==p.attr("data-dScroll")&&"fixed"==p.css("position")&&p.css({position:"relative",top:s-n-intScroll+"px",left:"0px",width:""}),p.attr("data-dScroll","up")),window.intScroll>0&&(h<=u?p.css({position:"relative",top:v+"px",left:"0px",width:""}):S<=u?p.css({position:"fixed",top:x-a+"px",left:d+"px",width:w+"px"}):"up"==p.attr("data-dScroll")&&"fixed"==p.css("position")&&p.css({position:"relative",top:s-n-intScroll+"px",left:"0px",width:""}),p.attr("data-dScroll","down")))}})} 226function thumbnail_popImg(img){ 227 img=encodeURI(img); 228 ipopx=window.open("","","width=100, height=100, resizable=yes"); 229 ipopx.document.write("<html><head><title>ì´ë¯¸ì§ë³´ê¸°</title></head>"); 230 ipopx.document.write("<script>"); 231 ipopx.document.write("function repop() {"); 232 ipopx.document.write("var obj = document.getElementById('img');"); 233 ipopx.document.write("var w = obj.width;"); 234 ipopx.document.write("var h = obj.height;"); 235 ipopx.document.write("window.resizeTo(w + 16, h + 67);"); 236 ipopx.document.write("}"); 237 ipopx.document.write("</script>"); 238 ipopx.document.write("<body topmargin=0 leftmargin=0 onLoad='repop();'>"); 239 ipopx.document.write("<img src='"+img+"' onclick='self.close()' style=cursor:hand id='img'>"); 240 ipopx.document.write("</body></html>"); 241 ipopx.document.close(); 242} 243$(function() { 244 YouTubeGetID = function(movUrl) { 245 if(!movUrl) return; 246 var ID = ''; 247 movUrl = movUrl.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/|\/live\/|\/shorts\/)/); 248 if(movUrl[2] !== undefined) { 249 ID = movUrl[2].split(/[^0-9a-z_\-]/i); 250 ID = ID[0]; 251 } else { 252 ID = movUrl; 253 } 254 console.log(ID); 255 return ID; 256 }; 257 kakaoGetID = function(movUrl) { 258 if(!movUrl) return; 259 var ID = ''; 260 movUrl = movUrl.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|kakao\/|\/embed\/)/); 261 if(movUrl[2] !== undefined) { 262 ID = movUrl[2].split(/[^0-9a-z_\-]/i); 263 ID = ID[0]; 264 } else { 265 ID = movUrl; 266 } 267 console.log(ID); 268 return ID; 269 }; 270 naverGetID = function(movUrl) { 271 if(!movUrl) return; 272 var ID = ''; 273 movUrl = movUrl.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|naver\/|\/embed\/)/); 274 if(movUrl[2] !== undefined) { 275 ID = movUrl[2].split(/[^0-9a-z_\-]/i); 276 ID = ID[0]; 277 } else { 278 ID = movUrl; 279 } 280 console.log(ID); 281 return ID; 282 }; 283 get_hostname = function(url) { 284 var urlarr = url.match(/^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i) 285 return urlarr[2]; 286 }; 287 checkmovUrl = function(murl) { 288 var url = get_hostname(murl);//murl.hostname; 289 console.log(url); 290 if(!url) return; 291 var type; 292 if (url.indexOf('youtu') !== -1) { 293 type='youtu'; 294 }else if (url.indexOf('vimeo') !== -1) { 295 type='vimeo'; 296 }
296else if (url.indexOf('kakao') !== -1) { 297 type='kakao'; 298 }else if (url.indexOf('naver') !== -1) { 299 type='naver'; 300 }else{ 301 type='none'; 302 } 303 return type; 304 }; 305}); 306 307function addslashes(str) { 308 str = str.replace(/\\/g, '\\\\'); 309 str = str.replace(/\'/g, '\\\''); 310 str = str.replace(/\"/g, '\\"'); 311 str = str.replace(/\0/g, '\\0'); 312 return str; 313} 314 315function stripslashes(str) { 316 str = str.replace(/\\'/g, '\''); 317 str = str.replace(/\\"/g, '"'); 318 str = str.replace(/\\0/g, '\0'); 319 str = str.replace(/\\\\/g, '\\'); 320 return str; 321} 322 323function x_banner2_quick_upload(obj){ 324 if(!obj.files || !obj.files[0]) return false; 325 326 var file=obj.files[0]; 327 var area_cat=obj.getAttribute('data-cat'); 328 var token=obj.getAttribute('data-token'); 329 330 if(file.size > 10*1024*1024){ 331 alert('10MB ì´í ì´ë¯¸ì§ë§ ë±ë¡í ì ììµëë¤.'); 332 obj.value=''; 333 return false; 334 } 335 336 if(!/\.(jpg|jpeg|png|gif)$/i.test(file.name)){ 337 alert('JPG, PNG, GIF ì´ë¯¸ì§ë§ ë±ë¡í ì ììµëë¤.'); 338 obj.value=''; 339 return false; 340 } 341 342 if(!confirm('ì íí ì´ë¯¸ì§ë¥¼ ì´ ììì ë°ë¡ ë±ë¡íìê² ìµëê¹?')){ 343 obj.value=''; 344 return false; 345 } 346 347 var formData=new FormData(); 348 349 formData.append('area_cat',area_cat); 350 formData.append('token',token); 351 formData.append('imgtl',file); 352 353 obj.disabled=true; 354 355 fetch('/support/xbanner2_quick_upload.php',{ 356 method:'POST', 357 body:formData, 358 credentials:'same-origin' 359 }) 360 .then(function(response){ 361 return response.json(); 362 }) 363 .then(function(data){ 364 365 obj.disabled=false; 366 obj.value=''; 367 368 if(!data.success){ 369 alert(data.message); 370 return false; 371 } 372 373 location.reload(); 374 375 }) 376 .catch(function(error){ 377 378 obj.disabled=false; 379 obj.value=''; 380 381 console.error(error); 382 383 alert('ë°°ë ë±ë¡ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.'); 384 }); 385}
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.