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$(window).on("load",function() { 129 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 130 var $img = new Image(); 131 $img.onerror = function () { 132 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 133 } 134 $img.src = this.src; 135 }); 136}); 137 138/** 139 * tooltip 140 */ 141$('.eTooltip').each(function(i){ 142 $(this).find('.btnClose').attr('tabIndex','-1'); 143}); 144//tooltip input focus 145$('.eTooltip').find('input').focus(function() { 146 var targetName = returnTagetName(this); 147 targetName.siblings('.ec-base-tooltip').show(); 148}); 149$('.eTooltip').find('input').focusout(function() { 150 var targetName = returnTagetName(this); 151 targetName.siblings('.ec-base-tooltip').hide(); 152}); 153function returnTagetName(_this){ 154 var ePlacename = $(_this).parent().attr("class"); 155 var targetName; 156 if(ePlacename == "ePlaceholder"){ //ePlaceholder ëì 157 targetName = $(_this).parents(); 158 }else{ 159 targetName = $(_this); 160 } 161 return targetName; 162} 163 164/** 165 * eTab 166 */ 167 $("body").delegate(".eTab a", "click", function(e){ 168 // í´ë¦í li ì selected í´ëì¤ ì¶ê°, 기존 liì ìë selected í´ëì¤ë ìì . 169 var _li = $(this).parent("li").addClass("selected").siblings().removeClass("selected"), 170 _target = $(this).attr("href"), 171 _siblings = $(_target).attr("class"), 172 _arr = _siblings.split(" "), 173 _classSiblings = "."+_arr[0]; 174 175 //í´ë¦í íì í´ë¹íë ììë íì±í, 기존 ììë ë¹íì±í í¨. 176 $(_target).show().siblings(_classSiblings).hide(); 177 178 179 //preventDefault ë a íê·¸ ì²ë¼ í´ë¦ ì´ë²¤í¸ ì¸ì ë³ëì ë¸ë¼ì°ì íëì ë§ê¸° ìí´ ì¬ì©ë¨. 180 e.preventDefault(); 181}); 182 183 184/* customx */ 185EC$(".xans-layout-category .pos-rel").not('#main .xans-layout-category .pos-rel').on("click", function() { 186/* 187 if ($(".xans-layout-category").hasClass("active")) { 188 $(".xans-layout-category").removeClass("active"); 189 $("html").removeClass("open-nav-vertical"); 190 191 } else { 192 $(".xans-layout-category").addClass("active"); 193 $("html").addClass("open-nav-vertical"); 194 195 } 196*/ 197 //$(this).next().toggle('slow'); //top_menu íì´ë ì²ë¦¬ ê³µê° íë³´ 198 $(this).parent().toggleClass('active') 199 $('.position ul').slideToggle(); 200}); 201 202/* 203EC$('.nav > button.nav-link').mouseover(function (e) { 204 e.preventDefault(); 205 $(this).tab('show'); 206}); 207/* 208EC$('.nav > button.nav-link').mouseout(function () { 209 $(this).tab('hide'); 210}); 211*/ 212 213EC$(".nav_title").on("click", function() { 214 $(this).toggleClass('active'); 215 $('.position_all').slideToggle(); 216}); 217 218EC$('body').on('click',function(e) { 219 //e.preventDefault(); 220//console.log('e target',$(e.target)); 221 if (!$(e.target).is('.nav_title, .arrowX') && $('.nav_title').hasClass('active')) { 222//console.log('body click'); 223 $('.nav_title').toggleClass('active'); 224 $('.position_all').slideToggle(); 225 } else { 226 227 } 228}); 229//window popup script 230function winPop(url) { 231 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 232} 233/** 234 * document.location.href split 235 * return array Param 236 */ 237function getQueryString(sKey) 238{ 239 var sQueryString = document.location.search.substring(1); 240 var aParam = {}; 241 242 if (sQueryString) { 243 var aFields = sQueryString.split("&"); 244 var aField = []; 245 for (var i=0; i<aFields.length; i++) { 246 aField = aFields[i].split('='); 247 aParam[aField[0]] = aField[1]; 248 } 249 } 250 251 aParam.page = aParam.page ? aParam.page : 1; 252 return sKey ? aParam[sKey] : aParam; 253}; 254 255$(document).ready(function(){ 256 // tab 257 $.eTab = function(ul){ 258 $(ul).find('a').click(function(){ 259 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 260 _target = $(this).attr('href'), 261 _siblings = '.' + $(_target).attr('class'); 262 $(_target).show().siblings(_siblings).hide(); 263 return false 264 }); 265 } 266 if ( window.call_eTab ) { 267 call_eTab(); 268 }; 269}); 270(function($){ 271$.fn.extend({ 272 center: function() { 273 this.each(function() { 274 var 275 $this = $(this), 276 $w = $(window); 277 $this.css({ 278 position: "absolute", 279 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 280 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 281 }); 282 }); 283 return this; 284 } 285}); 286$(function() { 287 var $container = function(){/* 288<div id="modalContainer"> 289 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 290</div>'); 291*/}.toString().slice(14,-3); 292 $('body') 293 .append($('<div id="modalBackpanel"></div>')) 294 .append($($container)); 295 function closeModal () { 296 $('#modalContainer').hide(); 297 $('#modalBackpanel').hide(); 298 } 299 $('#modalBackpanel').click(closeModal); 300 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 301 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 302 $('#modalContent').attr('src', $url); 303 $('#modalContent').bind("load",function(){ 304 $(".header .close",this.contentWindow.document.body).bind("click", closeModal); 305 }); 306 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 307 $('#modalContainer').center().show(); 308 } 309}); 310})(jQuery); 311/** 312 * ì¹´í ê³ ë¦¬ ë§ì°ì¤ ì¤ë² ì´ë¯¸ì§ 313 * ì¹´í ê³ ë¦¬ ìë¸ ë©ë´ ì¶ë ¥ 314 */ 315 316$(document).ready(function(){ 317 318 var methods = { 319 aCategory : [], 320 aSubCategory : {}, 321 322 get: function() 323 { 324 $.ajax({ 325 url : '/exec/front/Product/SubCategory', 326 dataType: 'json', 327 success: function(aData) { 328 329 if (aData == null || aData == 'undefined') return; 330 for (var i=0; i<aData.length; i++) 331 { 332 var sParentCateNo = aData[i].parent_cate_no; 333 334 if (!methods.aSubCategory[sParentCateNo]) { 335 methods.aSubCategory[sParentCateNo] = []; 336 } 337 338 methods.aSubCategory[sParentCateNo].push( aData[i] ); 339 } 340 } 341 }); 342 }, 343 344 get_all: function() 345 { 346 $.ajax({ 347 url : '/exec/front/Product/SubCategory', 348 dataType: 'json', 349 success: function(aData) { 350 351 if (aData == null || aData == 'undefined') return; 352 353 $(aData).each(function() { 354 if (!methods.aCategory[this.parent_cate_no]) { 355 methods.aCategory[this.parent_cate_no] = []; 356 } 357 methods.aCategory[this.parent_cate_no].push(this); 358 }); 359 //console.log('get_all',methods.aSubCategory); 360 methods.show_all(); 361 362 } 363 }); 364 }, 365 366 getParam: function(sUrl, sKey) { 367 368 var aUrl = sUrl.split('?'); 369 var sQueryString = aUrl[1]; 370 var aParam = {}; 371
372 if (sQueryString) { 373 var aFields = sQueryString.split("&"); 374 var aField = []; 375 for (var i=0; i<aFields.length; i++) { 376 aField = aFields[i].split('='); 377 aParam[aField[0]] = aField[1]; 378 } 379 } 380 return sKey ? aParam[sKey] : aParam; 381 }, 382 383 getParamSeo: function(sUrl) { 384 var aUrl = sUrl.split('/'); 385 return aUrl[3] ? aUrl[3] : null; 386 }, 387 388 show: function(overNode, iCateNo) { 389//console.log('show iCateNo',iCateNo); 390 if (methods.aSubCategory[iCateNo].length == 0) { 391 return; 392 } 393 394 var aHtml = []; 395 aHtml.push('<ul>'); 396 $(methods.aSubCategory[iCateNo]).each(function() { 397 aHtml.push('<li><a href="'+this.link_product_list+'">'+this.name+'</a></li>'); 398 }); 399 aHtml.push('</ul>'); 400 401 402 var offset = $(overNode).offset(); 403 $('<div class="sub-category"></div>') 404 .appendTo(overNode) 405 .html(aHtml.join('')) 406 .find('li').mouseover(function(e) { 407 $(this).addClass('over'); 408 }).mouseout(function(e) { 409 $(this).removeClass('over'); 410 }); 411 }, 412 413 show_all: function() { 414 415 var _iCateNo = 0; 416 var _aTmp = []; 417 418 $('.position_all a').each(function() { 419 //_aTmp = $(this).attr('href').split('?cate_no='); 420 _aTmp = $(this).attr('href').split('/'); 421 _iCateNo = _aTmp[3]; 422 //console.log('_iCateNo',_iCateNo); 423 424 if(!methods.aCategory[_iCateNo]) { 425 return; 426 } 427 428 var aHtml = []; 429 aHtml.push('<ul class="subli-all">'); 430 var x1 = methods.aCategory[_iCateNo].length; 431 432 for(var i=0; i<methods.aCategory[_iCateNo].length; i++) { 433 //aHtml.push('<li class="depth-2"><a href="/'+methods.aCategory[_iCateNo][i].design_page_url+methods.aCategory[_iCateNo][i].param+'">'+methods.aCategory[_iCateNo][i].name+'</a></li>'); 434 aHtml.push('<li class="depth-2"><a href="'+methods.aCategory[_iCateNo][i].link_product_list+'">'+methods.aCategory[_iCateNo][i].name+'</a></li>'); 435 436 //console.log(methods.aCategory[_iCateNo][i].cate_no); 437 var depth3 = methods.aCategory[_iCateNo][i].cate_no; 438 //console.log(aCategory[_iCateNo][i].cate_no.length); 439 //console.log(aCategory[depth3].length); 440 441 if(methods.aCategory[depth3]) { 442 for(var j=0; j<methods.aCategory[depth3].length; j++) { 443 aHtml.push('<li class="depth-3"></li>'); 444 } 445 } 446 447 448 449 } 450 aHtml.push('</ul>'); 451 452 $(this).parent('li').append(aHtml.join('')); 453 }); 454 455 bCache = true; 456 $('#all-menu').slideDown('slow'); 457 458 }, 459 460 461 show_sub: function(overNode, iCateNo) { 462//console.log('show_sub iCateNo',iCateNo); 463 if (methods.aSubCategory[iCateNo].length == 0) { 464 return; 465 } 466 467 var aHtml = []; 468 aHtml.push('<ul>'); 469 $(methods.aSubCategory[iCateNo]).each(function() { 470 aHtml.push('<li><a href="'+this.link_product_list+'">'+this.name+'</a></li>'); 471// aHtml.push('<li class="depth-2"><a href="/'+methods.aCategory[_iCateNo][i].design_page_url+methods.aCategory[_iCateNo][i].param+'">'+methods.aCategory[_iCateNo][i].name+'</a></li>'); 472 473 }); 474 aHtml.push('</ul>'); 475 476 477 var offset = $(overNode).offset(); 478 $('<div class="sub-categoryX"></div>') 479 .appendTo(overNode) 480 .html(aHtml.join('')) 481 .find('li').mouseover(function(e) { 482 $(this).addClass('over'); 483 }).mouseout(function(e) { 484 $(this).removeClass('over'); 485 }); 486 }, 487 488 489 close: function() { 490 $('.sub-category').remove(); 491 }, 492 493 close_sub: function() { 494 $('.sub-categoryX').remove(); 495 } 496 497 }; 498 499 methods.get(); 500 methods.get_all(); 501 502 503 $('.xans-layout-category li').not('.li-all').mouseenter(function(e) { 504// $('.xans-layout-category li').mouseenter(function(e) { 505 var $this = $(this).addClass('on'), 506 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 507 508 if (!iCateNo) { 509 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 510 } 511 512 if (!iCateNo) { 513 return; 514 } 515 516 methods.show($this, iCateNo); 517 }).mouseleave(function(e) { 518 $(this).removeClass('on'); 519 520 methods.close(); 521 }); 522 523// $('.xans-layout-category li').not('.li-all').mouseenter(function(e) { 524// $('.subli-all > li').mouseenter(function(e) { 525// EC$(document).on('mouseover', '.subli-all > li, .Xsub-category li', function(e){ 526// EC$(document).on('mouseenter', '.subli-all > li', function(e){ 527 EC$(document).on('mouseenter', '.subli-all > li, .sub-category > ul > li', function(e){ 528e.preventDefault(); 529 530 console.log('XXX subli-all > li XXX'); 531 var $this = $(this).addClass('on'), 532 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 533console.log('mouseover iCateNo A',iCateNo); 534 if (!iCateNo) { 535 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 536 } 537console.log('mouseover iCateNo B',iCateNo); 538 if (!iCateNo) { 539 return; 540 } 541 542 methods.show_sub($this, iCateNo); 543// }).on('mouseleave','.subli-all > li', function(e) { 544 }).on('mouseleave','.subli-all > li, .sub-category > ul > li', function(e) { 545 $(this).removeClass('on'); 546 547 methods.close_sub(); 548 }); 549 550 $('#show-menu').click(function() { 551 552 if (bCache === false) { 553 get(); 554 } else { 555 556 if($('#all-menu').is(':hidden')) { 557 $('#all-menu').slideDown('slow'); 558 } else { 559 $('#all-menu').slideUp('slow'); 560 } 561 } 562 }); 563 564}); 565/** 566* @class 567* ì´ë¯¸ì§ 롤ë§ë¥¼ ì²ë¦¬ í©ëë¤. 568* 569* @example 570* $.fn.roate.defaults = { 571* 'duration' : '3000', 572* 'stopButton' : '#stopButton', 573* 'playButton' : '#playButton', 574* 'prevButton' : '#prevButton', 575* 'nextButton' : '#nextButton', 576* 'movement' : 'left', 577* 'scroll' : 1, 578* 'autoStart' : false, 579* 'interval' : 2000 580* }; 581* 582*/ 583 584;(function($){ 585 586 $.fn.roate = function( options ) { 587 588 var opts = $.extend( {}, $.fn.roate.defaults, options ), 589 containerBox = [], 590 $this = $(this), 591 defaultWidth, defaultHeight, curentIndex = 0, distance, childLength, isAnimate = false, timer = null; 592 593 var pm = {} 594 595 var _init = function() { 596 _setDefaultSize(); 597 _setDistance(); 598 _displayOverFlow(); 599 _setContainerBox(); 600 if(childLength > 1) { 601 _setEventBind(); 602 } else { 603 _displayPlayButton(); 604 } 605 } 606 , _setDefaultSize = function() { 607 defaultWidth = opts.defaultWidth || $this.children().eq(0).width(); 608 defaultHeight = opts.defaultHeight || $this.children().eq(0).height(); 609 childLength = $this.children().length; 610 if ( opts.movement == 'top' ) { 611 defaultHeight = defaultHeight * parseInt(opts.scroll,10); 612 } else { 613 defaultWidth = defaultWidth * parseInt(opts.scroll,10); 614 $this.children().css('float','left'); 615 } 616 } 617 , _setDistance = function() { 618 if ( opts.movement == 'top') { 619 distance = defaultHeight; 620 } else { 621 distance = defaultWidth; 622 } 623 } 624 , _displayOverFlow = function() { 625 var $wrap = $("<div class='containterWrap'></div>").css({ 626 'overflow' : 'hidden', 627 'position' : 'relative', 628 'width' : defaultWidth, 629 'height' : opts.defaultHeight || defaultHeight 630 }); 631 $this.wrap( $wrap ); 632 $this.css({'position':'absolute', 'left': '0', 'top' : '0' }); 633 } 634 , _setContainerBox = function() { 635 $this.children().each(function(i){ 636 containerBox[ containerBox.length ] = this; 637 }); 638 } 639 , _setEventBind = function() { 640 $(options.nextButton).bind('click.roate', function(){ 641 pm.next(); 642 }); 643 644 $(options.prevButton).bind('click.roate', function(){ 645 pm.prev(); 646 }); 647 648 $(options.playButton).bind('click.roate', function(){ 649 _stopTimer(); 650 pm.play(); 651 }); 652 653 $(options.stopButton).bind('click.roate', function(){ 654 pm.stop(); 655 }); 656 $this.hover( function(){ 657 pm.stop(); 658 }, function(){ 659 _stopTimer(); 660 pm.play(); 661 }); 662 } 663 , _addCurrent = function() { 664 curentIndex++; 665 666 if ( curentIndex >= childLength ) { 667 curentIndex = 0; 668 } 669 }, _minusCurrent = function() { 670 curentIndex--; 671 if ( curentIndex < 0 ) { 672 curentIndex = childLength -1; 673 } 674 } 675 , _isAmimate = function() { 676 if ( isAnimate ) { 677 return true; 678 } 679 isAnimate = true; 680 return false;
681 }, _stopTimer = function(){ 682 if ( timer ) { 683 clearInterval( timer ); 684 _displayPlayButton(); 685 } 686 }, _displayPlayButton = function() { 687 $(opts.playButton).css('display', 'inline'); 688 $(opts.stopButton).css('display', 'none'); 689 }, _displayStopButton = function() { 690 $(opts.playButton).css('display', 'none'); 691 $(opts.stopButton).css('display', 'inline'); 692 }, _setOpacity = function ( style ) { 693 if ( opts.opacity ) { 694 style['display'] = 'none'; 695 style['opacity'] = 1; 696 } 697 return style; 698 }; 699 700 pm.next = function() { 701 this.nextMovement( $(containerBox[ curentIndex ]) ); 702 }; 703 704 pm.prev = function() { 705 this.prevMovement( $(containerBox[ curentIndex ]) ); 706 }; 707 708 pm.play = function() { 709 timer = setInterval(function(){ pm.next() }, opts.interval); 710 _displayStopButton(); 711 }; 712 713 pm.stop = function() { 714 _stopTimer(); 715 }; 716 717 pm.nextMovement = function ($el) { 718 var moveDistance = $this.offset().left - $el.offset().left - distance; 719 720 if ( _isAmimate() === false ) { 721 var moveType = {},setCss = {} 722 moveType[opts.movement] = moveDistance; 723 if ( opts.opacity) { 724 moveType['opacity'] = 0; 725 } 726 setCss[opts.movement] = parseInt(moveDistance,10) + parseInt(distance,10); 727 setCss = _setOpacity( setCss ); 728 $this.animate(moveType, opts.duration, function(){ 729 $this.children(':last').after($el); 730 $this.css(setCss); 731 if ( opts.opacity ) { 732 $this.fadeIn(opts.duration); 733 } 734 isAnimate = false; 735 _addCurrent(); 736 }); 737 } 738 } 739 740 pm.prevMovement = function ($el) { 741 var moveDistance = $this.offset().left - $el.offset().left + distance; 742 if ( _isAmimate() === false ) { 743 var moveType = {},setCss = {} 744 moveType[opts.movement] = moveDistance; 745 if ( opts.opacity ) { 746 moveType['opacity'] = 0; 747 } 748 setCss[opts.movement] = parseInt(moveDistance,10) - parseInt(distance,10); 749 setCss = _setOpacity( setCss ); 750 if ( opts.movement == 'top' ) { 751 $this.css('top',-defaultHeight); 752 moveType[opts.movement] = 0; 753 $this.children(':first').before($this.children(':last')); 754 } 755 $this.animate(moveType, opts.duration, function(){ 756 if ( opts.movement == 'left' ) { 757 $this.children(':first').before($this.children(':last')); 758 } 759 $this.css(setCss); 760 if ( opts.opacity ) { 761 $this.fadeIn(opts.duration); 762 } 763 _minusCurrent(); 764 isAnimate = false; 765 }); 766 } 767 } 768 769 _init(); 770 771 if ( opts.autoStart && childLength > 1) { 772 pm.play(); 773 } 774 775 return pm; 776 }; 777 778 $.fn.roate.defaults = { 779 'duration' : '3000', 780 'stopButton' : '#stopButton', 781 'playButton' : '#playButton', 782 'prevButton' : '#prevButton', 783 'nextButton' : '#nextButton', 784 'movement' : 'left', 785 'scroll' : 1, 786 'autoStart' : false, 787 'interval' : 2000, 788 'opacity' : false 789 }; 790 791})(jQuery); 792$(document).ready(function(){ 793 $(".xans-layout-project ul").roate({ 794 'duration' : '1000', 795 'interval' : 3000, 796 'stopButton' : '#stopButton-project', 797 'playButton' : '#playButton-project', 798 'prevButton' : '#prevButton-project', 799 'nextButton' : '#nextButton-project', 800 'defaultWidth': '180', 801 'defaultHeight' : '180', 802 'movement' : 'top', 803 'opacity' : false, 804 'autoStart' : true 805 }); 806}); 807$(document).ready(function(){ 808 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 809 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 810 var bShippingCountryProc = false;
811 812 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 813 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 814 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 815 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 816 } else { 817 $('.thumb .xans-layout-multishoplistitem').hide(); 818 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 819 if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) { 820 var sShippingCountryValue = aShippingCountryCode[2]; 821 } 822 823 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 824 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 825 826 if (aHrefCountryValue.length == 2) { 827 var sShippingCountryValue = aHrefCountryValue[1]; 828 } 829 830 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 831 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 832 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 833 834 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 835 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 836 } 837 } 838 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 839 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 840 var bShippingCountryProc = true; 841 842 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 843 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 844 var expires = new Date(); 845 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 846 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 847 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 848 $("#f_country").val(sShippingCountryValue).change();; 849 } 850 } 851 } 852 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 853 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 854 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 855 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 856 } else { 857 $('.thumb .xans-layout-multishoplistitem').hide(); 858 } 859 860 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 861 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 862 $(".xans-layout-multishopshipping").hide(); 863 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 864 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 865 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 866 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 867 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 868 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 869 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 870 $(".xans-layout-multishopshipping").show(); 871 } 872 } 873 874 $(".xans-layout-multishopshipping .close").bind("click", function() { 875 $(".xans-layout-multishopshipping").hide(); 876 }); 877 878 $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() { 879 var expires = new Date(); 880 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 881 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 882 883 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
883ì ëê¹ 884 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 885 886 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 887 }); 888 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() { 889 $(".xans-layout-multishopshipping").show(); 890 }); 891 } 892});
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.