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 alert(data.error.message); 61 location.href = '/view/item/' + data.systemCode; 62 return false; 63 } 64} 65 66/*-- pagetop --*/ 67$(function() { 68 var showFlag = false; 69 var topBtn = $('.pageTop'); 70 topBtn.css('bottom', '-135px'); 71 var showFlag = false; 72 //ã¹ã¯ãã¼ã«ã100ã«éããããã¿ã³è¡¨ç¤º 73 $(window).scroll(function () { 74 if ($(this).scrollTop() > 300) { 75 if (showFlag == false) { 76 showFlag = true; 77 topBtn.stop().animate({'bottom' : '10px'}, 200); 78 } 79 } else { 80 if (showFlag) { 81 showFlag = false; 82 topBtn.stop().animate({'bottom' : '-135px'}, 200); 83 } 84 } 85 }); 86 //ã¹ã¯ãã¼ã«ãã¦ããã 87 topBtn.click(function () { 88 $('body,html').animate({ 89 scrollTop: 0 90 }, 500); 91 return false; 92 }); 93}); 94 95$(function(){ 96 $('a[href^="#"]').click(function(){ 97 var speed = 500; //ç§»åå®äºã¾ã§ã®æé(sec)ãæå® 98 var href= $(this).attr("href"); 99 var target = $(href == "#" || href == "" ? 'html' : href); 100 var position = target.offset().top; 101 $("html, body").animate({scrollTop:position}, speed, "swing"); 102 return false; 103 }); 104}); 105/*-- /pagetop --*/ 106 107 108 109/*-- btn_menu --*/ 110jQuery(function($) { 111 $('.btn_menu').click(function() { 112 $(this).toggleClass('active'); 113 $('.bg').fadeToggle(); 114 $('#hamMenu nav').toggleClass('open'); 115 $('body').css('potision', 'fixed'); 116 }) 117 $('.bg').click(function() { 118 $(this).fadeOut(); 119 $('.btn_menu').removeClass('active'); 120 $('#hamMenu nav').removeClass('open'); 121 $('body').css('potision', 'static'); 122 }) 123}) 124/*-- /btn_menu --*/ 125 126$(function() { 127 $('.gallery').slick({ 128 infinite: true, 129 fade: true, 130 prevArrow: '<div class="slick-prev"></div>', 131 nextArrow: '<div class="slick-next"></div>' 132 }); 133 134 $('.choice-btn').slick({ 135 infinite: true, 136 slidesToShow: 100, 137 focusOnSelect: true, 138 asNavFor: '.gallery' 139 }); 140 141 $('.gallery').on('beforeChange', function(event, slick, currentSlide, nextSlide) { 142 $('.choice-btn .slick-slide').removeClass('slick-current').eq(nextSlide).addClass('slick-current'); 143 });
144 145 $('.modal-close, .modal-bg').on('click', function() { 146 $('.modal-area').fadeOut(); 147 }); 148}); 149 150function MakeShop_afterItemOptionChange(data) { 151 if (data.isSoldout) { 152 $('.instock').removeClass('on').addClass('off'); 153 $('.outstock').removeClass('off').addClass('on'); 154 } else { 155 $('.instock').removeClass('off').addClass('on'); 156 $('.outstock').removeClass('on').addClass('off'); 157 } 158} 159 160function MakeShop_afterCartEntry(data) { 161 if (data.result) { 162 $('.cart-badge').text(data.totalQuantity).show(); 163 $('.modal-area').fadeIn(); 164 } else { 165 data.method.modal(data.error.message); 166 } 167 168 return false; 169}
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.