function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0&&intheight>0) { window.resizeTo(intwidth,intheight); window.location.href=url; } } $(function(){ win_info() hd_motion() scr_motion() $(window).scroll(function(){ win_info() hd_motion() scr_motion() }); $(window).resize(function(){ win_info() hd_motion() scr_motion() }); function win_info() { win_w = $(window).width() win_h = $(window).height() scr_t = $(window).scrollTop() }; //½ºÅ©·Ñ¿¡ µû¸¥ Çì´õ ¸ð¼Ç function hd_motion(){ var hd_h = $("#header").height(); if(scr_t > 0 ){ $("#header").addClass("active"); }else{ $("#header").removeClass("active"); } /* if($("#header").hasClass("active") || $("#header").hasClass("black")){ $("#header .t_logo img").attr("src", "/base/img/design/logo.png"); $("#header .t_sns li:nth-child(1) img").attr("src", "/base/img/design/sns_instagram_b.png"); $("#header .t_sns li:nth-child(2) img").attr("src", "/base/img/design/sns_blog_b.png"); $("#header .t_sns li:nth-child(3) img").attr("src", "/base/img/design/sns_kakaotalk_b.png"); }else{ $("#header .t_logo img").attr("src", "/base/img/design/logo_w.png"); $("#header .t_sns li:nth-child(1) img").attr("src", "/base/img/design/sns_instagram_w.png"); $("#header .t_sns li:nth-child(2) img").attr("src", "/base/img/design/sns_blog_w.png"); $("#header .t_sns li:nth-child(3) img").attr("src", "/base/img/design/sns_kakaotalk_w.png"); } */ }; //»ó´Ü¼­ºê¸Þ´º /* $(".t_nav > ul > li").on("mouseover", function(){ $(this).find("ul").show(); }); $(".t_nav > ul > li").on("mouseleave", function(){ $(this).find("ul").hide(); }); $(".t_nav > ul > li > ul").on("mouseleave", function(){ $(this).hide(); }); */ /*»ó´Ü Çܹö°Å ¸Þ´º*/ $(".head_wrap .b_toggle_btn").click(function(){ $("#b_site_map").addClass("open"); }); $("#b_site_map .b_close_btn").click(function(){ $("#b_site_map").removeClass("open"); }); //»çÀÌÆ®¸Ê ¼­ºê¸Þ´º ½½¶óÀ̵åÅä±Û $("#b_site_map #b_gnb > li").off("click").on('click',function(){ var subCount = $(this).find(".b_sub_menu").data("cnt"); if(subCount > 0){ $(this).children("a").attr('href','javascript:void(0);'); } if($(this).find(".b_sub_menu").css('display') == 'none'){ $("#b_site_map #b_gnb > li").find(".b_sub_menu").slideUp(300); $(this).find(".b_sub_menu").stop().slideDown(300); $("#b_site_map #b_gnb > li").removeClass('open'); $(this).addClass('open'); }else{ $("#b_site_map #b_gnb > li").find(".b_sub_menu").slideUp(300); $("#b_site_map #b_gnb > li").removeClass('open'); } }); // ¼­ºê > ½ºÅ©·Ñ ¸ð¼Ç function scr_motion(){ $(".b_motion").each(function(){ t = $(this).offset().top if (scr_t >= t - win_h * 0.8) { $(this).addClass("motion") } }); }; //¸ÞÀÎ ½½¶óÀ̵å new Swiper('.main_swiper_box', { on: { beforeTransitionStart : function(){ //Àüȯ ½ÃÀÛ Àü¿¡ À̺¥Æ®°¡ ½ÃÀ۵˴ϴÙ. $(".main_swiper_box .b_motion").removeClass("motion"); }, transitionEnd : function () { //Àüȯ ÈÄ À̺¥Æ®°¡ ½ÃÀ۵˴ϴÙ. $(".main_swiper_box .swiper-slide-active .b_motion").addClass("motion"); } }, slidesPerView: 1, slidesPerGroup: 1, loop: true, centeredSlides: true, autoplay: false, navigation: { nextEl: '.main_swiper_box .swiper-button-next', prevEl: '.main_swiper_box .swiper-button-prev', }, pagination: { el: '.main_swiper_box .swiper-pagination', dynamicBullets: true, clickable: true, } }); //¸ÞÀΠȣ½ºÆà $(".mhosting_box .category li a").on("click", function(e){ e.preventDefault(); $(".mhosting_box .category li").removeClass("active"); $(this).parent("li").addClass("active"); let dataId = $(this).data("id"); if(dataId == "all_hosting"){ $(".mhosting_box .hosting_product li").show(); }else{ $(".mhosting_box .hosting_product li").hide(); $(".mhosting_box").find("."+dataId).show(); } }); //¸ÞÀΰøÁö»çÇ× var main_notice_swiper = new Swiper( ".main_notice .b_slide_box", { slidesPerView: 1, slidesPerGroup: 1, spaceBetween: 35, speed: 800, navigation: { nextEl: '.main_notice .swiper-button-next', prevEl: '.main_notice .swiper-button-prev', }, // loop: true, //ÆäÀÌ¡ pagination: { //ÆäÀÌÁö ±â´É el: '.main_notice .b_pagi', //Ŭ¸¯ °¡´É¿©ºÎ clickable: true, }, autoplay: false, breakpoints: { // È­¸éÀÇ ³ÐÀÌ°¡ 320px ÀÌ»óÀÏ ¶§ 500: { slidesPerView: 1, spaceBetween: 0 }, 761: { slidesPerView: 2.2, slidesPerGroup: 2, spaceBetween: 20 }, // È­¸éÀÇ ³ÐÀÌ°¡ 1320px ÀÌ»óÀÏ ¶§ 1320: { slidesPerView: 2.8, slidesPerGroup: 2, spaceBetween: 35, } } }); //¸ÞÀÎ °í°´¼¾ÅÍ $(".main_customer_center .content_box .process span").on("mouseover", function(){ $(".main_customer_center .content_box .process span em").css("display", "none"); $(this).find("em").css("display","block"); }).on("mouseout", function(){ $(".main_customer_center .content_box .process span em").css("display", "none"); }); //¸ÞÀÎ Æ÷Æ®Æú¸®¿À $("#portfolio_category a").on("click", function(e){ e.preventDefault(); $("#portfolio_category a").removeClass("active"); $(this).addClass("active"); let dataCate = $(this).data("cate"); $.ajax({ type: "POST", url: "./contents2.php?pageId=Z36HYTAK7NGDFKMW5QPN", data : { 'cate' : dataCate }, dataType: "json", cache: false, async: false, success: function(data) { //console.log(data); $("#dataPortfolioList").html(data.res_data); return false; }, complete : function(xhr, status) { //console.log('complete'); }, error : function(xhr, status, error) { alert("error"); } }); }); //ºü¸¥°ßÀû $(".request_wrap #pop_btn_submit").on("click", function(e){ e.preventDefault(); // ÇѱÛ, ¿µ¹®, ¼ýÀÚ ¾ÆÀ̵𸸠»ç¿ë°¡´É üũ var pattern = new RegExp('[^°¡-ÆRa-zA-Z0-9 ]', 'i'); var pattern2 = new RegExp('[^0-9-]', 'i'); if (!$(".request_wrap #wr_1").val()){ alert("¾÷ü¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); $(".request_wrap #wr_1").focus(); return false; } if (!$(".request_wrap #wr_name").val()) { alert("´ã´çÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); $(".request_wrap #wr_name").focus(); return false; } if (pattern.exec($(".request_wrap #wr_name").val()) != null) { alert("'"+$(".request_wrap #wr_name").val() + "'´Â »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù. \n\n ¿Ã¹Ù¸¥ ´ã´çÀÚ À̸§À» ÀÔ·ÂÇϼ¼¿ä \n\n Ư¼ö¹®ÀÚ,Çѹ®,ºÒ°¡"); return false; } if (!$(".request_wrap #wr_2").val()) { alert("¿¬¶ôó¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); $(".request_wrap #wr_2").focus(); return false; } if (pattern2.exec($(".request_wrap #wr_2").val()) != null) { alert("'"+$(".request_wrap #wr_2").val() + "'´Â »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù. \n\n ¿Ã¹Ù¸¥ ¿¬¶ôó¸¦ ÀÔ·ÂÇϼ¼¿ä \n\n ¼ýÀÚ,-¸¸°¡´É"); return false; } if($(".request_wrap #wr_2").val().length < 8 || $(".request_wrap #wr_2").val().length > 13) { alert("¿Ã¹Ù¸¥ ¿¬¶ôó¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä."); $(".request_wrap #wr_2").focus(); return false; } var wr5ValCnt = "0"; var wr5Val=""; $(".request_wrap .sort li input[type=checkbox]:checked").each(function(index){ if (index != 0) { wr5Val += '|'; } if($(this).attr('checked') == "checked"){ wr5ValCnt++; wr5Val += $(this).val(); } }); if(wr5ValCnt == 0){ alert("Á¦ÀÛÇüŸ¦ ¼±ÅÃÇØÁÖ¼¼¿ä."); return false; } $(".request_wrap #wr_5").val(wr5Val); if (!$(".request_wrap #wr_6").val()){ alert("°³¹ß¿¹»êÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä."); $(".request_wrap #wr_6").focus(); return false; } if ($(".request_wrap #agree_ok").attr('checked') != "checked"){ alert("°³ÀÎÁ¤º¸Ãë±Þ¹æħ ³»¿ë¿¡ µ¿ÀÇÇÏ¼Å¾ß »ó´ã½ÅûÀÌ °¡´ÉÇÕ´Ï´Ù."); $(".request_wrap #agree_ok").focus(); return false; } document.getElementById("pop_btn_submit").disabled = true; //¹öÆ° ºñÈ°¼ºÈ­ var href = $("#popupform").attr("action"); var formData = new FormData($("#popupform")[0]); $.ajax({ type: "POST", url: href, data : formData, dataType: "json", cache: false, async: false, contentType: false, processData: false, success: function(data) { alert("¹«·á Á¦ÀÛ»ó´ã ½ÅûÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù."); console.log(data); location.reload(); return false; }, complete : function(xhr, status) { //console.log('complete'); }, error : function(xhr, status, error) { alert("error"); } }); document.getElementById("pop_btn_submit").disabled = false; //¹öÆ° È°¼ºÈ­ return false; }); $(".request_wrap .agree strong").on("click", function(e){ e.preventDefault(); $(".request_wrap .agreement").css("display", "block"); }); $(".request_wrap .agreement .close").on("click", function(){ $(".request_wrap .agreement").css("display", "none"); }); //»ó´ÜÀ¸·Î ¹öÆ° $(".b_top_btn").click(function(e){ e.preventDefault(); $('body, html').animate({scrollTop : 0}, 800); }); })