1$(function () { 2 img_ov(); //À̹ÌÁö¿À¹ö 3 total_sch(); //ÅëÇÕ°Ë»ö(¸ð¹ÙÀÏ) 4 nav_menu(); //»ó´Ü ¸Þ´º(GNB) 5 //allMenu(); //Àüü¸Þ´ºº¸±â 6 left_menu(); //ÁÂÃø ¼ºê¸Þ´º 7 mo_menu(); //¸ð¹ÙÀÏ ¸Þ´º 8 tab_menu(); //ÅǸ޴º 9 bot_link(); 10 main_tab(); //¸ÞÀÎÅǸ޴º 11 $(".date_box").datepicker(); //´Þ·Â ºÒ·¯¿À±â 12 commonUI.zoomTrigger(); 13 14 $("#wrap").prepend("<div class='blind'></div>"); 15 $(".blind").css({ 16 display: "none", 17 position: "fixed", 18 left: 0, 19 top: 0, 20 width: "100%", 21 height: "100%", 22 background: "#000", 23 opacity: 0, 24 zIndex: 998, 25 }); 26}); 27 28var commonUI = {}; 29 30function blind_on() { 31 //°ËÁ¤»ö Åõ¸í ºí¶óÀεå ON 32 $(".blind").css({ display: "block" }); 33 $(".blind").stop().animate({ opacity: 0.5 }, 500); 34} 35function blind_off() { 36 //°ËÁ¤»ö Åõ¸í ºí¶óÀεå OFF 37 $(".blind").stop().animate({ opacity: 0 }, 500); 38 $(".blind").css({ display: "none" }); 39} 40 41//º¸ÀÌÁö ¾Ê´Â ¿µ¿ª °¡Á®¿À±â 42(function (a) { 43 if (typeof define === "function" && define.amd) { 44 define(["jquery"], a); 45 } else { 46 a(jQuery); 47 } 48})(function (a) { 49 a.fn.addBack = a.fn.addBack || a.fn.andSelf; 50 a.fn.extend({ 51 actual: function (b, l) { 52 if (!this[b]) { 53 throw ( 54 '$.actual => The jQuery method "' + 55 b + 56 '" you called does not exist' 57 ); 58 } 59 var f = { 60 absolute: false, 61 clone: false, 62 includeMargin: false, 63 display: "block", 64 }; 65 var i = a.extend(f, l); 66 var e = this.eq(0); 67 var h, j; 68 if (i.clone === true) { 69 h = function () { 70 var m = 71 "position: absolute !important; top: -1000 !important; "; 72 e = e.clone().attr("style", m).appendTo("body"); 73 }; 74 j = function () { 75 e.remove(); 76 }; 77 } else { 78 var g = []; 79 var d = ""; 80 var c; 81 h = function () { 82 c = e.parents().addBack().filter(":hidden"); 83 d += 84 "visibility: hidden !important; display: " + 85 i.display + 86 " !important; "; 87 if (i.absolute === true) { 88 d += "position: absolute !important; "; 89 } 90 c.each(function () { 91 var m = a(this); 92 var n = m.attr("style"); 93 g.push(n); 94 m.attr("style", n ? n + ";" + d : d); 95 }); 96 }; 97 j = function () { 98 c.each(function (m) { 99 var o = a(this); 100 var n = g[m]; 101 if (n === undefined) { 102 o.removeAttr("style"); 103 } else { 104 o.attr("style", n); 105 } 106 }); 107 }; 108 } 109 h(); 110 var k = /(outer)/.test(b) ? e[b](i.includeMargin) : e[b](); 111 j(); 112 return k; 113 }, 114 }); 115}); 116 117/* ********************************************************************************* 118 * IMAGE OVER 119 * ¿À¹ö ±â´É »ç¿ëÇϰíÀÚ ÇÏ´Â À̹ÌÁöÀÇ ºÎ¸ðű×(a, button µî)¿¡ '.ov' Ŭ·¡½º Ãß°¡ 120 * ¿À¹ö Àü À̹ÌÁö¿Í ¿À¹ö ÈÄ À̹ÌÁö(Á¦¸ñµÚ¿¡ _ov ºÙ¿©ÁØ À̹ÌÁö) µÎ°³ Áغñ 121 * ex)<a href="#" class="ov"><img src="test.gif" alt=""></a> 122 * *********************************************************************************/ 123function img_ov() { 124 var ovA = $(".ov"); 125 126 ovA.on("mouseover focus", function () { 127 if (!$(this).hasClass("on")) { 128 var ovaImg = $(this).find(">img"); 129 var ovaName = ovaImg.attr("src"); 130 var ovaType = ovaName.substring(ovaName.length, ovaName.length - 3); 131 $(this).addClass("on"); 132 ovaImg.attr( 133 "src", 134 ovaImg.attr("src").replace("." + ovaType, "_ov." + ovaType) 135 ); 136 } 137 });
138 139 ovA.on("mouseout blur", function () { 140 if ($(this).hasClass("on")) { 141 var ovaImg = $(this).find(">img"); 142 var ovaName = ovaImg.attr("src"); 143 var ovaType = ovaName.substring(ovaName.length, ovaName.length - 3); 144 $(this).removeClass("on"); 145 ovaImg.attr( 146 "src", 147 ovaImg.attr("src").replace("_ov." + ovaType, "." + ovaType) 148 ); 149 } 150 }); 151} 152 153/* ********************************************************************************* 154 * navigation(GNB) 155 * **********************************************************************************/ 156function nav_menu() { 157 var nav = $("#gnb>li>a"); 158 var nav_sub = $("#gnb>li>.sub_menu"); 159 160 var sub_m = $(".sm_con>ul>li>ul>li>a"); 161 var smH = 0; 162 163 // nav_sub.hide(); 164 165 nav.on("click mouseover focus", function () { 166 nav.removeClass("on"); 167 nav_sub.hide(); 168 $(this).addClass("on"); 169 $(this).next(".sub_menu").show().addClass("on"); 170 }); 171 nav_sub.on("mouseover", function () { 172 nav_sub.removeClass("on"); 173 $(this).addClass("on"); 174 // $(this).parent("li").find("a").addClass("on"); 175 }); 176 $("#header").on("mouseleave", function () { 177 nav_sub.hide(); 178 nav.removeClass("on"); 179 nav_sub.removeClass("on"); 180 }); 181 $("#gnb>li:last-child .sm_con>ul>li:last-child a").on( 182 "focusout", 183 function () { 184 nav_sub.hide(); 185 nav.removeClass("on"); 186 nav_sub.removeClass("on"); 187 } 188 ); 189 sub_m.hover( 190 function () { 191 $(this).parent("li").parent("ul").prev("a").addClass("on"); 192 }, 193 function () { 194 $(this).parent("li").parent("ul").prev("a").removeClass("on"); 195 } 196 ); 197} 198 199/* ********************************************************************************* 200 * ÅëÇÕ°Ë»ö 201 * **********************************************************************************/ 202function total_sch() { 203 var sch = $(".header_search"); 204 var sch_btn = $(".mo_sch"); 205 var close = $(".total_sch_close"); 206 207 sch_btn.on("click", function () { 208 sch.fadeIn("fast"); 209 }); 210 211 close.on("click", function () { 212 sch.fadeOut("fast"); 213 }); 214} 215 216/* ********************************************************************************* 217 * Àüü¸Þ´ºº¸±â 218 * **********************************************************************************/ 219function allMenu() { 220 $(".mCS").mCustomScrollbar(); //½ºÅ©·Ñ Ç÷¯±×ÀÎ 221 222 var dep1 = $("#gnb>li>a"); 223 var dep2 = $("#gnb>li>.sub_menu"); 224 var allBtn = $("#all_menu .all_btn a"); 225 var allMenu = $("#allMenu"); 226 var closeBtn = $(".close_btn button"); 227 var aM_dep1a = $(".allM_Box>li>a"); 228 var aM_dep2 = $(".allM_Box>li>ul"); 229 var aM_dep2a = $(".allM_Box>li>ul>li>a"); 230 var aM_dep3 = $(".allM_Box>li>ul>li>ul"); 231 232 allMenu.hide(); 233 234 aM_dep1a.each(function () { 235 if (!$(this).next().length) { 236 $(this).addClass("empty"); 237 } 238 }); 239 aM_dep2a.each(function () { 240 if (!$(this).next().length) { 241 $(this).addClass("empty"); 242 } 243 }); 244 245 allBtn.click(function () { 246 var winW = $(window).width(); 247 dep2.hide(); 248 dep1.removeClass("on"); 249 250 if (winW < 657) { 251 allMenu 252 .fadeIn() 253 .children("div") 254 .css("right", "-100%") 255 .stop() 256 .animate({ right: "0" }, 500); 257 aM_dep2.hide(); 258 aM_dep3.hide(); 259 } else { 260 $(this).toggleClass("on"); 261 allMenu.slideToggle(); 262 aM_dep2.show(); 263 aM_dep3.show(); 264 if ($(this).hasClass("on")) { 265 $(this).find("b").text("Àüü¸Þ´º´Ý±â"); 266 } else { 267 $(this).find("b").text("Àüü¸Þ´º¿±â"); 268 } 269 } 270 }); 271 closeBtn.click(function () { 272 allMenu.slideUp(); 273 });
274 $("#container, #top_bar, #header_top").on("click", function () { 275 allMenu.slideUp(); 276 allBtn.removeClass("on"); 277 }); 278 aM_dep1a.click(function () { 279 var winW = $(window).width(); 280 if (winW < 657) { 281 $(this).toggleClass("on").next().slideToggle(); 282 aM_dep1a.not(this).removeClass("on").next().stop().slideUp(); 283 } 284 if ($(this).next("ul").length) { 285 return false; 286 } 287 }); 288 289 aM_dep2a.click(function () { 290 var winW = $(window).width(); 291 if (winW < 657 && $(this).next().length > 0) { 292 $(this).toggleClass("on").next().slideToggle(); 293 aM_dep2a.not(this).removeClass("on").next().stop().slideUp(); 294 } 295 if ($(this).next("ul").length) { 296 return false; 297 } 298 }); 299 300 $("#allMenu > div").click(function (e) { 301 var winW = $(window).width(); 302 if (winW < 657) { 303 e.stopPropagation(); 304 } 305 }); 306 307 allMenu.click(function (e) { 308 var winW = $(window).width(); 309 if (winW < 657) { 310 $("#allMenu > div") 311 .css("right", "0") 312 .stop() 313 .animate({ right: "-100%" }, 500); 314 $(this).find(".allM_Box a").removeClass("on"); 315 allMenu.fadeOut(); 316 } 317 }); 318 $(window).resize(function () { 319 var winW = $(window).width(); 320 if (winW > 657) { 321 aM_dep2.show(); 322 aM_dep3.show(); 323 } else { 324 allBtn.removeClass("on"); 325 } 326 }); 327 $(".allM_Box>li:last-child>ul>li:last-child>ul>li:last-child>a").on( 328 "focusout", 329 function () { 330 allBtn.focus(); 331 } 332 ); 333} 334 335/* ********************************************************************************* 336 * left menu 337 * **********************************************************************************/ 338function left_menu() { 339 var lm = $("#left_submenu"); 340 lm.a = lm.find(">li>a"); 341 lm.dep2 = lm.find(">li>ul"); 342 lm.dep2.a = lm.dep2.find(">li>a"); 343 lm.dep3 = lm.dep2.find(">li>ul"); 344 lm.dep3.a = lm.dep3.find(">li>a"); 345 346 var winW = $(window).width() + 17; 347 var m_length = 0; 348 var dep2W = 0; 349 350 lm.dep2.hide(); 351 lm.dep3.hide(); 352 353 lm.a.each(function () { 354 if (!$(this).next().length) { 355 $(this).addClass("empty"); 356 } 357 if ($(this).hasClass("on")) { 358 $(this).next("ul").show(); 359 } 360 }); 361 362 $("#left_submenu>li").show(); 363 $("#left_submenu>li>ul>li").css({ width: "100%" }); 364 lm.a.on("click", function () { 365 lm.a.removeClass("on"); 366 $(this).addClass("on"); 367 368 if ($(this).next("ul").is(":hidden")) { 369 lm.dep2.slideUp("fast"); 370 lm.a.removeClass("on"); 371 lm.dep2.slideUp("fast"); 372 lm.dep2.a.removeClass("on"); 373 $(this).addClass("on"); 374 $(this).next("ul").slideDown("fast"); 375 } else { 376 $(this).removeClass("on"); 377 $(this).next("ul").slideUp("fast"); 378 } 379 if ($(this).next("ul").length) { 380 return false; 381 } 382 }); 383 384 lm.dep2.a.each(function () { 385 if (!$(this).next().length) { 386 $(this).addClass("empty"); 387 } 388 if ($(this).hasClass("on")) { 389 $(this).next("ul").show(); 390 } 391 }); 392 lm.dep2.a.on("click", function () { 393 lm.dep2.a.removeClass("on"); 394 $(this).addClass("on"); 395 396 if ($(this).next("ul").is(":hidden")) { 397 lm.dep3.slideUp("fast"); 398 lm.dep2.a.removeClass("on"); 399 lm.dep3.slideUp("fast"); 400 lm.dep3.a.removeClass("on"); 401 $(this).addClass("on"); 402 $(this).next("ul").slideDown("fast"); 403 } else { 404 $(this).removeClass("on"); 405 $(this).next("ul").slideUp("fast"); 406 } 407 if ($(this).next("ul").length) { 408 return false; 409 } 410 });
411 lm.dep3.a.on("click", function () { 412 lm.dep3.a.removeClass("on"); 413 $(this).addClass("on"); 414 }); 415} 416 417/* ********************************************************************************* 418 * ¸ð¹ÙÀÏ ¸Þ´º 419 * *********************************************************************************/ 420function mo_menu() { 421 var mo_btn = $(".mo_btn"); 422 var mo_menu = $(".mo_menu"); 423 var menuW = mo_menu.outerWidth(); 424 var ml = $(".mo_menu_list"); 425 ml.a = ml.find(">li>a"); 426 ml.dep2 = ml.find(">li>ul"); 427 ml.dep2.a = ml.dep2.find(">li>a"); 428 ml.dep3 = ml.find(">li>ul>li>ul"); 429 ml.dep3.a = ml.dep3.find(">li>a"); 430 431 mo_btn.on("click", function () { 432 //¸ð¹ÙÀÏ ¸Þ´º ¿±â 433 mo_menu.stop().animate({ right: 0 }, 300); 434 blind_on(); 435 }); 436 437 $(".mo_close_btn").on("click", function () { 438 //¸ð¹ÙÀÏ ¸Þ´º ´Ý±â 439 mo_menu.stop().animate({ right: menuW * -1 }, 300); 440 blind_off(); 441 ml.dep2.removeClass("on"); 442 ml.dep3.removeClass("on"); 443 }); 444 $(window).resize(function () { 445 var winW = $(window).innerWidth() + 17; 446 447 if (winW > 640) { 448 //640 ÀÌ»óÀÏ °æ¿ì 449 blind_off(); 450 mo_menu.stop().animate({ right: menuW * -1 }, 300); 451 } 452 }); 453 454 // ¸Þ´º depth ¾×¼Ç 455 ml.dep2.hide(); 456 ml.dep3.hide(); 457 458 ml.dep3.a.each(function () { 459 if ($(this).hasClass("on")) { 460 $(this).parent("li").parent("ul").prev("a").addClass("on"); 461 $(this) 462 .parent("li") 463 .parent("ul") 464 .prev("a") 465 .parent("li") 466 .parent("ul") 467 .prev("a") 468 .addClass("on"); 469 } 470 }); 471 472 ml.a.each(function () { 473 if ($(this).hasClass("on")) { 474 $(this).next("ul").show(); 475 } 476 }); 477 ml.dep2.a.each(function () { 478 if ($(this).hasClass("on")) { 479 $(this).next("ul").show(); 480 } 481 }); 482 483 ml.a.on("click", function () { 484 if ($(this).next("ul").is(":hidden")) { 485 ml.dep2.slideUp("fast"); 486 ml.a.removeClass("on"); 487 $(this).addClass("on"); 488 $(this).next("ul").slideDown("fast"); 489 } else { 490 $(this).next("ul").find(">li>a").removeClass("on"); 491 $(this).next("ul").find(">li>a>ul>li>a").removeClass("on"); 492 $(this).removeClass("on"); 493 $(this).next("ul").slideUp("fast"); 494 } 495 return false; 496 }); 497 498 ml.dep2.a.on("click", function () { 499 if ($(this).next("ul").is(":hidden")) { 500 ml.dep3.slideUp("fast"); 501 ml.dep2.a.removeClass("on"); 502 $(this).addClass("on"); 503 $(this).next("ul").slideDown("fast"); 504 } else { 505 $(this).removeClass("on"); 506 $(this).next("ul").slideUp("fast"); 507 } 508 return false; 509 }); 510} 511$(function () { 512 //ºí¶óÀεå Ŭ¸¯½Ã ºí¶óÀÎµå ¹× ¸ð¹ÙÀÏ ¸Þ´º ´Ý±â 513 var mo_menu = $(".mo_menu"); 514 var menuW = mo_menu.outerWidth(); 515 $(".blind").on("click", function () { 516 blind_off(); 517 mo_menu.stop().animate({ right: menuW * -1 }, 300); 518 }); 519}); 520 521/* ********************************************************************************* 522 * ÅǸ޴º 523 * *********************************************************************************/ 524function tab_menu() { 525 var tab = $(".tab_menu"); 526 tab.li = tab.find(">li"); 527 tab.a = tab.li.find("a"); 528 tab.con = tab.li.find("div"); 529 var tabH = tab.a.outerHeight() + tab.con.eq(0).outerHeight(); 530 531 tab.li.each(function () { 532 if (tab.li.length == 2) { 533 tab.li.css({ width: "50%" }); 534 } else if (tab.li.length == 3) { 535 tab.li.css({ width: "33.3%" }); 536 } else if (tab.li.length == 4) { 537 tab.li.css({ width: "25%" }); 538 } else if (tab.li.length == 5) { 539 tab.li.css({ width: "20%" }); 540 } 541 }); 542 543 // tab.a.on("click",function () { 544 // return false; 545 // }); 546 // tab.con.hide(); 547 // tab.con.eq(0).show(); 548 // tab.li.eq(0).find("a").addClass("on"); 549 // tab.height(tabH); 550 // 551 // tab.a.on("click",function () { 552 // var tabH = tab.a.outerHeight() + $(this).next("div").outerHeight(); 553 // tab.height(tabH); 554 // tab.a.removeClass("on"); 555 // $(this).addClass("on"); 556 // tab.con.hide(); 557 // $(this).next("div").show(); 558 // }); 559} 560 561/* ********************************************************************************* 562 * ½½¶óÀ̵åÇü °Ô½ÃÆÇ ³»¿ë 563 * **********************************************************************************/ 564function bslide() { 565 var bs = $(".board.slide"); 566 bs.th = bs.find("thead th:visible"); 567 bs.th.size = bs.th.length; 568 bs.slide = bs.find("tr.slide_wrap>td"); 569 bs.tit = bs.find("td.tit>a"); 570 571 bs.slide.attr("colspan", bs.th.size); 572 573 bs.tit.on("click", function () { 574 if ( 575 $(this) 576 .parents("tr") 577 .next(".slide_wrap") 578 .find(">td>.bslide_box") 579 .is(":hidden") 580 ) { 581 bs.tit.removeClass("on"); 582 $(".slide_wrap").find(">td>
582.bslide_box").slideUp(300); 583 $(this) 584 .parents("tr") 585 .next(".slide_wrap") 586 .find(">td>.bslide_box") 587 .slideDown(300); 588 $(this).addClass("on"); 589 } else { 590 $(this) 591 .parents("tr") 592 .next(".slide_wrap") 593 .find(">td>.bslide_box") 594 .slideUp(300); 595 $(this).removeClass("on"); 596 } 597 598 if ( 599 $(this).parents("tr").next(".slide_wrap").find(">td>.bslide_box") 600 .length > 0 601 ) { 602 return false; 603 } 604 }); 605 606 $(".b_slide_close").on("click", function () { 607 $(this).parents(".slide_wrap").find(">td>.bslide_box").slideUp(300); 608 bs.tit.removeClass("on"); 609 return false; 610 }); 611 612 $(window).resize(function () { 613 var bs = $(".board.slide"); 614 bs.th = bs.find("thead th:visible"); 615 bs.th.size = bs.th.length; 616 bs.slide = bs.find("tr.slide_wrap>td"); 617 618 bs.slide.attr("colspan", bs.th.size); 619 }); 620} 621 622/* ********************************************************************************* 623 * ´ñ±Û ¼öÁ¤¹öư ¾×¼Ç 624 * **********************************************************************************/ 625function r_update() { 626 var reply_update = $(".reply_update"); 627 reply_update.hide(); 628 629 $(".r_update").on("click", function () { 630 if ( 631 $(this) 632 .parents(".reply_con_box") 633 .next(".reply_update") 634 .is(":hidden") 635 ) { 636 $(this).text("¼öÁ¤Ãë¼Ò"); 637 $(this) 638 .parents(".reply_con_box") 639 .next(".reply_update") 640 .slideDown("fast"); 641 } else { 642 $(this) 643 .parents(".reply_con_box") 644 .next(".reply_update") 645 .find(".reply") 646 .val(""); 647 $(this).text("¼öÁ¤"); 648 $(this) 649 .parents(".reply_con_box") 650 .next(".reply_update") 651 .slideUp("fast"); 652 } 653 return false; 654 }); 655} 656 657/* ********************************************************************************* 658 * photo board slide 659 * **********************************************************************************/ 660function photo_slide() { 661 var gs = $(".gs_box"); 662 gs.slide = gs.find("ul"); 663 gs.slide.li = gs.find("ul>li"); 664 gs.slide.li.a = gs.find("ul>li>a"); 665 var imgW = gs.find("ul>li>a").outerWidth(); 666 // var slideW = gs.slide.li.outerWidth() * gs.slide.li.length; 667 var slideW = 0; 668 var prev_btn = $(".gs_prev"); 669 var next_btn = $(".gs_next"); 670 var time = 300; 671 672 gs.slide.li.each(function () { 673 slideW += $(this).outerWidth(); 674 }); 675 676 gs.slide.width(slideW); 677 $(window).resize(function () { 678 gs.slide.li.each(function () { 679 slideW += $(this).outerWidth(); 680 }); 681 gs.slide.width(slideW); 682 }); 683 684 prev_btn.on("click", function () { 685 var move_box = $(this).next(".gs_slide").find(">ul>li:last-child"); 686 687 $(this).next(".gs_slide").find("ul").prepend(move_box); 688 $(this) 689 .next(".gs_slide") 690 .find("ul") 691 .css({ left: imgW * -1 + "px" }); 692 693 $(this) 694 .next(".gs_slide") 695 .find("ul") 696 .animate({ left: 0 }, time, function () {}); 697 return false; 698 }); 699 700 next_btn.on("click", function () { 701 var move_box = $(this).siblings(".gs_slide").find(">ul>li:first-child"); 702 703 $(this) 704 .siblings(".gs_slide") 705 .find("ul") 706 .animate({ left: imgW * -1 + "px" }, time, function () { 707 $(".gs_slide>ul").append(move_box); 708 $(".gs_slide>ul").css({ left: 0 }); 709 }); 710 return false; 711 }); 712 713 gs.slide.li.a.on("click", function () { 714 var imgSrc = $(this).find("img").attr("src"); 715 var imgAlt = $(this).find("img").attr("alt"); 716 var imgH = $(this).find("img").height(); 717 718 $(".gallery_view").find("img").hide(); 719 $(".gallery_view").find("img").attr({ src: imgSrc, alt: imgAlt }); 720 $(".gallery_view").find("img").fadeIn(1000); 721 722 // $(".gallery_view").append("<img src='"+imgSrc+"' alt='"+imgAlt+"' class='gallery_item'"); 723 // $(".gallery_item").css({opacity:0}
723).animate({opacity:1},"fast"); 724 return false; 725 }); 726} 727 728/* ********************************************************************************* 729 * photo board slide 730 * **********************************************************************************/ 731function pslide() { 732 var g_btn = $(".gallery.slide>li>a"); 733 var pslide = $(".pslide_box"); 734 var pslideH = ""; 735 var reply_more = $(".gallery.slide .reply_more"); 736 var close_btn = $(".gallery.slide .b_slide_close"); 737 738 pslide.hide(); 739 g_btn.on("click", function () { 740 var pslideH = $(this) 741 .next(".pslide_wrap") 742 .find(".pslide_box") 743 .outerHeight(); 744 if ($(this).next(".palide_wrap").find(".pslide_box").is(":hidden")) { 745 $(".pslide_wrap").animate({ height: 0 }, "fast"); 746 $(".pslide_box").slideUp("fast"); 747 $(this) 748 .next(".pslide_wrap") 749 .animate({ height: pslideH + 32 }, "fast"); 750 $(this).next(".pslide_wrap").find(".pslide_box").slideDown("fast"); 751 } 752 return false; 753 }); 754 755 reply_more.on("click", function () { 756 var pslide_H = $(this) 757 .parents(".pslide_wrap") 758 .find(".pslide_box") 759 .outerHeight(); 760 var b_reply_H = $(this).next(".b_reply_hide").outerHeight(); 761 if ($(this).next(".b_reply_hide").is(":hidden")) { 762 $(this) 763 .parents(".pslide_wrap") 764 .stop() 765 .animate({ height: pslide_H + b_reply_H + 32 }, "fast"); 766 } else { 767 $(this) 768 .parents(".pslide_wrap") 769 .stop() 770 .animate({ height: pslide_H - b_reply_H }, "fast"); 771 } 772 }); 773 774 close_btn.on("click", function () { 775 $(this).parents(".pslide_wrap").animate({ height: 0 }, "fast"); 776 $(this).parents(".pslide_box").slideUp("fast"); 777 }); 778 779 $(window).resize(function () { 780 $(".pslide_box").each(function () { 781 if ($(this).is(":visible")) { 782 var pslideH = $(this).outerHeight(); 783 $(this) 784 .parent(".pslide_wrap") 785 .animate({ height: pslideH + 32 }, "fast"); 786 } 787 }); 788 }); 789} 790 791/* ********************************************************************************* 792 * reply more btn 793 * **********************************************************************************/ 794function reply_more() { 795 $(".b_reply_hide").hide(); 796 $(".reply_more").on("click", function () { 797 if ($(this).next(".b_reply_hide").is(":hidden")) { 798 $(this).addClass("on"); 799 $(this).next(".b_reply_hide").slideDown("fast"); 800 } else { 801 $(this).removeClass("on"); 802 $(this).next(".b_reply_hide").slideUp("fast"); 803 } 804 return false; 805 }); 806} 807 808/* ********************************************************************************* 809 * reply write 810 * **********************************************************************************/ 811function reply_write() { 812 var btn = $(".u_reply_btn>a"); 813 814 btn.on("click", function () { 815 if ($(this).parents(".reply_con_box").next(".u_reply").is(":hidden")) { 816 $(this).addClass("on").text("´ä±ÛÃë¼Ò"); 817 $(this) 818 .parents(".reply_con_box") 819 .next(".u_reply") 820 .slideDown("fast"); 821 } else { 822 $(this).removeClass("on").text("´ä±Û´Þ±â"); 823 $(this).parents(".reply_con_box").next(".u_reply").slideUp("fast"); 824 } 825 return false; 826 }); 827} 828 829/* ********************************************************************************* 830 * FAQ ½½¶óÀ̵å 831 * **********************************************************************************/ 832function faq() { 833 var faq = $(".faq"); 834 faq.a = faq.find(">li>a"); 835 faq.con = faq.find(">li>.faq_a"); 836 837 faq.a.on("click", function () { 838 if ($(this).next(".faq_a").is(":hidden")) { 839 faq.a.removeClass("on");
840 faq.con.slideUp("fast"); 841 $(this).addClass("on"); 842 $(this).next(".faq_a").slideDown("fast"); 843 } else { 844 $(this).removeClass("on"); 845 $(this).next(".faq_a").slideUp("fast"); 846 } 847 return false; 848 }); 849} 850 851/* /////////////////////////////////////////////////////////// 852 * ÇÏ´Ü ¸µÅ© 853 * //////////////////////////////////////////////////////////*/ 854function bot_link() { 855 var btn = $(".bot_link>li>a"); 856 var box_btn = $(".link_box>ul>li>a"); 857 858 $(".link_box").hide(); 859 860 btn.on("click", function () { 861 if ($(this).siblings(".link_box").is(":hidden")) { 862 $(".link_box").hide(); 863 $(this).siblings(".link_box").show(); 864 btn.removeClass("on"); 865 $(this).addClass("on"); 866 } else { 867 $(".link_box").hide(); 868 btn.removeClass("on"); 869 } 870 return false; 871 }); 872 873 box_btn.on("click", function () { 874 $(this).parents(".link_box").hide(); 875 $(this).parents(".link_box").siblings("a").removeClass("on"); 876 }); 877 878 $(".link_box>ul>li:last-child>a").on("focusout", function () { 879 $(this).parents(".link_box").hide(); 880 $(this).parents(".link_box").siblings("a").removeClass("on"); 881 }); 882 // $(".bot_link").on("mouseleave",function () { 883 // $(".link_box").hide(); 884 // btn.removeClass("on"); 885 // }); 886 $("#wrap") 887 .not(".link_box, .link_box>li, .link_box>li>a") 888 .on("click", function () { 889 $(".link_box").hide(); 890 btn.removeClass("on"); 891 }); 892} 893 894/* ********************************************************************************* 895 * ÀÎDz(ÆÄÀÏ) 896 * *********************************************************************************/ 897function input_file() { 898 var uploadFile = $(".fileBox .uploadBtn"); 899 uploadFile.on("change", function () { 900 if (window.FileReader) { 901 var filename = $(this)[0].files[0].name; 902 } else { 903 var filename = $(this).val().split("/").pop().split("\\").pop(); 904 } 905 $(this).siblings(".fileName").val(filename); 906 }); 907} 908 909/* ********************************************************************************* 910 * üũ¹Ú½º(Àüü¼±Åà / ÇØÁ¦) 911 * *********************************************************************************/ 912function allChk() { 913 $("#allChk").click(function () { 914 //üũ¹Ú½º Àüü¼±Åà ¹× ÇØÁ¦ 915 if ($("#allChk").prop("checked")) { 916 $(this).parents("table").find(".board_chk").prop("checked", true); 917 } else { 918 $(this).parents("table").find(".board_chk").prop("checked", false); 919 } 920 }); 921 $(".board_chk").click(function () { 922 //Àüü¼±Åà Áß Ã¼Å©¹Ú½º Çϳª¶óµµ ÇØÁ¦Çϸé Àüü¼±ÅÃ(üũ¹Ú½º) üũ ÇØÁ¦ 923 if (!$(this).prop("checked")) { 924 $("#allChk").prop("checked", false); 925 } 926 }); 927} 928 929/* ********************************************************************************* 930 * jquery ui ´Þ·Â ÇÑ±Û ¼ÂÆÃ 931 * **********************************************************************************/ 932$(function () { 933 $.datepicker.setDefaults({ 934 // showOn: 'button', 935 changeMonth: true, 936 changeYear: true, 937 dateFormat: "yy-mm-dd", 938 prevText: "ÀÌÀü ´Þ", 939 nextText: "´ÙÀ½ ´Þ", 940 monthNames: [ 941 "1¿ù", 942 "2¿ù", 943 "3¿ù", 944 "4¿ù", 945 "5¿ù", 946 "6¿ù", 947 "7¿ù", 948 "8¿ù", 949 "9¿ù", 950 "10¿ù", 951 "11¿ù", 952 "12¿ù", 953 ], 954 monthNamesShort: [ 955 "1¿ù", 956 "2¿ù", 957 "3¿ù", 958 "4¿ù", 959 "5¿ù", 960 "6¿ù", 961 "7¿ù", 962 "8¿ù", 963 "9¿ù", 964 "10¿ù", 965 "11¿ù", 966 "12¿ù", 967 ], 968 dayNames: ["ÀÏ", "¿ù", "È", "¼ö", "¸ñ", "±Ý", "Åä"], 969 dayNamesShort: ["ÀÏ", "¿ù", "È", "¼ö", "¸ñ", "±Ý", "Åä"], 970 dayNamesMin: ["ÀÏ", "¿ù", "È", "¼ö", "¸ñ", "±Ý", "Åä"], 971 showMonthAfterYear: true, 972 yearSuffix: "³â", 973 });
974}); 975 976/* ********************************************************************************* 977 * °ø°øµ¥ÀÌÅͰ³¹æ ¸ð¹ÙÀÏ ¼¿·ºÆ®¸Þ´º 978 * **********************************************************************************/ 979 980jQuery(document).ready(function () { 981 var select = $("select#tot_position"); //°øÅë-ÅëÇÕ°Ë»ö 982 983 select.change(function () { 984 var select_name = $(this).children("option:selected").text(); 985 $(this).siblings("label").text(select_name); 986 }); 987}); 988 989function MM_jumpMenu(targ, selObj, restore) { 990 //v3.0 991 eval( 992 targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'" 993 ); 994 if (restore) selObj.selectedIndex = 0; 995} 996 997/* ********************************************************************************* 998 * ÆË¾÷ 999 * **********************************************************************************/ 1000 1001function MM_openBrWindow(theURL, winName, features) { 1002 //v2.0 1003 window.open(theURL, winName, features); 1004} 1005 1006/* ********************************************************************************* 1007 * showHideLayers 1008 * **********************************************************************************/ 1009 1010function MM_showHideLayers() { 1011 //v9.0 1012 var i, 1013 p, 1014 v, 1015 obj, 1016 args = MM_showHideLayers.arguments; 1017 for (i = 0; i < args.length - 2; i += 3) 1018 with (document) 1019 if (getElementById && (obj = getElementById(args[i])) != null) { 1020 v = args[i + 2]; 1021 if (obj.style) { 1022 obj = obj.style; 1023 v = v == "show" ? "visible" : v == "hide" ? "hidden" : v; 1024 } 1025 obj.visibility = v; 1026 } 1027} 1028 1029/* ********************************************************************************* 1030 * ÅǸ޴º 1031 * *********************************************************************************/ 1032function main_tab() { 1033 var tab = $(".main_tab"); 1034 var tabA = $(".main_tab>li>a"); 1035 var tabM = $(".main_tab>li>ul"); 1036 var tabM_f = $(".main_tab>li:first-child>ul"); 1037 var more = $(".tab_more"); 1038 var more_f = $(".main_tab>li:first-child .tab_more"); 1039 1040 tabM.hide(); 1041 tabM_f.show(); 1042 more.hide(); 1043 more_f.show(); 1044 1045 tabA.on("click", function () { 1046 tabA.removeClass("on"); 1047 tabM.hide(); 1048 more.hide(); 1049 $(this).addClass("on"); 1050 $(this).next("ul").show(); 1051 $(this).siblings(".tab_more").show(); 1052 return false; 1053 }); 1054} 1055 1056/* ********************************************************************************* 1057 * ÃÖ»ó´Ü¹öư 1058 * **********************************************************************************/ 1059$(document).ready(function () { 1060 $(document).scroll(function () { 1061 if ($(document).scrollTop() > 169) { 1062 $(".topBtn").fadeIn(); 1063 } else { 1064 $(".topBtn").fadeOut(); 1065 } 1066 }); 1067 $(".topBtn a").click(function (d) { 1068 d.preventDefault(); 1069 $(window).scrollTop(0); 1070 }); 1071}); 1072 1073/* ********************************************************************************* 1074 * ȸé È®´ë/Ãà¼Ò 1075 * **********************************************************************************/ 1076commonUI.zoomTrigger = function () { 1077 var zoom_level = 100; 1078 1079 // Click events 1080 $(".btn_fplus").click(function () { 1081 zoom_page(2, $(this)); 1082 }); 1083 $(".btn_fmin").click(function () { 1084 zoom_page(-2, $(this)); 1085 }); 1086 $(".btn_fdefault").click(function () { 1087 zoom_page(0, $(this)); 1088 }); 1089 $(".btn_print").click(function () { 1090 window.print(); 1091 }); 1092 1093 // Zoom function 1094 function zoom_page(step, trigger) { 1095 if ((zoom_level >= 120 && step > 0) || (zoom_level <= 80 && step < 0)) 1096 return; 1097 1098 if (step == 0) { 1099 zoom_level = 100; 1100 } else { 1101 zoom_level = zoom_level + step; 1102 } 1103 1104 $("#container").css({ 1105 //set zoom 1106 transform: "scale(" + zoom_level / 100 + ")", 1107 transformOrigin: "100% 0", 1108 }); 1109 1110 if (zoom_level > 100) { 1111 $("#container").css({ width: zoom_level * 1.0 + "%" }); 1112 } else { 1113 $("#container").css({ width: zoom_level * 1.0 + "%" }); 1114 } 1115 1116 if (zoom_level >= 120 || zoom_level <= 80) { 1117 trigger.addClass("disabled"); 1118 } else { 1119 trigger.parents("ul").find(".disabled").removeClass("disabled"); 1120 } 1121 1122 if (zoom_level >= 120) { 1123 alert("´õÀÌ»ó È®´ë ÇÒ ¼ö ¾ø½À´Ï´Ù."); 1124 return false; 1125 } else if (zoom_level <= 80) { 1126 alert("´õÀÌ»ó Ãà¼Ò ÇÒ ¼ö ¾ø½À´Ï´Ù."); 1127 return false; 1128 } 1129 1130 if (zoom_level != 100) { 1131 $("#zoom_reset").removeClass("disabled"); 1132 } else { 1133 $("#zoom_reset").addClass("disabled"); 1134 } 1135 } 1136}; 1137 1138/* ********************************************************************************* 1139 * °Ë»ö¿É¼Ç ¿±â/´Ý±â 1140 * **********************************************************************************/ 1141$(function () { 1142 $(".sch_option").on("click", function () { 1143 if ($(this).parent("div").next(".sch_detail").is(":hidden")) { 1144 $(this) 1145 .parent("div") 1146 .next(".sch_detail") 1147 .slideDown("fast", "easeOutCubic"); 1148 $(this).addClass("on"); 1149 } else { 1150 $(this) 1151 .parent("div") 1152 .next(".sch_detail") 1153 .slideUp("fast", "easeOutCubic"); 1154 $(this).removeClass("on"); 1155 } 1156 });
1157}); 1158 1159/* ********************************************************************************* 1160 * °Ô½ÃÆÇ ¼öÁ¤, »èÁ¦ ºñ¹Ð¹øÈ£ ÀÔ·Â ·¹À̾îÆË¾÷ 1161 * **********************************************************************************/ 1162$(function () { 1163 $(".passwd_layer").hide(); 1164 $(".btn.type_1.del").on("click", function () { 1165 if ($(this).parent("div").next(".passwd_layer").length) { 1166 $(".passwd_layer").hide(); 1167 $(this).parent("div").next(".passwd_layer").slideDown("fast"); 1168 return false; 1169 } 1170 }); 1171 $(".btn.type_1.update").on("click", function () { 1172 if ($(this).parent("div").next(".passwd_layer").length) { 1173 $(".passwd_layer").hide(); 1174 $(this).parent("div").next(".passwd_layer").slideDown("fast"); 1175 return false; 1176 } 1177 }); 1178 $(".passwd_close").on("click", function () { 1179 $(".passwd_layer").find("input[type=password]").val(""); 1180 $(this).parents(".passwd_layer").hide(); 1181 }); 1182}); 1183 1184/* ********************************************************************************* 1185 * ÀÌ¿ë¾à°ü µ¿ÀÇ 1186 * **********************************************************************************/ 1187function agree() { 1188 $(".agree_submit").on("click", function () { 1189 if (!$("#appy").is(":checked")) { 1190 alert("ÀÌ¿ë¾à°ü¿¡ µ¿ÀÇÇÏ¼Å¾ß ¼ºñ½º ½ÅûÀÌ °¡´ÉÇÕ´Ï´Ù."); 1191 $("#appy").focus(); 1192 return false; 1193 } 1194 }); 1195} 1196 1197/* ********************************************************************************* 1198 * input ¼ýÀÚ¸¸ ÀÔ·Â 1199 * **********************************************************************************/ 1200function onlyNumber(obj) { 1201 $(obj).keyup(function () { 1202 $(this).val( 1203 $(this) 1204 .val() 1205 .replace(/[^0-9]/g, "") 1206 ); 1207 }); 1208} 1209 1210/* ********************************************************************************* 1211 * ¸ÞÀÎ ÅÇ 1212 * **********************************************************************************/ 1213$(document).ready(function () { 1214 var tabBtn = $(".mCon_latest>ul>li>a"); 1215 1216 tabBtn.on("click", function () { 1217 tabBtn.not(this).removeClass("on").next(".latest_box").hide(); 1218 $(this).addClass("on").next(".latest_box").show(); 1219 return false; 1220 }); 1221}); 1222 1223/* ********************************************************************************* 1224 * ÆË¾÷ 1225 * **********************************************************************************/ 1226function showLaw(url) { 1227 window.open(url, "±¹°¡¹ý·ÉÁ¤º¸¼¾ÅÍ", "width=800,height=600,resizable=1"); 1228} 1229 1230function printArea() { 1231 popup($("#content_wrap").html()); 1232} 1233 1234function popup(data) { 1235 var mywindow = window.open("", "", "height=800,width=700,scrollbars=yes"); 1236 mywindow.document.write("<html><head>"); 1237 mywindow.document.write( 1238 '<link type="text/css" rel="stylesheet" href="/portal/css/common.css">' 1239 ); 1240 mywindow.document.write( 1241 '<link type="text/css" rel="stylesheet" href="/portal/css/layout.css">' 1242 ); 1243 mywindow.document.write( 1244 '<link type="text/css" rel="stylesheet" href="/portal/css/board.css">' 1245 ); 1246 mywindow.document.write( 1247 '<link type="text/css" rel="stylesheet" href="/portal/css/content.css">' 1248 );
1249 mywindow.document.write('<style type="text/css">'); 1250 mywindow.document.write("body,tr,th,td{font-size:12px;}"); 1251 mywindow.document.write(".def_tbl_le th, .def_tbl_le td{padding:2px;}"); 1252 mywindow.document.write(".mt_35{font-size:16px;margin-top:20px;}"); 1253 mywindow.document.write( 1254 ".inputBtn3{line-height:16px;height:16px;font-size:12px;text-align:center;}" 1255 ); 1256 mywindow.document.write(".btn{font-size:10px;line-height:5px;}"); 1257 mywindow.document.write( 1258 ".def_tbl th, .def_tbl td{font-size:12px;line-height:5px;padding:8px;}" 1259 ); 1260 mywindow.document.write(".tbl th, .tbl td{padding:1px;}"); 1261 mywindow.document.write("select{font-size:10px;}"); 1262 mywindow.document.write( 1263 ".info_search_form dl .dd_oth, .info_search_form dl dd{width:230px;}" 1264 ); 1265 mywindow.document.write(".info_search_form dl select{width:70px;}"); 1266 mywindow.document.write( 1267 ".info_search_form dl dt{width:80px;padding-left:5px;background:}" 1268 ); 1269 mywindow.document.write(".info_search_form dl .sea_input{width:80px;}"); 1270 mywindow.document.write("#paging{margin-top:20px;}"); 1271 mywindow.document.write("<title>Àμâ</title>"); 1272 mywindow.document.write("</style></head><body>"); 1273 mywindow.document.write(data); 1274 mywindow.document.write("</body></html>"); 1275 mywindow.document.close(); 1276 /*mywindow.focus(); 1277 mywindow.print(); 1278 mywindow.close();*/ 1279 return true; 1280}
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.