1$(document).ready(function(){ 2 $(".lang-select").click(function(){ 3 $(this).parent(".lang").toggleClass("on"); 4 }) 5}) 6 7$(function(){ 8 9//ììì, ê³ ìê³µê³ ì¬ë¼ì´ë 10bbsSlider1(); 11 12//ì±ì©ê³µê³ , ë³´ëìë£ ì¬ë¼ì´ë 13bbsSlider2(); 14 15/*==================== 2020 리ë´ì¼ ë©ì¸íì´ì§ ì¤í¬ë¦½í¸ ====================*/ 16 17 18var browser_w = $(window).width(); 19var browser_h = $(window).height(); 20 21 22 23/* ë¤ë¹ê²ì´ì MOBILEë²ì */ 24$(".gnb_mobile_open").click(function(e){ 25 $(".gnb_mobile_wrap").addClass("open"); 26 $(".gnb_mobile").stop().animate({ 27 right : 0 28 }, 200); 29}); 30$(".gnb_mobile_close").click(function(e){ 31 $(".gnb_mobile").stop().animate({ 32 right : -280 33 }, 200, function(){ 34 $(".gnb_mobile_wrap").removeClass("open"); 35 }); 36}); 37$(".nav_mobile li a").click(function(e){ 38 if($(this).next().length > 0){ 39 e.preventDefault(); 40 } 41 42 var a = $(this); 43 var li = a.parent("li"); 44 var ul = a.next("ul"); 45 46 if(li.hasClass("open")){ 47 li.siblings("li").removeClass("open"); 48 li.siblings("li").find("ul").hide(); 49 li.removeClass("open"); 50 ul.hide(); 51 }else{ 52 li.siblings("li").removeClass("open"); 53 li.siblings("li").find("ul").hide(); 54 li.addClass("open"); 55 ul.show(); 56 } 57}); 58 59$(window).resize(function(){ 60 var browser_w = $(window).width(); 61 var browser_h = $(window).height(); 62 63 if(browser_w > 800){ 64 $(".gnb_mobile").stop().animate({ 65 right : -280 66 }, 200, function(){ 67 $(".gnb_mobile_wrap").removeClass("open"); 68 }); 69 70 $(".favorite_link_wrap .flex .title_favorite a").text("ì 체보기 ë° ì¤ì ") 71 } 72 73 if(browser_w <= 800) { 74 $(".favorite_link_wrap .flex .title_favorite a").text("ì¤ì ") 75 } 76 77 78}); 79 80 81/* 모ë°ì¼ í¤ë ê²ìê¸°ë¥ ì²ë¦¬ */ 82$(".header_ver2024.header_top a.open_search").click(function(e){ 83 e.preventDefault(); 84 $(".header_ver2024.header_top").toggleClass("search_opened"); 85}); 86 87 88/* ë¤ë¹ê²ì´ì ì¹ì ê·¼ì± íí¤ ì²ë¦¬ */ 89 90$(".header_ver2024.gnb > li > a").focus(function(){ 91 $(this).parent("li").siblings("li").removeClass("on"); 92 $(this).parent("li").addClass("on"); 93 $(this).parent("li").siblings("li").find(".depth_2").slideUp(200); 94 $(this).next(".depth_2").stop().slideDown(200); 95}); 96 97 98 99 100 101/*========== ë©ì¸íì´ì§ ==========*/ 102 103/* ë©ì¸íì´ì§ ìë¨ ë©ì¸ë´ì¤ */ 104var mainVisualSlide = new Swiper (".main_banner_slide .swiper-container", { 105 slidesPerView: 1, 106 loop: true, 107 effect: "fade", 108 fadeEffect: { 109 crossFade: true 110 }, 111 autoplay: { 112 delay: 5000, //ì¬ë¼ì´ë íì ì¤ì íë ë¶ë¶ì ëë¤!(5000 = 5ì´) 113 }, 114 navigation: { 115 nextEl: ".main_banner_wrap .slide-control .slide-button-next", 116 prevEl: ".main_banner_wrap .slide-control .slide-button-prev", 117 }, 118 pagination: { 119 el: ".main_banner_wrap .slide-control .swiper-pagination", 120 type: 'custom', 121 renderCustom: function (mainVisualSlide, current, total) { 122 return '<b>'+ current + '</b><span></span>' + (total); 123 } 124 }, 125 on: { 126 slideChangeTransitionEnd: function () { 127 $(".main_banner_wrap .swiper-slide").find("a").attr("tabindex","-1") 128 $(".main_banner_wrap .swiper-slide").each(function(){ 129 if($(this).hasClass("swiper-slide-active")){ 130 $(this).find("a").attr("tabindex","0") 131 } 132 }) 133 } 134 }, 135}); 136 137// $(".main_banner_slide .swiper-slide").mouseenter(function(){ 138// mainVisualSlide.autoplay.stop(); 139// }); 140 141mainVisualSlide.on("autoplayStop", function () { 142 $(".slide-control .slide-button-play").removeClass("pause"); 143}); 144 145mainVisualSlide.on("autoplayStart", function () { 146 $(".slide-control .slide-button-play").addClass("pause"); 147}); 148 149$(".slide-control .slide-button-play").click(function(e){ 150 e.preventDefault(); 151 if($(this).hasClass("pause")){ 152 $(this).removeClass("pause"); 153 $(this).text("ì¬ì"); 154 mainVisualSlide.autoplay.stop(); 155 }else{ 156 $(this).addClass("pause"); 157 $(this).text("ì¼ìì ì§"); 158 mainVisualSlide.autoplay.start(); 159 } 160}); 161 162let delay = 300; 163let timer = null; 164var ww = $(window).width(); 165 166function initSwiper() { 167 168 if (ww > 1420 ) { 169 popupSlide = new Swiper (".main_popupzone_slide .swiper-container", { 170 loop: true, 171 autoplay: { 172 delay: 5000, //ì¬ë¼ì´ë íì ì¤ì íë ë¶ë¶ì ëë¤!(5000 = 5ì´) 173 }, 174 navigation: { 175 nextEl: ".main_popupzone_slide .popupzone-button-next", 176 prevEl: ".main_popupzone_slide .popupzone-button-prev", 177 }, 178 pagination: { 179 el: ".main_popupzone_slide .swiper-control .poupzone-pagination", 180 type: 'custom', 181 renderCustom: function (popupSlide, current, total) { 182 return '<b>'+ current + '</b><span></span>' + total; 183 } 184 }, 185 on: { 186 187 afterInit: function() { 188 var swiperThis = $(this.el); 189 190 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 191 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 192 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 193 194 }, 195 transitionEnd: function() { 196 var swiperThis = $(this.el); 197 198 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 199 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 200 swiperThis.find('.swiper-pagination-bullet').removeAttr('title'); 201 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 202 } 203 204 } 205 });
206 } else if (ww <= 1420 && ww > 960 ) { 207 208 popupSlide = new Swiper (".main_popupzone_slide .swiper-container", { 209 loop: true, 210 slidesPerView: 4, //ë¸ë¼ì°ì ê° 768ë³´ë¤ í´ ë 211 slidesPerGroup: 4, 212 spaceBetween: 10, 213 autoplay: { 214 delay: 5000, //ì¬ë¼ì´ë íì ì¤ì íë ë¶ë¶ì ëë¤!(5000 = 5ì´) 215 }, 216 navigation: { 217 nextEl: ".main_popupzone_slide .popupzone-button-next", 218 prevEl: ".main_popupzone_slide .popupzone-button-prev", 219 }, 220 pagination: { 221 el: ".main_popupzone_slide .swiper-control .poupzone-pagination", 222 type: 'custom', 223 renderCustom: function (popupSlide, current, total) { 224 return '<b>'+ current + '</b><span></span>' + total; 225 } 226 }, 227 on: { 228 229 afterInit: function() { 230 var swiperThis = $(this.el); 231 232 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 233 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 234 swiperThis.find('.swiper-slide-active').nextAll(".swiper-slide:lt(3)").attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 235 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 236 237 }, 238 transitionEnd: function() { 239 var swiperThis = $(this.el); 240 241 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 242 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 243 swiperThis.find('.swiper-slide-active').nextAll(".swiper-slide:lt(3)").attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 244 swiperThis.find('.swiper-pagination-bullet').removeAttr('title'); 245 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 246 } 247 248 } 249 }); 250 } else if (ww <= 960 && ww > 640) { 251 252 popupSlide = new Swiper (".main_popupzone_slide .swiper-container", { 253 loop: true, 254 slidesPerView: 3, //ë¸ë¼ì°ì ê° 768ë³´ë¤ í´ ë 255 slidesPerGroup: 3, 256 spaceBetween: 10, 257 autoplay: { 258 delay: 5000, //ì¬ë¼ì´ë íì ì¤ì íë ë¶ë¶ì ëë¤!(5000 = 5ì´) 259 }, 260 navigation: { 261 nextEl: ".main_popupzone_slide .popupzone-button-next", 262 prevEl: ".main_popupzone_slide .popupzone-button-prev", 263 }, 264 pagination: { 265 el: ".main_popupzone_slide .swiper-control .poupzone-pagination", 266 type: 'custom', 267 renderCustom: function (popupSlide, current, total) { 268 return '<b>'+ current + '</b><span></span>' + total; 269 } 270 }, 271 on: { 272 273 afterInit: function() { 274 var swiperThis = $(this.el); 275 276 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 277 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 278 swiperThis.find('.swiper-slide-active').nextAll(".swiper-slide:lt(2)").attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 279 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 280 281 }, 282 transitionEnd: function() { 283 var swiperThis = $(this.el); 284 285 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 286 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 287 swiperThis.find('.swiper-slide-active').nextAll(".swiper-slide:lt(2)").attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 288 swiperThis.find('.swiper-pagination-bullet').removeAttr('title'); 289 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 290 } 291 292 } 293 }); 294 } else if (ww <= 640) { 295 296 popupSlide = new Swiper (".main_popupzone_slide .swiper-container", { 297 loop: true, 298 slidesPerView: 2, //ë¸ë¼ì°ì ê° 768ë³´ë¤ í´ ë 299 slidesPerGroup: 1, 300 spaceBetween: 10, 301 autoplay: { 302 delay: 5000, //ì¬ë¼ì´ë íì ì¤ì íë ë¶ë¶ì ëë¤!(5000 = 5ì´) 303 }, 304 navigation: { 305 nextEl: ".main_popupzone_slide .popupzone-button-next", 306 prevEl: ".main_popupzone_slide .popupzone-button-prev", 307 }, 308 pagination: { 309 el: ".main_popupzone_slide .swiper-control .poupzone-pagination", 310 type: 'custom', 311 renderCustom: function (popupSlide, current, total) { 312 return '<b>'+ current + '</b><span></span>' + total; 313 } 314 }, 315 on: { 316 317 afterInit: function() { 318 var swiperThis = $(this.el); 319 320 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 321 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 322 swiperThis.find('.swiper-slide-active').next(".swiper-slide").attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 323 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 324 325 }, 326 transitionEnd: function() { 327 var swiperThis = $(this.el); 328 329 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 330 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 331 swiperThis.find('.swiper-slide-active').next(".swiper-slide").attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 332 swiperThis.find('.swiper-pagination-bullet').removeAttr('title'); 333 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 334 } 335 336 } 337 }); 338 } 339} 340 341initSwiper(); 342 343$(window).on('resize', function () { 344 clearTimeout(timer); 345 timer = setTimeout(function(){ 346 347 ww = $(window).width(); 348 initSwiper(); 349 }, delay); 350}); 351 352 353/* ë©ì¸íì´ì§ íì ì¡´ */ 354// var popupSlide = new Swiper (".main_popupzone_slide .swiper-container", { 355// loop: true, 356// autoplay: { 357// delay: 5000, //ì¬ë¼ì´ë íì ì¤ì íë ë¶ë¶ì ëë¤!(5000 = 5ì´) 358// }, 359// navigation: { 360// nextEl: ".main_popupzone_slide .popupzone-button-next", 361// prevEl: ".main_popupzone_slide .popupzone-button-prev", 362// }, 363// pagination: { 364// el: ".main_popupzone_slide .swiper-control .poupzone-pagination", 365// type: 'custom',
366// renderCustom: function (popupSlide, current, total) { 367// return '<b>'+ current + '</b><span></span>' + total; 368// } 369// }, 370// on: { 371 372// afterInit: function() { 373// var swiperThis = $(this.el); 374 375// swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 376// swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 377// swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 378 379// }, 380// transitionEnd: function() { 381// var swiperThis = $(this.el); 382 383// swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 384// swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 385// swiperThis.find('.swiper-pagination-bullet').removeAttr('title'); 386// swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 387// } 388 389// }, 390// breakpoints: { 391// 1420: { 392// slidesPerView: 4, //ë¸ë¼ì°ì ê° 768ë³´ë¤ í´ ë 393// slidesPerGroup: 4, 394// spaceBetween: 10, 395// }, 396// 960: { 397// slidesPerView: 3, 398// slidesPerGroup: 3, 399// spaceBetween: 10, 400// }, 401// 640: { 402// slidesPerView: 2, 403// slidesPerGroup: 1, 404// spaceBetween: 10, 405// }, 406// }, 407// }); 408 409/* SNS ë¸ë¡ê·¸ 리ì¤í¸ */ 410var snsblogSlide = new Swiper (".sns_blog .blog-items", { 411 loop: true, 412 slidesPerView: 2, 413 slidesPerGroup: 2, 414 spaceBetween: 25, 415 autoplay: { 416 delay: 5000, //ì¬ë¼ì´ë íì ì¤ì íë ë¶ë¶ì ëë¤!(5000 = 5ì´) 417 }, 418 breakpoints: { 419 768: { 420 spaceBetween: 10, 421 }, 422 }, 423 navigation: { 424 nextEl: ".sns_blog .blog-paging .blog-next", 425 prevEl: ".sns_blog .blog-paging .blog-prev", 426 }, 427 pagination: { 428 el: ".sns_blog .blog-paging .blog-pagination", 429 type: 'custom', 430 renderCustom: function (snsblogSlide, current, total) { 431 return '<b>'+ current + '</b><span>/</span>' + total; 432 } 433 }, 434 on: { 435 slideChangeTransitionEnd: function () { 436 $(".sns_blog .swiper-slide").find("a").attr("tabindex","-1") 437 $(".sns_blog .swiper-slide").find(".nolink").attr("tabindex","-1") 438 $(".sns_blog .swiper-slide").each(function(){ 439 if($(this).hasClass("swiper-slide-active")){ 440 $(this).find("a").attr("tabindex","0") 441 } 442 if($(this).hasClass("swiper-slide-next")){ 443 $(this).find("a").attr("tabindex","0") 444 } 445 }) 446 } 447 }, 448}); 449 450 451var popupSlide = new Swiper (".publication_slide", { 452 loop: false, 453 slidesPerView: 1, 454 slidesPerGroup: 1, 455 effect : 'fade', 456 fadeEffect: { 457 crossFade: true 458 }, 459 observer: true, 460 observeParents: true, 461 462 // autoplay: { 463 // delay: 5000, //ì¬ë¼ì´ë íì ì¤ì íë ë¶ë¶ì ëë¤!(5000 = 5ì´) 464 // }, 465 466 navigation: { 467 nextEl: ".publication_next", 468 prevEl: ".publication_prev", 469 }, 470 471 on: { 472 init: function () { 473 updateTabIndex(this); 474 }, 475 slideChange: function () { 476 updateTabIndex(this); 477 } 478 } 479}); 480 481function updateTabIndex(swiper){ 482 swiper.slides.find('a').attr('tabindex', '-1'); 483 swiper.slides.eq(swiper.activeIndex).find('a').attr('tabindex', '0'); 484} 485 486 487// $(".main_popupzone_slide .swiper-slide").mouseenter(function(){ 488// popupSlide.autoplay.stop(); 489// }); 490 491popupSlide.on("autoplayStop", function () { 492 $(".main_popupzone_slide .popupzone-button-play").removeClass("pause"); 493}); 494 495popupSlide.on("autoplayStart", function () { 496 $(".main_popupzone_slide .popupzone-button-play").addClass("pause"); 497}); 498 499$(".main_popupzone_slide .popupzone-button-play").click(function(e){ 500 e.preventDefault(); 501 if($(this).hasClass("pause")){ 502 $(this).removeClass("pause"); 503 $(this).text("ì¬ì"); 504 popupSlide.autoplay.stop(); 505 }else{ 506 $(this).addClass("pause"); 507 $(this).text("ì¼ìì ì§"); 508 popupSlide.autoplay.start(); 509 } 510}); 511 512 513/* í¨ë°ë¦¬ì¬ì´í¸ ë° ì ê´ê¸°ê´ */ 514$(".related_website_list > li > a").click(function(e){
515 e.preventDefault(); 516 var a = $(this); 517 var li = a.parent("li"); 518 li.toggleClass("on"); 519 li.siblings("li").removeClass("on"); 520}); 521 522 523 524/* ë©ì¸íì´ì§ ê²ìí í ì´ë */ 525$(".main_bbs_box dl dt a").click(function(e){ 526 e.preventDefault(); 527 var a = $(this); 528 var all_a = a.parent("dt").parent("dl").find("dt").find("a"); 529 var dd = a.parent("dt").next("dd"); 530 var all_dd = a.parent("dt").parent("dl").find("dd"); 531 all_a.removeClass("selected"); 532 a.addClass("selected"); 533 all_dd.hide(); 534 dd.show(); 535 536 if(a.text() == "ììì" && "ê³ ìê³µê³ "){ 537 bbsSlider1(); 538 }else if(a.text() == "ì±ì©ê³µê³ " && "ë³´ëìë£"){ 539 bbsSlider2(); 540 } 541 542}); 543 544$(".main_bbs_box dl dt a").focus(function(e){ 545 e.preventDefault(); 546 var a = $(this); 547 var all_a = a.parent("dt").parent("dl").find("dt").find("a"); 548 var dd = a.parent("dt").next("dd"); 549 var all_dd = a.parent("dt").parent("dl").find("dd"); 550 all_a.removeClass("selected"); 551 a.addClass("selected"); 552 all_dd.hide(); 553 dd.show(); 554 bbsSlider(); 555}); 556 557 558/* ë©ì¸íì´ì§ SNS í ì´ë */ 559$(".main_sns dl dt a").click(function(e){ 560 if($(this).hasClass("actlink")){ 561 562 }else{ 563 e.preventDefault(); 564 var a = $(this); 565 var all_a = a.parent("dt").parent("dl").find("dt").find("a"); 566 var dd = a.parent("dt").next("dd"); 567 var all_dd = a.parent("dt").parent("dl").find("dd"); 568 //all_a.removeClass("selected"); 569 //a.addClass("selected"); 570 all_dd.hide(); 571 dd.show(); 572 } 573}); 574 575$(".main_sns dl dt a").focus(function(e){ 576 if($(this).hasClass("actlink")){ 577 578 }else{ 579 e.preventDefault(); 580 var a = $(this); 581 var all_a = a.parent("dt").parent("dl").find("dt").find("a"); 582 var dd = a.parent("dt").next("dd"); 583 var all_dd = a.parent("dt").parent("dl").find("dd"); 584 //all_a.removeClass("selected"); 585 //a.addClass("selected"); 586 all_dd.hide(); 587 dd.show(); 588 } 589}); 590 591/* ë©ì¸íì´ì§ ì´ì©ìë³ ìë¹ì¤ í ì´ë */ 592$(".service_type_tab dl dt a").click(function(e){ 593 e.preventDefault(); 594 var a = $(this); 595 var all_a = a.parent("dt").parent("dl").find("dt").find("a"); 596 var dd = a.parent("dt").next("dd"); 597 var all_dd = a.parent("dt").parent("dl").find("dd"); 598 all_a.removeClass("selected"); 599 a.addClass("selected"); 600 all_dd.removeClass("show"); 601 dd.addClass("show"); 602}); 603 604$(".service_type_tab dl dt a").focus(function(e){ 605 e.preventDefault(); 606 var a = $(this); 607 var all_a = a.parent("dt").parent("dl").find("dt").find("a"); 608 var dd = a.parent("dt").next("dd"); 609 var all_dd = a.parent("dt").parent("dl").find("dd"); 610 all_a.removeClass("selected"); 611 a.addClass("selected"); 612 all_dd.removeClass("show"); 613 dd.addClass("show"); 614}); 615 616 617 618 619 /* ë©ì¸íì´ì§ ì¦ê²¨ì°¾ê¸° ìë¹ì¤ */ 620 $(".fav-setting").click(function(e){ 621 e.preventDefault(); 622 $(".favorite_link_wrap .popup_favorite").stop().slideDown(200).attr("tabindex","0").focus(); 623 }); 624 625 $(".favorite_link_wrap .popup_favorite .close_popup_favorite a").click(function(e){ 626 e.preventDefault(); 627 $(".favorite_link_wrap .popup_favorite").stop().slideUp(200).attr("tabindex",""); 628 $(".fav-setting").focus() 629 }); 630 631 632 633/* ë©ì¸íì´ì§ ë°°ëì 기 */ 634var banner_area_h = $(".main_top_2020 .main_top_wrap").outerHeight(); 635$(".toggle_banner").click(function(e){ 636 e.preventDefault(); 637 if($(".main_top_2020").hasClass("closed")){ 638 $(".main_top_2020").removeClass("closed"); 639 $(".main_top_2020 .main_top_wrap").stop().animate({ 640 height: "100%" 641 }, 200); 642 $(this).text(""); 643 $(this).text("ë°°ëì 기"); 644 mainVisualSlide.autoplay.start(); 645 }else{ 646 $(".main_top_2020").addClass("closed"); 647 $(".main_top_2020 .main_top_wrap").stop().animate({ 648 height: 0 649 }, 200); 650 $(this).text("ë°°ëì´ê¸°"); 651 mainVisualSlide.autoplay.stop(); 652 } 653}); 654 655 656/* 20210202 ë´ì¤ ì 체보기,íì ì 체보기 ë ì´ì´íì */ 657$(".main_all_banner a").click(function(e){ 658 e.preventDefault(); 659 $("body").addClass("ov_h"); 660 $(".all_banner_popup").addClass("on"); 661 $(".header_ver2024").addClass("allview-on") 662}); 663 664$(".main_all_popup a").click(function(e){ 665 e.preventDefault(); 666 $("body").addClass("ov_h"); 667 $(".all_popup").addClass("on"); 668 $(".header_ver2024").addClass("allview-on") 669}); 670 671 672$(".banner_box .close").click(function(e){
673 e.preventDefault(); 674 $("body").removeClass("ov_h"); 675 $(".all_banner_popup").removeClass("on"); 676 $(".header_ver2024").removeClass("allview-on") 677}); 678 679$(".popup_box .close").click(function(e){ 680 e.preventDefault(); 681 $("body").removeClass("ov_h"); 682 $(".all_popup").removeClass("on"); 683 $(".header_ver2024").removeClass("allview-on") 684}); 685 686$(".banner_box .close").focusout(function(){ 687 $("body").removeClass("ov_h"); 688 $(".all_banner_popup").removeClass("on"); 689 $(".header_ver2024").removeClass("allview-on") 690}); 691 692$(".popup_box .close").focusout(function(){ 693 $("body").removeClass("ov_h"); 694 $(".all_popup").removeClass("on"); 695 $(".header_ver2024").removeClass("allview-on") 696}); 697 698 699$(document).mouseup(function (e){ 700 var LayerPopup = $(".all_banner_popup"); 701 var LayerPopup2 = $(".all_popup"); 702 703 if(LayerPopup.has(e.target).length === 0){ 704 $("body").removeClass("ov_h"); 705 LayerPopup.removeClass("on"); 706 } 707 708 if(LayerPopup2.has(e.target).length === 0){ 709 $("body").removeClass("ov_h"); 710 LayerPopup2.removeClass("on"); 711 } 712 713 }); 714 715 716 717 //2022 ì¶ê° 718 719 $(".lang-select").click(function(){ 720 $(this).parent(".lang").toggleClass("on"); 721 }) 722 723 724$(".sub-searchbtn").click(function(){ 725 $(".searchbox_2024").slideDown({ 726 start: function(){ 727 $(this).css({ 728 display: "flex" 729 }) 730 } 731 }, 300) 732}) 733 734 735$(".search-close").click(function(){ 736 $(".searchbox_2024").slideUp({ 737 end: function(){ 738 $(this).css({ 739 display: "none" 740 }) 741 } 742 }, 300) 743}) 744 745$(".mypage_link > a.mypage-btn").click(function(){ 746 if($(".mypage-menus").hasClass("on")){ 747 $(".mypage-menus").removeClass("on") 748 }else{ 749 $(".mypage-menus").addClass("on"); 750 } 751}) 752 753 754$(document).mouseup(function(e){ 755 if($(".mypage-menus").has(e.target).length === 0){ 756 $(".mypage-menus").removeClass("on") 757 } 758}) 759 760 761$("a.m-mypage-btn").click(function(){ 762 if($(".m-mypage-menus").hasClass("on")){ 763 $(this).removeClass("on"); 764 $(".m-mypage-menus").removeClass("on") 765 }else{ 766 $(this).addClass("on") 767 $(".m-mypage-menus").addClass("on"); 768 } 769}) 770 771 772}); 773 774 775function bbsSlider1(){ 776 $(".bbs_listl").each(function(index){ 777 let $this = $(this); 778 let swiper = undefined; 779 let slideNum = $this.find('.swiper-slide').length //ì¬ë¼ì´ë ì´ ê°ì 780 let slideInx = 0; //íì¬ ì¬ë¼ì´ë index 781 782 //ëë°ì´ì¤ ì²´í¬ 783 let oldWChk = window.innerWidth > 768 ? 'pc' : 'mo'; 784 sliderAct(); 785 $(window).on('resize', function () { 786 let newWChk = window.innerWidth > 768 ? 'pc' : 'mo'; 787 if(newWChk != oldWChk){ 788 oldWChk = newWChk; 789 sliderAct(); 790 } 791 }) 792 793 function sliderAct(){ 794 //ì¬ë¼ì´ë ì¸ë±ì¤ í´ëì¤ ì¶ê° 795 $this.addClass(`bbs_listl${index}`); 796 $this.next(".swiper-control").addClass(`swiper-control-l${index}`); 797 798 //ì¬ë¼ì´ë ì´ê¸°í 799 if (swiper != undefined){ 800 swiper.destroy(); 801 swiper = undefined; 802 } 803 804 //slidesPerView ìµì ì¤ì 805 let viewNum = oldWChk == 'pc' ? 2 : 2; 806 //loop ìµì ì²´í¬ 807 let loopChk = slideNum > viewNum; 808 809 swiper = new Swiper(`.bbs_listl${index}`, { 810 slidesPerView: viewNum, 811 initialSlide :slideInx, 812 spaceBetween: 10, 813 slidesPerGroup: 2, 814 observer: true, 815 observeParents: true, 816 loop: loopChk, 817 navigation: { 818 prevEl: $(`.swiper-control-l${index} .btn_prev`)[0], 819 nextEl: $(`.swiper-control-l${index} .btn_next`)[0], 820 }, 821 a11y: { // ì¹ì ê·¼ì± 822 enabled: true, 823 prevSlideMessage: 'ì´ì ì¬ë¼ì´ë', 824 nextSlideMessage: 'ë¤ì ì¬ë¼ì´ë', 825 slideLabelMessage: 'ì´ {{slidesLength}}ì¥ì ì¬ë¼ì´ë ì¤ {{index}}ë² ì¬ë¼ì´ë ì ëë¤.', 826 }, 827 on: { 828 activeIndexChange: function () { 829 slideInx = this.realIndex; //íì¬ ì¬ë¼ì´ë index ê°±ì 830 }, 831 afterInit: function() { 832 var swiperThis = $(this.el); 833 834 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 835 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 836 swiperThis.find('.swiper-slide-active').next('.swiper-slide').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 837 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 838 839 }, 840 transitionEnd: function() { 841 var swiperThis = $(this.el); 842 843 swiperThis.find('.swiper-slide').attr('aria-hidden', 'true').find('> *').attr('tabindex', '-1'); 844 swiperThis.find('.swiper-slide-active').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 845 swiperThis.find('.swiper-slide-active').next('.swiper-slide').attr('aria-hidden', 'false').find('> *').attr('tabindex', '0'); 846 swiperThis.find('.swiper-pagination-bullet').removeAttr('title'); 847 swiperThis.find('.swiper-pagination-bullet-active').attr('title', 'íì¬ ì¬ë¼ì´ë'); 848 } 849 }, 850 });
851 } 852 }); 853} 854 855function bbsSlider2(){ 856 $(".bbs_listr").each(function(index){ 857 let $this = $(this); 858 let swiper = undefined; 859 let slideNum = $this.find('.swiper-slide').length //ì¬ë¼ì´ë ì´ ê°ì 860 let slideInx = 0; //íì¬ ì¬ë¼ì´ë index 861 862 //ëë°ì´ì¤ ì²´í¬ 863 let oldWChk = window.innerWidth > 768 ? 'pc' : 'mo'; 864 sliderAct(); 865 $(window).on('resize', function () { 866 let newWChk = window.innerWidth > 768 ? 'pc' : 'mo'; 867 if(newWChk != oldWChk){ 868 oldWChk = newWChk; 869 sliderAct(); 870 } 871 }) 872 873 function sliderAct(){ 874 //ì¬ë¼ì´ë ì¸ë±ì¤ í´ëì¤ ì¶ê° 875 $this.addClass(`bbs_listr${index}`); 876 $this.next(".swiper-control").addClass(`swiper-control-r${index}`); 877 878 //ì¬ë¼ì´ë ì´ê¸°í 879 if (swiper != undefined){ 880 swiper.destroy(); 881 swiper = undefined; 882 } 883 884 //slidesPerView ìµì ì¤ì 885 let viewNum = oldWChk == 'pc' ? 2 : 2; 886 //loop ìµì ì²´í¬ 887 let loopChk = slideNum > viewNum; 888 889 swiper = new Swiper(`.bbs_listr${index}`, { 890 slidesPerView: viewNum, 891 initialSlide :slideInx, 892 spaceBetween: 10, 893 slidesPerGroup: 2, 894 observer: true, 895 observeParents: true, 896 loop: loopChk, 897 navigation: { 898 prevEl: $(`.swiper-control-r${index} .btn_prev`)[0], 899 nextEl: $(`.swiper-control-r${index} .btn_next`)[0], 900 }, 901 on: { 902 activeIndexChange: function () { 903 slideInx = this.realIndex; //íì¬ ì¬ë¼ì´ë index ê°±ì 904 } 905 }, 906 }); 907 } 908 }); 909} 910 911function popSite(inSiteUrl) { 912if(document.getElementById(inSiteUrl).value == ""){ 913 alert("ì´ëí ì¬ì´í¸ë¥¼ ì íí´ ì£¼ììì!"); 914}else{ 915 window.open(document.getElementById(inSiteUrl).value); 916} 917}
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.