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