1(function ($) { 2 3 $(function () { 4 $('html').removeClass('no-js'); 5 $('.loading').hide(); 6 }); 7 8 9 /* íë¡í ë°°ë */ 10 11 // $(document).ready(function () { 12 // $('.floating_action').hover(function () { 13 // $(this).addClass("on"); 14 // }, function () { 15 // $(this).removeClass("on"); 16 // }); 17 // }); 18 19 // $('.floating_action').addClass('on'); 20 // setTimeout(function () { 21 // $('.floating_action').removeClass('on'); 22 // }, 5000); 23 24 $('.floating_action ul li a').on("mouseover focusin", function () { 25 $('.floating_action').addClass('on'); 26 }); 27 $('.floating_action ul li a').on('mouseleave focusout', function () { 28 $('.floating_action').removeClass('on'); 29 }); 30 31 32 $(function () { 33 $(".wpml-ls-sub-menu li a").each(function () { 34 $(this).attr("href", $(this).attr("href").replace("http://", "https://")); 35 }); 36 }); 37 38 39 $(function () { 40 $(window).scroll(function () { 41 var scroll = $(window).scrollTop(); 42 //console.log(scroll); 43 if (scroll >= 200) { 44 //console.log('a'); 45 $("#back_to_top").addClass("on"); 46 } else { 47 //console.log('a'); 48 $("#back_to_top").removeClass("on"); 49 } 50 }); 51 $('#back_to_top').click(function () { 52 $('html, body').animate({ 53 scrollTop: 0 54 }, 400); 55 return false; 56 }); 57 }); 58 59 // wpml 60 $(".menu_p > .wpml-ls-item-toggle").click(function () { 61 var sw; 62 $(".in_header .js-wpml-ls-sub-menu").toggleClass("on"); 63 64 var sw = 1; 65 var check_on; 66 67 if (sw == 1) { 68 $("#content-wrap").click(function () { 69 $(".in_header .js-wpml-ls-sub-menu").removeClass("on"); 70 }); 71 $(".in_header .search").click(function () { 72 $(".in_header .js-wpml-ls-sub-menu").removeClass("on"); 73 }); 74 }; 75 }); 76 77 $(document).ready(function () { 78 var slider = $('.slider-container').bxSlider({ 79 //mode: 'horizontal', 80 mode: 'fade', 81 auto: true, 82 pause: 5500, //ë©ì¶¤ ë기 83 speed: 700, // ì´ë ìë 84 pager: true, 85 preloadImages: 'all', 86 infiniteLoop: true, 87 autoControls: true, 88 stopAutoOnClick: true, 89 startText: '<img src="/img/ico/play.svg" alt="play">', 90 stopText: '<img src="/img/ico/pause.svg" alt="pause">', 91 touchEnabled: (navigator.maxTouchPoints > 0), 92 onSliderLoad: function ($currentIndex) { 93 $(".key_main").css("visibility", "visible").animate({ 94 opacity: 1 95 }); 96 $('.slider-container li:eq(0)').addClass("on"); 97 }, 98 onSlideAfter: function ($slideElement, oldIndex, newIndex) { 99 $('.slider-container li:eq(' + oldIndex + ')').removeClass("on"); 100 $('.slider-container li:eq(' + newIndex + ')').addClass("on").siblings().removeClass("on"); 101 } 102 }); 103 $(document).on("click", ".bx-next, .bx-prev, .bx-pager-link", function () { 104 slider.stopAuto(); 105 slider.startAuto(); 106 }); 107 108 109 var slider2 = $('.news-container ul').bxSlider({ 110 auto: true, 111 speed: 500, 112 pause: 4000, 113 mode: 'fade', 114 autoControls: true, 115 pager: true, 116 autoControls: true, 117 stopAutoOnClick: true, 118 startText: '<img src="/img/ico/play.svg" alt="play">', 119 stopText: '<img src="/img/ico/pause.svg" alt="pause">', 120 }); 121 122 }); 123 124 125 $(document).ready(function () { 126 $('.insight-carousel').owlCarousel({ 127 loop: false, 128 nav: false, 129 //navText: ["<img src='myprevimage.png'>", "<img src='mynextimage.png'>"], 130 dots: false, 131 autoplay: true, 132 stopOnHover: true, 133 margin: 10, 134 onInitialized: counter, 135 onChanged: counter, 136 autoplayHoverPause: true, 137 responsiveClass: true, 138 responsive: { 139 0: { 140 items: 1, 141 nav: false, 142 loop: true 143 }, 144 600: { 145 items: 2, 146 nav: false, 147 loop: false 148 }, 149 1000: { 150 items: 4, 151 nav: false, 152 loop: false, 153 margin: 20 154 } 155 } 156 }); 157 158 function counter(event) { 159 if (!event.namespace) { 160 return; 161 } 162 var slides = event.relatedTarget; 163 $('.slider-count').text(slides.relative(slides.current()) + 1 + '/' + slides.items().length); 164 } 165 });
166 167 168 /*$(document).ready(function () { 169 $('.insight-carousel').owlCarousel({ 170 loop: true, 171 nav: true, 172 //navText: ["<img src='myprevimage.png'>", "<img src='mynextimage.png'>"], 173 dots: false, 174 autoplay:true, 175 mouseDrag: false, 176 touchDrag: false, 177 pullDrag: false, 178 freeDrag: false, 179 stopOnHover:true, 180 margin: 10, 181 onInitialized: counter, 182 onChanged: counter, 183 autoplayHoverPause: true, 184 responsiveClass: true, 185 responsive: { 186 0: { 187 items: 1, 188 nav: false, 189 loop: true 190 }, 191 600: { 192 items: 2, 193 nav: false, 194 loop: false 195 }, 196 1000: { 197 items: 4, 198 nav: true, 199 loop: false, 200 margin: 20 201 } 202 } 203 }); 204 205 function counter(event) { 206 if (!event.namespace) { 207 return; 208 } 209 var slides = event.relatedTarget; 210 $('.slider-count').text(slides.relative(slides.current()) + 1 + '/' + slides.items().length); 211 } 212 });*/ 213 214 215 $(function () { 216 $(window).resize(function () { 217 var width = $(window).width(); 218 if (width >= 1200) { 219 $("#wrap").removeClass().addClass("pc"); 220 } else if (width < 1200) { 221 $("#wrap").removeClass().addClass("mobile"); 222 } 223 }); 224 $(window).trigger("resize"); 225 }); 226 227 /* 228 * 모ë°ì¼ ë©ë´ 229 */ 230 $(function () { 231 $(".mobile header .nav .nav-list > .menu-item-has-children > a").removeAttr("href"); 232 $("header .nav .nav-icon").click(function () { 233 $(this).toggleClass("active"); 234 $("header .nav .nav-list").toggleClass("active"); 235 $("body").toggleClass("active"); 236 }); 237 }); 238 239 $(function () { 240 $("#wrap.mobile header .nav .nav-list > .menu-item-has-children > a + .sub-menu").hide(); 241 $("#wrap.mobile header .nav .nav-list > .menu-item-has-children > a").click(function () { 242 $(this).next(".sub-menu").slideToggle("fast"); 243 $("#wrap.mobile header .nav .nav-list > .menu-item-has-children > a").not(this).next().slideUp("fast"); 244 245 return false; 246 }); 247 248 $("#wrap.mobile header .nav .nav-list > .menu-item-has-children > ul.sub-dep2 > li > a").click(function () { 249 $(this).next(".sub-menu").slideToggle("fast"); 250 $("#wrap.mobile header .nav .nav-list > .menu-item-has-children > ul.sub-dep2 > li > a").not(this).next().slideUp("fast"); 251 252 return false; 253 }); 254 255 $("#wrap.mobile header .nav .nav-list > .menu-item-has-children > ul.sub-dep2 > li > .dep2").click(function () { 256 $(this).next(".sub-menu").slideToggle("fast"); 257 $("#wrap.mobile header .nav .nav-list > .menu-item-has-children > ul.sub-dep2 > li > .dep2").not(this).next().slideUp("fast"); 258 259 return false; 260 }); 261 }); 262 263 /* 264 * íí° í ê¸ 265 */ 266 267 $(document).ready(function () { 268 $('.language.has_sub .sub_btn').click(function () { 269 $('.language.has_sub').toggleClass('on'); 270 }); 271 }); 272 273 $(document).ready(function () { 274 $('.site.has_sub .sub_btn').click(function () { 275 $('.site.has_sub').toggleClass('on'); 276 }); 277 }); 278 279 $(document).ready(function () { 280 $("#wrap.mobile .footer .footer_top .left > div > strong").click(function () { 281 $(this).toggleClass('on'); 282 $(this).next("ul").slideToggle("fast"); 283 }); 284 }); 285 286 287 /* 288 * í¤ë hover add class 289 */ 290 291 $(document).ready(function () { 292 $("#menu-main > li").hover(function () { 293 $(this).addClass("on"); 294 }, 295 function () { 296 $(this).removeClass("on"); 297 }); 298 }); 299 300 $(document).ready(function () { 301 $("header").hover( 302 function () { 303 $(this).addClass("hover"); 304 }, 305 function () { 306 $(this).removeClass("hover"); 307 } 308 ); 309 });
310 311 312 /* 313 * í¤ë hover background 314 */ 315 316 $(document).ready(function () { 317 $("nav.main_menu > ul > li.bg_on").append('<div class="header_bg"></div>'); 318 }); 319 320 321 $(function ($) { 322 var container = $("header nav.main_menu > ul > li .second"); 323 324 $('header nav.main_menu > ul > li').mouseover(function () { 325 container.stop().css("display", "block"); 326 }) 327 .mouseleave(function () { 328 container.stop().css("display", "none"); 329 }) 330 }); 331 332 /* 333 * ì¤í¬ë¡¤ row add class 334 */ 335 336 function scrollFocus() { 337 var $animation_elements = $('.focus'); 338 var $window = $(window); 339 340 function check_if_in_view() { 341 var window_height = $window.height(); 342 var window_top_position = $window.scrollTop(); 343 var window_bottom_position = (window_top_position + window_height); 344 345 $.each($animation_elements, function () { 346 var $element = $(this); 347 var element_height = $element.outerHeight(); 348 var element_top_position = $element.offset().top + 100; 349 var element_bottom_position = (element_top_position + element_height); 350 351 //check to see if this current container is within viewport 352 if ((element_bottom_position >= window_top_position) && 353 (element_top_position <= window_bottom_position)) { 354 $element.addClass('in-view'); 355 } 356 // } else { 357 // $element.removeClass('in-view'); 358 // } 359 }); 360 } 361 362 $window.on('scroll resize', check_if_in_view); 363 $window.trigger('scroll'); 364 } 365 scrollFocus(); 366 367 /* 368 * go to top 369 */ 370 371 $(document).ready(function () { 372 $('.go_to_top a').click(function () { 373 $('html, body').animate({ 374 scrollTop: 0 375 }, 600); 376 return false; 377 }); 378 }); 379 380 381 /* 382 * í¤ë 383 */ 384 385 $(function () { 386 $("header .nav .nav-list > li.bg_on").append('<div class="sub-bg"></div>'); 387 }); 388 389 // $(function ($) { 390 // $("header .nav .nav-list > li").hover(function () { 391 // $(this).toggleClass("on"); 392 // }); 393 // }); 394 395 $(document).ready(function () { 396 $('header .nav .nav-list > li').hover( 397 function () { 398 $(this).addClass('on'); 399 }, 400 function () { 401 $(this).removeClass('on'); 402 } 403 ); 404 }); 405 406 $(document).on("mouseleave", ".sub-bg", function () { 407 $("header .nav .nav-list > li").each(function () { 408 $(this).removeClass("on"); 409 }); 410 }); 411 412 413 414 415 /* 416 * íì 417 */ 418 419 $(function () { 420 var posY; 421 //----- OPEN 422 $('[data-popup-open]').on('click', function (e) { 423 posY = $(window).scrollTop(); 424 var targeted_popup_class = $(this).attr('data-popup-open'); 425 $('[data-popup="' + targeted_popup_class + '"]').fadeIn(350); 426 e.preventDefault(); 427 }); 428 429 //----- CLOSE 430 $('[data-popup-close]').on('click', function (e) { 431 var targeted_popup_class = $(this).attr('data-popup-close'); 432 $('[data-popup="' + targeted_popup_class + '"]').fadeOut(350); 433 e.preventDefault(); 434 }); 435 436 $(".on_click").on("click", function (e) { 437 posY = $(window).scrollTop(posY); 438 $("html, body").addClass("not_scroll"); 439 $(".pop").css("display", "block"); 440 $(".cont").css("top", -posY); 441 }); 442 443 $(".pop .close").on("click", function () { 444 $("html, body").removeClass("not_scroll"); 445 $(".pop").css("display", "none"); 446 posY = $(window).scrollTop(posY); 447 }); 448 }); 449 450 451 $(".footer_nl").click(function () { 452 $(".current").removeClass("current"); 453 $(this).addClass("current"); 454 $("#news_letter_popup").attr("tabindex", "0").fadeIn().focus(); 455 return false; 456 });
457 458 $(".board_ctt_wrap > .inner > .right .newsletter a").click(function () { 459 $(".current").removeClass("current"); 460 $(this).addClass("current"); 461 $("#news_letter_popup").attr("tabindex", "0").fadeIn().focus(); 462 return false; 463 }); 464 465 $(".floating_action .newsletter").click(function () { 466 $(".current").removeClass("current"); 467 $(this).addClass("current"); 468 $("#news_letter_popup").attr("tabindex", "0").fadeIn().focus(); 469 return false; 470 }); 471 472 $("#offering_contact").click(function () { 473 $(".current").removeClass("current"); 474 $(this).addClass("current"); 475 $("#offering_popup").attr("tabindex", "0").fadeIn().focus(); 476 return false; 477 }); 478 479 $(".lang_popup").click(function () { 480 $(".current").removeClass("current"); 481 $(this).addClass("current"); 482 $("#select_lang_popup").attr("tabindex", "0").fadeIn().focus(); 483 return false; 484 }); 485 486 $(".popup .close").click(function () { 487 $(".popup").fadeOut(); 488 $(".current").focus(); 489 }); 490 491 492 493 $(window).scroll(function () { 494 var scroll = $(window).scrollTop(); 495 //console.log(scroll); 496 if (scroll >= 50) { 497 //console.log('a'); 498 $("header").addClass("fixed"); 499 } else { 500 //console.log('a'); 501 $("header").removeClass("fixed"); 502 } 503 }); 504 505 506 507 //ì¸ëì¼ì´í° 508 509 $(document).ready(function () { 510 $(document).on("scroll", onScroll); 511 512 //smoothscroll 513 $('.anchor-menu ul > li > a[href^="#"]').on('click', function (e) { 514 e.preventDefault(); 515 $(document).off("scroll"); 516 517 $('.anchor-menu ul > li > a').each(function () { 518 $(this).removeClass('active'); 519 }) 520 $(this).addClass('active'); 521 522 var href = $(this).attr('href'); 523 var targetTop = $(href).offset().top - 100; 524 525 $('html,body').stop().animate({ 526 scrollTop: targetTop 527 }, 300, function () { 528 $(document).on("scroll", onScroll); 529 }); 530 }); 531 }); 532 533 function onScroll(event) { 534 var scrollPos = $(document).scrollTop() + 100; 535 $('.anchor-menu ul > li > a').each(function () { 536 var currLink = $(this); 537 var refElement = $(currLink.attr("href")); 538 if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) { 539 $('.anchor-menu ul > li > a').removeClass("active"); 540 currLink.addClass("active"); 541 } else { 542 currLink.removeClass("active"); 543 } 544 }); 545 } 546 547 $(function () { 548 var lastScroll = 0; 549 $(window).scroll(function (event) { 550 var scroll = $(this).scrollTop() - 100; 551 if (scroll > 400) { 552 //ì´ë²¤í¸ë¥¼ ì ì©ìí¬ ì¤í¬ë¡¤ ëì´ 553 $(".anchor-menu nav").addClass("on"); 554 } else { 555 $(".anchor-menu nav").removeClass("on"); 556 } 557 lastScroll = scroll; 558 }); 559 560 var $w = $(window), 561 footerHei = $('.contact.offering').outerHeight(), 562 $banner = $('.anchor-menu nav'); 563 564 $w.on('scroll', function () { 565 566 var sT = $w.scrollTop(); 567 var val = $(document).height() - $w.height() - footerHei; 568 569 if (sT >= val) 570 $banner.addClass('off') 571 else 572 $banner.removeClass('off') 573 }); 574 575 }); 576 577 // íì¬ì ë³´ ì«ì ì¹´ì´í¸ 578 $('.number_count.in-view').each(function () { 579 var $this = $(this), 580 countTo = $this.attr('data-count'); 581 $({ 582 countNum: $this.text() 583 }).animate({ 584 countNum: countTo 585 }, { 586 duration: 3000, 587 easing: 'linear', 588 step: function () { 589 $this.text(Math.floor(this.countNum)); 590 }, 591 complete: function () { 592 $this.text(this.countNum); 593 } 594 }); 595 });
596 597 // ì»¤ë¦¬ì´ ìì½ëì¸ 598 $(document).on("click", ".culture_box .half", function () { 599 $('.more').text('ìì¸í보기'); 600 $(this).find('.more').text('ìì¸í보기 ë«ê¸°'); 601 602 var is_display = $(this).children(".inner").css("display"); 603 if (is_display == "block") { 604 $(this).children(".inner").stop().slideUp(); 605 $(this).removeClass('open'); 606 $(this).find('.more').text('ìì¸í보기'); 607 } else { 608 $(".culture_box .inner").stop().slideUp(); 609 $(this).children(".inner").stop().slideToggle(); 610 $(".culture_box .half").removeClass('open'); 611 $(this).addClass('open'); 612 //$(this).find('.more').text('ìì¸í보기 ë«ê¸°'); 613 } 614 return false; 615 }); 616 617 $(document).ready(function () { 618 var allPanels = $('.recruit_faq .a_box').hide(); 619 620 $('.recruit_faq button').click(function () { 621 allPanels.slideUp(); 622 $(this).next().slideDown(); 623 return false; 624 }); 625 626 }); 627 628 629 /* 630 * ê°ì¸ì ë³´ì²ë¦¬ë°©ì¹¨ í 631 */ 632 633 $(function () { 634 $(".privacy_ver .tabs-wrap").focus(function () { 635 $(".tabs-wrap .tabs").css("display", "block"); 636 }); 637 $(".privacy_ver .tabs-wrap").blur(function () { 638 $(".tabs-wrap .tabs").css("display", "none"); 639 }); 640 641 }); 642 643 $(function () { 644 $('.privacy_ver ul.tabs li').click(function () { 645 var activeTab = $(this).attr('data-tab'); 646 $('.privacy_ver ul.tabs li').removeClass('active'); 647 $('.tab-content').removeClass('active'); 648 $(this).addClass('active'); 649 $('#' + activeTab).addClass('active'); 650 }); 651 }); 652 653 $(function () { 654 $('body.ko .report_form .dz-message .modern-title').text("ì ë¡ë íë ¤ë©´ í´ë¦íê±°ë íì¼ì ëëê·¸íì¸ì."); 655 $('body.ko .report_form .dz-message .modern-hint').text("íì¼ì ìµë 5ê°ê¹ì§ ë±ë¡í ì ììµëë¤. (첨ë¶íì¼ ì©ëì ìµë 2MB)"); 656 657 $('.page-id-36429 .wpforms-field-file-upload .dropzone-input').css('clip', ''); 658 $('.page-id-36429 .wpforms-field-file-upload .dropzone-input').css('height', ''); 659 $('.page-id-36429 .wpforms-field-file-upload .dropzone-input').css('width', ''); 660 $('.page-id-36429 .wpforms-field-file-upload .dropzone-input').attr('type', 'file'); 661 }); 662 663 $(function () { 664 $('.wpforms-container .wpforms-field-checkbox .wpforms-field-description').attr("tabindex", "0"); 665 $('.owl-prev span').html("ì´ì ê¸"); 666 $('.owl-next span').text("ë¤ì ê¸"); 667 }); 668 669 // í¤ë ëê·ì§ ì¤ìì¹ 670 671 $(function () { 672 $("body.ko .in_header .js-wpml-ls-item-toggle > .wpml-ls-native").text("ë¤êµì´ ì¬ì´í¸ ì´ë"); 673 //$("body.ko .in_header .js-wpml-ls-sub-menu").prepend("<li class='wpml-ls-slot-shortcode_actions wpml-ls-item wpml-ls-item-ko current-language'>íêµì´</li>"); 674 $("body.en .in_header .js-wpml-ls-item-toggle > .wpml-ls-native").text("Please select a language."); 675 }); 676 677 $(window).scroll(function () { 678 $(".in_header .wpml-ls-sub-menu").removeClass("on"); 679 }); 680 $(".in_header .header_right .wpml-ls").click(function () { 681 var sw; 682 $(".in_header .wpml-ls-sub-menu").toggleClass("on"); 683 684 var sw = 1; 685 var check_on; 686 687 if (sw == 1) { 688 $("#content-wrap").click(function () { 689 $(".in_header .wpml-ls-sub-menu").removeClass("on"); 690 }); 691 $(".in_header .search").click(function () { 692 $(".in_header .wpml-ls-sub-menu").removeClass("on"); 693 }); 694 }; 695 }); 696 697 //ë³´ë ë¤ë¹ê²ì´ì 698 699 // Dropdown toggle fuction 700 $('.current_menu').click(function () { 701 $(this).next('div').slideToggle("fast"); 702 $(this).toggleClass("on"); 703 }); 704 //Hide dropdown on page click 705 /*$(document).on('click', function (e) { 706 if (!$(".current_menu").is(e.target) && !$(".current_menu").has(e.target).length) { 707 $('.menu-sw-container').slideUp("fast"); 708 } 709 });*/ 710 711 // GNB ì¤í¼ë§ 2dep ë³ê²½ 712 713 $(function () { 714 $("body.ko header .nav .sub-dep2 > li#menu-item-31 > a").html("<div class='dep2'>
714매ëì§ë¨¼í¸ 컨ì¤í </div>"); 715 $("body.ko header .nav .sub-dep2 > li#menu-item-62 > a").html("<div class='dep2'>ìíí¸ì¨ì´ í í¬ëë¡ì§ ìë¹ì¤</div>"); 716 }); 717 718 // ì¹ì ê·¼ì± ìì ë´ì© 719 $(function () { 720 $('.owl-next').removeAttr('role'); 721 $('.owl-next').attr('title', 'ë¤ì ê¸'); 722 $('.owl-prev').removeAttr('role'); 723 $('.owl-prev').attr('title', 'ì´ì '); 724 }); 725 726 727 //í¼ 728 $(document).ready(function () { 729 730 $(".wpforms-field-phone input").keyup(function () { 731 $(this).val($(this).val().replace(/[^0-9:\-]/gi, "")); 732 }); //ì«ì ë° íì´í°(-) 733 734 $('body.ko #wpforms-form-36496').submit(function () { 735 var chk = $(this).is(":checked"); 736 var getMail = RegExp(/^[A-Za-z0-9_\.\-]+@[A-Za-z0-9\-]+\.[A-Za-z0-9\-]+/); 737 var getPhone = RegExp(/^[0-9]{3}[-]+[0-9]{4}[-]+[0-9]{4}$/); 738 739 if ($('#wpforms-36496-field_6').val() == '') { 740 alert('íì í목ì ì±ì주ì¸ì.'); 741 return false; 742 } 743 if ($('#wpforms-36496-field_7').val() == '') { 744 alert('íì í목ì ì±ì주ì¸ì.'); 745 return false; 746 } 747 if ($('#wpforms-36496-field_8').val() == '') { 748 alert('íì í목ì ì±ì주ì¸ì.'); 749 return false; 750 } 751 if ($('#wpforms-36496-field_31').val() == '') { 752 alert('íì í목ì ì±ì주ì¸ì.'); 753 return false; 754 } 755 if (!$("#wpforms-36496-field_32_1").is(":checked")) { 756 alert('íì í목ì ì±ì주ì¸ì.'); 757 return false; 758 } 759 if (!getMail.test($("#wpforms-36496-field_7").val())) { 760 alert("ì´ë©ì¼ íìì ì§ì¼ì£¼ì¸ì."); 761 return false; 762 } 763 }); // end submit() 764 }); // end ready() 765 766 $(document).ready(function () { 767 $('body.ko #wpforms-form-36425').submit(function () { 768 if ($('#wpforms-36425-field_2').val() == '') { 769 alert('íì í목ì ì±ì주ì¸ì.'); 770 return false; 771 } 772 if ($('#wpforms-36425-field_3').val() == '') { 773 alert('íì í목ì ì±ì주ì¸ì.'); 774 return false; 775 } 776 if ($('#wpforms-36425-field_6').val() == '') { 777 alert('íì í목ì ì±ì주ì¸ì.'); 778 return false; 779 } 780 if ($('#wpforms-36425-field_10').val() == '') { 781 alert('íì í목ì ì±ì주ì¸ì.'); 782 return false; 783 } 784 if (!$("#wpforms-36425-field_19_1").is(":checked")) { 785 alert('íì í목ì ì±ì주ì¸ì.'); 786 return false; 787 } 788 }); // end submit() 789 }); // end ready() 790 791 $(document).ready(function () { 792 $('body.ko #wpforms-form-36282').submit(function () { 793 if ($('#wpforms-36282-field_12').val() == '') { 794 alert('íì í목ì ì±ì주ì¸ì.'); 795 return false; 796 } 797 if ($('#wpforms-36282-field_3').val() == '') { 798 alert('íì í목ì ì±ì주ì¸ì.'); 799 return false; 800 } 801 if ($('#wpforms-36282-field_4').val() == '') { 802 alert('íì í목ì ì±ì주ì¸ì.'); 803 return false; 804 } 805 if ($('#wpforms-36282-field_6').val() == '') { 806 alert('íì í목ì ì±ì주ì¸ì.'); 807 return false; 808 } 809 if (!$("#wpforms-36282-field_7_1").is(":checked")) { 810 alert('íì í목ì ì±ì주ì¸ì.'); 811 return false; 812 } 813 if (!getMail.test($("#wpforms-36282-field_3").val())) { 814 alert("ì´ë©ì¼ íìì ì§ì¼ì£¼ì¸ì."); 815 return false; 816 } 817 }); // end submit() 818 }); // end ready() 819 820 821 //ì¸ì¬ì´í¸ ì íë¨ 822 $(document).ready(function () { 823 if ($(".taxonomy-list li:first-child a").hasClass("active")) { 824 $(".taxonomy-list li:first-child a").attr("title", "ì íë¨"); 825 }; 826 });
827 828 829})(jQuery); 830 831(function () { 832 833 'use strict'; 834 835 // define variables 836 var items = document.querySelectorAll(".timeline li"); 837 838 // check if an element is in viewport 839 // http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport 840 function isElementInViewport(el) { 841 var rect = el.getBoundingClientRect(); 842 return ( 843 rect.top >= 0 && 844 rect.left >= 0 && 845 rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && 846 rect.right <= (window.innerWidth || document.documentElement.clientWidth) 847 ); 848 } 849 850 function callbackFunc() { 851 for (var i = 0; i < items.length; i++) { 852 if (isElementInViewport(items[i])) { 853 items[i].classList.add("in-view"); 854 } 855 } 856 } 857 858 // listen for events 859 window.addEventListener("load", callbackFunc); 860 window.addEventListener("resize", callbackFunc); 861 window.addEventListener("scroll", callbackFunc); 862 863})();
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.