1/* ì¹´í ê³ ë¦¬ 리ì¤í¸ ìí ì ë ¬ */ 2var aUrl = location.href.split('?'); 3var sQueryString = aUrl[1]; 4 5 6$(document).ready(function(){ 7 8 /* íë¼ë¯¸í°ê° ììê²½ì°ìë§ ì²ë¦¬*/ 9 10 11 if (sQueryString && sQueryString.indexOf('sort_method') > -1) { 12 for (var i=0; i<$('#selArray option').length; i++) { 13 if ($('#selArray option:eq('+i+')').val().indexOf(sQueryString) > -1) { 14 $('#selArray option:eq('+i+')').attr("selected", true); 15 } 16 } 17 } 18}); 19 20$('#selArray').change(function() { 21 if ($('#selArray').val()) { 22 location.href=$('#selArray').val(); 23 } 24}); 25 26function goThumg(url) { 27 location.href = url+'?'+sQueryString; 28} 29 30 31 32/** 33 * ìì§ì´ë ë°°ë Jquery Plug-in 34 * @author cafe24 35 */ 36 37(function($){ 38 39 $.fn.floatBanner = function(options) { 40 options = $.extend({}, $.fn.floatBanner.defaults , options); 41 42 return this.each(function() { 43 var aPosition = $(this).position(); 44 var jbOffset = $(this).offset(); 45 var node = this; 46 47 $(window).scroll(function() { 48 var _top = $(document).scrollTop(); 49 _top = (aPosition.top < _top) ? _top : aPosition.top; 50 51 setTimeout(function () { 52 var newinit = $(document).scrollTop(); 53 54 if ( newinit > jbOffset.top ) { 55 _top -= jbOffset.top; 56 var container_height = $("#wrap").height(); 57 var quick_height = $(node).height(); 58 var cul = container_height - quick_height; 59 if(_top > cul){ 60 _top = cul; 61 } 62 }else { 63 _top = 0; 64 } 65 66 $(node).stop().animate({top: _top}, options.animate); 67 }, options.delay); 68 }); 69 }); 70 }; 71 72 $.fn.floatBanner.defaults = { 73 'animate' : 500, 74 'delay' : 500 75 }; 76 77})(jQuery); 78 79/** 80 * 문ì 구ëí ìì 81 */ 82$(document).ready(function(){ 83 $('#banner:visible, #quick:visible').floatBanner(); 84 85 //placeholder 86 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 87 var placeholderName = $(this).parents().attr('title'); 88 $(this).attr("placeholder", placeholderName); 89 }); 90 /* placeholder ie8, ie9 */ 91 $.fn.extend({ 92 placeholder : function() { 93 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 94 if (hasPlaceholderSupport() === true) { 95 return this; 96 } 97 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 98 return this.each(function(){ 99 var findThis = $(this); 100 var sPlaceholder = findThis.attr('placeholder'); 101 if ( ! sPlaceholder) { 102 return; 103 } 104 findThis.wrap('<label class="ePlaceholder" />'); 105 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 106 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 107 this.onpropertychange = function(e){ 108 e = event || e; 109 if (e.propertyName == 'value') { 110 $(this).trigger('focusout'); 111 } 112 }; 113 //ê³µíµ class 114 var agent = navigator.userAgent.toLowerCase(); 115 if (agent.indexOf("msie") != -1) { 116 $(".ePlaceholder").css({"position":"relative"}); 117 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 118 $(".ePlaceholder label").css({"padding":"0"}); 119 } 120 }); 121 } 122 }); 123 124 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 125 126 //í´ë¦íë©´ placeholder ì¨ê¹ 127 $('body').delegate('.ePlaceholder span', 'click', function(){ 128 $(this).hide(); 129 }); 130 131 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 132 $('body').delegate('.ePlaceholder :input', 'focusin', function(){ 133 $(this).prev('span').hide(); 134 }); 135 136 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 137 $('body').delegate('.ePlaceholder :input', 'focusout', function(){ 138 if (this.value) { 139 $(this).prev('span').hide(); 140 } else { 141 $(this).prev('span').show(); 142 } 143 }); 144 145 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 146 function hasPlaceholderSupport() { 147 if ('placeholder' in document.createElement('input')) { 148 return true; 149 } else { 150 return false;
151 } 152 } 153}); 154 155/** 156 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 157 */ 158$(window).load(function() { 159 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 160 var $img = new Image(); 161 $img.onerror = function () { 162 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 163 } 164 $img.src = this.src; 165 }); 166}); 167//window popup script 168function winPop(url) { 169 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 170} 171/** 172 * document.location.href split 173 * return array Param 174 */ 175function getQueryString(sKey) 176{ 177 var sQueryString = document.location.search.substring(1); 178 var aParam = {}; 179 180 if (sQueryString) { 181 var aFields = sQueryString.split("&"); 182 var aField = []; 183 for (var i=0; i<aFields.length; i++) { 184 aField = aFields[i].split('='); 185 aParam[aField[0]] = aField[1]; 186 } 187 } 188 189 aParam.page = aParam.page ? aParam.page : 1; 190 return sKey ? aParam[sKey] : aParam; 191}; 192 193$(document).ready(function(){ 194 // tab 195 $.eTab = function(ul){ 196 $(ul).find('a').click(function(){ 197 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 198 _target = $(this).attr('href'), 199 _siblings = '.' + $(_target).attr('class'); 200 $(_target).show().siblings(_siblings).hide(); 201 return false 202 }); 203 } 204 if ( window.call_eTab ) { 205 call_eTab(); 206 }; 207}); 208$(function () { 209 $('#header').delay(200).slideDown(300); 210 $('#snslink').delay(300).fadeIn(500); 211}); 212 213(function($) { 214$(".fade_item").hover(function(){ 215$(this).find(".item_fadebox,.item_fadebox_bg").fadeIn('fast'); 216},function(){ 217$(this).find(".item_fadebox,.item_fadebox_bg").fadeOut('fast'); 218}); 219})(jQuery); 220 221$( "#r_search, .close_btn" ).click(function() { 222 $( ".search_header" ).slideToggle( "fast" ); 223}); 224 225 226(function($) { 227 $(".cate_list li").hover(function(){ 228 $(this).find(".category").slideDown('fast'); 229 },function(){ 230 $(this).find(".category").slideUp(50); 231 }); 232})(jQuery); 233 234 235 236(function($){ 237$.fn.extend({ 238 center: function() { 239 this.each(function() { 240 var 241 $this = $(this), 242 $w = $(window); 243 $this.css({ 244 position: "absolute", 245 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 246 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 247 }); 248 }); 249 return this; 250 } 251}); 252$(function() { 253 var $container = function(){/* 254<div id="modalContainer"> 255 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 256</div>'); 257*/}.toString().slice(14,-3); 258 $('body') 259 .append($('<div id="modalBackpanel"></div>')) 260 .append($($container)); 261 function closeModal () { 262 $('#modalContainer').hide(); 263 $('#modalBackpanel').hide(); 264 } 265 $('#modalBackpanel').click(closeModal); 266 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 267 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 268 $('#modalContent').attr('src', $url); 269 $('#modalContent').bind("load",function(){ 270 $(".header .close",this.contentWindow.document.body).bind("click", closeModal); 271 }); 272 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 273 $('#modalContainer').center().show(); 274 } 275}); 276})(jQuery);
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.