PageSourceSearch

https://hotping.jp/ind-script/optimizer_user.php?filename=lZFBDsIg…1b11b4d269eb058c276431a&t=1784011192&user=T

js hotping.jp collected 2026-10-09 00:40:24 UTC 26,233 bytes, 801 lines download raw bytes

1
2$(document).ready(function () {  
3	var promotionSwiper = new Swiper('.promotionSwiper', {
4		slidesPerView: 3,
5		spaceBetween: 20,
6		loop: false,
7		autoplay: {
8			delay: 1000000,
9			disableOnInteraction: false,
10		},
11		navigation: {
12			nextEl: '.swiper-button-next',
13			prevEl: '.swiper-button-prev',
14		}
15	});
16
17	var proSwiper = new Swiper('.proSwiper', {
18		slidesPerView: 1,
19		spaceBetween: 0,
20		loop: true,
21		navigation: {
22			nextEl: '.swiper-button-next',
23			prevEl: '.swiper-button-prev',
24		},
25		pagination: {
26			el: '.swiper-pagination',
27			clickable: true,
28			watchOverflow: true,
29			renderBullet: function(index, className) {
30			return '<span class="' + className + '">' + (index + 1) + '</span>';
31			},
32		},
33
34	});
35
36
37
38	$('.proProdBox ul li').each(function() {
39		$(this).find(".thumbnail").prepend("<span class='bestcount'>" + ($(this).index() +1) + "</span>");
40	});
41
42
43	var proProdSwiper = new Swiper('.proProdSwiper', {
44		slidesPerView: 4,	
45		spaceBetween: 0,
46		slidesPerGroup: 4,
47		loop: true,
48		loopFillGroupWithBlank: true,
49		pagination: {
50			el: ".proProd .swiper-pagination",
51			clickable: true,
52		},
53		navigation: {
54			nextEl: '.proProd .swiper-button-next',
55			prevEl: '.proProd.swiper-button-prev',
56		},
57	});
58
59	var proProdSwiper2 = new Swiper('.proProdSwiper2', {
60		slidesPerView: 4,	
61		spaceBetween: 0,
62		slidesPerGroup: 1,
63		loop: true,
64		loopFillGroupWithBlank: true,
65		pagination: {
66			el: ".proProd2 .swiper-pagination",
67			clickable: true,
68		},
69		navigation: {
70			nextEl: '.proProd2 .swiper-button-next',
71			prevEl: '.proProd2 .swiper-button-prev',
72		},
73	});
74});
75$('.tabmenu div').each(function(){
76    $(this).children('div:first').show();
77});
78
79$('.tabmenu ul li').click(function() {
80    var $self = $(this);
81    var $nav = $(this).parent();
82    var $tabCtl = $nav.parent();
83    $nav.find('a').removeClass("active");
84    $self.find('a').addClass("active");
85    $tabCtl.children('div').children('div').hide();
86    var indexer = $self.index(); //gets the current index of (this) which is #nav li
87    $tabCtl.children('div').children('div:eq(' + indexer + ')').fadeIn(); //uses whatever index the link has to open the corresponding box 
88});
89
90
91
92
93$('.xans-layout-searchheader #keyword').focus(function () {
94    $('.search_word').show();
95});
96
97$(".search_word .close_btn").click(function() {
98    $('.search_word').hide();
99
100});
101
102
103
104
105
106/**
107 * 카테고리 마우스 오버 이미지
108 * 카테고리 서브 메뉴 출력
109 */
110
111$(function(){
112
113    var methods = {
114        aCategory    : [],
115        aSubCategory : {},
116
117        get: function()
118        {
119             $.ajax({
120                url : '/exec/front/Product/SubCategory',
121                dataType: 'json',
122                success: function(aData) {
123
124                    if (aData == null || aData == 'undefined') return;
125                    for (var i=0; i<aData.length; i++)
126                    {
127                        var sParentCateNo = aData[i].parent_cate_no;
128
129                        if (!methods.aSubCategory[sParentCateNo]) {
130                            methods.aSubCategory[sParentCateNo] = [];
131                        }
132
133                        methods.aSubCategory[sParentCateNo].push( aData[i] );
134                    }
135                }
136            });
137        },
138
139        getParam: function(sUrl, sKey) {
140
141            var aUrl         = sUrl.split('?');
142            var sQueryString = aUrl[1];
143            var aParam       = {};
144
145            if (sQueryString) {
146                var aFields = sQueryString.split("&");
147                var aField  = [];
148                for (var i=0; i<aFields.length; i++) {
149                    aField = aFields[i].split('=');
150                    aParam[aField[0]] = aField[1];
151                }
152            }
153            return sKey ? aParam[sKey] : aParam;
154        },
155
156        getParamSeo: function(sUrl) {
157            var aUrl = sUrl.split('/');
158            var len  = aUrl.length-2;
159
160            return aUrl[len] ? aUrl[len] : null;
161        },
162
163        show: function(overNode, iCateNo) {
164
165            if (methods.aSubCategory.hasOwnProperty(iCateNo) === false) {
166                return;
167            }
168
169            var aHtml = [];
170            aHtml.push('<ul>');
171            $(methods.aSubCategory[iCateNo]).each(function() {
172                aHtml.push('<li><a href="'+this.link_product_list+'">'+this.name+'</a></li>');
173            });
174            aHtml.push('</ul>');
175
176
177            var offset = $(overNode).offset();
178            $('<div class="sub-category category_'+iCateNo+'""></div>')
179                .appendTo(overNode)
180                .html(aHtml.join(''))
181                .find('li').on({
182                    mouseover: function(e) {
183                        $(this).addClass('over');
184                    },
185                    mouseout: function(e) {
186                        $(this).removeClass('over');
187                    }
188                });
189        },
190
191        close: function() {
192            $('.sub-category').remove();
193        }
194    };
195
196    methods.get();
197
198
199    $('.xans-layout-category li').on({
200        mouseenter: function () {
201            var $this = $(this).addClass('on'),
202                iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no'));
203
204            if (!iCateNo) {
205                iCateNo = Number(methods.getParamSeo($this.find('a').attr('href')));
206            }
207
208            if (!iCateNo) {
209                return;
210            }
211            methods.show($this, iCateNo);
212        },
213        mouseleave: function () {
214            $(this).removeClass('on');
215            methods.close();
216        }
217    });
218});
219
220
221
222(function($){
223	// grab the initial top offset of the navigation 
224	var sticky_navigation_offset_top = $('#quick_menu').offset().top;
225	// our function that decides weather the navigation bar should have "fixed" css position or not.
226	var sticky_navigation = function(){
227		var scroll_top = $(window).scrollTop(); // our current vertical position from the top
228		
229		// if we've scrolled more than the navigation, change its position to fixed to stick to top, otherwise change it back to relative
230		if (scroll_top > sticky_navigation_offset_top) { 
231			$('#quick_inner').css({ 'position': 'fixed', 'top':90 });
232		} else {
233			$('#quick_inner').css({ 'position': 'relative', 'top':0 }); 
234		}   
235	};
236	// run our function on load
237	sticky_navigation();
238	// and run it again every time you scroll
239	$(window).scroll(function() {
240		 sticky_navigation();
241	});
242	// NOT required:
243	// for this demo disable all links that point to "#"
244	$('a[href="#"]').click(function(event){ 
245		event.preventDefault(); 
246	});
247})(jQuery);
248$(document).ready(function(){
249	$(".chlrmsp").click(function(){
250		$("#chlrmstkdvna_bg").show();
251	});
252	$("#chlrmstkdvna_bg").click(function(){
253		$("#chlrmstkdvna").hide();
254        $("#chlrmstkdvna_bg").hide();
255        $(".chlrmsp").show();
256        $(".chlrmsm").hide();
257	});
258});
259
260
261$(window).on('load', function() {
262    $('.gChlItem').html($('#gQuickRecent').children().html());
263    $('.gChlItem').find('li').each(function(){
264        $(this).removeClass('displaynone');
265        var aHref = $(this).find('a').eq(0).attr('href');
266        $(this).find('a.btn_recent_gdel').attr('rel',aHref.split('product_no=')[1].split('&')[0]);
267    });
268    if($('.gChlItem').find('li').length > 3){
269        $('.gChlItem').show();        
270        $('.gEdit').removeClass('displaynone');
271    }
272    $('.btn_recent_gdel').click(function(){
273        if (confirm(__('本当に削除しますか?'))) {
274            var nameOfCookie = "recent_plist";
275            if (EC_SDE_SHOP_NUM > 1) {
276                nameOfCookie = nameOfCookie + EC_SDE_SHOP_NUM;
277            }
278            $.cookie(nameOfCookie , EC_Recentlist.getRecentRemove(EC_Recentlist.getRecentData(), $(this).attr('rel')), {
279                'path' : '/',
280                'expires' : 365
281            });
282            
283            var gIndex = $(this).parent('li').index();
284            $(this).parent('li').remove();
285            gRecentRemove(gIndex);            
286        }
287    });
288    
289    function gRecentRemove(index){
290        $('#gQuickRecent').find('li').eq(index).remove();
291        var gCount = $('#gQuickRecent').find('li').length;
292        for(var i = 0;i<gCount;i++){
293            if(i<1){
294                $('#gQuickRecent').find('li').eq(i).removeClass('displaynone');
295            }else{                
296                if(!($('#gQuickRecent').find('li').eq(i).hasClass('displaynone'))){
297                    $('#gQuickRecent').find('li').eq(i).addClass('displaynone');
298                }
299            }
300        }
301    }
302    
303    
304    $('.chlrmsp').click(function(){
305        $('#chlrmstkdvna').css('display','block');
306        $('.chlrmsm').css('display','block');
307        $('.chlrmsp').css('display','none');
308    });
309    
310    
311    $('.chlrmsm').click(function(){
312        $('#chlrmstkdvna').css('display','none');
313        $('.chlrmsm').css('display','none');
314        $('.chlrmsp').css('display','block');
315    });
316    
317    
318    $('.gEdit').click(function(){
319        $(this).addClass('displaynone').next('button').removeClass('displaynone');
320        $('#chlrmstkdvna').find('.btn_recent_gdel').show();
321    });
322    
323    $('.gCancel').click(function(){
324        $(this).addClass('displaynone').prev('button').removeClass('displaynone');
325        $('#chlrmstkdvna').find('.btn_recent_gdel').hide();
326    });
327    
328    $('#quick .chlrmsp').click(function(){
329        $('.bgClose').removeClass('displaynone');
330    });
331    
332    $('.bgClose').click(function(){
333        $(this).addClass('displaynone');
334        $('.chlrmsm').click();
335    });
336    
337});
338/**
339 * Banner Jquery Plug-in
340 * @author  cafe24
341 */
342
343(function($){
344
345    $.fn.floatBanner = function(options) {
346        options = $.extend({}, $.fn.floatBanner.defaults , options);
347        
348        return this.each(function() {
349            var aPosition = $(this).position();
350            var jbOffset = $(this).offset();
351            var node = this;
352
353            $(window).on('scroll', function() {
354                var _top = $(document).scrollTop();
355                _top = (aPosition.top < _top) ? _top : aPosition.top;
356
357                setTimeout(function () {
358                    var newinit = $(document).scrollTop();
359
360                    if ( newinit > jbOffset.top ) {
361                        _top -= jbOffset.top;
362                        var container_height = $("#wrap").height();
363                        var quick_height = $(node).height();
364                        var cul = container_height - quick_height;
365                        if(_top > cul){
366                            _top = cul;
367                        }
368                    } else {
369                        _top = 0;
370                    }
371                    
372                    $(node).stop().animate({top: _top}, options.animate);
373                }, options.delay);
374            });
375        });
376    };
377
378    $.fn.floatBanner.defaults = {
379        'animate'  : 500,
380        'delay'    : 500
381    };
382
383})(jQuery);
384
385
386$(function(){
387    $('#banner:visible, #quick:visible').floatBanner();
388
389    //placeholder
390    $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){
391        var placeholderName = $(this).parents().attr('title');
392        $(this).attr("placeholder", placeholderName);
393    });
394    /* placeholder ie8, ie9 */
395    $.fn.extend({
396        placeholder : function() {
397
398            if (hasPlaceholderSupport() === true) {
399                return this;
400            }
401
402            return this.each(function(){
403                var findThis = $(this);
404                var sPlaceholder = findThis.attr('placeholder');
405                if ( ! sPlaceholder) {
406                    return;
407                }
408                findThis.wrap('<label class="ePlaceholder" />');
409                var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : '';
410                findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>');
411                this.onpropertychange = function(e){
412                    e = event || e;
413                    if (e.propertyName == 'value') {
414                        $(this).trigger('focusout');
415                    }
416                };
417
418                var agent = navigator.userAgent.toLowerCase();
419                if (agent.indexOf("msie") != -1) {
420                    $(".ePlaceholder").css({"position":"relative"});
421                    $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"});
422                    $(".ePlaceholder label").css({"padding":"0"});
423                }
424            });
425        }
426    });
427
428    $(':input[placeholder]').placeholder();
429
430
431    $('body').on('click', '.ePlaceholder span', function(){
432        $(this).hide();
433    });
434
435
436    $('body').on('focusin', '.ePlaceholder :input', function(){
437        $(this).prev('span').hide();
438    });
439
440
441    $('body').on('focusout', '.ePlaceholder :input', function(){
442        if (this.value) {
443            $(this).prev('span').hide();
444        } else {
445            $(this).prev('span').show();
446        }
447    });
448
449
450    function hasPlaceholderSupport() {
451        if ('placeholder' in document.createElement('input')) {
452            return true;
453        } else {
454            return false;
455        }
456    }
457});
458
459/**
460 *  Thumbnail onerror
461 */
462$(window).on('load', function() {
463    $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){
464        var $img = new Image();
465        $img.onerror = function () {
466            $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif";
467        }
468        $img.src = this.src;
469    });
470});
471
472/**
473 *  tooltip
474 */
475$('.eTooltip').each(function(i){
476    $(this).find('.btnClose').attr('tabIndex','-1');
477});
478//tooltip input focus
479$('.eTooltip').find('input').on({
480    focus: function() {
481        var targetName = returnTagetName(this);
482        targetName.siblings('.ec-base-tooltip').show();
483    },
484    focusout: function() {
485        var targetName = returnTagetName(this);
486        targetName.siblings('.ec-base-tooltip').hide();
487    }
488});
489function returnTagetName(_this){
490    var ePlacename = $(_this).parent().attr("class");
491    var targetName;
492    if(ePlacename == "ePlaceholder"){
493        targetName = $(_this).parents();
494    }else{
495        targetName = $(_this);
496    }
497    return targetName;
498}
499
500/**
501 *  eTab
502 */
503$("body").on("click", ".eTab a", function(e){
504
505    var _li = $(this).parent("li").addClass("selected").siblings().removeClass("selected"),
506        _target = $(this).attr("href"),
507        _siblings = $(_target).attr("class"),
508        _arr = _siblings.split(" "),
509        _classSiblings = "."+_arr[0];
510
511
512    $(_target).show().siblings(_classSiblings).hide();
513
514
515
516    e.preventDefault();
517});
518//window popup script
519function winPop(url) {
520    window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no");
521}
522/**
523 * document.location.href split
524 * return array Param
525 */
526function getQueryString(sKey)
527{
528    var sQueryString = document.location.search.substring(1);
529    var aParam       = {};
530
531    if (sQueryString) {
532        var aFields = sQueryString.split("&");
533        var aField  = [];
534        for (var i=0; i<aFields.length; i++) {
535            aField = aFields[i].split('=');
536            aParam[aField[0]] = aField[1];
537        }
538    }
539
540    aParam.page = aParam.page ? aParam.page : 1;
541    return sKey ? aParam[sKey] : aParam;
542};
543
544$(function(){
545    // tab
546    $.eTab = function(ul){
547        $(ul).find('a').on('click', function(){
548            var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'),
549                _target = $(this).attr('href'),
550                _siblings = '.' + $(_target).attr('class');
551            $(_target).show().siblings(_siblings).hide();
552            return false
553        });
554    }
555    if ( window.call_eTab ) {
556        call_eTab();
557    };
558});
559
560$(function($) {
561
562	$('.ec-base-product .name a').each(function () {
563        $(this).closest('.box').find('.xans-product-listitem li[rel="size"]').appendTo(this);
564        $(this).closest('.box').find('.xans-search-listitem li[rel="size"]').appendTo(this);
565    });
566
567
568    if($(window).width() < 1638) {
569        $('#left').hide();
570        $('#renewInner').addClass('rere');
571        $('#renewWrap').addClass('rere');
572        $('#container').addClass('rere');
573        //$('#toplogo').animate({width: 'show'});
574
575    }else{
576        $('#left').animate({width: 'show'});
577        $('#renewInner').removeClass('rere');
578        $('#renewWrap').removeClass('rere');
579        $('#container').removeClass('rere');
580        //$('#toplogo').hide();
581
582    }
583
584    $( window ).resize(function() {
585        if($(this).width() < 1638) {
586            $('#left').hide();
587            $('#renewInner').addClass('rere');
588            $('#renewWrap').addClass('rere');
589            $('#container').addClass('rere');
590            $('#toplogo').animate({width: 'show'});
591        }else{
592            $('#left').animate({width: 'show'});
593            $('#renewWrap').removeClass('rere');
594            $('#renewInner').removeClass('rere');
595            $('#container').removeClass('rere');
596            $('#toplogo').hide();
597
598        }
599    })
600});
601(function($){
602$.fn.extend({
603    center: function() {
604        this.each(function() {
605            var
606                $this = $(this),
607                $w = $(window);
608            $this.css({
609                position: "absolute",
610                top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px",
611                left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px"
612            });
613        });
614        return this;
615    }
616});
617$(function() {
618    var $container = function(){/*
619<div id="modalContainer">
620    <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe>
621</div>');
622*/}.toString().slice(14,-3);
623    $('body')
624    .append($('<div id="modalBackpanel"></div>'))
625    .append($($container));
626    function closeModal () {
627        $('#modalContainer').hide();
628        $('#modalBackpanel').hide();
629    }
630    $('#modalBackpanel').on('click', closeModal);
631    zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) {
632        var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup;
633        $('#modalContent').attr('src', $url);
634        $('#modalContent').on("load",function(){
635            $(".header .close",this.contentWindow.document.body).on("click", closeModal);
636        });
637        $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show();
638        $('#modalContainer').center().show();
639    }
640});
641})(jQuery);
642$(function(){
643    if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") {
644        var sShippingCountryCode4Cookie = 'shippingCountryCode';
645        var bShippingCountryProc = false;
646
647
648        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) {
649            $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide();
650            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide();
651        } else {
652            $('.thumb .xans-layout-multishoplistitem').hide();
653            var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)');
654            if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) {
655                var sShippingCountryValue = aShippingCountryCode[2];
656            }
657
658
659            var aHrefCountryValue = decodeURIComponent(location.href).split("/?country=");
660
661            if (aHrefCountryValue.length == 2) {
662                var sShippingCountryValue = aHrefCountryValue[1];
663            }
664
665
666            if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) {
667                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
668
669                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
670                    $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
671                }
672            }
673            if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) {
674                sShippingCountryValue = sShippingCountryValue.split("#")[0];
675                var bShippingCountryProc = true;
676
677                $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
678                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
679                var expires = new Date();
680                expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000));
681                document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
682                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
683                    $("#f_country").val(sShippingCountryValue).change();
684                }
685            }
686        }
687
688        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) {
689            $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide();
690            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide();
691        } else {
692            $('.thumb .xans-layout-multishoplistitem').hide();
693        }
694
695
696        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) {
697            $(".xans-layout-multishopshipping").hide();
698            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide();
699        } else if (bShippingCountryProc === false && location.href.split("/").length == 4) {
700            var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val();
701            $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
702            $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
703
704            if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) {
705                $(".xans-layout-multishopshipping").show();
706            }
707        }
708
709        $(".xans-layout-multishopshipping .close").on("click", function() {
710            $(".xans-layout-multishopshipping").hide();
711        });
712
713        $(".xans-layout-multishopshipping .ec-base-button a").on("click", function() {
714            var expires = new Date();
715            expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000));
716            document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
717
718
719            var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
720
721            location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting;
722        });
723        $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").on("click", function() {
724            $(".xans-layout-multishopshipping").show();
725        });
726    }
727});
728function setRate(_this, _custom_price, _selling_price, _discounted_price) {
729    var $this = _this;
730    var custom_price = _custom_price;
731
732    if (custom_price === '' || custom_price === 0) {
733        custom_price = _selling_price; // 소비자가를 출력하지 않는 경우 소비자가에 판매가를 넣어줌
734    }
735
736    var selling_price = _selling_price;
737    var discounted_price = _discounted_price;
738    var rate;
739
740	if(selling_price){
741		var rate=100-Math.round(selling_price/custom_price*100);            
742	}
743	if(discounted_price){
744		var rate=100-Math.round(discounted_price/custom_price*100);
745	}
746
747	if (rate > 0) {
748        if ($this.hasClass('hasSale')) {
749			if (!$this.find('.RNW_per').length > 0) {
750				$this.find('li[rel="割引価格"]').prepend('<div class="RNW_per"><span class="per">' + rate + '<i>%</i></span></div>');
751			}
752        } else {
753            $this.find('li[rel="販売価格"]').prepend('<div class="RNW_per"><span class="per">' + rate + '<i>%</i></span></div>');
754        }
755    }
756}
757    
758function perShow(){
759	$('.RNW_rate').each(function(){
760        var $this=$(this);
761        var data_arr=$this.attr('data-price').split('^');
762        var custom_price=data_arr[0].replace(/,/gi,'');
763        var selling_price=data_arr[1].replace(/,/gi,'');
764		var has_sale = $this.find('li[rel="割引価格"] > span').text();
765        var discounted_price;
766			if (has_sale === '' || has_sale === '0') {
767				var saleText = $this.find('li[rel="販売価格"] > span').text();
768				discounted_price = saleText ? saleText.match(/\d+/g).join('') : 0;
769			} else {
770				discounted_price = has_sale.match(/\d+/g).join('');
771				$(this).addClass('hasSale')
772			}
773        setRate($this,custom_price,selling_price,discounted_price);      
774    });
775}
776
777// 할인율
778$(document).ready(function(){    
779    //setTimeout(function () {
780		perShow();
781	//}, 500);
782
783	$(".typeMoreview .btnMore").click(function(){
784		setTimeout(function () {
785			perShow()
786		}, 500);
787	});
788
789
790	$(".moreview a").click(function(){
791		setTimeout(function () {
792			perShow()
793		}, 500);
794	});
795}); 
796
797
798
799
800
801

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.