1/** 2 * ìì§ì´ë ë°°ë Jquery Plug-in 3 * @author cafe24 4 */ 5 6(function($){ 7 8 $.fn.floatBanner = function(options) { 9 options = $.extend({}, $.fn.floatBanner.defaults , options); 10 11 return this.each(function() { 12 var aPosition = $(this).position(); 13 var jbOffset = $(this).offset(); 14 var node = this; 15 16 $(window).scroll(function() { 17 var _top = $(document).scrollTop(); 18 _top = (aPosition.top < _top) ? _top : aPosition.top; 19 20 setTimeout(function () { 21 var newinit = $(document).scrollTop(); 22 23 if ( newinit > jbOffset.top ) { 24 _top -= jbOffset.top; 25 var container_height = $("#wrap").height(); 26 var quick_height = $(node).height(); 27 var cul = container_height - quick_height; 28 if(_top > cul){ 29 _top = cul; 30 } 31 }else { 32 _top = 0; 33 } 34 35 $(node).stop().animate({top: _top}, options.animate); 36 }, options.delay); 37 }); 38 }); 39 }; 40 41 $.fn.floatBanner.defaults = { 42 'animate' : 500, 43 'delay' : 500 44 }; 45 46})(jQuery); 47 48/** 49 * 문ì 구ëí ìì 50 */ 51$(document).ready(function(){ 52 $('#banner:visible, #quick:visible').floatBanner(); 53 54 //placeholder 55 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 56 var placeholderName = $(this).parents().attr('title'); 57 $(this).attr("placeholder", placeholderName); 58 }); 59 /* placeholder ie8, ie9 */ 60 $.fn.extend({ 61 placeholder : function() { 62 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 63 if (hasPlaceholderSupport() === true) { 64 return this; 65 } 66 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 67 return this.each(function(){ 68 var findThis = $(this); 69 var sPlaceholder = findThis.attr('placeholder'); 70 if ( ! sPlaceholder) { 71 return; 72 } 73 findThis.wrap('<label class="ePlaceholder" />'); 74 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 75 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 76 this.onpropertychange = function(e){ 77 e = event || e; 78 if (e.propertyName == 'value') { 79 $(this).trigger('focusout'); 80 } 81 }; 82 //ê³µíµ class 83 var agent = navigator.userAgent.toLowerCase(); 84 if (agent.indexOf("msie") != -1) { 85 $(".ePlaceholder").css({"position":"relative"}); 86 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 87 $(".ePlaceholder label").css({"padding":"0"}); 88 } 89 }); 90 } 91 }); 92 93 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 94 95 //í´ë¦íë©´ placeholder ì¨ê¹ 96 $('body').delegate('.ePlaceholder span', 'click', function(){ 97 $(this).hide(); 98 }); 99 100 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 101 $('body').delegate('.ePlaceholder :input', 'focusin', function(){ 102 $(this).prev('span').hide(); 103 }); 104 105 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 106 $('body').delegate('.ePlaceholder :input', 'focusout', function(){ 107 if (this.value) { 108 $(this).prev('span').hide(); 109 } else { 110 $(this).prev('span').show(); 111 } 112 }); 113 114 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 115 function hasPlaceholderSupport() { 116 if ('placeholder' in document.createElement('input')) { 117 return true; 118 } else { 119 return false;
120 } 121 } 122}); 123 124/** 125 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 126 */ 127$(window).load(function() { 128 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 129 var $img = new Image(); 130 $img.onerror = function () { 131 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 132 } 133 $img.src = this.src; 134 }); 135}); 136//window popup script 137function winPop(url) { 138 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 139} 140/** 141 * document.location.href split 142 * return array Param 143 */ 144function getQueryString(sKey) 145{ 146 var sQueryString = document.location.search.substring(1); 147 var aParam = {}; 148 149 if (sQueryString) { 150 var aFields = sQueryString.split("&"); 151 var aField = []; 152 for (var i=0; i<aFields.length; i++) { 153 aField = aFields[i].split('='); 154 aParam[aField[0]] = aField[1]; 155 } 156 } 157 158 aParam.page = aParam.page ? aParam.page : 1; 159 return sKey ? aParam[sKey] : aParam; 160}; 161 162$(document).ready(function(){ 163 // tab 164 $.eTab = function(ul){ 165 $(ul).find('a').click(function(){ 166 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 167 _target = $(this).attr('href'), 168 _siblings = '.' + $(_target).attr('class'); 169 $(_target).show().siblings(_siblings).hide(); 170 return false 171 }); 172 } 173 if ( window.call_eTab ) { 174 call_eTab(); 175 }; 176}); 177(function($){ 178$.fn.extend({ 179 center: function() { 180 this.each(function() { 181 var 182 $this = $(this), 183 $w = $(window); 184 $this.css({ 185 position: "absolute", 186 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 187 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 188 }); 189 }); 190 return this; 191 } 192}); 193$(function() { 194 var $container = function(){/* 195<div id="modalContainer"> 196 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 197</div>'); 198*/}.toString().slice(14,-3); 199 $('body') 200 .append($('<div id="modalBackpanel"></div>')) 201 .append($($container)); 202 function closeModal () { 203 $('#modalContainer').hide(); 204 $('#modalBackpanel').hide(); 205 } 206 $('#modalBackpanel').click(closeModal); 207 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 208 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 209 $('#modalContent').attr('src', $url); 210 $('#modalContent').bind("load",function(){ 211 $(".header .close",this.contentWindow.document.body).bind("click", closeModal); 212 }); 213 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 214 $('#modalContainer').center().show(); 215 } 216}); 217})(jQuery); 218/** 219 * @name Jquery Top Banner 220 * @version 1.0 221 * @desc ì´ë¯¸ì§ë¥¼ ë±ë¡íë©´ íì ì¼ë¡ ëíë¬ë¤ ì¤ì ì ë°ë¼ ì¼ì ìê° í ì¬ë¼ì§ëë¤. 222 * @author esujin morenvy.com 223 * @date 2015-09-01 224 * @example 225 $('#selecterID').topbanner({ 226 'firstpop' : "open", // open: ì²ìì ì´ë¦¼. close: ë«í ìì. 227 'openspeed' : "slow", // íì´ë¦¬ë ë¹ ë¥´ê¸° 228 'closespeed' : "fast", // íë«íë ë¹ ë¥´ê¸° 229 'topbanner' : '.topbanner',// íë°°ë ì íì 230 'openbtn' : '.openbtn', // ì´ë¦¼ë²í¼ ì íì 231 'closebtn' : '.closebtn' // ë«íë²í¼ ì íì 232 }); 233**/ 234 235;(function($){ 236 237 $.fn.topbanner = function( options ) { 238 var opts = $.extend( {}, $.fn.topbanner.defaults, options ), popStatus = 0, selectorID = this.selector; 239 240 if(( getCookie( "topbancookie" + selectorID ) != "closed") && (opts.firstpop == "open") ) { 241 pop(); 242 popStatus = 1; 243 } else { 244 $(selectorID + " " +opts.closebtn).css({"display":"none"}); 245 $(selectorID + " " +opts.openbtn).css({"display":"block"}); 246 247 } 248 249 $(selectorID + " " +opts.closebtn).click(function(e) { 250 e.preventDefault(); 251 close(); 252 }); 253 254 $(selectorID + " " +opts.openbtn).click(function(e) { 255 e.preventDefault(); 256 pop(); 257 }); 258 259 260 function pop() { 261 262 if(popStatus == 1) return false; 263 264 $(selectorID + " " +opts.topbanner).slideDown(opts.openspeed); 265 266 $(selectorID + " " +opts.openbtn).css({"display":"none"}); 267 $(selectorID + " " +opts.closebtn).css({"display":"block"}); 268 popStatus = 1; 269 270 /* ì´ê¸°ë²í¼ ë르면, ì¿ í¤ìì */ 271 setCookie( "topbancookie" + selectorID , 'closed', 0); 272 } 273 274 function close() { 275 276 if(popStatus == 0) return false;
vendor: 4,446 bytes, lines 277-346
277 278 $(selectorID + " " +opts.topbanner).slideUp(opts.closespeed); 279 $(selectorID + " " +opts.closebtn).css({"display":"none"}); 280 $(selectorID + " " +opts.openbtn).css({"display":"block"}); 281 popStatus = 0; 282 283 /* ë«ê¸°ë²í¼ ë르면, ì¿ í¤ì¸í */ 284 setCookie( "topbancookie" + selectorID , 'closed', 1); 285 } 286 287 function setCookie(cName, cValue, cDay){ 288 var expire = new Date(); 289 expire.setDate(expire.getDate() + cDay); 290 cookies = cName + '=' + escape(cValue) + '; path=/ '; // íê¸ ê¹¨ì§ì ë§ê¸°ìí´ escape(cValue)를 í©ëë¤. 291 if(typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';'; 292 document.cookie = cookies; 293 } 294 295 function getCookie(cName) { 296 cName = cName + '='; 297 var cookieData = document.cookie; 298 var start = cookieData.indexOf(cName); 299 var cValue = ''; 300 if(start != -1){ 301 start += cName.length; 302 var end = cookieData.indexOf(';', start); 303 if(end == -1)end = cookieData.length; 304 cValue = cookieData.substring(start, end); 305 } 306 return unescape(cValue); 307 } 308 }; 309 310 $.fn.topbanner.defaults = { 311 'firstpop' : "open", /* open: ì²ìì ì´ë¦¼. close: ë«í ìì.*/ 312 'openspeed' : "slow", /* íì´ë¦¬ë ë¹ ë¥´ê¸° */ 313 'closespeed' : "fast", /* íë«íë ë¹ ë¥´ê¸° */ 314 'topbanner' : '.topbanner',/* íë°°ë ì íì */ 315 'openbtn' : '.openbtn', /* ì´ë¦¼ë²í¼ ì íì */ 316 'closebtn' : '.closebtn' /* ë«íë²í¼ ì íì */ 317 }; 318 319})(jQuery); 320/* 321 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 322 * 323 * Uses the built in easing capabilities added In jQuery 1.1 324 * to offer multiple easing options 325 * 326 * TERMS OF USE - jQuery Easing 327 * 328 * Open source under the BSD License. 329 * 330 * Copyright © 2008 George McGinley Smith 331 * All rights reserved. 332 * 333 * Redistribution and use in source and binary forms, with or without modification, 334 * are permitted provided that the following conditions are met: 335 * 336 * Redistributions of source code must retain the above copyright notice, this list of 337 * conditions and the following disclaimer. 338 * Redistributions in binary form must reproduce the above copyright notice, this list 339 * of conditions and the following disclaimer in the documentation and/or other materials 340 * provided with the distribution. 341 * 342 * Neither the name of the author nor the names of contributors may be used to endorse 343 * or promote products derived from this software without specific prior written permission. 344 * 345*/ 346jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;
346if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}}); 347/** 348 * Slider Kit v1.9.2 (packed) 349 * http://www.kyrielles.net/sliderkit 350 * 351 * Copyright (c) 2010-2012 Alan Frog 352 * Licensed under the GNU General Public License 353 */ 354eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){2p=7(){p n=3;3.2q=7(c,d){3.4=$.3r({},3.2r,d);3.8={1c:3.4.u+"-1c",1d:3.4.u+"-1d",w:3.4.u+"-w",B:3.4.u+"-1d-3s",T:3.4.u+"-1d-3t",U:3.4.u+"-w-3u",v:3.4.u+"-v",P:3.4.u+"-v-3v",2s:3.4.u+"-v-1e",16:3.4.u+"-v-2t",17:3.4.u+"-v-2u",C:3.4.u+"-1e-3w",1f:3.4.u+"-3x-1e",2v:3.4.u+"-1T-2t",2w:3.4.u+"-1T-2u",J:3.4.u+"-3y-1e",V:3.4.u+"-1T-1e"};3.q=$(c);3.w=$("."+3.8.1d,3.q);3.s=3.w.K();3.v=$("."+3.8.v,3.q);3.P=$("."+3.8.P,3.v);3.G=3.s>0?1:0;3.1C=3.P.K()>0?1:0;6(!3.G&&!3.1C){3.L("1D #3z",3.4.M,1)}3.1g=3.q.H();3.1h=3.q.I();6(!3.1g&&!3.4.1E){3.1g=3.4.H;3.q.x(\'H\',3.1g);3.L("1D #2x",3.4.M,0)}6(!3.1h){3.1h=3.4.I;3.q.x(\'I\',3.1h);3.L("1D #2x",3.4.M,0)}3.q.x(\'2y\',\'3A\');3.o=0;3.W=0;3.1i=0;3.Q=r;3.1U=0;3.2z=0;3.1j=1;3.1k=0;3.X=r;3.3B=9;3.3C=1;3.2A=9;3.2B=1l 1F;3.2C=1l 1F;3.2D=1l 1F;3.2E=1l 1F;3.1V=3.v;6(3.1C){3.2F()}3.2G();6(3.G){3.1W=$("."+3.8.w,3.q);6(3.4.1G=="1H"){3.2H()}}3.1I=!3.G?1:0;6(3.4.1X){3.q.1X(7(a,b){b>0?n.1J():n.1m();y 9})}6(3.4.2I){3.q.3D(7(a){6(a.2J==37){n.1J()}z 6(a.2J==39){n.1m()}})}6(3.4.2K&&3.G){3.1W.Y(7(){n.1m();y 9})}3.2L=3.4.1K>=3.s?3.s-1:3.4.1K<0?0:3.4.1K;6(3.4.2M){1L{3.3E()}1M(R){3.L(R,3.4.M,0)}}6(3.2N){1L{3.2N()}1M(R){3.L(R,3.4.M,0)}}6(3.4.1Y){1L{3.3F(3.4.1Y)}1M(R){3.L(R,3.4.M,0)}}3.1N(3.2L,r);6(3.4.1n){3.1o();3.2O()}6(3.4.1Z){1L{3.3G(3.4.1Z)}1M(R){3.L(R,3.4.M,0)}}6(3.G&&!3.4.2P){3.1V=3.q.3H(\'.\'+3.8.w,\'.\'+3.8.v)}y 3};3.2r={u:"20",I:3I,H:3J,1K:0,1n:t,2Q:3K,1O:9,1X:9,2I:9,1p:9,N:5,2R:9,2S:9,2T:9,21:9,2U:t,2V:"1H",22:7(){},23:7(){},O:r,2W:3L,2X:r,1G:"24",1P:3M,25:r,2Y:"1q",26:7(){},27:7(){},2Z:9,2K:9,D:9,30:9,31:9,1E:9,2P:t,2M:9,1Y:9,1Z:9,3N:9,M:9};3.L=7(a,b,c){6(b){3O("3P 3Q 3R!\\3S = "+a+" (3T 3U 3V 3W)\\32 33 = "+3.q.34("33")+"\\32 28 = "+3.q.34("28"))}6(c){y 9}};3.2O=7(){6(!3.1Q&&!3.4.1O){3.q.35(7(){6(n.X!=r){n.1r()}},7(){n.1o()})}6(3.4.1O){3.q.3X(7(){6(n.X==r){n.1o()}})}};3.2F=7(){3.S=$("3Y",3.P);3.E=$("29",3.S);3.1s=3.E.K();6(3.G&&(3.1s!=3.s)&&3.v.K()==1){3.L("1D #3Z",3.4.M,1)}6(3.4.31){3.4.N=3.s}z{7 1t(a){2a=n.E.x(a);6(2a!="1n"&&a!=""&&a!="40"){y 36(2a)}z y 0}p c=3.4.D?3.v.H():3.v.I();p d=3.E.41(t);p e=3.E.42(t);p f=1t("1u-Z")+1t("1u-43");p g=1t("1u-10")+1t("1u-44");3.s=3.1s;6(3.4.N>3.s){3.4.N=3.1s}3.11=3.4.D?e:d;3.2b=3.11*3.1s;3.1v=(3.4.N*3.11)-(3.4.D?g:f);3.1R=3.4.D?"10":"Z";p h=3.4.D?"H":"I";p i=3.4.D?"I":"H";3.E.x({I:3.E.I(),H:3.E.H()});3.S.x(h,3.2b+"2c");3.P.x({I:3.4.D?d:3.1v,H:3.4.D?3.1v:e});6(3.4.2S){3.P.x(3.1R,(c-3.1v)/2).x("1u","0")}6(3.s>3.4.N){3.1k=t;6(3.4.O==r||3.4.O<0||3.4.O>3.s){3.4.O=3.4.N}}3.18=$(\'.\'+3.8.2s,3.v);6(3.18.K()>0){3.38()}}6(3.4.2R&&3.G){3.E.2d(7(){n.1N(2e(3,"29"),$(3))})}z 6(3.G||3.4.21){3.E.Y(7(){n.1N(2e(3,"29"),$(3));y 9})}7 2e(a,b){y $(b,$(a).2f()).45(a)}};3.38=7(){6(3.1k){3.3a=t;3.19=$("."+3.8.16,3.v);3.1w=$("."+3.8.17,3.v);3.18.F(3.8.C);3.19.Y(7(){n.16();y 9});3.1w.Y(7(){n.17();y 9});6(3.4.2T){3.19.2d(7(){n.16(t)});3.1w.2d(7(){n.17(t)});3.18.46(7(){n.3b()})}6(!3.4.1p){3.19.A(3.8.C)}}z{3.18.A(3.8.C)}};3.2g=7(){3.1a=3.4.D?3.S.2h().10:3.S.2h().Z;3.12=13.47(13.1x(3.1a)/3.11);
3543.14=13.48((3.2b-13.1x(3.1a)-3.1v)/3.11);6(3.14<0){3.14=0}};3.2G=7(){3.J=$("."+3.8.J,3.q);3.1b=$("."+3.8.V,3.q);3.1Q=3.J.K()>0?1:0;3.V=3.1b.K()>0?1:0;6(3.1Q){6(3.4.1n){3.J.A(3.8.1f)}3.J.Y(7(){6(n.J.1S(n.8.1f)){n.2i()}z{n.3c()}y 9})}6(3.V){3.2j=$("."+3.8.2v,3.q);3.2k=$("."+3.8.2w,3.q);6(3.4.2Z){3.1b.1y();$("."+3.8.w,3.q).35(7(){n.1b.3d()},7(){n.1b.49()})}3.2j.Y(7(){n.1J($(3));y 9});3.2k.Y(7(){n.1m($(3));y 9})}};3.2H=7(){6($(\'.\'+3.8.U,3.q).K()==0){3.w.4a(\'<3e 28="\'+3.8.U+\'"></3e>\');3.U=$(\'.\'+3.8.U,3.1W);3.U.x(\'2h\',\'4b\')}};3.15=7(a,b,c,d,e){6(e&&3.X!=r){6(3.1Q){3.2i()}6(3.4.1O){n.1r()}}6(a){6(a.1S(3.8.C)){y 9}}p f=0;p g=$(\':4c\',3.1V).K()>0?1:0;6(!g&&!3.2A){3.W=3.o;6(c==r&&!d){3.o=b=="-="?3.o+1:3.o-1}z 6(c!=r){c=36(c);3.o=c<0?0:c>3.s-1?3.s-1:c;p h=a?a.2f().2f().1S(3.8.P)?9:t:t}6(3.V){3.1b.F(3.8.C)}6(!3.4.1p){6(3.o==-1){3.o=0;f=1}6(3.o==0&&3.V){3.2j.A(3.8.C)}6(3.o==3.s){3.o=3.s-1;f=1}6(3.o==3.s-1){6(3.4.1n){3.1r()}6(3.V){3.2k.A(3.8.C)}}}z 6(!3.1k){6(3.o==3.s){3.o=0}6(3.o==-1){3.o=3.s-1}}6(3.1k&&!f){3.3f(d,b,h)}6(3.1C){3.3g(3.o)}6(!(d&&!3.4.2U)){6(3.G){3.3h(3.o,b)}}6(3.1j){3.1j=0}}};3.3f=7(a,b,c){3.2g();p d=a?t:9;p e=0;6(!a){p f=13.1x(3.o+1-3.12);p g=3.4.N-f+1;p h=3.o==0||3.o==3.s-1?1:0;6((3.4.21&&(g==1||f==1))&&!3.1j&&!h){e=3.4.O-1;d=t}6(g==0||f==0){d=t}6(c){6(g<0){g=0}b=3.W<3.o?\'-=\':\'+=\';p i=13.1x(3.W-3.o);6((i-1>g&&b==\'-=\')||(i>f&&b==\'+=\')){e=i;d=t}}6(b==""){6(3.W==3.o&&!h){b=3.3i=="-="?"+=":"-="}z{b=3.W<3.o?"-=":"+="}}3.3i=b}6(d){p j=e>0?e:3.4.O;p k=b=="-="?3.14:3.12;p l=k<j?k:j;p m=l*3.11;3.1i=b=="-="?3.12+l:3.12-l+3.4.N-1;6((b=="-="&&3.1i>3.o)||(b=="+="&&3.1i<3.o)){3.o=3.1i}6(3.4.1p){6(3.12<=0&&b=="+="){b="-=";3.o=3.s-1;m=(3.14/3.4.O)*(3.11*3.4.O)}z 6(3.14==0&&b=="-="){b="+=";3.o=0;m=13.1x(3.1a)}}3.3j(b,m)}};3.3h=7(a,b){3.Q=3.w.2l(a);3.2z=3.w.2l(3.W);p c=7(){6($.1z(n.4.27)){n.4.27()}n.1A(n.2C)};6(!3.Q.1S(3.8.B)){6(3.1j){3.2m=3.4.2Y;p d=1}z{p e=3.4.1E&&3.4.1G=="24"?"3k":"1q";3.2m=3.4.1E?e:3.4.1G}6($.1z(n.4.26)){n.4.26()}3.1A(3.2B);3.3l[3.2m](b,d,c)}};3.3j=7(a,b){p c=7(){6(!n.4.1p&&n.3a){n.18.F(n.8.C);n.2g();6(n.12<=0){n.19.A(n.8.C)}z 6(n.14<=0){n.1w.A(n.8.C)}}6(n.1B){4d(7(){n.1B=="-="?n.16():n.17()},0)}z 6($.1z(n.4.23)){n.4.23()}n.1A(n.2E)};6($.1z(n.4.22)){n.4.22()}n.1A(n.2D);3.3m[3.4.2V](a,b,c)};3.1A=7(c){$.3n(c,7(a,b){6($.1z(b)){b()}})};3.4e=7(a){a.4f=0};3.3l={1q:7(a,b,c){n.w.F(n.8.B).1y();n.Q.A(n.8.B).2n();c()},1H:7(a,b,c){6(a==""){a=n.1U<n.o?"-=":"+="}n.1U=n.o;p d=a=="-="?"+":"-";p e=n.4.30?"10":"Z";p f=n.4.D?n.1g:n.1h;p g=e=="10"?{10:a+f}:{Z:a+f};n.3o=$("."+n.8.T,n.q);n.3p=$("."+n.8.B,n.q);n.w.x(e,"0");n.3o.F(n.8.T).1y();n.3p.F(n.8.B).A(n.8.T);n.Q.A(n.8.B).x(e,d+f+"2c").2n();n.U.3q(t,t).x(e,"0").2o(g,n.4.1P,n.4.25,7(){c()})},24:7(a,b,c){6(b){n.w.1y()}z{n.Q.x("2y","1q")}$("."+n.8.T,n.q).F(n.8.T);$("."+n.8.B,n.q).3q(t,t).F(n.8.B).A(n.8.T);n.Q.A(n.8.B).2o({"4g":"2n"},n.4.1P,n.4.25,7(){c()})},3k:7(a,b,c){n.w.F(n.8.B).1y();n.Q.3d(n.4.1P,7(){c()})}};3.3m={1q:7(a,b,c){p d=a=="-="?n.1a-b:n.1a+b;n.S.x(n.1R,d+"2c");c()},1H:7(a,b,c){n.S.2o(n.1R=="Z"?{Z:a+b}:{10:a+b},n.4.2W,n.4.2X,7(){c()})}};3.2i=7(){3.J.F(3.8.1f);3.1r()};3.3c=7(){3.J.A(n.8.1f);3.1o()};3.1o=7(){p a=3;3.X=4h(7(){a.15(r,"-=",r,a.1I,r)},a.4.2Q)};3.1r=7(){4i(3.X);3.X=r};3.1N=7(a,b){3.15(b,"",a,0,1)};3.1J=7(a){3.15(a,"+=",r,n.1I,1)};3.1m=7(a){3.15(a,"-=",r,n.1I,1)};3.16=7(c){6(c){n.1B="-="}3.15(3.19,"+=",r,1,1)};3.17=7(c){6(c){n.1B="+="}3.15(3.1w,"-=",r,1,1)};3.3b=7(){n.1B=""};3.3g=7(a){$("."+3.8.1c,3.S).F(3.8.1c);3.E.2l(a).A(3.8.1c)}};$.4j.20=7(a){y 3.3n(7(){$(3).4k("20",1l 2p().2q(3,a))})}})(4l);',62,270,'|||this|options||if|function|cssNames|false|||||||||||||||currId|var|domObj|null|allItems|true|cssprefix|nav|panels|css|return|else|addClass|panelActive|btnDisable|verticalnav|navLI|removeClass|arePanels|height|width|playBtn|size|_errorReport|debug|shownavitems|scroll|navClip|currPanel|err|navUL|panelOld|panelsWrapper|goBtns|prevId|isPlaying|click|left|top|navLIsize|LIbefore|Math|LIafter|_change|navPrev|navNext|navBtns|navBtnPrev|navPos|gBtns|selected|panel|btn|btnPause|domObjHeight|domObjWidth|newId|firstTime|scrollActive|new|stepForward|auto|autoScrollStart|circular|none|autoScrollStop|navLINum|getLImargin|margin|navClipSize|navBtnNext|abs|hide|isFunction|_runCallBacks|scrollcontinue|isNavClip|Error|freeheight|Array|panelfx|sliding|lineScrollDo|stepBackward|start|try|catch|changeWithId|autostill|panelfxspeed|isPlayBtn|cssPosAttr|hasClass|go|prevPanel|runningScope|panelsBag|mousewheel|delaycaptions|timer|sliderkit|navscrollatend|navfxbefore|navfxafter|fading|panelfxeasing|panelfxbefore|panelfxafter|class|li|attrVal|navULSize|px|mouseover|getIndex|parent|_getNavPos|position|playBtnPause|goBtnPrev|goBtnNext|eq|panelTransition|show|animate|SliderKit|_init|_settings|navBtn|prev|next|goPrev|goNext|02|display|prevPanelStill|animating|panelAnteFns|panelPostFns|navAnteFns|navPostFns|_buildNav|_buildControls|_wrapPanels|keyboard|keyCode|panelclick|startId|counter|imageFx|_autoScrollHoverStop|fastchange|autospeed|navitemshover|navclipcenter|navcontinuous|navpanelautoswitch|navfx|scrollspeed|scrolleasing|panelfxfirst|panelbtnshover|verticalslide|tabs|nElement|id|attr|hover|parseInt||_buildNavButtons||scrollBtns|navStopContinuous|playBtnStart|fadeIn|div|_setNavScroll|selectThumbn
354ail|_animPanel|scrollWay|_animNav|tabsfading|_panelTransitions|_navTransitions|each|oldPanel|activePanel|stop|extend|active|old|wrapper|clip|disable|pause|play|01|block|changeOngoing|currLine|keyup|Counter|DelayCaptions|Timer|find|500|350|4000|600|700|imagefx|alert|Slider|Kit|error|nMessage|see|doc|for|details|mouseleave|ul|03|0px|outerWidth|outerHeight|right|bottom|index|mouseout|ceil|floor|fadeOut|wrapAll|relative|animated|setTimeout|_clearCallBacks|length|opacity|setInterval|clearTimeout|fn|data|jQuery'.split('|'),0,{})) 355/** 356 * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget. 357 * @requires jQuery v1.2 or above 358 * 359 * http://gmarwaha.com/jquery/jcarousellite/ 360 * 361 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) 362 * Dual licensed under the MIT and GPL licenses: 363 * http://www.opensource.org/licenses/mit-license.php 364 * http://www.gnu.org/licenses/gpl.html 365 * 366 * Version: 1.0.1 367 * Note: Requires jquery 1.2 or above from version 1.0.1 368 * modified : esujin morenvy.com 2016-12-09 369 */ 370 371!function(a){a.fn.mslidejCarouselLitePause=function(b){return b=a.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:!1,auto:null,speed:200,easing:null,vertical:!1,circular:!0,visible:3,start:0,startRandom:!1,scroll:1,pauseOnHover:!0,liheight:100,liwidth:100,beforeStart:null,afterEnd:null},b||{}),this.each(function(){function s(){return m.slice(o).slice(0,j)}function t(e){if(!c&&!k){if(b.beforeStart&&b.beforeStart.call(this,s()),b.circular)e<=b.start-j-1?(g.css(d,-((n-2*j)*p)+"px"),o=e==b.start-j-1?n-2*j-1:n-2*j-b.scroll):e>=n-j+1?(g.css(d,-(j*p)+"px"),o=e==n-j+1?j+1:j+b.scroll):o=e;else{if(e<0||e>n-j)return;o=e}c=!0,g.animate("left"==d?{left:-(o*p)}:{top:-(o*p)},b.speed,b.easing,function(){b.afterEnd&&b.afterEnd.call(this,s()),c=!1}),b.circular||(a(b.btnPrev+","+b.btnNext).removeClass("disabled"),a(o-b.scroll<0&&b.btnPrev||o+b.scroll>n-j&&b.btnNext||[]).addClass("disabled"))}return!1}var c=!1,d=b.vertical?"top":"left",e=b.vertical?"height":"width",f=a(this),g=a("ul",f),h=a("li",g),i=h.length,j=b.visible,k=0,l=document.body.clientWidth;1==b.startRandom&&(b.start=Math.floor(Math.random()*i+1)),b.circular&&(g.prepend(h.slice(i-j-1+1).clone()).append(h.slice(0,j).clone()),b.start+=j),b.pauseOnHover?g.hover(function(){k=1},function(){k=0}):"";var m=a("li",g),n=m.length,o=b.start;f.css("visibility","visible"),m.css({overflow:"hidden",float:b.vertical?"none":"left"}),g.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"}),f.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var p=b.vertical?b.liheight:b.liwidth,q=p*n,r=p*j;if(m.css({height:b.liheight}),g.css(e,q+"px").css(d,-(o*p)),!b.vertical){var p=l,q=l*n,r=l*j;m.css({width:l}),g.css(e,q+"px").css(d,-(o*p))}f.css(e,r+"px"),b.btnPrev&&a(b.btnPrev).click(function(){return t(o-b.scroll)}),b.btnNext&&a(b.btnNext).click(function(){return t(o+b.scroll)}),b.btnGo&&a.each(b.btnGo,function(c,d){a(d).click(function(){return t(b.circular?b.visible+c:c)})}),b.mouseWheel&&f.mousewheel&&f.mousewheel(function(a,c){return t(c>0?o-b.scroll:o+b.scroll)}),b.auto&&setInterval(function(){t(o+b.scroll)},b.auto+b.speed)})}}(jQuery); 372/** 373 * desc : ì ì²´ì¹´í ê³ ë¦¬ í¸ë¦¬êµ¬ì¡° ì¶ë ¥ ë° ë°°ëì¶ê° 374 * auth : esujin morenvy.com 375 * date : 2017-04-17 376 * copyright @morenvy.com : ì ìê¶ìì 377 */ 378 379 380$(document).ready(function(){ 381 382 // ì ì²´ì¹´í ê³ ë¦¬ htmlì ë§ë¤ì´ì 리í´íë¤. 383 function makeAllHTML( aData, parent_no, depth, classname ) { 384 385 var HTML = ""; 386 var subHTML = ""; 387 var imgHTML = ""; 388 var cate_no = ""; 389 depth++; 390 391 for (index in aData){ 392 if( aData[index]["parent_cate_no"] == parent_no ) { 393 HTML = HTML + "\n<li cate='"+aData[index]["cate_no"]+"' value='"+aData[index]["cate_no"]+"' ><a href='"+aData[index]["link_product_list"]+"' "+classname+" >" + aData[index]["name"] +"</a>"; 394 cate_no = aData[index]["cate_no"]; 395 delete aData[index]; 396 if (aData.length > 0) subHTML = makeAllHTML( aData, cate_no, depth, classname ); 397 398 if ( subHTML != "" ) subHTML = "\n<div class='sub uldepth"+depth+"' ><ul class='depth"+depth+"' >"+subHTML+"\n</ul></div><div class='sub_cate_on_arrow'></div>"; 399 400 401 HTML = HTML + subHTML + "</li>"; 402 } 403 } 404 return HTML; 405 } 406 407 //addBanner : 첫ë²ì§¸ ì¸ìì classì ëë²ì§¸ ì¸ìì (ë°°ë)ë´ì©ì ë£ì´ì¤ë¤. 408 function addBanner( cateSelector, bannerSelector ) { 409 var com_HTML = ""; 410 var banObj = new Object(); 411 $(bannerSelector + " li").each(function( index ) { 412 banObj[$( this ).attr("cateno")] = $( this ).html(); 413 414 var findLI = $(cateSelector + " li[cate='"+$( this ).attr("cateno")+"']"); 415 var findDIV = $(cateSelector + " li[cate='"+$( this ).attr("cateno")+"']").find(">div"); 416 417 if (findLI.length > 0) { // ë°°ëê° ë¤ì´ê°(í´ë¹íë) li ë¶ë¥ê° ìë ê²½ì° 418 419 //ë°°ëìì ì¶ê° ê°ë¡í ê³ì° 420 var addedW = 0; 421 var addedH = 0; 422 addedW = $( this ).find(".banarea").outerWidth(); 423 addedH = $( this ).find(".banarea").outerHeight(); 424 425 if (findDIV.length > 0) { // ulì¤ë¶ë¥ê° ì¡´ì¬íë¤ë©´ ëì ë¶ì¬ë£ê¸° 426 //ìë ì¤ë¶ë¥ ê°ë¡í ê³ì°
427 var orginalW = findDIV.outerWidth(); 428 var orginalH = findDIV.outerHeight(); 429 430 //console.log( findDIV.css("width")); 431 findDIV.css("width",orginalW + addedW); 432 findDIV.css("height", Math.max(orginalH, addedH)); 433 findDIV.append($( this ).html()); 434 } else { // ul ì¤ë¶ë¥ê° ìë¤ë©´ ìë¡ ë§ë¤ì´ ë£ì´ì£¼ê¸° 435 var uldep = findLI.parent("ul").attr("class"); 436 uldep = parseInt(uldep.replace("depth", "")); 437 findLI.append("<div class='sub uldepth"+(uldep+1)+"' ><div class='arrow'></div>"+$( this ).html()+"</ul>"); 438 439 findLI.find(".sub").css("width", addedW); 440 findLI.find(".sub").css("height", addedH); 441 } 442 } 443 }); 444 445 446 } 447 448 449 //ìíë depthê¹ì§ë§ ë¨ê²¨ëê³ ìì íë¤. í¨ìì체를 ì¬ì©íì§ ìì¼ë©´ ì ì²´ì¹´í ê³ ë¦¬ë¡ ì¶ë ¥íë¤. 450 function removeUnderDepth( htmlSelector, depth ) { 451 $(htmlSelector).find(".uldepth"+(depth+1)).remove(); 452 return $(htmlSelector).html(); 453 } 454 455 456 var m_method = { 457 get: function() 458 { 459 $.ajax({ 460 url : '/exec/front/Product/SubCategory', 461 dataType: 'json', 462 success: function(aData) { 463 if (aData == null || aData == 'undefined') return; 464 465 // ì ì²´ì¹´í ê³ ë¦¬ htmlì ë§ë¤ì´ì ë³´ê´íë¤. 466 var morenvyAllHTML = "<ul class='depth1'>"+makeAllHTML( aData, 1, 1, " " )+"</ul>"; 467 $(".morenvyAllCategory").html( morenvyAllHTML ); 468 469 // â ìë¨ë©ë´ ì¬ê¸°ìë¶í° 470 //ííí classì htmlì ë£ê³ 471 $(".category_list_box").html( morenvyAllHTML ); 472 //addBanner : 첫ë²ì§¸ ì¸ìì classì ëë²ì§¸ ì¸ìì ë´ì©ì ë£ì´ì¤ë¤. 473 addBanner(".category_list_box", ".openCateBannerArea"); 474 //ìíë depthê¹ì§ë§ ë¨ê²¨ëê³ ìì íë¤. í¨ìì체를 ì¬ì©íì§ ìì¼ë©´ ì ì²´ì¹´í ê³ ë¦¬ë¡ ì¶ë ¥íë¤. 475 removeUnderDepth( ".category_list_box", 5 ); 476 477 // ë§ì°ì¤ ì¤ë² ìì 478 $('.category_list_box ul>li , .morenvyAllCategory .depth2 > li , , .morenvyAllCategory .depth3 > li').mouseenter(function(e) { 479 $(this).find(">div.sub").css("display","inline"); 480 $("> a", this).addClass('sub_mouse_hover'); 481 }).mouseleave(function(e) { 482 $(this).find(">div.sub").css("display","none"); 483 $("> a", this).removeClass('sub_mouse_hover'); 484 }); 485 // ìë¨ë©ë´ ì¬ê¸°ê¹ì§ â 486 487 /* morenvy.com ìë¨ ì¹´í ê³ ë¦¬ ìë¶ë¥ */ 488 $('.category_list_box .depth2 > li , .morenvyAllCategory .depth2 > li').mouseenter(function(e) { 489 $(this).find('> .sub_cate_on_arrow').addClass('rotateon'); 490 }).mouseleave(function(e) { 491 $(this).find('> .sub_cate_on_arrow').removeClass('rotateon'); 492 }); 493 494 /* morenvy.com ìë¨ ì¹´í ê³ ë¦¬ íìë¶ë¥ */ 495 $('.category_list_box .depth3 > li , .morenvyAllCategory .depth3 > li').mouseenter(function(e) { 496 $(this).find('> .sub_cate_on_arrow').addClass('rotateon'); 497 }).mouseleave(function(e) { 498 $(this).find('> .sub_cate_on_arrow').removeClass('rotateon'); 499 }); 500 // morenvyAllHTMLì ì´ì©íì¬ ì ì²´ì¹´í ê³ ë¦¬ ëë ì¼ìª½ë©ë´ ì¹´í ê³ ë¦¬ë¥¼ ì¶ê°ë¡ ë ë§ë¤ì´ ì¬ì©í ì ìë¤. 501 } 502 503 }); 504 } 505 }; 506 507 m_method.get(); 508 509 510 511}); 512 513 514jQuery(document).ready(function() { 515 /* morenvy.com ìµìë¨ ë°°ë */ 516 jQuery('.m_onoffmulti_top .mslide').mslidejCarouselLitePause({ 517 btnNext: '.m_onoffmulti_top .next', 518 btnPrev: '.m_onoffmulti_top .prev', 519 auto: 3000, 520 speed: 500, 521 visible: 1, 522 vertical: true, 523 liheight: 70, 524 liwidth: 1200, 525 easing: 'swing' 526 }); 527 528 jQuery('.m_onoffmulti_top').topbanner({ 529 'topbanner' : '.onoffarea', 530 'firstpop' : 'open', 531 'openspeed' : 'fast', 532 'closespeed' : 'fast' 533 }); 534 535 /* ìë¨ë¡ê³ ì°ì¸¡ 2ë¨ë°°ë */
536 jQuery(".contentslider-std").sliderkit({ 537 auto:1, /* 0 : í´ë¦íë©´ ëì, 1 : ìë ëì */ 538 tabs:1, 539 circular:1, 540 navitemshover:true, 541 panelfx:"sliding", // fading , sliding, none ì¬ì©ê°ë¥ 542 panelfxfirst:"none", 543 panelfxeasing:"easeInOutExpo", 544 fastchange:0, 545 keyboard:1, 546 verticalslide:true, 547 verticalnav:true, 548 autospeed: 5000 549 }); 550 551 /* morenvy.com ìë¨ ì ì²´ì¹´í ê³ ë¦¬ */ 552 jQuery('#header .section3 .all_cate_cursor').mouseenter(function(){ 553 jQuery("div:first").is(":hidden") 554 jQuery("#all_cate_area").fadeIn("fast"); 555 }).mouseleave(function(){ 556 jQuery("div:first").is(":hidden") 557 jQuery("#all_cate_area").fadeOut("fast"); 558 }); 559 560 /* ì¹´í ê³ ë¦¬ ì¤ë²ì ììì ì§ */ 561 jQuery( ".category_list li" ).mouseover(function() { 562 jQuery(".category_list_box", this).css('display', 'block'); 563 jQuery("> a", this).css('box-shadow','0 2px 0 0 rgba(0,0,0,1) inset'); 564 jQuery("> a", this).css('color','#222'); 565 }); 566 jQuery( ".category_list li" ).mouseout(function() { 567 jQuery(".category_list_box", this).css('display', 'block'); 568 jQuery("> a", this).css('box-shadow','0 0px 0 0 rgba(0,0,0,1) inset'); 569 jQuery("> a", this).css('color','#222'); 570 }); 571 572 /* morenvy.com íë¨ ìíë§í¬ */ 573 jQuery('#mfooter .section1 .inner .left_brand').mouseenter(function() { 574 jQuery(this).find('#brandmenu').css("display","block"); 575 }).mouseleave(function() { 576 jQuery(this).find("#brandmenu").css("display","none"); 577 }); 578 579 580 /* morenvy.com ìí í ì¸ì¨ */ 581 jQuery( ".salebox" ).each(function( index ) { 582 583 var product_custom = jQuery(this).children( ".hidden_pcustom" ).text(); 584 var product_price = jQuery(this).children( ".hidden_pprice" ).text(); 585 var sale_cnt = ""; 586 587 if (product_custom == "" ) product_custom = 0; 588 else product_custom = parseInt(product_custom.replace(",","")); 589 590 if (product_price == "" ) product_price = 0; 591 else product_price = parseInt(product_price.replace(",","")); 592 593 if( ( product_custom > 0 ) && ( product_price > 0 ) && ( product_custom > product_price ) ) { 594 595 sale_cnt = Math.round( ( product_custom - product_price ) / product_custom * 100 ); 596 jQuery( this ).find('.sale_text').text(sale_cnt + '%'); 597 jQuery( this ).find('.sale_text').css("display", "block"); 598 } else { 599 jQuery( this ).find('.sale_text').css("display", "none"); 600 } 601 }); 602 /* morenvy.com íµë©ë´ ë°°ë */ 603 jQuery(".contentslider-quick").sliderkit({ 604 auto:1, 605 tabs:1, 606 circular:1, 607 panelfx:"sliding", 608 panelfxfirst:"none", 609 panelfxeasing:"easeInCubic", 610 fastchange:0, 611 keyboard:1, 612 autospeed:3000 613 }); 614 615 616 617 /* morenvy.com ì°ì¸¡ íµë©ë´ */ 618 jQuery("#right_bn_wrap").show(); 619 620 function smdelCookieCpa(cookie_name) { 621 var _today = new Date(); 622 var value = ''; 623 _today.setDate(_today.getDate() - 1); 624 document.cookie = cookie_name + "=" + value + '; path=/;' + "; expires=" + _today.toGMTString(); 625 } 626 jQuery(".quick_bn_box").click(function() { 627 if (jQuery("#right_bn_wrap").css("margin-right") != "-189px") { 628 jQuery(".page_up").animate({ 629 "margin-right": 0 + "px" 630 }, 300, "linear", function() {}); 631 jQuery("#right_bn_wrap").animate({ 632 "margin-right": -189 + "px" 633 }, 300, "linear", function() {}) 634 jQuery(".quick_bn_text").fadeIn("slow"); 635 636 setCookieCpa("smcookie", "smcookie", 1); 637 } else { 638 jQuery(".page_up").animate({ 639 "margin-right": 150 + "px" 640 }, 300, "linear", function() {}); 641 jQuery("#right_bn_wrap").animate({ 642 "margin-right": 0 + "px" 643 }, 300, "linear", function() { 644 645 }); 646 jQuery(".quick_bn_text").fadeOut("slow"); 647 smdelCookieCpa("smcookie"); 648 } 649 }); 650 /* íë©´ì¤í í, 5ì´ ì´í ìëì¼ë¡ ì¬ì´ëë©ë´ ë«ê¸° */ 651 var side_close = function sideClose() { 652 if (jQuery("#right_bn_wrap").css("margin-right") != "-189px") $( ".quick_bn_box" ).trigger( "click" ); 653 jQuery(".quick_bn_text").fadeIn("slow"); 654 } 655 setTimeout( side_close ,5000); 656 /* íë©´ì¤í í, 5ì´ ì´í ìëì¼ë¡ ì¬ì´ëë©ë´ ë«ê¸° */ 657 658 if (getCookiefss("smcookie")) { 659 jQuery("#right_bn_wrap").css({ 660 "margin-right": -189 + "px" 661 }); 662 } 663 664}); 665 666/* morenvy.com ì¿ í¤ ì¤í¬ë¦½í¸ */ 667function setCookieCpa(cookie_name, cookie_value, expire_date) { 668 var today = new Date(); 669 var expire = new Date(); 670 expire.setTime(today.getTime() + 3600000 * 24 * expire_date); 671 cookies = cookie_name + '=' + cookie_value + '; path=/;'; 672 if (expire_date != 0) cookies += 'expires=' + expire.toGMTString(); 673 document.cookie = cookies; 674} 675 676function delCookieCpa(cookie_name) { 677 var _today = new Date(); 678 var value = ''; 679 680 _today.setDate(_today.getDate() - 1); 681 682 document.cookie = cookie_name + "=" + value + "; expires=" + _today.toGMTString(); 683} 684 685function getCookiefss(name) { 686 lims = document.cookie; 687 var index = lims.indexOf(name + "="); 688 if (index == -1) { 689 return null; 690 } 691 index = lims.indexOf("=", index) + 1; // first character 692 var endstr = lims.indexOf(';', index); 693 if (endstr == -1) { 694 endstr = lims.length; // last character 695 } 696 return unescape(lims.substring(index, endstr)); 697} 698 699 700$(document).ready(function(){ 701 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 702 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 703 var bShippingCountryProc = false;
704 705 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 706 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 707 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 708 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 709 } else { 710 $('.thumb .xans-layout-multishoplistitem').hide(); 711 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 712 if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) { 713 var sShippingCountryValue = aShippingCountryCode[2]; 714 } 715 716 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 717 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 718 719 if (aHrefCountryValue.length == 2) { 720 var sShippingCountryValue = aHrefCountryValue[1]; 721 } 722 723 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 724 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 725 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 726 727 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 728 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 729 } 730 } 731 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 732 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 733 var bShippingCountryProc = true; 734 735 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 736 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 737 var expires = new Date(); 738 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 739 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 740 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 741 $("#f_country").val(sShippingCountryValue).change();; 742 } 743 } 744 } 745 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 746 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 747 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 748 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 749 } else { 750 $('.thumb .xans-layout-multishoplistitem').hide(); 751 } 752 753 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 754 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 755 $(".xans-layout-multishopshipping").hide(); 756 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 757 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 758 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 759 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 760 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 761 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 762 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 763 $(".xans-layout-multishopshipping").show(); 764 } 765 } 766 767 $(".xans-layout-multishopshipping .close").bind("click", function() { 768 $(".xans-layout-multishopshipping").hide(); 769 }); 770 771 $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() { 772 var expires = new Date(); 773 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 774 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 775 776 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
776ì ëê¹ 777 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 778 779 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 780 }); 781 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() { 782 $(".xans-layout-multishopshipping").show(); 783 }); 784 } 785});
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.