/* ---------- js ---------- */ jQuery(function ($) { /* 모바일 메뉴 열기 */ function mNav_open() { $(".btn-nav").addClass("mNav_open"); $("#header .navWrap").addClass("mNav_open"); $(".gnbMenuBg").fadeIn(); } function mNav_close() { $(".btn-nav").removeClass("mNav_open"); $("#header .navWrap").removeClass("mNav_open"); $(".gnbMenuBg").fadeOut(); } $(".btn-nav").click(function () { if (!$(this).hasClass("mNav_open")) { mNav_open(); } else { mNav_close(); } }); $(".gnbMenuBg,.mobile-header-close,.navWrap .gnb > li > a,.header-go-to-top").click(function () { mNav_close(); }); $(window).resize(function () { if ($(window).width() > 991) { mNav_close(); }; }); $(window).scroll(function () { if ($(this).scrollTop() > 150) $('.go-to-top').fadeIn('slow'); else $('.go-to-top').fadeOut('slow'); }); $('.header-go-to-top').click(function () { $("html, body").animate({ scrollTop: 0 }, 500); return false; }); $('.go-to-top').click(function () { $("html, body").animate({ scrollTop: 0 }, 500); return false; }); }); /* 1 */ $(".img_button").eq(0).click(function(){ $("#video_pop_up").show(); }); $("#video_pop_up input").click(function(){ $("#video_pop_up").hide(); }); /* 2 */ $(".img_button2").eq(0).click(function(){ $("#video_pop_up2").show(); }); $("#video_pop_up2 input").click(function(){ $("#video_pop_up2").hide(); }); /* 3 */ $(".img_button3").eq(0).click(function(){ $("#video_pop_up3").show(); }); $("#video_pop_up3 input").click(function(){ $("#video_pop_up3").hide(); }); /* 4 */ $(".img_button4").eq(0).click(function(){ $("#video_pop_up4").show(); }); $("#video_pop_up4 input").click(function(){ $("#video_pop_up4").hide(); }); /* 5 */ $(".img_button5").eq(0).click(function(){ $("#video_pop_up5").show(); }); $("#video_pop_up5 input").click(function(){ $("#video_pop_up5").hide(); }); /* 6 */ $(".img_button6").eq(0).click(function(){ $("#video_pop_up6").show(); }); $("#video_pop_up6 input").click(function(){ $("#video_pop_up6").hide(); }); /* 7 */ $(".img_button7").eq(0).click(function(){ $("#video_pop_up7").show(); }); $("#video_pop_up7 input").click(function(){ $("#video_pop_up7").hide(); }); /* 8 */ $(".img_button8").eq(0).click(function(){ $("#video_pop_up8").show(); }); $("#video_pop_up8 input").click(function(){ $("#video_pop_up8").hide(); }); /* 9 */ $(".img_button9").eq(0).click(function(){ $("#video_pop_up9").show(); }); $("#video_pop_up9 input").click(function(){ $("#video_pop_up9").hide(); }); /* 10 */ $(".img_button10").eq(0).click(function(){ $("#video_pop_up10").show(); }); $("#video_pop_up10 input").click(function(){ $("#video_pop_up10").hide(); }); /* 11 */ $(".img_button11").eq(0).click(function(){ $("#video_pop_up11").show(); }); $("#video_pop_up11 input").click(function(){ $("#video_pop_up11").hide(); }); /* 12 */ $(".img_button12").eq(0).click(function(){ $("#video_pop_up12").show(); }); $("#video_pop_up12 input").click(function(){ $("#video_pop_up12").hide(); });