1$(function() { 2 // ãããã¼ã®ãµã¤ãºèª¿æ´ 3 headerAdjust(); 4 $(window).on('scroll', function() { 5 headerAdjust(); 6 }); 7 8 // ã«ã¬ã³ãã¼ç¹å®æ¥ã®è¨å® 9 $('.day-list').each(function() { 10 var month = $(this).attr('data-month'); 11 var day = $(this).attr('data-day'); 12 var color = $(this).attr('data-color'); 13 14 $('.makeshop-calendar' + month +' .day' + day).css({ 15 'background-color': color, 16 'color': '#fff', 17 'font-weight': 'bold', 18 'height': '14px' 19 }); 20 }); 21 22 // æ¤ç´¢ãã©ã¼ã 23 $('.search-keyword, .search-price, .original-code').on('keypress', function(e) { 24 if (e.keyCode == 13) { 25 $('.search-url')[0].click(); 26 } 27 }); 28 29 // ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ 30 $('.openbtn').on('click', function() { 31 $(this).toggleClass('active'); 32 $('#g-nav').toggleClass('panelactive'); 33 }); 34 35 // ãµã¤ãã¡ãã¥ã¼ãéãã 36 $('#g-nav a').on('click', function() { 37 $('.openbtn').removeClass('active'); 38 $('#g-nav').removeClass('panelactive'); 39 }); 40 41 // ãµã¤ãã¡ãã¥ã¼ã®ã«ãã´ãªã¼éé 42 $('.accordion').on('click', function() { 43 $(this).toggleClass('on').next().slideToggle(); 44 $('.accordion').not(this).removeClass('on').next('.close').slideUp(); 45 }); 46}); 47 48function headerAdjust() { 49 var adjustPoint = 20; 50 var scrollTop = $(window).scrollTop(); 51 if(scrollTop > adjustPoint) { 52 $('.header').addClass('fix'); 53 } else { 54 $('.header').removeClass('fix'); 55 } 56} 57 58function MakeShop_afterListCartEntry(data){ 59 if (!data.result) { 60 data.method.modal(data.error.message, function() { 61 location.href = '/view/item/' + data.systemCode; 62 }); 63 64 return false; 65 } 66} 67 68function MakeShop_afterListFavoriteEntry(data) { 69 if (!data.result) { 70 data.method.modal(data.error.message); 71 return false; 72 } 73 74 $('a[href="' + data.source + '"]').addClass('hide').siblings('.favorite-on').removeClass('hide'); 75 76 return false; 77} 78 79function MakeShop_afterListFavoriteRemove(data) { 80 if (!data.result) { 81 data.method.modal(data.error.message); 82 return false; 83 } 84 85 $('a[href="' + data.source + '"]').addClass('hide').siblings('.favorite-off').removeClass('hide'); 86 87 return false; 88} 89 90$(function() { 91 $('.gallery').slick({ 92 infinite: true, 93 prevArrow: '<div class="slick-prev"></div>', 94 nextArrow: '<div class="slick-next"></div>' 95 }); 96 97 $('.choice-btn').slick({ 98 infinite: true, 99 slidesToShow: 100, 100 focusOnSelect: true, 101 asNavFor: '.gallery' 102 }); 103 104 $('.gallery').on('beforeChange', function(event, slick, currentSlide, nextSlide) { 105 $('.choice-btn .slick-slide').removeClass('slick-current').eq(nextSlide).addClass('slick-current'); 106 }); 107 108 $('.modal-close, .modal-bg').on('click', function() { 109 $('.modal-area').fadeOut(); 110 }); 111 112 $('img.option-image').on('click', function() { 113 showOptionImage($(this).attr('data-option-image')); 114 }); 115}); 116 117function MakeShop_afterItemOptionChange(data) { 118 if (data.isSoldout) { 119 $('.instock').removeClass('on').addClass('off'); 120 $('.outstock').removeClass('off').addClass('on'); 121 } else { 122 $('.instock').removeClass('off').addClass('on'); 123 $('.outstock').removeClass('on').addClass('off'); 124 } 125 126 showOptionImage(data.imageL); 127} 128 129/*function MakeShop_afterCartEntry(data) { 130 if (data.result) { 131 $('.cart-badge').text(data.totalQuantity).show(); 132 $('.modal-area').fadeIn(); 133 } else { 134 data.method.modal(data.error.message); 135 } 136 137 return false; 138}*/ 139 140function makeshop_afterCartEntry(data){ 141$('.cart-badge').html(data.totalQuantity); 142 $('.cart-object').attr('data', $('.cart-object').attr('data')); 143var cartinClassName = window.matchMedia('(max-width: 768px)').matches ? '.cartin-msg-sp' : '.cartin-msg-pc'; 144 $(cartinClassName).addClass('show').fadeIn(600).fadeOut(4000); 145return false; 146} 147 148function MakeShop_afterFavoriteEntry(data) { 149 if (!data.result) { 150 data.method.modal(data.error.message); 151 return false; 152 } 153 154 $('a[href="' + data.source + '"]').addClass('hide').siblings('.favorite-on').removeClass('hide'); 155 156 return false; 157} 158 159function MakeShop_afterFavoriteRemove(data) { 160 if (!data.result) { 161 data.method.modal(data.error.message); 162 return false; 163 } 164 165 $('a[href="' + data.source + '"]').addClass('hide').siblings('.favorite-off').removeClass('hide'); 166 167 return false; 168} 169 170function showOptionImage(url) { 171 if (url == '') { 172 return; 173 } 174 175 $('div.item-image ul.choice-btn img[src="' + url + '"]').trigger('click'); 176}
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.