1var console = window.console || {log:function(){}}; 2 3//ì¹´ì¹´ì¤í¡ ë³´ë´ê¸° 4function executeURLLink(a,b,c,d) 5{ 6 kakao.link("talk").send({ 7 msg : a, 8 url : b, 9 appid : c, 10 appver : "2.0", 11 appname : d, 12 type : "link" 13 }); 14 15} 16 17//ì¹´ì¹´ì¤ì¤í 리 ë³´ë´ê¸° 18function executeKakaoStoryLink(a,b,c,d,e,f,g) 19{ 20kakao.link("story").send({ 21post : b, 22appid : c, 23appver : "1.0", 24appname : d, 25urlinfo : JSON.stringify({title:a, desc:e, imageurl:[f], type:g}) 26}); 27} 28 29function MM_openBrWindow(theURL,winName,features) { //v2.0 30 var popup = window.open(theURL,winName,features); 31 popup.focus(); 32} 33 34function swf_view(swf_file,swf_width,swf_height) { 35 36 document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width='"+swf_width+"' height='"+swf_height+"'>") 37 document.write("<param name=\"FlashVars\" value=\"menu=sub2\">") 38 document.write("<param name=\"allowScriptAccess\" value=\"always\">") 39 document.write("<param name=movie value='"+swf_file+"'>") 40 document.write("<param name=\"wmode\" value=\"transparent\">") 41 document.write("<embed src='"+swf_file+"' quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width='"+swf_width+"' height='"+swf_height+"' wmode='transparent'></embed>") 42 document.write("</object>") 43} 44 45 46function reader_checkForm(){ 47 48 formObj = document.rc; 49 50 if (formObj.reader_name.value == '') 51 52 { 53 alert('ì´ë¦ì ì ë ¥í´ ì£¼ììì¤ '); 54 formObj.reader_name.focus(); 55 return false; 56 } 57 else if(formObj.reader_title.value == '') 58 { 59 alert(' ì 목ì ì ë ¥í´ ì£¼ììì¤'); 60 formObj.reader_title.focus(); 61 return false; 62 } 63 else if(formObj.reader_passwd.value == '') 64 { 65 alert(' í¨ì¤ìë를 ì ë ¥í´ ì£¼ììì¤'); 66 formObj.reader_passwd.focus(); 67 return false; 68 } 69 else if(formObj.reader_body.value == '') 70 { 71 alert(' ë´ì©ì ì ë ¥í´ ì£¼ììì¤'); 72 formObj.reader_body.focus(); 73 return false; 74 } 75 else if(formObj.nospam.value == '') 76 { 77 alert(' ì¤í¸ê²ì¬ì ìì ì«ì를 ì ë ¥í´ ì£¼ììì¤'); 78 formObj.nospam.focus(); 79 return false; 80 } 81 82 83 var url="./newnews/ins_reader_add_exe.php"; 84 var parameters="d_mode=input&newsuid="+formObj.newsuid.value+"&reader_title=" + encodeURI(formObj.reader_title.value); 85 parameters +="&reader_name="+ encodeURI(formObj.reader_name.value); 86 parameters +="&reader_passwd="+ encodeURI(formObj.reader_passwd.value); 87 parameters +="&reader_body="+ encodeURI(formObj.reader_body.value); 88 parameters +="&nospam="+ encodeURI(formObj.nospam.value); 89 parameters +="&u_id="+ encodeURI(formObj.d_id.value); 90 91 //alert(parameters); 92 ajax.ajax_action(url,'post',parameters,r_c,''); 93 formObj.reader_title.value=""; 94 formObj.reader_name.value=""; 95 formObj.reader_passwd.value=""; 96 formObj.reader_body.value=""; 97 formObj.nospam.value=""; 98 99 return false; 100 101 102} 103 104 105 106 107function reader_checkForm_sign(){ 108 109 formObj = document.rc; 110 111 if (formObj.reader_name.value == '') 112 113 { 114 alert('ì´ë¦ì ì ë ¥í´ ì£¼ììì¤ '); 115 formObj.reader_name.focus(); 116 return false; 117 } 118 else if(formObj.reader_title.value == '') 119 { 120 alert(' ì 목ì ì ë ¥í´ ì£¼ììì¤'); 121 formObj.reader_title.focus(); 122 return false; 123 } 124 else if(formObj.reader_passwd.value == '') 125 { 126 alert(' í¨ì¤ìë를 ì ë ¥í´ ì£¼ììì¤'); 127 formObj.reader_passwd.focus(); 128 return false; 129 } 130 else if(formObj.reader_body.value == '') 131 { 132 alert(' ë´ì©ì ì ë ¥í´ ì£¼ììì¤'); 133 formObj.reader_body.focus(); 134 return false; 135 } 136 else if(formObj.nospam.value == '') 137 { 138 alert(' ì¤í¸ê²ì¬ì ìì ì«ì를 ì ë ¥í´ ì£¼ììì¤');
139 formObj.nospam.focus(); 140 return false; 141 } 142 /*else if(formObj.name_check.value !='2') 143 { 144 alert(' ì ê±° ì¤ëª ì¸ì¦ì í´ì¼ í©ëë¤.'); 145 return false; 146 }*/ 147 148 var url="./newnews/ins_reader_add_exe.php"; 149 var parameters="d_mode=input&newsuid="+formObj.newsuid.value+"&reader_title=" + encodeURI(formObj.reader_title.value); 150 parameters +="&reader_name="+ encodeURI(formObj.reader_name.value); 151 parameters +="&reader_passwd="+ encodeURI(formObj.reader_passwd.value); 152 parameters +="&reader_body="+ encodeURI(formObj.reader_body.value); 153 parameters +="&nospam="+ encodeURI(formObj.nospam.value); 154 parameters +="&u_id="+ encodeURI(formObj.d_id.value); 155 156 //alert(parameters); 157 ajax.ajax_action(url,'post',parameters,r_c,''); 158 formObj.reader_title.value=""; 159 formObj.reader_name.value=""; 160 formObj.reader_passwd.value=""; 161 formObj.reader_body.value=""; 162 formObj.nospam.value=""; 163 164 return false; 165 166 167} 168 169 170 171 172function reader_checkForm_body(){ 173 174 formObj = document.rc; 175 176 if (formObj.reader_name.value == '') 177 178 { 179 alert('ì´ë¦ì ì ë ¥í´ ì£¼ììì¤ '); 180 formObj.reader_name.focus(); 181 return false; 182 } 183 184 else if(formObj.reader_passwd.value == '') 185 { 186 alert(' í¨ì¤ìë를 ì ë ¥í´ ì£¼ììì¤'); 187 formObj.reader_passwd.focus(); 188 return false; 189 } 190 else if(formObj.reader_body.value == '') 191 { 192 alert(' ë´ì©ì ì ë ¥í´ ì£¼ììì¤'); 193 formObj.reader_body.focus(); 194 return false; 195 } 196 else if(formObj.nospam.value == '') 197 { 198 alert(' ì¤í¸ê²ì¬ì ìì ì«ì를 ì ë ¥í´ ì£¼ììì¤'); 199 formObj.nospam.focus(); 200 return false; 201 } 202 203 204 var url="./newnews/ins_reader_add_exe.php"; 205 var parameters="d_mode=input&newsuid="+formObj.newsuid.value; 206 parameters +="&reader_name="+ encodeURI(formObj.reader_name.value); 207 parameters +="&reader_passwd="+ encodeURI(formObj.reader_passwd.value); 208 parameters +="&reader_body="+ encodeURI(formObj.reader_body.value); 209 parameters +="&nospam="+ encodeURI(formObj.nospam.value); 210 parameters +="&u_id="+ encodeURI(formObj.d_id.value); 211 212 //alert(parameters); 213 ajax.ajax_action(url,'post',parameters,r_c,''); 214 formObj.reader_name.value=""; 215 formObj.reader_passwd.value=""; 216 formObj.reader_body.value=""; 217 formObj.nospam.value=""; 218 219 return false; 220 221 222} 223 224 225function r_c() 226{ 227 if (ajax.request.readyState == 4) 228 { 229 230 if (ajax.request.status == 200) 231 { 232 result = ajax.request.responseText; 233 if(result=="ì¤í¸ê²ì¬ë¥¼ ì íí ì ë ¥í´ì£¼ììì¤.") 234 { 235 alert('ì¤í¸ê²ì¬ë¥¼ ì íí ì ë ¥í´ ì£¼ììì¤'); 236 } 237 else if(result=="ë´ì¤ ë²í¸ê° ììµëë¤.") 238 { 239 alert('ë´ì¤ ë²í¸ê° ììµëë¤.'); 240 } 241 else if(result=="IP ê° ì°¨ë¨ëììµëë¤. block spam ip") 242 { 243 alert('IP ê° ì°¨ë¨ëììµëë¤. block spam ip'); 244 } 245 else if(result=="<font color=red>ê¸ì§ ë¨ì´ê° ìì´ì ê¸ ë±ë¡ì í ì ììµëë¤. ê´ë¦¬ì문ì</font>") 246 { 247 alert('ê¸ì§ ë¨ì´ê° ìì´ì ê¸ ë±ë¡ì í ì ììµëë¤. ê´ë¦¬ì문ì'); 248 } 249 else if(result=="<font color=red>ì문ìë¡ë§ 구ì±ëì´ ìì´ ê¸ë±ë¡ì´ ê±°ë¶ë©ëë¤</font>") 250 { 251 alert('ì문ìë¡ë§ 구ì±ëì´ ìì´ ê¸ë±ë¡ì´ ê±°ë¶ë©ëë¤'); 252 } 253 else 254 { 255 document.getElementById('reader_t').innerHTML = result; 256 alert('ë±ë¡ëììµëë¤.'); 257 } 258 259 260 } 261 else 262 { 263 alert('ì ë ¥ ìë¬'); 264 } 265 } 266 267} 268 269 270function bbsetc_checkForm(){ 271 272 bbs_etcform = document.b_etc_ok; 273 274 if (bbs_etcform.bbs_name.value == '') { 275 alert('ì´ë¦ì ì ë ¥í´ ì£¼ììì¤ '); 276 bbs_etcform.bbs_name.focus(); 277 return false; 278 } else if (bbs_etcform.etc_passwd.value == '') { 279 alert(' í¨ì¤ìë를 ì ë ¥í´ ì£¼ììì¤'); 280 bbs_etcform.etc_passwd.focus(); 281 return false; 282 } else if (bbs_etcform.bbs_memo.value == '') { 283 alert(' ë´ì©ì ì ë ¥í´ ì£¼ììì¤'); 284 bbs_etcform.bbs_memo.focus(); 285 return false;
286 } else if (bbs_etcform.nospam.value == '') { 287 alert(' ëë°° ë°©ì§ë¥¼ ìí ìì ì«ì를 ì ë ¥í´ ì£¼ììì¤'); 288 bbs_etcform.nospam.focus(); 289 return false; 290 } 291 292 293 294 var url2="./bbs/ins_bbs_etc_add_exe.php"; 295 var parameters="d_mode=input&bbs_uid="+bbs_etcform.bbs_uid.value; 296 parameters +="&bbs_name="+ encodeURI(bbs_etcform.bbs_name.value); 297 parameters +="&etc_passwd="+ encodeURI(bbs_etcform.etc_passwd.value); 298 parameters +="&bbs_memo="+ encodeURI(bbs_etcform.bbs_memo.value); 299 parameters +="&nospam="+ encodeURI(bbs_etcform.nospam.value); 300 parameters +="&Table="+ encodeURI(bbs_etcform.Table.value); 301 302 ajax.ajax_action(url2,'post',parameters,bbs_r_c,''); 303 bbs_etcform.bbs_name.value=""; 304 bbs_etcform.etc_passwd.value=""; 305 bbs_etcform.bbs_memo.value=""; 306 bbs_etcform.nospam.value=""; 307 return false; 308 309} 310 311 312function bbsetc_checkForm_sign(){ 313 314 bbs_etcform = document.b_etc_ok; 315 316 if (bbs_etcform.bbs_name.value == '') { 317 alert('ì´ë¦ì ì ë ¥í´ ì£¼ììì¤ '); 318 bbs_etcform.bbs_name.focus(); 319 return false; 320 } else if (bbs_etcform.etc_passwd.value == '') { 321 alert(' í¨ì¤ìë를 ì ë ¥í´ ì£¼ììì¤'); 322 bbs_etcform.etc_passwd.focus(); 323 return false; 324 } else if (bbs_etcform.bbs_memo.value == '') { 325 alert(' ë´ì©ì ì ë ¥í´ ì£¼ììì¤'); 326 bbs_etcform.bbs_memo.focus(); 327 return false; 328 } else if (bbs_etcform.nospam.value == '') { 329 alert(' ëë°° ë°©ì§ë¥¼ ìí ìì ì«ì를 ì ë ¥í´ ì£¼ììì¤'); 330 bbs_etcform.nospam.focus(); 331 return false; 332 } 333 334 if(!confirm('ì ë¹íë³´ìì ëí ì§ì§ ëë ë°ëì ê¸ì ì¤ëª ì¸ì¦ì í´ì¼ í©ëë¤.\r\n íì¸ì ë르ìë©´ ë±ë¡ì´ ë¨ëë¤.')) 335 { 336 return false; 337 } 338 339 var url2="./bbs/ins_bbs_etc_add_exe.php"; 340 var parameters="d_mode=input&bbs_uid="+bbs_etcform.bbs_uid.value; 341 parameters +="&bbs_name="+ encodeURI(bbs_etcform.bbs_name.value); 342 parameters +="&etc_passwd="+ encodeURI(bbs_etcform.etc_passwd.value); 343 parameters +="&bbs_memo="+ encodeURI(bbs_etcform.bbs_memo.value); 344 parameters +="&nospam="+ encodeURI(bbs_etcform.nospam.value); 345 parameters +="&Table="+ encodeURI(bbs_etcform.Table.value); 346 347 348 ajax.ajax_action(url2,'post',parameters,bbs_r_c,''); 349 bbs_etcform.bbs_name.value=""; 350 bbs_etcform.etc_passwd.value=""; 351 bbs_etcform.bbs_memo.value=""; 352 bbs_etcform.nospam.value=""; 353 return false; 354 355} 356 357function bbs_r_c() 358{ 359 if (ajax.request.readyState == 4) 360 { 361 362 if (ajax.request.status == 200) 363 { 364 result = ajax.request.responseText; 365 366 if(result=="ì¤í¸ê²ì¬ë¥¼ ì íí ì ë ¥í´ ì£¼ììì¤.") 367 { 368 alert('ì¤í¸ê²ì¬ë¥¼ ì íí ì ë ¥í´ ì£¼ììì¤'); 369 } 370 else if(result=="ë²í¸ê° ììµëë¤.") 371 { 372 alert('ë²í¸ê° ììµëë¤.'); 373 } 374 else 375 { 376 document.getElementById('bbs_etc_b').innerHTML = result; 377 //alert('ë±ë¡ëììµëë¤.'); 378 } 379 380 381 } 382 else 383 { 384 alert('ì ë ¥ ìë¬'); 385 } 386 } 387 388} 389 390 391function reader_point_add(r_uid) 392{ 393 394 var url2="/newnews/ins_reader_add_exe.php?d_mode=point&r_uid="+r_uid; 395 396 ajax.ajax_action(url2,'get','',r_ok,''); 397 // return false; 398 399} 400 401function r_ok() 402{ 403 404 if (ajax.request.readyState == 4) 405 { 406 407 if (ajax.request.status == 200) 408 { 409 result = ajax.request.responseText; 410 var r_v = result.split(':'); 411 412 document.getElementById('u_p_s_'+r_v[0]).innerHTML = r_v[1]; 413 alert('ì¶ì²ëììµëë¤.'); 414 415 416 417 } 418 else 419 { 420 alert('ì ë ¥ ìë¬'); 421 } 422 } 423 424} 425 426 427function ins_main_create() 428{ 429 430 alert('aaa'); 431 432} 433 434 435 436 437function vod_main_view(v_uid) 438{ 439 440 var url2="/newnews/ins_news_vod_main_view.php?d_mode=get&v_uid="+v_uid; 441 ajax.ajax_action(url2,'get','',vod_ok,''); 442 443 444} 445 446 447 448function vod_main_view_sub(v_uid) 449{ 450 var agent=navigator.userAgent.toLowerCase(); 451 var is_iphone = (agent.indexOf('iphone')!=-1); 452 var is_andriod = (agent.indexOf('mobile')!=-1); 453 if(is_iphone) 454 { 455 os_type="iphone"; 456 } 457 else if(is_andriod) 458 { 459 os_type="android"; 460 } 461 else 462 { 463 464 os_type="pc"; 465 466 } 467 468 469 470 var url2="/newnews/ins_news_vod_main_view_sub.php?d_mode=get&v_uid="+v_uid+"&os_type="+os_type; 471 ajax.ajax_action(url2,'get','',vod_ok,''); 472 473 474 475} 476 477 478 479function reader_view_main() 480{ 481 482 483 var url2="/newnews/ins_reader_view_main.php"; 484 ajax.ajax_action(url2,'get','',vod_ok,''); 485 486 487} 488 489 490 491function vod_main_view_imtv(v_uid) 492{ 493 494 var url2="/newnews/ins_news_vod_main_view_imtv.php?d_mode=get&v_uid="+v_uid; 495 ajax.ajax_action(url2,'get','',vod_ok,''); 496 497 498} 499 500function vod_ok() 501{ 502 503 if (ajax.request.readyState == 4) 504 { 505 506 if (ajax.request.status == 200) 507 { 508 result = ajax.request.responseText; 509 510 document.getElementById('ins_vod_main').innerHTML = result; 511 512 513 514 } 515 else 516 {
517 alert('ì ë ¥ ìë¬'); 518 } 519 } 520 521} 522 523 524function vod_main_view_skin9(v_uid) 525{ 526 527 var url2="/newnews/ins_news_vod_main_view_skin9.php?d_mode=get&v_uid="+v_uid; 528 ajax.ajax_action(url2,'get','',vod_ok,''); 529 530 531} 532 533 534 535function vod_main_view_skin_sbctv_net(v_uid) 536{ 537 var url2="/newnews/ins_news_vod_main_view_sbctv_net.php?d_mode=get&v_uid="+v_uid; 538 ajax.ajax_action(url2,'get','',vod_ok,''); 539 540} 541/// 기ì¬ë³¸ë¬¸ê¸ìí¬ê¸° ì¡°ì 542var font_a=14; 543function fontsizeasc() { 544 font_a=font_a+2; 545 document.all.textinput.style.fontSize=font_a; 546} 547function fontsizedesc() { 548 font_a=font_a-2; 549 document.all.textinput.style.fontSize=font_a; 550} 551 552 553//무ë¨ë³µì¬ ë°©ì§ ë§ì°ì¤ ëëë ê¸ì§ 554function mou() 555{ 556//<![CDATA[ 557(function(){ 558 var cancel=function(e){ 559 if (window.event) { 560 window.event.cancelBubble = true; 561 window.event.returnValue = false; 562 } 563 if (e && e.stopPropagation && e.preventDefault) { 564 e.stopPropagation(); 565 e.preventDefault(); 566 } 567 return false; 568 }; 569 var block=function(e){ 570 e = e || window.event; 571 var t=e.srcElement || e.target; 572 var tag=t.tagName; 573 if (e && tag==='HTML' || tag==='INPUT' || tag==='TEXTAREA' || tag==='BUTTON' || tag==='SELECT' || tag==='OPTION' || tag==='EMBED' || tag==='OBJECT') { return; } 574 if (e.type==='keydown' || e.type=='keyup') { 575 // keyboard event : only block ctrl-A, ctrl-a, ctrl-C, ctrl-c, meta-A, meta-a, meta-C, meta-c 576 if ((e.ctrlKey || e.metaKey) && (e.keyCode == 65 || e.keyCode == 97 || e.keyCode == 67 || e.keyCode == 99)) { return cancel(e); } 577 } else if(e.type == "contextmenu"){ 578 //alert('무ë¨ë³µì¬ë¥¼ ë§ê¸° ìí´ ë§ì°ì¤ ëëê·¸ ê¸ì§ê° ì¤ì ëì´ ììµëë¤'); 579 return cancel(e); 580 } else { 581 return cancel(e); 582 } 583 } 584 var addEvent = function(el, type, fn){ 585 if (window.addEventListener) { 586 el.addEventListener(type, fn, false); 587 } 588 else if (window.attachEvent) { 589 el.attachEvent('on' + type, fn); 590 } 591 else { 592 el['on' + type] = fn; 593 } 594 } 595 var addBlockEvent = function(){ 596 addEvent(document.body,'keydown',block); 597 addEvent(document.body,'keyup',block); 598 addEvent(document.body,'mouseup',block); 599 addEvent(document.body,'mousedown',block); 600 addEvent(document.body,'dragstart',block); 601 addEvent(document.body,'selectstart',block); 602 addEvent(document.body,'copy',block); 603 addEvent(document.body,'contextmenu', block); 604 } 605 addEvent(window,'load',addBlockEvent); 606})(); 607//]]> 608} 609 610//ë ê°ë°°ë ì¤í¬ë¡¤-s 611function layerPosition(direction,time,tmp){ 612 var blayer_R, blayer_L, D, blayer_R_2, blayer_L_2; 613 window["blayer_" + direction] = document.getElementById("Scroll_" + direction); 614 615 if(window["blayer_" + direction]) { 616 if(document.body.scrollTop >= 2500) { 617 tmp = -600; 618 } else { 619 tmp = 0; 620 } 621 if(direction.indexOf("_2") != -1) { 622 if(document.body.scrollTop < 600) { 623 window["blayer_" + direction].style.top = 600; 624 D = "layerPosition('"+direction+"',"+time+","+tmp+")"; 625 setTimeout(D,time); 626 } else { 627 window["blayer_" + direction].style.top = document.body.scrollTop + tmp; 628 D = "layerPosition('"+direction+"',"+time+","+tmp+")"; 629 setTimeout(D,time); 630 } 631 } else { 632 window["blayer_" + direction].style.top = document.body.scrollTop + tmp; 633 D = "layerPosition('"+direction+"',"+time+","+tmp+")"; 634 setTimeout(D,time); 635 } 636 } 637} 638 639 640var min = 0; // ë ì´ì´ top ì´ê¸° ê° (ë ì´ì´ top ê°ê³¼ ì¼ì¹ìí´) 641var max = 0;
642var moving_speed = 40 // ìë(ë®ì ìë¡ ë¹ ë¦) 643var moving_amount = 10 // ìì§ì (ë®ì ìë¡ ë¶ëë¬ì) 644var itm_R, itm_L, max_R, max_L, itm_R_2, itm_L_2, max_R_2, max_L_2; 645function layerPosition2(direction,time,tmp){ 646 var scroll_R, scroll_L, scroll_R_2, scroll_L_2, F; 647 if(!time) { 648 var action_time = 500; // ë°ììê° (*/1000 ì´ íì ë°ì) 649 } else { 650 var action_time = time; // ë°ììê° (*/1000 ì´ íì ë°ì) 651 } 652 window["scroll_" + direction] = document.getElementById("Scroll_" + direction); 653 654 if(window["scroll_" + direction]) { 655 F = "move_init('"+direction+"')"; 656 setTimeout(F, action_time); 657 } 658} 659 660function move_init(t) { 661 var F; 662 if(t=='L_2' || t=='R_2') { 663 min = 610; 664 } 665 window["itm_" + t] = document.getElementById('Scroll_'+t); 666 window["itm_" + t].set_pos = function(y){window["itm_" + t].style.top=y;}; 667 window["itm_" + t].y = min; 668 window["itm_" + t].set_pos(window["itm_" + t].y); 669 //window["max_" + t] = document.body.scrollHeight /2; 670 window["max_" + t] = document.body.scrollHeight - window["itm_" + t].scrollHeight - 200; 671 F = "move_func('"+t+"')"; 672 setTimeout(F, moving_amount); 673} 674 675function move_func(t) { 676 var F; 677 if(t=='L_2' || t=='R_2') { 678 tmp = document.body.scrollTop + min - 600; 679 } else { 680 tmp = document.body.scrollTop + min - 150; 681 } 682 window["itm_" + t].y += Math.floor((tmp-window["itm_" + t].y)/moving_speed); 683 if( window["itm_" + t].y>window["max_" + t] ) window["itm_" + t].y = window["max_" + t]; 684 if( window["itm_" + t].y<min ) window["itm_" + t].y = min; 685 window["itm_" + t].set_pos(window["itm_" + t].y); 686 F = "move_func('"+t+"')"; 687 setTimeout(F, moving_amount); 688} 689 690//window.onload = function(){ 691 if(typeof jQuery == 'undefined') { 692 var jqueryElement = document.createElement('script'); 693 jqueryElement.src = '/js/jquery-1.11.2.js'; 694 695 if(jqueryElement.addEventListener) { 696 jqueryElement.addEventListener("load",callback,false); 697 } else if(jqueryElement.readyState) { 698 jqueryElement.onreadystatechange = callback; 699 } 700 701 document.getElementsByTagName('head')[0].appendChild(jqueryElement); 702 703 function callback() { 704 if(typeof jQuery != 'undefined') { 705 var J = $.noConflict(); //íë¬ê·¸ì¸ ê°ì ì¶©ëì ì ê±°í©ëë¤. 706 707 J(document).ready(function() { 708 //layerPosition("L",100,0); 709 //layerPosition("R",100,0); 710 //layerPosition("L_2",100,0); 711 //layerPosition("R_2",100,0); 712 layerPosition2("L",1,0); 713 layerPosition2("R",1,0); 714 layerPosition2("L_2",1,0); 715 layerPosition2("R_2",1,0); 716 717 }); 718 } 719 } 720 } else { 721 $(window).ready(function() { 722 //layerPosition("L",100,0); 723 //layerPosition("R",100,0); 724 //layerPosition("L_2",100,0); 725 //layerPosition("R_2",100,0); 726 layerPosition2("L",1,0); 727 layerPosition2("R",1,0); 728 layerPosition2("L_2",1,0); 729 layerPosition2("R_2",1,0); 730 731 732 }); 733 } 734//} 735//ë ê°ë°°ë ì¤í¬ë¡¤-e
vendor: 14,672 bytes, lines 736-1270
736 737/*! https://mths.be/punycode v1.4.1 by @mathias */ 738;(function(root) { 739 740 /** Detect free variables */ 741 var freeExports = typeof exports == 'object' && exports && 742 !exports.nodeType && exports; 743 var freeModule = typeof module == 'object' && module && 744 !module.nodeType && module; 745 var freeGlobal = typeof global == 'object' && global; 746 if ( 747 freeGlobal.global === freeGlobal || 748 freeGlobal.window === freeGlobal || 749 freeGlobal.self === freeGlobal 750 ) { 751 root = freeGlobal; 752 } 753 754 /** 755 * The `punycode` object. 756 * @name punycode 757 * @type Object 758 */ 759 var punycode, 760 761 /** Highest positive signed 32-bit float value */ 762 maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 763 764 /** Bootstring parameters */ 765 base = 36, 766 tMin = 1, 767 tMax = 26, 768 skew = 38, 769 damp = 700, 770 initialBias = 72, 771 initialN = 128, // 0x80 772 delimiter = '-', // '\x2D' 773 774 /** Regular expressions */ 775 regexPunycode = /^xn--/, 776 regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars 777 regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators 778 779 /** Error messages */ 780 errors = { 781 'overflow': 'Overflow: input needs wider integers to process', 782 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', 783 'invalid-input': 'Invalid input' 784 }, 785 786 /** Convenience shortcuts */ 787 baseMinusTMin = base - tMin, 788 floor = Math.floor, 789 stringFromCharCode = String.fromCharCode, 790 791 /** Temporary variable */ 792 key; 793 794 /*--------------------------------------------------------------------------*/ 795 796 /** 797 * A generic error utility function. 798 * @private 799 * @param {String} type The error type. 800 * @returns {Error} Throws a `RangeError` with the applicable error message. 801 */ 802 function error(type) { 803 throw new RangeError(errors[type]); 804 } 805 806 /** 807 * A generic `Array#map` utility function. 808 * @private 809 * @param {Array} array The array to iterate over. 810 * @param {Function} callback The function that gets called for every array 811 * item. 812 * @returns {Array} A new array of values returned by the callback function. 813 */ 814 function map(array, fn) { 815 var length = array.length; 816 var result = []; 817 while (length--) { 818 result[length] = fn(array[length]); 819 } 820 return result; 821 } 822 823 /** 824 * A simple `Array#map`-like wrapper to work with domain name strings or email 825 * addresses. 826 * @private 827 * @param {String} domain The domain name or email address. 828 * @param {Function} callback The function that gets called for every 829 * character. 830 * @returns {Array} A new string of characters returned by the callback 831 * function. 832 */ 833 function mapDomain(string, fn) { 834 var parts = string.split('@'); 835 var result = ''; 836 if (parts.length > 1) { 837 // In email addresses, only the domain name should be punycoded. Leave 838 // the local part (i.e. everything up to `@`) intact. 839 result = parts[0] + '@'; 840 string = parts[1]; 841 } 842 // Avoid `split(regex)` for IE8 compatibility. See #17. 843 string = string.replace(regexSeparators, '\x2E'); 844 var labels = string.split('.'); 845 var encoded = map(labels, fn).join('.'); 846 return result + encoded; 847 } 848 849 /** 850 * Creates an array containing the numeric code points of each Unicode 851 * character in the string. While JavaScript uses UCS-2 internally, 852 * this function will convert a pair of surrogate halves (each of which 853 * UCS-2 exposes as separate characters) into a single code point, 854 * matching UTF-16. 855 * @see `punycode.ucs2.encode` 856 * @see <https://mathiasbynens.be/notes/javascript-encoding> 857 * @memberOf punycode.ucs2 858 * @name decode 859 * @param {String} string The Unicode input string (UCS-2). 860 * @returns {Array} The new array of code points. 861 */ 862 function ucs2decode(string) { 863 var output = [], 864 counter = 0, 865 length = string.length, 866 value, 867 extra; 868 while (counter < length) { 869 value = string.charCodeAt(counter++); 870 if (value >= 0xD800 && value <= 0xDBFF && counter < length) { 871 // high surrogate, and there is a next character 872 extra = string.charCodeAt(counter++); 873 if ((extra & 0xFC00) == 0xDC00) { // low surrogate 874 output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); 875 } else { 876 // unmatched surrogate; only append this code unit, in case the next 877 // code unit is the high surrogate of a surrogate pair 878 output.push(value); 879 counter--; 880 } 881 } else { 882 output.push(value); 883 } 884 } 885 return output; 886 } 887 888 /** 889 * Creates a string based on an array of numeric code points. 890 * @see `punycode.ucs2.decode` 891 * @memberOf punycode.ucs2 892 * @name encode 893 * @param {Array} codePoints The array of numeric code points. 894 * @returns {String} The new Unicode string (UCS-2). 895 */ 896 function ucs2encode(array) { 897 return map(array, function(value) { 898 var output = ''; 899 if (value > 0xFFFF) { 900 value -= 0x10000; 901 output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); 902 value = 0xDC00 | value & 0x3FF; 903 } 904 output += stringFromCharCode(value); 905 return output; 906 }).join(''); 907 } 908 909 /** 910 * Converts a basic code point into a digit/integer. 911 * @see `digitToBasic()` 912 * @private 913 * @param {Number} codePoint The basic numeric code point value. 914 * @returns {Number} The numeric value of a basic code point (for use in 915 * representing integers) in the range `0` to `base - 1`, or `base` if 916 * the code point does not represent a value. 917 */ 918 function basicToDigit(codePoint) { 919 if (codePoint - 48 < 10) { 920 return codePoint - 22; 921 } 922 if (codePoint - 65 < 26) { 923 return codePoint - 65; 924 } 925 if (codePoint - 97 < 26) { 926 return codePoint - 97; 927 } 928 return base; 929 } 930 931 /** 932 * Converts a digit/integer into a basic code point. 933 * @see `basicToDigit()` 934 * @private 935 * @param {Number} digit The numeric value of a basic code point. 936 * @returns {Number} The basic code point whose value (when used for 937 * representing integers) is `digit`, which needs to be in the range 938 * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is 939 * used; else, the lowercase form is used. The behavior is undefined 940 * if `flag` is non-zero and `digit` has no uppercase form. 941 */ 942 function digitToBasic(digit, flag) { 943 // 0..25 map to ASCII a..z or A..Z 944 // 26..35 map to ASCII 0..9 945 return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); 946 } 947 948 /** 949 * Bias adaptation function as per section 3.4 of RFC 3492. 950 * https://tools.ietf.org/html/rfc3492#section-3.4 951 * @private 952 */ 953 function adapt(delta, numPoints, firstTime) { 954 var k = 0; 955 delta = firstTime ? floor(delta / damp) : delta >> 1; 956 delta += floor(delta / numPoints); 957 for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { 958 delta = floor(delta / baseMinusTMin); 959 } 960 return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); 961 } 962 963 /** 964 * Converts a Punycode string of ASCII-only symbols to a string of Unicode 965 * symbols. 966 * @memberOf punycode 967 * @param {String} input The Punycode string of ASCII-only symbols. 968 * @returns {String} The resulting string of Unicode symbols. 969 */ 970 function decode(input) { 971 // Don't use UCS-2 972 var output = [], 973 inputLength = input.length, 974 out, 975 i = 0, 976 n = initialN, 977 bias = initialBias, 978 basic, 979 j, 980 index, 981 oldi, 982 w, 983 k, 984 digit, 985 t, 986 /** Cached calculation results */ 987 baseMinusT; 988 989 // Handle the basic code points: let `basic` be the number of input code 990 // points before the last delimiter, or `0` if there is none, then copy 991 // the first basic code points to the output. 992 993 basic = input.lastIndexOf(delimiter); 994 if (basic < 0) { 995 basic = 0; 996 } 997 998 for (j = 0; j < basic; ++j) { 999 // if it's not a basic code point 1000 if (input.charCodeAt(j) >= 0x80) { 1001 error('not-basic'); 1002 } 1003 output.push(input.charCodeAt(j)); 1004 } 1005 1006 // Main decoding loop: start just after the last delimiter if any basic code 1007 // points were copied; start at the beginning otherwise. 1008 1009 for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { 1010 1011 // `index` is the index of the next character to be consumed. 1012 // Decode a generalized variable-length integer into `delta`, 1013 // which gets added to `i`. The overflow checking is easier 1014 // if we increase `i` as we go, then subtract off its starting 1015 // value at the end to obtain `delta`. 1016 for (oldi = i, w = 1, k = base; /* no condition */; k += base) { 1017 1018 if (index >= inputLength) { 1019 error('invalid-input'); 1020 } 1021 1022 digit = basicToDigit(input.charCodeAt(index++)); 1023 1024 if (digit >= base || digit > floor((maxInt - i) / w)) { 1025 error('overflow'); 1026 } 1027 1028 i += digit * w; 1029 t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); 1030 1031 if (digit < t) { 1032 break; 1033 } 1034 1035 baseMinusT = base - t; 1036 if (w > floor(maxInt / baseMinusT)) { 1037 error('overflow'); 1038 } 1039 1040 w *= baseMinusT; 1041 1042 } 1043 1044 out = output.length + 1; 1045 bias = adapt(i - oldi, out, oldi == 0); 1046 1047 // `i` was supposed to wrap around from `out` to `0`, 1048 // incrementing `n` each time, so we'll fix that now: 1049 if (floor(i / out) > maxInt - n) { 1050 error('overflow'); 1051 } 1052 1053 n += floor(i / out); 1054 i %= out; 1055 1056 // Insert `n` at position `i` of the output 1057 output.splice(i++, 0, n); 1058 1059 } 1060 1061 return ucs2encode(output); 1062 } 1063 1064 /** 1065 * Converts a string of Unicode symbols (e.g. a domain name label) to a 1066 * Punycode string of ASCII-only symbols. 1067 * @memberOf punycode 1068 * @param {String} input The string of Unicode symbols. 1069 * @returns {String} The resulting Punycode string of ASCII-only symbols. 1070 */ 1071 function encode(input) { 1072 var n, 1073 delta, 1074 handledCPCount, 1075 basicLength, 1076 bias, 1077 j, 1078 m, 1079 q, 1080 k, 1081 t, 1082 currentValue, 1083 output = [], 1084 /** `inputLength` will hold the number of code points in `input`. */ 1085 inputLength, 1086 /** Cached calculation results */ 1087 handledCPCountPlusOne, 1088 baseMinusT, 1089 qMinusT; 1090 1091 // Convert the input in UCS-2 to Unicode 1092 input = ucs2decode(input); 1093 1094 // Cache the length 1095 inputLength = input.length; 1096 1097 // Initialize the state 1098 n = initialN; 1099 delta = 0; 1100 bias = initialBias; 1101 1102 // Handle the basic code points 1103 for (j = 0; j < inputLength; ++j) { 1104 currentValue = input[j]; 1105 if (currentValue < 0x80) { 1106 output.push(stringFromCharCode(currentValue)); 1107 } 1108 } 1109 1110 handledCPCount = basicLength = output.length; 1111 1112 // `handledCPCount` is the number of code points that have been handled; 1113 // `basicLength` is the number of basic code points. 1114 1115 // Finish the basic string - if it is not empty - with a delimiter 1116 if (basicLength) { 1117 output.push(delimiter); 1118 } 1119 1120 // Main encoding loop: 1121 while (handledCPCount < inputLength) { 1122 1123 // All non-basic code points < n have been handled already. Find the next 1124 // larger one: 1125 for (m = maxInt, j = 0; j < inputLength; ++j) { 1126 currentValue = input[j]; 1127 if (currentValue >= n && currentValue < m) { 1128 m = currentValue; 1129 } 1130 } 1131 1132 // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, 1133 // but guard against overflow 1134 handledCPCountPlusOne = handledCPCount + 1; 1135 if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { 1136 error('overflow'); 1137 } 1138 1139 delta += (m - n) * handledCPCountPlusOne; 1140 n = m; 1141 1142 for (j = 0; j < inputLength; ++j) { 1143 currentValue = input[j]; 1144 1145 if (currentValue < n && ++delta > maxInt) { 1146 error('overflow'); 1147 } 1148 1149 if (currentValue == n) { 1150 // Represent delta as a generalized variable-length integer 1151 for (q = delta, k = base; /* no condition */; k += base) { 1152 t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); 1153 if (q < t) { 1154 break; 1155 } 1156 qMinusT = q - t; 1157 baseMinusT = base - t; 1158 output.push( 1159 stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) 1160 ); 1161 q = floor(qMinusT / baseMinusT); 1162 } 1163 1164 output.push(stringFromCharCode(digitToBasic(q, 0))); 1165 bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); 1166 delta = 0; 1167 ++handledCPCount; 1168 } 1169 } 1170 1171 ++delta; 1172 ++n; 1173 1174 } 1175 return output.join(''); 1176 } 1177 1178 /** 1179 * Converts a Punycode string representing a domain name or an email address 1180 * to Unicode. Only the Punycoded parts of the input will be converted, i.e. 1181 * it doesn't matter if you call it on a string that has already been 1182 * converted to Unicode. 1183 * @memberOf punycode 1184 * @param {String} input The Punycoded domain name or email address to 1185 * convert to Unicode. 1186 * @returns {String} The Unicode representation of the given Punycode 1187 * string. 1188 */ 1189 function toUnicode(input) { 1190 return mapDomain(input, function(string) { 1191 return regexPunycode.test(string) 1192 ? decode(string.slice(4).toLowerCase()) 1193 : string; 1194 }); 1195 } 1196 1197 /** 1198 * Converts a Unicode string representing a domain name or an email address to 1199 * Punycode. Only the non-ASCII parts of the domain name will be converted, 1200 * i.e. it doesn't matter if you call it with a domain that's already in 1201 * ASCII. 1202 * @memberOf punycode 1203 * @param {String} input The domain name or email address to convert, as a 1204 * Unicode string. 1205 * @returns {String} The Punycode representation of the given domain name or 1206 * email address. 1207 */ 1208 function toASCII(input) { 1209 return mapDomain(input, function(string) { 1210 return regexNonASCII.test(string) 1211 ? 'xn--' + encode(string) 1212 : string; 1213 }); 1214 } 1215 1216 /*--------------------------------------------------------------------------*/ 1217 1218 /** Define the public API */ 1219 punycode = { 1220 /** 1221 * A string representing the current Punycode.js version number. 1222 * @memberOf punycode 1223 * @type String 1224 */ 1225 'version': '1.4.1', 1226 /** 1227 * An object of methods to convert from JavaScript's internal character 1228 * representation (UCS-2) to Unicode code points, and back. 1229 * @see <https://mathiasbynens.be/notes/javascript-encoding> 1230 * @memberOf punycode 1231 * @type Object 1232 */ 1233 'ucs2': { 1234 'decode': ucs2decode, 1235 'encode': ucs2encode 1236 }, 1237 'decode': decode, 1238 'encode': encode, 1239 'toASCII': toASCII, 1240 'toUnicode': toUnicode 1241 }; 1242 1243 /** Expose `punycode` */ 1244 // Some AMD build optimizers, like r.js, check for specific condition patterns 1245 // like the following: 1246 if ( 1247 typeof define == 'function' && 1248 typeof define.amd == 'object' && 1249 define.amd 1250 ) { 1251 define('punycode', function() { 1252 return punycode; 1253 }); 1254 } else if (freeExports && freeModule) { 1255 if (module.exports == freeExports) { 1256 // in Node.js, io.js, or RingoJS v0.8.0+ 1257 freeModule.exports = punycode; 1258 } else { 1259 // in Narwhal or RingoJS v0.7.0- 1260 for (key in punycode) { 1261 punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]); 1262 } 1263 } 1264 } else { 1265 // in Rhino or a web browser 1266 root.punycode = punycode; 1267 } 1268 1269}(this)); 1270
1271function ascii_to_unicode(src) { 1272 var Pattern = /\/[0-9]{1,}/; 1273 var ss = src.match(Pattern); 1274 1275 var src2 = src.replace("http://", "").replace("https://", "").replace("www.", ""); 1276 var src3 = src.replace("http://", "").replace("https://", "").replace("www.", "").replace(ss[0], ""); 1277 var de = 'http://www.' + punycode.toUnicode(src3) + ss[0]; 1278 return de; 1279} 1280 1281/* SNSë³´ë´ê¸° URLë³µì¬ */ 1282showPopup = function() { 1283 var IE=(document.all)?true:false; 1284 var src = $(location).attr('href'); 1285 if (IE) { 1286 if(confirm("ì´ ê¸ì 주ì를 í´ë¦½ë³´ëì ë³µì¬íìê² ìµëê¹?")) 1287 window.clipboardData.setData("Text", src); 1288 } else { 1289 prompt("ì´ ê¸ì 주ìì ëë¤. Ctrl+C를 ëë¬ í´ë¦½ë³´ëë¡ ë³µì¬íì¸ì", src); 1290 } 1291} 1292//íê¸ëë©ì¸ì© 1293showPopup_han = function() { 1294 var IE=(document.all)?true:false; 1295 var src = ascii_to_unicode($(location).attr('href')); 1296 if (IE) { 1297 if(confirm("ì´ ê¸ì 주ì를 í´ë¦½ë³´ëì ë³µì¬íìê² ìµëê¹?")) 1298 window.clipboardData.setData("Text", src); 1299 } else { 1300 prompt("ì´ ê¸ì 주ìì ëë¤. Ctrl+C를 ëë¬ í´ë¦½ë³´ëë¡ ë³µì¬íì¸ì", src); 1301 } 1302} 1303/* //SNSë³´ë´ê¸° URLë³µì¬ */ 1304 1305/* 모ë°ì¼_ë°ë¡ê°ê¸° */ 1306function mobile_shortcut(){ 1307 if($('#mobile_shortcut').length < 1 ) { 1308 var body_width = $(document).innerWidth(); 1309 $('body').before('<div id="mobile_shortcut2" style="clear:both; width:100%; min-width:'+body_width+'px; margin:0 0 0 0"><a href="/m_g.php?out=ok" style="display:block; padding:80px 0; background:#333; text-align:center; text-decoration:none"><span style="font-family:AppleSDGothicNeo-SemiBold; vertical-align:middle; font-weight:bold; font-size:50px; letter-spacing:-2px; color:#fff">모ë°ì¼ ë²ì ì¼ë¡ 보기<img src="/img/ico_arrow.png?w=160726" style="vertical-align:middle;margin:-3px 0 0 7px;*margin-top:-1px;" alt="모ë°ì¼ ë²ì ì¼ë¡ ì´ë"></span></a></div>'); 1310 $('body').after('<div id="mobile_shortcut" style="clear:both; width:100%; min-width:'+body_width+'px; margin:10px 0 0"><a href="/m_g.php?out=ok" style="display:block; padding:80px 0; background:#333; text-align:center; text-decoration:none"><span style="font-family:AppleSDGothicNeo-SemiBold; vertical-align:middle; font-weight:bold; font-size:50px; letter-spacing:-2px; color:#fff">모ë°ì¼ ë²ì ì¼ë¡ 보기<img src="/img/ico_arrow.png?w=160726" style="vertical-align:middle;margin:-3px 0 0 7px;*margin-top:-1px;" alt="모ë°ì¼ ë²ì ì¼ë¡ ì´ë"></span></a></div>'); 1311 } 1312} 1313/* //모ë°ì¼_ë°ë¡ê°ê¸° */ 1314 1315/* ì¦ê²¨ì°¾ê¸°/ë¶ë§í¬ */ 1316function bookmarksite(title,url){ 1317 var browser = { 1318 chk : navigator.userAgent.toLowerCase() 1319 }; 1320 1321 browser = { 1322 ie : browser.chk.indexOf('msie') != -1, 1323 ie6 : browser.chk.indexOf('msie 6') != -1, 1324 ie7 : browser.chk.indexOf('msie 7') != -1, 1325 ie8 : browser.chk.indexOf('msie 8') != -1, 1326 ie9 : browser.chk.indexOf('msie 9') != -1, 1327 ie10 : browser.chk.indexOf('msie 10') != -1, 1328 ie11 : browser.chk.indexOf('rv:11') != -1, 1329 chrome : browser.chk.indexOf('chrome') != -1, 1330 firefox : browser.chk.indexOf('firefox') != -1, 1331 safari : browser.chk.indexOf('safari') != -1, 1332 opera : browser.chk.indexOf('opr') != -1 1333 }; 1334 1335 if(browser.ie || browser.ie11){ 1336 window.external.AddFavorite(url, title); 1337 }else if(browser.opera || browser.firefox || browser.safari || browser.chrome){ 1338 alert("Ctrl+Dí¤ë¥¼ ë르ìë©´ ì¦ê²¨ì°¾ê¸°ì ì¶ê°íì¤ ì ììµëë¤."); 1339 }else{ 1340 alert("ì§ìíì§ ìë ë¸ë¼ì°ì ì ëë¤."); 1341 } 1342} 1343/* //ì¦ê²¨ì°¾ê¸°/ë¶ë§í¬ */ 1344 1345/* 본문 ì¬ì´ ê´ê³ : ìì */ 1346function tree_ad(line, style, up_down) { 1347 line = typeof line !== 'undefined' ? line : 1; 1348 style = typeof style !== 'undefined' ? style : 'float:right; width:336px; height:280px; padding: 0 0 0 10px; position: relative; z-index:999999999;'; 1349 up_down = typeof up_down !== 'undefined' ? up_down : 'up'; 1350 //text-align: center; width:100%; height:280px; padding: 10px 0 10px 0; position: relative; z-index:999999999; 1351 var p_i = 0; 1352 var div_i = 0; 1353 var br_i = 0; 1354 var chk = 0; 1355 1356 $("#textinput").find('p').each(function(){ 1357 console.log(); 1358 if($.trim(this.innerHTML) !== " " && this.innerHTML !== " " && $(this).attr('class') !== 'body_img_caption' && $(this).find('img').attr('id') !== 'img_pop_view' && $(this).parent().prop('tagName')!="TD") { 1359 p_i++; 1360 if(p_i==line) { 1361 var index = $('#textinput p').index(this); 1362 if(up_down=='up') { 1363 $("#textinput p:eq("+index+")").before("<div id='tree_line_" + line + "' style='" + style + "'></div>"); 1364 } else { 1365 $("#textinput p:eq("+index+")").after("<div id='tree_line_" + line + "' style='" + style + "'></div>"); 1366 } 1367 window['tree_line_'+line] = $("#tree_line_"+line); 1368 window['tree_line_tmp_'+line] = $("#tree_line_tmp_"+line); 1369 window['tree_line_tmp_'+line].css('display','block'); 1370 window['tree_line_'+line].append(window['tree_line_tmp_'+line]); 1371 if(window['tree_line_'+line].height()==0) { 1372 window['tree_line_'+line].css("padding","0 0 0 0"); 1373 } 1374 chk = 1; 1375 return false;
1376 } 1377 } 1378 }); 1379 1380 if(chk==0) { 1381 $("#textinput").find('br').each(function(){ 1382 if($.trim(this.innerHTML) !== " " && this.innerHTML !== " " && $(this).attr('class') !== 'body_img_caption' && $(this).parent().prop('tagName')!="TD") { 1383 br_i++; 1384 if(br_i==line) { 1385 var index = $('#textinput br').index(this); 1386 if(up_down=='up') { 1387 $("#textinput br:eq("+index+")").before("<div id='tree_line_" + line + "' style='" + style + "'></div>"); 1388 } else { 1389 $("#textinput br:eq("+index+")").after("<div id='tree_line_" + line + "' style='" + style + "'></div>"); 1390 } 1391 window['tree_line_'+line] = $("#tree_line_"+line); 1392 window['tree_line_tmp_'+line] = $("#tree_line_tmp_"+line); 1393 window['tree_line_tmp_'+line].css('display','block'); 1394 window['tree_line_'+line].append(window['tree_line_tmp_'+line]); 1395 chk = 1; 1396 return false; 1397 } 1398 } 1399 }); 1400 } 1401 1402 if(chk==0) { 1403 $("#textinput").find('div').each(function(){ 1404 if($(this).attr('id')) { 1405 if($.trim(this.innerHTML) !== " " && $.trim(this.innerHTML) !== "" && $(this).attr('class') !== 'thumb_box' && $(this).attr('class') !== 'body_img_table2' && $(this).attr('id').indexOf('tree_line_') !== -1 && $(this).attr('id').indexOf('mov') !== -1 && $(this).attr('id').indexOf('tree_line_tmp_') !== -1) { 1406 div_i++; 1407 if(div_i==line) { 1408 var index2 = $('#textinput div').index(this); 1409 if(up_down=='up') { 1410 $("#textinput div:eq("+index2+")").before("<div id='tree_line_" + line + "' style='" + style + "'></div>"); 1411 } else { 1412 $("#textinput div:eq("+index2+")").after("<div id='tree_line_" + line + "' style='" + style + "'></div>"); 1413 } 1414 window['tree_line_'+line] = $("#tree_line_"+line); 1415 window['tree_line_tmp_'+line] = $("#tree_line_tmp_"+line); 1416 window['tree_line_tmp_'+line].css('display','block'); 1417 window['tree_line_'+line].append(window['tree_line_tmp_'+line]); 1418 chk = 1; 1419 return false; 1420 } 1421 } 1422 } else { 1423 if($.trim(this.innerHTML) !== " " && $.trim(this.innerHTML) !== "" && $(this).attr('class') !== 'thumb_box' && $(this).attr('class') !== 'body_img_table2') { 1424 div_i++; 1425 if(div_i==line) { 1426 var index2 = $('#textinput div').index(this); 1427 if(up_down=='up') { 1428 $("#textinput div:eq("+index2+")").before("<div id='tree_line_" + line + "' style='" + style + "'></div>"); 1429 } else { 1430 $("#textinput div:eq("+index2+")").after("<div id='tree_line_" + line + "' style='" + style + "'></div>"); 1431 } 1432 window['tree_line_'+line] = $("#tree_line_"+line); 1433 window['tree_line_tmp_'+line] = $("#tree_line_tmp_"+line); 1434 window['tree_line_tmp_'+line].css('display','block'); 1435 window['tree_line_'+line].append(window['tree_line_tmp_'+line]); 1436 chk = 1; 1437 return false; 1438 } 1439 } 1440 } 1441 }); 1442 } 1443} 1444/* 본문 ì¬ì´ ê´ê³ : ë */ 1445 1446if(typeof jQuery != 'undefined') { 1447 $(document).ready(function(){ 1448 //tts 1449 $("#tts_on").click(function(){ 1450 var a= $(this).attr('tts_url'); 1451 var b= $(this).attr('tts_uid'); 1452 var c= $(this).attr('speak'); 1453 var s=document.getElementById("tts_on"); 1454 var data="tts_url="+a+"&tts_uid="+b; 1455 //alert(data); 1456 $.ajax({ 1457 data: data, 1458 type: 'GET', 1459 url: 'https://tts2.inswave.net/tts_ins_ms.php', 1460 1461 success:function(args){ 1462 1463 var audio ="<audio src='"+args+"' id='myaudio'></audio>"; 1464 1465 if(c=="on") 1466 { 1467 1468 s.innerHTML=audio; 1469 var vid = document.getElementById("myaudio"); 1470 vid.play(); 1471 $("#tts_on").attr("speak","off"); 1472 1473 }else 1474 { 1475 var vid = document.getElementById("myaudio"); 1476 vid.pause(); 1477 $("#tts_on").attr("speak","on"); 1478 1479 } 1480 1481 }, 1482 1483 //beforeSend:showRequest, 1484 error:function(e){ 1485 alert(e.responseText); 1486 } 1487 1488 }); 1489 }); 1490 1491 /* 모ë°ì¼ì¹ ì¬ë¶ ì²´í¬ í 모ë°ì¼ ì ìì´ë©´ 모ë°ì¼ ë²ì ì¼ë¡ 보기 ë ¸ì¶ */ 1492 1493 var cmaDns = location.href.split("//"); 1494 var url_tmp = "http://m."+cmaDns[1].substr(0,cmaDns[1].indexOf("/")).replace(/www./g,''); 1495 var arSplitUrl = document.URL.split("/"); 1496 1497 $.ajax({ 1498 url: url_tmp+"/chk.php", 1499 dataType: 'jsonp', 1500 jsonpCallback: "myCallback", 1501 success: function (chk) { 1502 if(chk['chk'] == "ok") { 1503 var filter = "win16|win32|win64|mac|macintosh|macintel|macosx"; 1504 1505 if(navigator.platform){ 1506 if(0 > filter.indexOf(navigator.platform.toLowerCase())){ 1507 if(arSplitUrl[3]!='admin') { 1508 mobile_shortcut(); 1509 } 1510 } 1511 } 1512 console.log(url_tmp+" : ì¬ì©ì¤"); 1513 } else { 1514 console.log(url_tmp+" : 미ì¬ì©ì¤"); 1515 } 1516 }, 1517 error: function () { 1518 console.log(url_tmp+" : 미ì¬ì©ì¤"); 1519 } 1520 }); 1521 /* //모ë°ì¼ì¹ ì¬ë¶ ì²´í¬ í 모ë°ì¼ ì ìì´ë©´ 모ë°ì¼ ë²ì ì¼ë¡ 보기 ë ¸ì¶ */ 1522 1523 }); 1524} 1525 1526/* 맨íë¨ìì ì¤í¬ë¡¤ì ë¤ì 기ì¬ë¡ ì´ë */ 1527////////////////////////////////////////////// 1528// scroll_next_news // 1529// Source : zum https://www.zum.com // 1530// https://news.zumst.com/scripts/view.js // 1531////////////////////////////////////////////// 1532// /newnews/ajax_nextnews.php // 1533/* 1534sub_read_skin.html ëë serial_read_skin.html ì ì ì© 1535 1536<!-- scroll next news : start --> 1537<script> 1538wheelEventEnable = true; //ì¬ì©ì¬ë¶ true,false 1539wheelSectonEnable = false; //ì¹ì 1 true,false 1540wheelSecton2Enable = false; //ì¹ì 2 true,false 1541fadeOutN = 0; //íì´ì§ ì íí¨ê³¼ ì´ ë¨ì 1542</script> 1543<!-- scroll next news : end --> 1544 1545*/ 1546 1547if(typeof jQuery != 'undefined') { 1548 1549var lastchk = false;
1550var wheelEventEnable = false; 1551var wheelSectonEnable = false; 1552var wheelSecton2Enable = false; 1553var wheel_wdate = 'none'; 1554var wheel_sc = 'none'; 1555var wheel_sc2 = 'none'; 1556var fadeOutN = 0; 1557 1558function urlParam(name){ 1559 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 1560 var results2 = window.location.href.replace($(location).attr('protocol')+"//"+$(location).attr('host')+'/',''); 1561 if (results==null){ 1562 if($.isNumeric(results2)) { 1563 return results2; 1564 } else { 1565 return null; 1566 } 1567 } 1568 else{ 1569 return results[1] || 0; 1570 } 1571} 1572 1573function nextNews(e) { 1574 var fdata = ""; 1575 $.ajax({ 1576 type: "POST", 1577 url: "/newnews/ajax_nextnews.php", 1578 data: "mode=wdate&uid="+urlParam('uid'), 1579 cache: false, 1580 async: false, 1581 success: function(data){ 1582 if(data.rCode==2) { 1583 if($.isNumeric(data.rWdate)) { 1584 wheel_wdate = data.rWdate; 1585 wheel_sc = data.rSection; 1586 wheel_sc2 = data.rSection2; 1587 } 1588 } else { 1589 window.console && console.log(data.rMsg); 1590 } 1591 } 1592 }); 1593 1594 if(wheelSectonEnable) { 1595 if(wheelSecton2Enable) { 1596 fdata = "mode=next&uid="+urlParam('uid')+"&wdate="+wheel_wdate+"§ion="+wheel_sc+"§ion2="+wheel_sc2; 1597 } else { 1598 fdata = "mode=next&uid="+urlParam('uid')+"&wdate="+wheel_wdate+"§ion="+wheel_sc; 1599 } 1600 } else { 1601 fdata = "mode=next&uid="+urlParam('uid')+"&wdate="+wheel_wdate; 1602 } 1603 1604 if(fadeOutN) { 1605 fadeOutN = (1000*fadeOutN); 1606 } 1607 1608 $.ajax({ 1609 type: "POST", 1610 url: "/newnews/ajax_nextnews.php", 1611 data: fdata, 1612 cache: false, 1613 async: false, 1614 success: function(data){ 1615 if(data.rCode==2) { 1616 if($.isNumeric(data.rUid)) { 1617 if(window.location.pathname=="/serial_read.html") { 1618 $("body").fadeOut(fadeOutN, function () { 1619 location.href = $(location).attr('protocol')+"//"+$(location).attr('host')+"/serial_read.html?uid="+data.rUid; 1620 }); 1621 } else { 1622 $("body").fadeOut(fadeOutN, function () { 1623 location.href = $(location).attr('protocol')+"//"+$(location).attr('host')+"/"+data.rUid; 1624 }); 1625 } 1626 } 1627 } else { 1628 if(data.rMsg=="last") { 1629 lastchk = true; 1630 $("#lastmsg").fadeIn(200, function () { 1631 setTimeout(function () { 1632 $("#lastmsg").fadeOut(200); 1633 }, 3000); 1634 }); 1635 } else { 1636 window.console && console.log(data.rMsg); 1637 } 1638 } 1639 } 1640 }); 1641} 1642 1643var wheelEvent = { 1644 enabled: false, 1645 scrollInfo: false, 1646 nextAction: false, 1647 $parentWindow: $(window), 1648 $parentDocument: $(document), 1649 1650 init: function() { 1651 $("body").append('<div id="scrollInfo" style="display: none; width: 100%; position: fixed; bottom: 0px; height: 50px; line-height: 50px; white-space: nowrap; background: #fff; border: 1px solid #ededed; padding: 0 10px; text-align: center;"><p style="font-size: 18px; letter-spacing: -0.7px; color: #212121; color: rgba(0, 0, 0, 0.87);"><strong style="color: #1b52ed;">íë² ë ì¤í¬ë¡¤</strong>íë©´ ë¤ì 기ì¬ë¡ ì´ëí©ëë¤.</p></div><div id="lastmsg" style="display: none; width: 100%; position: fixed; bottom: 0px; height: 50px; line-height: 50px; white-space: nowrap; background: #fff; border: 1px solid #ededed; padding: 0 10px; text-align: center;"><p style="font-size: 18px; letter-spacing: -0.7px; color: #212121; color: rgba(0, 0, 0, 0.87);"><strong style="color: #1b52ed;">ë§ì§ë§ 기ì¬ì ëë¤.</strong></p></div>'); 1652 1653 $("html, body").on('mousewheel DOMMouseScroll onmousewheel', function (e) { 1654 wheelEvent.enabled && wheelEvent.executeAction(e); 1655 }); 1656 1657 this.$parentDocument.find("html, body").on('mousewheel DOMMouseScroll onmousewheel', function (e) { 1658 wheelEvent.enabled && wheelEvent.executeAction(e); 1659 }); 1660 1661 this.$parentWindow.on('keydown',function(e) { 1662 if(wheelEvent.enabled && e.keyCode === 40) { 1663 wheelEvent.executeAction(e); 1664 } 1665 }); 1666 1667 this.enabled = true; 1668 }, 1669 1670 isLastScroll: function() { 1671 var myHeight = 0; 1672 if (typeof (window.innerHeight) == 'number') { //Chrome 1673 myHeight = window.innerHeight; 1674 } else if (document.documentElement && document.documentElement.clientHeight) { 1675 myHeight = document.documentElement.clientHeight; 1676 } else if (document.body && document.body.clientHeight) { //IE9 1677 myHeight = document.body.clientHeight; 1678 } 1679 1680 var myScrollTop = ""; 1681 if (this.$parentWindow.scrollTop()) { 1682 myScrollTop = this.$parentWindow.scrollTop(); 1683 } else if (document.body && document.body.scrollTop) { //IE9 1684 myScrollTop = document.body.scrollTop; 1685 } 1686 //return this.$parentWindow.scrollTop() + this.$parentWindow.height() >= this.$parentDocument.height(); 1687 return myScrollTop + myHeight >= this.$parentDocument.height(); 1688 }, 1689 1690 onWheelEvent: function() { 1691 if(!this.isLastScroll()) { 1692 this.offWheelEvent(); 1693 return; 1694 } 1695 1696 if(this.$parentDocument.find("#scrollInfo").is(":not(:visible)")) { 1697 this.scrollAlertAction(); 1698 } 1699 1700 this.enabled = true; 1701 }, 1702 1703 offWheelEvent: function() { 1704 this.enabled = false;
1705 }, 1706 1707 executeAction: function(e) { 1708 var isDown = (e.originalEvent.detail > 0 || e.originalEvent.wheelDelta < 0 || e.originalEvent.deltaY > 0 || e.type === 'keydown'); 1709 1710 if(isDown && this.$parentDocument.find("#scrollInfo").is(":not(:visible)")) { 1711 this.scrollAlertAction(); 1712 } 1713 if(isDown && this.$parentDocument.find("#scrollInfo").is(":visible")){ 1714 if(this.scrollInfo && !this.nextAction) { 1715 this.nextAction = true; 1716 nextNews(e); 1717 } else if(lastchk) { 1718 $("#lastmsg").fadeIn(200, function () { 1719 setTimeout(function () { 1720 $("#lastmsg").fadeOut(200); 1721 }, 3000); 1722 }); 1723 } 1724 } 1725 }, 1726 1727 scrollAlertAction: function() { 1728 if(wheelEventEnable){ 1729 if(!this.scrollInfo && this.isLastScroll()) { 1730 this.$parentDocument.find("#scrollInfo").fadeIn(200, function () { 1731 wheelEvent.scrollInfo = true; 1732 setTimeout(function () { 1733 wheelEvent.$parentDocument.find("#scrollInfo").fadeOut(200); 1734 wheelEvent.scrollInfo = false; 1735 }, 3000); 1736 }); 1737 } 1738 } 1739 } 1740}; 1741 1742$(window).on('load', function() { 1743 wheelEvent.init(); 1744 1745 $(parent.window).scroll(function() { 1746 wheelEvent.onWheelEvent(); 1747 }); 1748}); 1749} 1750/* //맨íë¨ìì ì¤í¬ë¡¤ì ë¤ì 기ì¬ë¡ ì´ë */ 1751 1752/* 본문ì ì íë¸, ë¤ì´ë² iframe ììì´ ìì ê²½ì° iframeì y_n_video_iframe í´ëì¤ ì¶ê°-ìì */ 1753$(document).ready(function(){ 1754 $("#textinput").find('iframe').each(function(){ 1755 var if_src = $(this).attr('src'); 1756 if(if_src.indexOf('youtube') != -1 || if_src.indexOf('naver') != -1) { 1757 $(this).addClass("y_n_video_iframe"); 1758 } 1759 }); 1760}); 1761/* 본문ì ì íë¸, ë¤ì´ë² iframe ììì´ ìì ê²½ì° iframeì y_n_video_iframe í´ëì¤ ì¶ê°-ë */ 1762 1763/* êµ¬ê¸ ë²ì기 : ìì */ 1764//<script>googleTranslateE('ko,en,ja,zh-CN,de,fr');</script> ë ¸ì¶ìí¬ êµê° ,구ë¶ì¼ë¡ ì ë ¥ ë ¸ì¶ ìí¬ ìì¹ì í´ë¹ ìì¤ ì¶ê° 1765function lang_kr(lang) { 1766 var $lang_txt = ''; 1767 switch(lang) { 1768 case "gl": $lang_txt = "ê°ë¦¬ììì´"; break; 1769 case "gu": $lang_txt = "구ìë¼í¸ì´"; break; 1770 case "el": $lang_txt = "그리ì¤ì´"; break; 1771 case "nl": $lang_txt = "ë¤ëëëì´"; break; 1772 case "ne": $lang_txt = "ë¤íì´"; break; 1773 case "no": $lang_txt = "ë ¸ë¥´ì¨ì´ì´"; break; 1774 case "da": $lang_txt = "ë´ë§í¬ì´"; break; 1775 case "de": $lang_txt = "ë ì¼ì´"; break; 1776 case "lo": $lang_txt = "ë¼ì¤ì´"; break; 1777 case "lv": $lang_txt = "ë¼í¸ë¹ìì´"; break; 1778 case "la": $lang_txt = "ë¼í´ì´"; break; 1779 case "ru": $lang_txt = "ë¬ììì´"; break; 1780 case "ro": $lang_txt = "루ë§ëìì´"; break; 1781 case "lb": $lang_txt = "룩ì ë¶ë¥´í¬ì´"; break;
1782 case "lt": $lang_txt = "리í¬ìëìì´"; break; 1783 case "mr": $lang_txt = "ë§ë¼í°ì´"; break; 1784 case "mi": $lang_txt = "ë§ì¤ë¦¬ì´"; break; 1785 case "mk": $lang_txt = "ë§ì¼ëëìì´"; break; 1786 case "mg": $lang_txt = "ë§ë¼ê°ìì´"; break; 1787 case "ml": $lang_txt = "ë§ë¼ìëì´"; break; 1788 case "ms": $lang_txt = "ë§ë ì´ì´"; break; 1789 case "mt": $lang_txt = "몰íì´"; break; 1790 case "mn": $lang_txt = "몽골ì´"; break; 1791 case "hmn": $lang_txt = "몽ì´"; break; 1792 case "my": $lang_txt = "미ìë§ì´ (ë²ë§ì´)"; break; 1793 case "eu": $lang_txt = "ë°ì¤í¬ì´"; break; 1794 case "vi": $lang_txt = "ë² í¸ë¨ì´"; break; 1795 case "be": $lang_txt = "벨ë¼ë£¨ì¤ì´"; break; 1796 case "bn": $lang_txt = "벵골ì´"; break; 1797 case "bs": $lang_txt = "ë³´ì¤ëìì´"; break; 1798 case "bg": $lang_txt = "ë¶ê°ë¦¬ìì´"; break; 1799 case "sm": $lang_txt = "ì¬ëª¨ìì´"; break; 1800 case "sr": $lang_txt = "ì¸ë¥´ë¹ìì´"; break; 1801 case "ceb": $lang_txt = "ì¸ë¶ìë ¸"; break; 1802 case "st": $lang_txt = "ì¸ìí ì´"; break; 1803 case "so": $lang_txt = "ìë§ë¦¬ìì´"; break; 1804 case "sn": $lang_txt = "ì¼ëì´"; break; 1805 case "su": $lang_txt = "ìë¤ì´"; break; 1806 case "sw": $lang_txt = "ì¤ìí리ì´"; break; 1807 case "sv": $lang_txt = "ì¤ì¨ë´ì´"; break; 1808 case "gd": $lang_txt = "ì¤ì½íëë ê²ì¼ì´"; break; 1809 case "es": $lang_txt = "ì¤íì¸ì´"; break; 1810 case "sk": $lang_txt = "ì¬ë¡ë°í¤ìì´"; break; 1811 case "sl": $lang_txt = "ì¬ë¡ë² ëìì´"; break; 1812 case "sd": $lang_txt = "ì ëì´"; break; 1813 case "si": $lang_txt = "ì í ë¼ì´"; break; 1814 case "ar": $lang_txt = "ìëì´"; break; 1815 case "hy": $lang_txt = "ì르ë©ëìì´"; break; 1816 case "is": $lang_txt = "ìì´ì¬ëëì´"; break; 1817 case "ht": $lang_txt = "ìì´í° í¬ë¦¬ì¬ì´"; break; 1818 case "ga": $lang_txt = "ìì¼ëëì´"; break; 1819 case "az": $lang_txt = "ìì 르ë°ì´ìì´"; break; 1820 case "af": $lang_txt = "ìí리칸ì¤ì´"; break; 1821 case "sq": $lang_txt = "ìë°ëìì´"; break; 1822 case "am": $lang_txt = "ìíë¼ì´"; break; 1823 case "et": $lang_txt = "ìì¤í ëìì´"; break; 1824 case "eo": $lang_txt = "ìì¤íëí ì´"; break; 1825 case "en": $lang_txt = "ìì´"; break; 1826 case "or": $lang_txt = "ì¤ë¦¬ì¼ì´"; break; 1827 case "yo": $lang_txt = "ì루ë°ì´"; break; 1828 case "ur": $lang_txt = "ì°ë¥´ëì´"; break; 1829 case "uz": $lang_txt = "ì°ì¦ë² í¬ì´"; break; 1830 case "uk": $lang_txt = "ì°í¬ë¼ì´ëì´"; break; 1831 case "cy": $lang_txt = "ì¨ì¼ì¦ì´"; break; 1832 case "ug": $lang_txt = "ì구르ì´"; break; 1833 case "ig": $lang_txt = "ì´ê·¸ë³´ì´"; break; 1834 case "yi": $lang_txt = "ì´ëìì´"; break; 1835 case "it": $lang_txt = "ì´í리ìì´"; break; 1836 case "id": $lang_txt = "ì¸ëë¤ììì´"; break; 1837 case "ja": $lang_txt = "ì¼ë³¸ì´"; break; 1838 case "jw": $lang_txt = "ìë°ì´"; break; 1839 case "ka": $lang_txt = "ì¡°ì§ìì´"; break; 1840 case "zu": $lang_txt = "ì¤ë£¨ì´"; break; 1841 case "zh-CN": $lang_txt = "ì¤êµì´(ê°ì²´)"; break; 1842 case "ny": $lang_txt = "ì²´ìì´"; break; 1843 case "cs": $lang_txt = "ì²´ì½ì´"; break; 1844 case "kk": $lang_txt = "ì¹´ìíì´"; break; 1845 case "ca": $lang_txt = "ì¹´íë¡ëìì´"; break; 1846 case "kn": $lang_txt = "칸ëë¤ì´"; break; 1847 case "co": $lang_txt = "ì½ë¥´ìì¹´ì´"; break; 1848 case "xh": $lang_txt = "ì½ì¬ì´"; break; 1849 case "ku": $lang_txt = "ì¿ ë¥´ëì´"; break; 1850 case "hr": $lang_txt = "í¬ë¡ìí°ìì´"; break; 1851 case "km": $lang_txt = "í¬ë©ë¥´ì´"; break; 1852 case "rw": $lang_txt = "í¤ë르ìë¤ì´"; break; 1853 case "ky": $lang_txt = "í¤ë¥´ê¸°ì¤ì´"; break; 1854 case "tl": $lang_txt = "íê°ë¡ê·¸ì´"; break; 1855 case "ta": $lang_txt = "íë°ì´"; break; 1856 case "tg": $lang_txt = "íì§í¬ì´"; break; 1857 case "tt": $lang_txt = "íí르ì´"; break; 1858 case "th": $lang_txt = "íêµì´"; break; 1859 case "tr": $lang_txt = "í°í¤ì´"; break; 1860 case "te": $lang_txt = "í 루구ì´"; break; 1861 case "tk": $lang_txt = "í¬ë¥´í¬ë©ì´"; break; 1862 case "ps": $lang_txt = "íìí ì´"; break; 1863 case "pa": $lang_txt = "íìë¸ì´"; break; 1864 case "fa": $lang_txt = "í르ììì´"; break; 1865 case "pt": $lang_txt = "í¬ë¥´í¬ê°ì´"; break; 1866 case "pl": $lang_txt = "í´ëëì´"; break; 1867 case "fr": $lang_txt = "íëì¤ì´"; break; 1868 case "fy": $lang_txt = "í리ì§ìì´"; break; 1869 case "fi": $lang_txt = "íëëì´"; break; 1870 case "haw": $lang_txt = "íìì´ì´"; break; 1871 case "ha": $lang_txt = "íì°ì¬ì´"; break; 1872 case "hu": $lang_txt = "íê°ë¦¬ì´"; break; 1873 case "iw": $lang_txt = "íë¸ë¦¬ì´"; break; 1874 case "hi": $lang_txt = "íëì´"; break; 1875 case "ko": $lang_txt = "íêµì´"; break; 1876 default: $lang_txt = "íêµì´"; break; 1877 }; 1878 return $lang_txt; 1879} 1880 1881function googleTranslateE(lang) { 1882 lang = typeof lang !== 'undefined' ? lang : 'ko,en,ja,zh-CN,de,fr'; 1883 var lang_a = new Array("ko","en","ja","zh-CN","de","fr"); 1884 var strArray=lang.split(','); 1885 1886 var jqueryElement = document.createElement('script'); 1887 jqueryElement.src = '//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit'; 1888 function googleTranslateE_callback() {} 1889 if(jqueryElement.addEventListener) { 1890 jqueryElement.addEventListener("load",googleTranslateE_callback,false); 1891 } else if(jqueryElement.readyState) { 1892 jqueryElement.onreadystatechange = googleTranslateE_callback; 1893 } 1894 1895 document.getElementsByTagName('head')[0].appendChild(jqueryElement); 1896 1897 var styletag = "<style>"; 1898 styletag += ".googleTranslate_i {margin: 0 0 0 7px;}"; 1899 styletag += ".googleTranslate_i > a > span {background:url('/img/trans-icon.png') no-repeat}"; 1900 styletag += ".googleTranslate_i > a.en > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:0 0}"; 1901 styletag += ".googleTranslate_i > a.ja > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-46px 0}"; 1902 styletag += ".googleTranslate_i > a.zh-CN > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-92px 0}"; 1903 styletag += ".googleTranslate_i > a.de > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-138px 0}"; 1904 styletag += ".googleTranslate_i > a.fr > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-184px 0}"; 1905 styletag += ".googleTranslate_i > a.ko > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-230px 0}"; 1906 styletag += ".googleTranslate_i > a.es > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-276px 0}"; 1907 styletag += "#google_translate_element,.goog-te-banner-frame, .skiptranslate {display: none!important;}"; 1908 styletag += "body{top:0px!important;}"; 1909 styletag += "</style>"; 1910 $('head').append(styletag); 1911 1912 $('body').append("<div id='google_translate_element' style='display: none!important;'></div>"); 1913 1914 /*var googleTrans = { 1915 evtPageInit:function(){ 1916 var langs = $('.goog-te-menu-frame:first').contents().find('.goog-te-menu2 a'); 1917 langs.each(function(){ 1918 var txtHtml = $(this).find('span.text').html(); 1919 if (txtHtml == "íêµì´") { 1920 langs.eq($(this).index()).find('span.text').click(); 1921 } 1922 }); 1923 } 1924 } 1925 googleTrans.evtPageInit();*/ 1926 1927 var viewtag = "<span class='googleTranslate_i'>"; 1928 for (var i in strArray) 1929 { 1930 var l = $.trim(strArray[i]); 1931 //if(lang_a.indexOf(l) >= 0) { 1932 viewtag += "<a href='javascript:;' data-lang='"+l+"' class='"+l+"' title='"+lang_kr(l)+"'><span></span></a>"; 1933 //} 1934 } 1935 /* viewtag += "<a href='javascript:;' data-lang='ko' class='ko'><span></span></a>"; 1936 viewtag += "<a href='javascript:;' data-lang='en' class='en'><span></span></a>"; 1937 viewtag += "<a href='javascript:;' data-lang='ja' class='ja'><span></span></a>"; 1938 viewtag += "<a href='javascript:;' data-lang='zh-CN' class='cn'><span></span></a>"; 1939 viewtag += "<a href='javascript:;' data-lang='de' class='de'><span></span></a>"; 1940 viewtag += "<a href='javascript:;' data-lang='fr' class='fr'><span></span></a>";*/ 1941 viewtag += "</span>"; 1942 return document.write(viewtag); 1943} 1944 1945function googleTranslateElementInit() {//, layout: google.translate.TranslateElement.InlineLayout.SIMPLE 1946 new google.translate.TranslateElement({pageLanguage: 'ko', includedLanguages: 'ko,gl,gu,el,nl,ne,no,da,de,lo,lv,la,ru,ro,lb,lt,mr,mi,mk,mg,ml,ms,mt,mn,hmn,my,eu,vi,be,bn,bs,bg,sm,sr,ceb,st,so,sn,su,sw,sv,gd,es,sk,sl,sd,si,ar,hy,is,ht,ga,az,af,sq,am,et,eo,en,or,yo,ur,uz,uk,cy,ug,ig,yi,it,id,ja,jw,ka,zu,zh-CN,ny,cs,kk,ca,kn,co,xh,ku,hr,km,rw,ky,tl,ta,tg,tt,th,tr,te,tk,ps,pa,fa,pt,pl,fr,fy,fi,haw,ha,hu,iw,hi', autoDisplay: false, multilanguagePage: false}, 'google_translate_element'); 1947} 1948 1949$(document).ready(function() { 1950 /*$('.googleTranslate_i a').click(function(e) { 1951 e.preventDefault(); 1952 var $frame = $('.goog-te-menu-frame:first'); 1953 if (!$frame.size()) { 1954 alert("Error: Could not find Google translate frame."); 1955 return false;
1956 } 1957 1958 var langs = $('.goog-te-menu-frame:first').contents().find('.goog-te-menu2 a'); 1959 var $lang = $(this).data('lang'), 1960 1961 $lang_txt = lang_kr($lang); 1962 1963 langs.each(function(){ 1964 var txtHtml = $(this).find('span.text').html(); 1965 if (txtHtml == $lang_txt) { 1966 //langs.eq($(this).index()).find('span.text').click(); 1967 $(this).find('span.text').click(); 1968 } 1969 }); 1970 return; 1971 });*/ 1972 $('.googleTranslate_i a').click(function(e) { 1973 e.preventDefault(); 1974 var gtcombo = document.querySelector('.goog-te-combo'); 1975 var $lang = $(this).data('lang'), 1976 1977 $lang_txt = lang_kr($lang); 1978 1979 if (gtcombo == null) { 1980 alert("Error: Could not find Google translate Combolist."); 1981 return false; 1982 } 1983 gtcombo.value = $lang; 1984 gtcombo.dispatchEvent(new Event('change')); 1985 return; 1986 }); 1987}); 1988/* êµ¬ê¸ ë²ì기 : ë */ 1989 1990/* 본문ì¬ì§ íë보기(ê´ë¦¬ìì¤ì 본문ì¬ì§ í¬ê¸° ì¡°ì íì):ìì */ 1991if(typeof jQuery != 'undefined') { 1992 $(document).ready(function(){ 1993 $('img').click(function(i) { 1994 var img_id = $(this).attr('id'); 1995 1996 if(img_id=="img_pop_view") { 1997 var img_name = $(this).attr('src'); 1998 var h = $(this)[0].naturalHeight; 1999 var w = $(this)[0].naturalWidth; 2000 2001 $.blockUI({ 2002 message: '<img src="'+img_name+'" / id="img_close" onclick="img_pop_close()" style="cursor:pointer"></div> ', 2003 fadeIn: 700, 2004 fadeOut: 700, 2005 baseZ: 100000, 2006 //onOverlayClick: $.unblockUI, 2007 blockMsgClass: 'PhotoAdd', 2008 css: { 2009 position: 'absolute', 2010 top: (($(window).height()-h)/2+$(window).scrollTop())+"px", 2011 left: (($(window).width()-w)/2+$(window).scrollLeft())+"px", 2012 width: w+'px' 2013 }, 2014 overlayCSS: { cursor: "default",opacity: '0.8' } 2015 }); 2016 setTimeout($.unblockUI, 50000); 2017 } 2018 }); 2019 }); 2020} 2021 2022function img_pop_close() { 2023 $.unblockUI(); 2024 //setTimeout($.unblockUI, 1000); 2025}; 2026/* 본문ì¬ì§ íë보기(ê´ë¦¬ìì¤ì 본문ì¬ì§ í¬ê¸° ì¡°ì íì):ë */ 2027
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.