1$(function(){ 2 3 // ì¬ì´ë ì¬ë«ê¸° 4 $("#layout_header a[href='#category'], #layout_side_background, #side_close").click(function(){side_menu_onoff();}); 5 6 // íë¨íµë©ë´ 7 $(document) 8 .bind('scroll',function(){ 9 if($(window).height()<$("#quick_layer").height()*3 || ($(document).height()-10 > $(window).height() && $(document).scrollTop()+$(window).height() >= $(document).height()-10)){ 10 $("#quick_layer").hide(); 11 }else{ 12 if(!layout_side_opened) $("#quick_layer").show(); 13 } 14 }).trigger('scroll'); 15 $(window).resize(function(){$(document).scroll();}); 16 17 // íë²í¼ì¤íì¼ì radio,checkbox 18 $(".radio_tab_wrapper input[type='radio'], .radio_tab_wrapper input[type='checkbox']").change(function(){ 19 $("input[type='radio'], .radio_tab_wrapper input[type='checkbox']",$(this).closest('.radio_tab_wrapper')).each(function(){ 20 if($(this).is(":checked")){ 21 $(this).closest('td').addClass('checked'); 22 }else{ 23 $(this).closest('td').removeClass('checked'); 24 } 25 }); 26 }); 27 28 $("button.btn_cancel_tab1").click(function(){ 29 $("input[type='checkbox'], .ctg_list_sub input[type='checkbox']",$(this).parents().find(".ctg_list_sub")).each(function(){ 30 if($(this).is(":checked")){ 31 $(this).attr("checked",false).trigger('change'); 32 } 33 }); 34 }); 35 36 $("button.btn_cancel_tab2").click(function(){ 37 $("input[type='text']",$(this).parents().find(".ctg_result_sub")).each(function(){ 38 $(this).val(''); 39 $(this).attr('placeholder',''); 40 }); 41 }); 42 43 $(".goodsSearchKeybtn").click(function(){ 44 $("#goodsTopSearchForm input[name='insearch']").val('1'); 45 }); 46 47 /* ííì ê³µíµì¬ì© */ 48 $(".sub_page_tab_wrap").each(function(){ 49 var wrapObj = this; 50 $(".sub_page_tab td",wrapObj).each(function(i){ 51 $(this).click(function(){ 52 $(".sub_page_tab td",wrapObj).removeClass("current"); 53 $(this).addClass("current"); 54 $(".sub_page_tab_contents",wrapObj).hide().eq(i).show(); 55 }); 56 }).eq(0).click(); 57 }); 58 59 // ìë¸ ìì ì´ê¸°/ë«ê¸° 60 $(".sub_division_title").live('click',function(){ 61 var contentsObj = $(this).closest('.sub_division_title').next('.sub_division_contents'), 62 summaryObj = $(this).parent().find('.sub_division_title_summary'); 63 if(!contentsObj.is(":hidden")){ 64 $(this).children(".sub_division_arw").addClass('closed');
65 contentsObj.hide(); 66 summaryObj.show(); 67 }else{ 68 $(this).children(".sub_division_arw").removeClass('closed'); 69 contentsObj.show(); 70 summaryObj.hide(); 71 } 72 typeof area_close_chk == 'function' && area_close_chk(); // ê° ë ì´ì´ë³ ë«í ì²´í¬ :: 2017-05-29 lwh 73 }); 74 75 //ê²°ì íì´ì§ì ì¬ìíìì ìë¸ ìì ì´ê¸°/ë«ê¸° 76 $(".sub_division_title_gift").live('click',function(){ 77 var contentsObj = $(this).parent().closest('.sub_division_title').next('.sub_division_contents'); 78 if(!contentsObj.is(":hidden")){ 79 $(this).children("sub_division_arw_gift").addClass('closed'); 80 contentsObj.hide(); 81 }else{ 82 $(this).children("sub_division_arw_gift").removeClass('closed'); 83 contentsObj.show(); 84 } 85 }); 86 87 /* ìíëì¤íë ì´ í ì¤í¬ë¦½í¸ */ 88 $('.displayTabContainer>li').on('click', function() { 89 $(this).closest('.displayTabContainer').find('li').removeClass('current'); 90 $(this).addClass('current'); 91 }); 92 $('[designelement=display]').each(function() { 93 $(this).find('.displayTabContentsContainer:first').show(); 94 }); 95 // ì¹´í ê³ ë¦¬ ì¶ì²ìíì íì¸ ê²½ì° 96 $('[designelement=categoryRecommendDisplay]').each(function() { 97 $(this).find('.displayTabContentsContainer:first').show(); 98 }); 99 100 /* ìí리ì¤í¸ - ì¹´í ê³ ë¦¬(ì¬ë¼ì´ë© ë©ë´) */ 101 $(".ctg_category").click(function(){ 102 $(this).parent().parent().parent().nextAll().slideToggle().siblings("#ctg_category"); 103 $("#ctg_category").css("max-height","70%"); 104 $("#ctg_brand").hide(); 105 $("#ctg_search").hide(); 106 $("#ctg_sort").hide(); 107 $(".ctg_bg").fadeIn(); 108 $("html").attr("class","overflow"); 109 }); 110 $("#ctg_category .ctg_close").click(function(){ 111 $(this).parent().parent().slideToggle().siblings("#ctg_category"); 112 $(".ctg_bg").fadeOut(); 113 $("html").attr("class","auto"); 114 }); 115 116 /* ìí리ì¤í¸ - ë¸ëë(ì¬ë¼ì´ë© ë©ë´) */ 117 $(".ctg_brand").click(function(){ 118 $(this).parent().parent().parent().nextAll().slideToggle().siblings("#ctg_brand"); 119 $("#ctg_category").hide(); 120 $("#ctg_brand").css("max-height","70%"); 121 $("#ctg_search").hide(); 122 $("#ctg_sort").hide(); 123 $(".ctg_bg").fadeIn(); 124 $("html").attr("class","overflow"); 125 }); 126 127 $("#ctg_brand .ctg_close").click(function(){ 128 $(this).parent().parent().slideToggle().siblings("#ctg_brand"); 129 $(".ctg_bg").fadeOut(); 130 $("html").attr("class","auto"); 131 }); 132 133 /* ìí리ì¤í¸ - ìì¸ê²ì(ì¬ë¼ì´ë© ë©ë´) */ 134 $(".ctg_search").click(function(){ 135 $(this).parent().parent().parent().nextAll().slideToggle().siblings("#ctg_search"); 136 $("#ctg_category").hide(); 137 $("#ctg_search").css("max-height","70%"); 138 $("#ctg_brand").hide(); 139 $("#ctg_sort").hide(); 140 $(".ctg_bg").fadeIn(); 141 $("html").attr("class","overflow"); 142 }); 143 $("#ctg_search .ctg_close").click(function(){ 144 $(this).parent().parent().slideToggle().siblings("#ctg_search"); 145 $(".ctg_bg").fadeOut(); 146 $("html").attr("class","auto"); 147 }); 148 149 /* ìí리ì¤í¸ - ì ë ¬(ì¬ë¼ì´ë© ë©ë´) */ 150 $(".ctg_sort").click(function(){ 151 $(this).parent().parent().parent().nextAll().slideToggle().siblings("#ctg_sort"); 152 $("#ctg_category").hide(); 153 $("#ctg_brand").hide(); 154 $("#ctg_search").hide(); 155 $("#ctg_sort").css("max-height","70%"); 156 $(".ctg_bg").fadeIn(); 157 $("html").attr("class","overflow"); 158 }); 159 $("#ctg_sort .ctg_close").click(function(){ 160 $(this).parent().parent().slideToggle().siblings("#ctg_sort"); 161 $(".ctg_bg").fadeOut(); 162 $("html").attr("class","auto"); 163 }); 164 165 /* ìí리ì¤í¸ - 백그ë¼ì´ë */ 166 $(".ctg_bg").click(function(){ 167 $(".ctg_wrap").fadeOut(); 168 $(".ctg_bg").fadeOut(); 169 $("html").attr("class","auto"); 170 }); 171 172 /* ìí리ì¤í¸ - ì¤ìì´í ìë´ */ 173 $(".swipe_close, .swipe_bg").click(function(){ 174 $(".swipe_guide").hide(); 175 }); 176 177 /* ìíëê¸ - SNS ê³µì (ë ì´ì´) */ 178 $("#cmt_sns_btn").live('click',function(){ 179 $(".cmt_sns_pop").fadeIn(); 180 $(".sns_bg").fadeIn(); 181 $("html").attr("class","overflow").bind('touchmove', function(e){e.preventDefault()}); 182 }); 183 /* ìíìì¸ - SNS ê³µì (ë ì´ì´) */ 184 $("#sns_btn").click(function(){ 185 $(".sns_pop").fadeIn(); 186 $(".sns_bg").fadeIn(); 187 $("html").attr("class","overflow").bind('touchmove', function(e){e.preventDefault()}); 188 }); 189 $(".sns_close, .sns_bg").live('click', function(){ 190 $(".sns_pop").fadeOut(); 191 $(".cmt_sns_pop").fadeOut(); 192 $(".sns_bg").fadeOut(); 193 $("html").attr("class","auto").unbind('touchmove'); 194 }); 195 196 197 /* íë¡í - BACK/TOP(ëì¬ë³´ë) */ 198 $(document).bind("scroll resize", function(){ 199 var scrollTop = parseInt($(document).scrollTop()); 200 if(scrollTop > 0){ 201 $("#floating_over").fadeIn(); 202 }else{ 203 $("#floating_over").fadeOut(); 204 } 205 }); 206 $("#floating_over .ico_floating_recently").click(function(){ 207 $("#recently_popup").fadeIn(); 208 $(".recently_bg").fadeIn(); 209 $("html").attr("class","overflow").bind('touchmove', function(e){e.preventDefault()}); 210 }); 211 $("#floating_over .recently_popup .btn_close").click(function(){ 212 $("#recently_popup").fadeOut(); 213 $(".recently_bg").fadeOut(); 214 $("html").attr("class","auto").unbind('touchmove'); 215 }); 216 217}); 218 219//ìµê·¼ë³¸ìí ìì ì ìë¡ì ì© 220function getfloatingrecentlydata(ftype, floatingid, act, totalcnt){ 221 var limit = ( floatingid == "recently_slide_bottom" )?4:3; 222 if( act == "del" ) $("#"+floatingid).parents().find(".recently_page").html('<a href="javascript:;" class="btn_page cover">ì í</a>'); 223 $.ajax({
224 'async' : false, 225 'url' : '/common/get_right_display', 226 'type' : 'GET', 227 'data' : "type=right_item_recent&limit="+limit+"&ftype="+ftype, 228 'success' : function(html){ 229 $("#"+floatingid).html(html); 230 if( limit < totalcnt ) { 231 $("#"+floatingid).touchSlider({ 232 flexible:true, roll:true, paging:$("#"+floatingid).next().find(".btn_page"), 233 initComplete:function(e){$("#"+floatingid).next().find(".btn_page").each(function(i, el){$(this).text("page " + (i+1));});}, 234 counter:function(e){$("#"+floatingid).next().find(".btn_page").removeClass("on").eq(e.current-1).addClass("on");} 235 }); 236 } 237 } 238 }); 239} 240 241var layout_side_opened = false; 242function side_menu_onoff(){ 243 //$("#layout_side").css('min-height', $(window).height()); 244 var tHeight = $("#layout_wrap").height(); 245 var sHeight = $("#layout_side").height(); 246 //if (tHeight > sHeight) $("#layout_side").css('height', tHeight+'px'); 247 if(tHeight > sHeight) $("#layout_wrap").css('height', sHeight+'px'); 248 249 // ì´ê¸° 250 if (!layout_side_opened){ 251 layout_side_opened = true; 252 var orgWidth = $("#layout_side").width(); 253 var headerWidth = $("#layout_header").width() - orgWidth; 254 $("#layout_side").css("left", orgWidth*-1 + 'px'); 255 $('a[href=#category]').addClass('on'); 256 if($("#layout_side").html()==''){ 257 $.ajax({ 258 'url' : '/common/ajax_mobile_layout_side', 259 'async':true, 260 'cache':false, 261 'success' : function(res){ 262 $("#layout_side").html(res); 263 $('#side_close').addClass('on'); 264 } 265 }); 266 } 267 $("#quick_layer").hide(); 268 $("#layout_side").show().animate({left:0}, 600, function(){ 269 //$("#layout_header").css('left', orgWidth+'px'); 270 $("#layout_wrap").css({'position' : 'absolute', 'width':'100%'}); 271 if($("body").find(".designPopupBandMobile").css("display") == 'block') 272 $("#side_close").css("top","-60px"); 273 else $("#side_close").css("top","0"); 274 $('html, body').css({'overflow' : 'hidden'}); 275 }); 276 $('#side_close').addClass('on'); 277 $("#layout_side_background").fadeIn(); 278 //$(".designPopupBandMobile").hide(); 279 280 // ë«ê¸° 281 }else{ 282 layout_side_opened = false; 283 $("#layout_wrap").css({'position' : 'relative', 'width':'auto'}); 284 var orgWidth = $("#layout_side").width(); 285 var headerWidth = $("#layout_header").width() + orgWidth; 286 //$("#layout_header").css('left', '0px'); 287 $("#layout_side").animate({left:orgWidth*-1}, 300, function(){ 288 $("#layout_side").hide(); 289 $("#layout_side_background").fadeOut(); 290 $("#quick_layer").show(); 291 $('html, body').css({'overflow' : 'visible'}); 292 }); 293 $('#side_close').removeClass('on'); 294 setTimeout(function(){ $('a[href=#category]').removeClass('on'); }, 800); 295 //$(".designPopupBandMobile").show(); 296 } 297}
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.