1$(window).on("load", function () { 2 3 if(contextbizPath != '') { 4 contextbizPath = '/' + contextbizPath; 5 } 6 7 8 $('.main_visual_slides').slick({ 9 dots: false, 10 prevArrow: $('.visual_slide_prev'), 11 nextArrow: $('.visual_slide_next'), 12 autoplay: true, 13 autoplaySpeed: 7000 14 }); 15 $('.main_dash_slides').slick({ 16 dots: false, 17 prevArrow: $('.dash_btn_slide_up_main'), 18 nextArrow: $('.dash_btn_slide_down_main'), 19 vertical: true, 20 verticalSwiping: true, 21 autoplay: true, 22 autoplaySpeed: 2000 23 }); 24 $('.main_slide').each(function () { 25 var m_slide_prev = $(this).find(".btn_rolling_prev"); 26 var m_slide_next = $(this).find(".btn_rolling_next"); 27 var $slider = $(this).find(".swiper-wrapper"); 28 var $progressBar = $(this).find('.progress span'); 29 $slider.on('init', function (event, slick, currentSlide, nextSlide) { 30 var slideNum = slick.slideCount; 31 var progress_w = 100 / (slick.slideCount); 32 $progressBar.css({ 33 'width': progress_w + '%', 34 }); 35 }); 36 $slider.on('beforeChange', function (event, slick, currentSlide, nextSlide) { 37 var calc = ((nextSlide) / (slick.slideCount - 1)) * 100; 38 var progress_w = 100 / (slick.slideCount); 39 var move = progress_w * nextSlide; 40 $progressBar 41 .css({ 42 'width': progress_w + '%', 43 'left': move + "%" 44 }) 45 }); 46 47 $slider.slick({ 48 infinite: true, 49 dots: true, 50 arrows: false, 51 speed: 200, 52 slidesToShow: 4, 53 slidesToScroll: 4, 54 responsive: [ 55 { 56 breakpoint: 1200, 57 settings: { 58 slidesToShow: 4, 59 slidesToScroll: 4, 60 } 61 }, 62 { 63 breakpoint: 1024, 64 settings: { 65 slidesToShow: 3, 66 slidesToScroll: 3, 67 } 68 }, 69 { 70 breakpoint: 768, 71 settings: { 72 slidesToShow: 2, 73 slidesToScroll: 2, 74 arrows: false, 75 } 76 }, 77 { 78 breakpoint: 580, 79 settings: { 80 slidesToShow: 1, 81 slidesToScroll: 1, 82 arrows: false, 83 } 84 } 85 ] 86 }); 87 88 m_slide_prev.on("click", function () { 89 $slider.slick('slickPrev'); 90 }); 91 92 m_slide_next.on("click", function () { 93 $slider.slick('slickNext'); 94 }); 95 $(".slick-dots").remove(); 96 }); 97 98 $(".main_tab .tab_list button").on("click", function () { 99 $(".main_tab .tab_list").removeClass("active"); 100 $(".main_tab_cont>div").removeClass("active"); 101 var idx = $(this).parents(".tab_list").index(); 102 $(this).parents(".tab_list").addClass("active"); 103 $(".main_tab_cont>div").eq(idx).addClass("active"); 104 $('.main_slide .swiper-wrapper').slick('refresh'); 105 }); 106 107 // ë©ì¸ ê²ì. 2022.04.20 ìì . ìëìì± ëª©ë¡ í´ë¦ ì ê²ìì´ ìëì ë ¥ 108 $(".main_search_input").on("focus click", function () { 109 $(".main_search").addClass("focus"); 110 }); 111 112 $('.main_search_input').not('.focus').on('keydown', function () { 113 $(".main_search").addClass("focus"); 114 }); 115 116 /* 117 $(".main_search").on("focusout",function(){ 118 $(".main_search").removeClass("focus"); 119 }); 120 */ 121 122 // íµí© ê²ì. 2022.04.20 ìì . ìëìì± ëª©ë¡ í´ë¦ ì ê²ìì´ ìëì ë ¥ 123 $(".search_keyword_input").on("focus click", function () { 124 $(".custom_search").addClass("focus"); 125 });
126 127 $(".search_keyword_input").not('.focus').on("keydown", function () { 128 $(".custom_search").addClass("focus"); 129 }); 130 131 /* 132 $(".search_keyword_input").on("focusout",function(){ 133 $(".custom_search").removeClass("focus"); 134 }); 135 */ 136 137 138 $(".select_list_open").on("click", function () { 139 $(this).parents(".custom_select").addClass("focus"); 140 }); 141 142 $(".custom_select .select_list li button").on("click", function () { 143 var txt = $(this).text(); 144 var option = $(this).data('option'); 145 $(this).parents(".custom_select").find(".select_list_open").text(txt); 146 $(this).parents(".custom_select").find(".select_list_open").data('option', option); 147 $(this).parents(".custom_select").removeClass("focus"); 148 // form ì¡°ê±´ ì¤ì ì¶ê°.. 149 $('input[name=condition]').val(option); 150 }); 151 152 $('html').click(function (e) { 153 if ($(e.target).parents('.custom_select').length < 1) { 154 $(".custom_select").removeClass("focus"); 155 // console.log("end"); 156 } 157 }); 158 159 $('.scroll_x').overlayScrollbars({}); 160 $('.meetingRoom_lists').overlayScrollbars({}); 161 162 //ratings 163 $(".ratings").each(function () { 164 var ratings_class = $(this); 165 var ratings = $(this).find("input[type=radio]"); 166 ratings.change(function () { 167 var val = $(this).val() 168 ratings_class.removeClass("ratings_1 ratings_2 ratings_3 ratings_4 ratings_5"); 169 ratings_class.addClass("ratings_" + val); 170 }); 171 }); 172 173 // join 174 $(".join_certified_select ul li").on("click", function () { 175 $(".join_certified_select ul li").removeClass("active"); 176 $(this).addClass("active"); 177 }); 178 179 $(document).on("click", ".keywords_list ul li .btn_keyword_delete", function () { 180 $(this).parents("li").remove(); 181 }); 182 183 // faq 184 $(document).on("click", ".faq .question .txt", function () { 185 if ($(this).parents(".question").next(".answer").css("display") == "none") { 186 $(".answer").slideUp(200); 187 $(".faq li").removeClass("on"); 188 $(this).parents(".question").next(".answer").slideDown(200); 189 $(this).parents("li").addClass("on"); 190 } else { 191 $(this).parents(".question").next(".answer").slideUp(200); 192 $(this).parents("li").removeClass("on"); 193 } 194 }); 195 196 // popup 197 $(".popup_close").on("click", function () { 198 $(".popup").fadeOut(200); 199 $('.qrPopupBtn').focus(); /* 2022.04.05. ì¹ì ê·¼ì± ìì */ 200 }); 201 202 $(".main_popup_close").each(function () { 203 $(this).on("click", function () { 204 var total_main_popup = $(".main_popup_close").length - 1; 205 var main_popup = $(".main_popup:hidden").length; 206 $(this).parents(".main_popup").fadeOut(200); 207 if (total_main_popup == main_popup) { 208 $(this).parents(".popup").fadeOut(200); 209 } 210 }); 211 }); 212 213 //gnb 214 var win_w = $(window).width(); 215 if (win_w > 1200) { 216 $(".gnb").on("mouseenter, mousemove", function () { 217 if (!$('#gnb div.before').is(':visible')) { 218 $(".s_gnb").fadeIn(200); 219 $('#gnb div.before').show(); 220 } 221 }).on("mouseleave", function () { 222 $(".s_gnb").finish(); // fadeIn ì¡ì ëë기 ì ì ë©ë´ìì ë²ì´ëë©´ ì¡ì ì¢ ë£ 223 $(".s_gnb").hide(); 224 $('#gnb div.before').hide(); 225 }); 226 } else { 227 $(".btn_gnb_open").on("click", function () { 228 $("body").css("overflow", "hidden"); 229 $(".gnb_cover").fadeIn(200); 230 $(".gnb").animate({ left: 0 }, 200); 231 }); 232 233 $(".btn_gnb_close ,.gnb_cover, .container, .footer").on("click", function () { 234 $("body").removeAttr("style"); 235 $(".gnb_cover").fadeOut(200); 236 $(".gnb").animate({ left: "-350px" }, 200); 237 }); 238 239 //ë°ìí ì¹ ì°ì¸¡ìë¨ ì¬ì©ì ë²í¼ (ë¡ê·¸ì¸) 240 $(".util_open .login").on("click", function () { 241 location.href = contextbizPath + "/member/login.do"; 242 }); 243 244 //ë°ìí ì¹ ì°ì¸¡ìë¨ ì¬ì©ì ë²í¼ (ë§ì´íì´ì§) 245 $(".util_open .info").on("click", function () { 246 location.href = contextbizPath + "/mypage/scrap.do"; 247 }); 248 } 249 250 $(window).resize(function () { 251 var win_w = $(window).width(); 252 $('#gnb div.before').hide(); 253 if (win_w > 1170) { 254 $(".gnb").unbind("mouseenter"); 255 $(".gnb").unbind("mouseleave"); 256 $(".gnb").on("mouseenter", function () { 257 $(".s_gnb").fadeIn(200); 258 $('#gnb div.before').show(); 259 }).on("mouseleave", function () { 260 $(".s_gnb").finish(); // fadeIn ì¡ì ëë기 ì ì ë©ë´ìì ë²ì´ëë©´ ì¡ì ì¢ ë£ 261 $(".s_gnb").hide(); 262 $('#gnb div.before').hide(); 263 }); 264 } else { 265 $(".gnb").unbind("mouseenter"); 266 $(".gnb").unbind("mouseleave"); 267 268 $(".btn_gnb_open").on("click", function () { 269 $("body").css("overflow", "hidden"); 270 $(".gnb_cover").fadeIn(200); 271 $(".gnb").animate({ left: 0 }, 200); 272 }); 273 $(".btn_gnb_close ,.gnb_cover").on("click", function () { 274 $("body").removeAttr("style"); 275 $(".gnb_cover").fadeOut(200); 276 $(".gnb").animate({ left: "-350px" }, 200); 277 }); 278 } 279 });
280}); 281 282//METABUILD START 283// ë¤ì´ì¼ë¡ê·¸ (ë ì´ì´íì ) 284function openDialog(dialogID) { 285 var $layer = $("#" + dialogID); 286 $layer.addClass("-active"); 287 $("#" + dialogID).find('.dialog__detail').addClass("-active"); 288} 289//METABUILD END
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.