1/* 21.jquery.min.js > 2.jquery-latest.js > 3.jquery-1.9.1.min.js > 4.jquery.slides.min.js 3- headeríì¼ìì ìì ì ì´ì¿¼ë¦¬ í¸ì¶ìì ë°ëë©´ ìë¬ë¨ 4*/ 5 6/*************** gnb ë¤ë¹ê²ì´ì ***************/ 7//ì¬ì©ë ì ì´ì¿¼ë¦¬ jquery.min.js 8 9$(document).ready(function (e) { 10 $(".gnbCon").hide(); // select first contents to show 11 $(".navigation > ul > li ").hover( 12 function () { 13 $(".gnbCon").hide(); 14 var main_id = $(this).attr("id"); 15 $("#" + main_id + "Con").show(); 16 $("#" + main_id).addClass("hover"); 17 }, 18 function () { 19 var main_id = $(this).attr("id"); 20 $("#" + main_id).removeClass("hover"); 21 $("#" + main_id + "Con").hover( 22 function () { 23 // when mouse over 24 $("#" + main_id + "Con").show(); 25 $("#" + main_id).addClass("hover"); 26 }, 27 function () { 28 $(".gnbCon").hide(); 29 $("#" + main_id).removeClass("hover"); 30 } 31 ); 32 } 33 ); 34 $(".navigation").on("mouseleave", function () { 35 $(".gnbCon").hide(); 36 }); 37 $(".gnbCon").on("mouseleave", function () { 38 $(".gnbCon").hide(); 39 }); 40 $(".gnb_close").on("click", function () { 41 $(".gnbCon").hide(); 42 }); 43}); 44 45/*************** gnb - ë¼ëì¤ìì¸ ì¤ìê°ë£ê¸° : radio_play ***************/ 46function radio_play_page() { 47 window.open( 48 "http://www.radioseoul1650.com/live/live.html", 49 "", 50 "width=575, height=500", 51 "top=0, left=0, toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrolling=yes" 52 ); 53} 54 55/*************** 모ë°ì¼/ìì´í¨ë/íë¸ë¦¿ ì ì© ì¤í¬ë¦½í¸ ***************/ 56//ì¬ì©ë ì ì´ì¿¼ë¦¬ jquery-latest.js 57 58if ( 59 navigator.userAgent.match( 60 /Android|Mobile|iP(hone|od|ad)|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/ 61 ) 62) { 63 //tnb ì¬ì´ì¦/ ë¡ê³ ì section_name css 64 $(document).ready(function () { 65 $("body").addClass("mobile"); 66 }); 67} 68 69/*************** í paging ê´ë ¨ ***************/ 70//ì¬ì©ë ì ì´ì¿¼ë¦¬ jquery-latest.js 71 72//ì§ì¬ë³ ë´ì¤ : branchS 73function branchS_tab(num) { 74 var f = $(".branchS > .paging").find("li"); 75 for (var i = 0; i < f.length; i++) { 76 if (i == num) { 77 f.eq(i).addClass("hover"); 78 $(".branchS_con" + i).fadeIn(0); 79 } else { 80 f.eq(i).removeClass("hover"); 81 $(".branchS_con" + i).hide(); 82 } 83 } 84} 85 86//í¬í ë´ì¤ : photoS 87function photoS_tab(num) { 88 var f = $(".photoS > .paging").find("li"); 89 for (var i = 0; i < f.length; i++) { 90 if (i == num) { 91 f.eq(i).addClass("hover"); 92 $(".photoS_con" + i).fadeIn(200); 93 } else { 94 f.eq(i).removeClass("hover"); 95 $(".photoS_con" + i).fadeOut(500); 96 } 97 } 98} 99 100//커뮤ëí° : community_S, íë¨ ì»¤ë®¤ëí° 101function community_S_tab(num) { 102 var f = $(".community_S > .paging").find("li"); 103 for (var i = 0; i < f.length; i++) { 104 if (i == num) { 105 f.eq(i).addClass("hover"); 106 $(".community_S_con" + i).fadeIn(0); 107 } else { 108 f.eq(i).removeClass("hover"); 109 $(".community_S_con" + i).hide(); 110 } 111 } 112} 113 114//커뮤ëí° : community_sub, ì¤ë¥¸ìª½ 커뮤ëí° 115function community_sub_tab(num) { 116 var f = $(".community_sub > .paging").find("li"); 117 for (var i = 0; i < f.length; i++) { 118 if (i == num) { 119 f.eq(i).addClass("hover"); 120 $(".community_sub_con" + i).fadeIn(0); 121 } else { 122 f.eq(i).removeClass("hover"); 123 $(".community_sub_con" + i).hide(); 124 } 125 } 126} 127 128//ìë´ê´ê³ : ad_paidS 129function ad_paidS_tab(num) { 130 var f = $(".ad_paidS > .paging").find("li"); 131 for (var i = 0; i < f.length; i++) { 132 if (i == num) { 133 f.eq(i).addClass("hover"); 134 $(".ad_paidS_con" + i).fadeIn(0); 135 } else { 136 f.eq(i).removeClass("hover"); 137 $(".ad_paidS_con" + i).hide(); 138 } 139 } 140} 141 142//ìë´ê´ê³ íì´ì§ : classiFied 143function classiFied_tab(num) { 144 var f = $(".classiFied > .paging").find("li"); 145 for (var i = 0; i < f.length; i++) { 146 if (i == num) { 147 f.eq(i).addClass("hover"); 148 $(".classiFied_con" + i).fadeIn(0); 149 } else { 150 f.eq(i).removeClass("hover"); 151 $(".classiFied_con" + i).hide(); 152 } 153 } 154} 155 156//ì¼ì´íì´ ë¶ëì° í«ë¦¬ì¤í íì´ì§ : kt1st_realty 157function kt1st_realty_tab(num) { 158 var f = $(".kt1st_realty > .paging").find("li"); 159 for (var i = 0; i < f.length; i++) { 160 if (i == num) { 161 f.eq(i).addClass("hover"); 162 $(".kt1st_realty_con" + i).fadeIn(0); 163 } else { 164 f.eq(i).removeClass("hover"); 165 $(".kt1st_realty_con" + i).hide(); 166 } 167 } 168} 169 170//ì´ë¦°ë§ë¹ : community_open 171function community_open_tab(num) { 172 var f = $(".community_open > .paging").find("li"); 173 for (var i = 0; i < f.length; i++) { 174 if (i == num) { 175 f.eq(i).addClass("hover"); 176 $(".community_open_con" + i).fadeIn(0); 177 } else { 178 f.eq(i).removeClass("hover"); 179 $(".community_open_con" + i).hide(); 180 } 181 } 182} 183 184//ì´ë²¤í¸/ê³µì§ì¬í : eventS_noticeS 185function eventS_noticeS_tab(num) { 186 var f = $(".eventS_noticeS > .paging").find("li"); 187 for (var i = 0; i < f.length; i++) { 188 if (i == num) { 189 f.eq(i).addClass("hover"); 190 $(".eventS_noticeS_con" + i).fadeIn(0); 191 } else { 192 f.eq(i).removeClass("hover"); 193 194 $(".eventS_noticeS_con" + i).hide(); 195 } 196 } 197} 198 199//kTown1st : kTown1_blog, ë©ì¸ ìë¨ 200function kTown1_tab(num) { 201 var f = $(".kTown1 .k_tab").find("li"); 202 for (var i = 0; i < f.length; i++) { 203 if (i == num) { 204 f.eq(i).addClass("selected"); 205 $(".kTown1_con" + i).fadeIn(0); 206 } else { 207 f.eq(i).removeClass("selected"); 208 209 $(".kTown1_con" + i).hide(); 210 } 211 } 212} 213 214//kTown1st : í리미ì 리ì¤í , 215function prm_con_tab(el, num) { 216 $(".kTown1 .k_tab li").removeClass("selected"); 217 $(el).addClass("selected"); 218 $(".prm_con").hide(); 219 $(".kTown1_con" + num).show(); 220} 221 222/*************** 컨í ì¸ ë¶ë¶ì¬ë¼ì´ë ê´ë ¨ ***************/ 223//ì¬ì©ë ì ì´ì¿¼ë¦¬ jquery-1.9.1.min.js 224 225//í¬ë°ì´í¬ì»¤ì¤ : today_focus 226var leftCt = 0; 227$(function () { 228 $(".today_focus").attr("top", "0"); 229 listStart("R"); 230}); 231function listStart(tp) { 232 clearInterval($(".today_focus_page").attr("timer")); 233 if (tp == "R") { 234 // moving to right 235 listRight(); 236 $(".today_focus_page").attr("timer", setInterval("listRight()", 10000)); // duration of stay 237 } else { 238 // moving to left 239 if (leftCt == 0) { 240 var leng = $(".today_focus_page>li").size(); 241 $(".today_focus_page").css( 242 "left", 243 parseInt($(".today_focus_page>li").eq(0).width() * -1) 244 ); 245 $(".today_focus_page>li") 246 .eq(parseInt(leng - 1)) 247 .clone() 248 .prependTo($(".today_focus_page")); 249 $(".today_focus_page>li").eq(leng).remove(); 250 leftCt = 1; 251 } 252 listLeft(); 253 $(".today_focus_page").attr("timer", setInterval("listLeft()", 10000)); // duration of stay 254 } 255} 256function listRight() { 257 $(".today_focus_page").animate( 258 { 259 left: parseInt($(".today_focus_page>li").eq(0).width() * -1), 260 }, 261 000, 262 function () { 263 // moving speed 264 $(".today_focus_page").css("left", "0px"); 265 $(".today_focus_page>li").eq(0).clone().appendTo($(".today_focus_page")); 266 $(".today_focus_page>li").eq(0).remove(); 267 } 268 ); 269} 270function listLeft() { 271 var leng = $(".today_focus_page>li").size(); 272 $(".today_focus_page").animate( 273 { 274 left: 0, 275 }, 276 000, 277 function () { 278 // moving speed 279 $(".today_focus_page").css("left", "0px"); 280 $(".today_focus_page").css( 281 "left", 282 parseInt($(".today_focus_page>li").eq(0).width() * -1 - 4) 283 ); 284 $(".today_focus_page>li") 285 .eq(parseInt(leng - 1)) 286 .clone() 287 .prependTo($(".today_focus_page")); 288 $(".today_focus_page>li").eq(leng).remove(); 289 } 290 ); 291} 292 293/* ë¦¬ì° ì¬ë¦¼í½ */ 294$(document).ready(function () { 295 $("ul.election_nList").each(function () { 296 var $active, 297 $content, 298 $links = $(this).find("a"); 299 300 $active = $( 301 $links.filter('[href="' + location.hash + '"]')[0] || $links[0] 302 ); 303 $active.addClass("active"); 304 $content = $($active[0].hash); 305 306 $links.not($active).each(function () { 307 $(this.hash).hide(); 308 });
309 310 $(this).on("click", "a", function (e) { 311 $active.removeClass("active"); 312 $content.hide(); 313 $active = $(this); 314 $content = $(this.hash); 315 $active.addClass("active"); 316 $content.show(); 317 e.preventDefault(); 318 }); 319 }); 320}); 321 322/* ì´ì¸ */ 323$(document).ready(function () { 324 $("ul.fortune_Tab").each(function () { 325 var $active, 326 $content, 327 $links = $(this).find("a"); 328 329 $active = $( 330 $links.filter('[href="' + location.hash + '"]')[0] || $links[0] 331 ); 332 $active.addClass("active"); 333 $content = $($active[0].hash); 334 335 $links.not($active).each(function () { 336 $(this.hash).hide(); 337 }); 338 339 $(this).on("click", "a", function (e) { 340 $active.removeClass("active"); 341 $content.hide(); 342 $active = $(this); 343 $content = $(this.hash); 344 $active.addClass("active"); 345 $content.show(); 346 e.preventDefault(); 347 }); 348 }); 349}); 350 351/*************** 컨í ì¸ ì ì²´ì¬ë¼ì´ë ê´ë ¨ ***************/ 352//ì¬ì©ë ì ì´ì¿¼ë¦¬ jquery-1.9.1.min.js / jquery.slides.min.js 353 354//ì¤í¼ëì¸ : opinionS 355$(function () { 356 $(".opinionS_page").slidesjs({ 357 height: 500, // ì¤ì 컨í ì¸ ëì´ë³´ë¤ ìì¼ë©´ 짤림. ê·¸ë¥ í¬ê² ì¤ì íê³ cssë¡ ì¤ì ëì´ ì§ì 358 start: 1, // select first page to show 359 effect: { 360 slide: { 361 speed: 400, 362 }, 363 }, 364 play: { 365 auto: false, 366 interval: 2000, 367 }, 368 callback: { 369 loaded: function (number) { 370 console.log("SlidesJS: Loaded with slide #" + number); 371 $(".opinionS .count b").text(number); 372 }, 373 start: function (number) { 374 console.log("SlidesJS: Start Animation on slide #" + number); 375 }, 376 complete: function (number) { 377 console.log( 378 "SlidesJS: Animation Complete. Current slide is #" + number 379 ); 380 $(".opinionS .count b").text(number); 381 }, 382 }, // show page number 383 }); 384}); 385 386//ë§ì´ 본 ê¸°ì¬ : news_best 387$(function () { 388 $(".news_best_page").slidesjs({ 389 height: 500, // ì¤ì 컨í ì¸ ëì´ë³´ë¤ ìì¼ë©´ 짤림. ê·¸ë¥ í¬ê² ì¤ì íê³ cssë¡ ì¤ì ëì´ ì§ì 390 start: 1, // select first page to show 391 effect: { 392 slide: { 393 speed: 500, 394 }, 395 }, 396 play: { 397 auto: false, 398 interval: 2000, 399 }, 400 callback: { 401 loaded: function (number) { 402 console.log("SlidesJS: Loaded with slide #" + number); 403 $(".news_best .count b").text(number); 404 }, 405 start: function (number) { 406 console.log("SlidesJS: Start Animation on slide #" + number); 407 }, 408 complete: function (number) { 409 console.log( 410 "SlidesJS: Animation Complete. Current slide is #" + number 411 ); 412 $(".news_best .count b").text(number); 413 }, 414 }, // show page number 415 }); 416}); 417 418$(function () { 419 $(".hkBorder_box").slidesjs({ 420 height: 730, 421 start: 1, // select first page to show 422 effect: { 423 slide: { 424 speed: 500, 425 }, 426 }, 427 play: { 428 auto: false, 429 interval: 2000, 430 }, 431 }); 432}); 433 434/*************** ì ìë¡ ê²ì ***************/ 435function checkYellowpage() { 436 var form = document.searchYellowpage; 437 438 String.prototype.trim = function () { 439 return this.replace(/(^\s*)|(\s*$)|($\s*)/g, ""); 440 }; 441 442 var keyword = form.yp_keyword.value; 443 var zipcode = form.yp_zipcode.value; 444 var branch = ""; 445 446 keyword = keyword.trim(); 447 zipcode = zipcode.trim(); 448 449 for (i = 0; i < form.yp_radio.length; i++) { 450 if (form.yp_radio[i].checked) { 451 branch = form.yp_radio[i].value; 452 } 453 } 454 if (keyword.length == 0 && zipcode.length == 0) { 455 alert("Keyword를 ì ë ¥íì¸ì."); 456 return false; 457 } 458 form.action = 459 "http://yp.koreatimes.com/yp/searchResult.php?curLoc=" + 460 branch + 461 "&keyword=" + 462 keyword + 463 "&zipcode=" + 464 zipcode; 465 form.submit(); 466} 467 468function checkSearchArticle() { 469 var specialChars = "~`!@#$%%^&*-=+|[{]};:',<.>/?\""; 470 var form = document.searchArticle; 471 var str, i; 472 str = form.key.value; 473 var sURL = ""; 474 var keyword = ""; 475 var temp = ""; 476 var keyword_array = "'***'"; 477 var keyword_array_temp = ""; 478 var keyword_cnt = 0; 479 480 if (str.length < 2) { 481 alert("ê²ìì´ë¥¼ 2ê¸ì ì´ì ì ë ¥í´ ì£¼ì¸ì!"); 482 return false; 483 } 484 for (i = 0; i < str.length; i++) { 485 temp = str.charAt(i); 486 if (temp == " ") { 487 if (keyword_array_temp.length > 0) { 488 keyword_array = keyword_array + ",'" + keyword_array_temp + "'"; 489 keyword_cnt++; 490 } 491 keyword_array_temp = ""; 492 } 493 494 keyword = keyword + temp; 495 if (temp != " " && temp != "") 496 keyword_array_temp = keyword_array_temp + temp; 497 } 498 499 if (keyword_array_temp.length > 0) { 500 keyword_array = keyword_array + ",'" + keyword_array_temp + "'"; 501 keyword_cnt++; 502 } 503 form.key.value = keyword; 504 form.key_array.value = keyword_array; 505 form.key_cnt.value = keyword_cnt; 506 507 for (j = 0; j < form.search_radio.length; j++) { 508 if (form.search_radio[j].checked) { 509 if (form.search_radio[j].value == "LOCAL")
510 sURL = "http://service.koreatimes.com/search/"; 511 else 512 sURL = 513 "http://service.koreatimes.com/search/searchGoogleResult.php?key=" + 514 str; 515 } 516 } 517 form.action = sURL; 518 form.submit(); 519} 520 521/*************** íì ë°°ë ***************/ 522 523function setCookie(name, value, expirehours) { 524 var todayDate = new Date(); 525 todayDate.setHours(todayDate.getHours() + expirehours); 526 document.cookie = 527 name + 528 "=" + 529 escape(value) + 530 "; path=/; expires=" + 531 todayDate.toGMTString() + 532 ";"; 533} 534function closeWin() { 535 if (document.getElementById("pop_today")) { 536 if (document.getElementById("pop_today").checked) { 537 setCookie("kcookie", "done", 1); 538 } 539 } else if (document.getElementById("pop_today_article")) { 540 if (document.getElementById("pop_today_article").checked) { 541 setCookie("kcookie_article", "done", 1); 542 } 543 } 544 545 if (document.getElementById("layer_pop")) { 546 document.getElementById("layer_pop").style.display = "none"; 547 } else if (document.getElementById("layer_pop_article")) { 548 document.getElementById("layer_pop_article").style.display = "none"; 549 } 550 551} 552 553function closePopUp(){ 554 if (document.getElementById("popup_today")) { 555 if (document.getElementById("popup_today").checked) { 556 setCookie("kkcookie", "done", 1); 557 } 558 } 559 560 if (document.getElementById("layer_popup2")) { 561 document.getElementById("layer_popup2").style.display = "none"; 562 } 563} 564 565function getCookie(name) { 566 var nameOfCookie = name + "="; 567 var x = 0; 568 while (x <= document.cookie.length) { 569 var y = x + nameOfCookie.length; 570 if (document.cookie.substring(x, y) == nameOfCookie) { 571 if ((endOfCookie = document.cookie.indexOf(";", y)) == -1) 572 endOfCookie = document.cookie.length; 573 return unescape(document.cookie.substring(y, endOfCookie)); 574 } 575 x = document.cookie.indexOf(" ", x) + 1; 576 if (x == 0) break; 577 } 578 return ""; 579} 580 581$(document).ready(function () { 582 if (getCookie("kcookie") == "done") { 583 $("#layer_pop").hide(); 584 $("#layer_pop_article").hide(); 585 } else if (getCookie("kcookie_article") == "done") { 586 $("#layer_pop").hide(); 587 $("#layer_pop_article").hide(); 588 } else if (getCookie("kkcookie") == "done") { 589 $("#layer_popup2").hide(); 590 } else if (getCookie("kcookie") == "done" && getCookie("kkcookie") == "done"){ 591 $("#layer_pop").hide(); 592 $("#layer_popup2").hide(); 593 } else { 594 $("#layer_pop").show(); 595 $("#layer_pop_article").show(); 596 $("#layer_popup2").show(); 597 } 598});
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.