1jQuery(function(){ 2 3 jQuery(window).on('scroll', function () { 4 if (jQuery(this).scrollTop() > 180) { 5 jQuery('#header-wrap').addClass('fix'); 6 } else if (jQuery(this).scrollTop() < 150) { 7 jQuery('#header-wrap').removeClass('fix') 8 } 9 }); 10 11 //-- ã°ãã¼ãã«ãããã¡ãã¥ã¼======================================================================================== 12 jQuery('.js-animation-megamenu-hover > a').on('click', function() { 13 if (jQuery(this).next('div').css('display') == 'none') { 14 jQuery('.block-globalnav-menu').slideUp('normal'); 15 jQuery('.js-animation-megamenu-hover a').removeClass('active'); 16 jQuery('.block-globalnav-menu--level-2').stop().animate({'left': '0'},200).css({'display':'none', 'height': ''}); 17 jQuery('.block-globalnav-menu--level-1 li a').removeClass('active'); 18 jQuery(this).next('div').slideDown('normal'); 19 jQuery(this).addClass('active'); 20 } else { 21 jQuery(this).next('div').slideUp('normal'); 22 jQuery(this).removeClass('active'); 23 } 24 return false; 25 }); 26 jQuery(document).on('click', function(e) { 27 if (!jQuery(e.target).closest('.pane-globalnav').length) { 28 jQuery('.block-globalnav-menu').slideUp('normal'); 29 jQuery('.js-animation-megamenu-hover a').removeClass('active'); 30 jQuery('.block-globalnav-menu--level-2').stop().animate({'left': '0'},200).css({'display':'none', 'height': ''}); 31 jQuery('.block-globalnav-menu--level-1 li a').removeClass('active'); 32 } 33 }); 34 //-- AJAXããåçã«ãã´ãªããªã¼çæ======================================================================================== 35 jQuery(function() { 36 jQuery('.js-dynamic-category').each(function() { 37 var category = jQuery(this).data('category') != undefined ? jQuery(this).data('category') : ''; 38 jQuery(this).load(EC_WWW_ROOT + '/shop/js/categorytree.aspx?category=' + category, function(){ 39 /* åçã«åå¾ããã«ãã´ãªã®ãã¶ã¤ã³èª¿æ´ */ 40 jQuery('.block-globalnav-menu--level-1 li a').on('click', function(event){ 41 if(jQuery(this).next('.block-globalnav-menu--level-2').length){ 42 if (jQuery(this).next('.block-globalnav-menu--level-2').css('display') == 'none') { 43 event.preventDefault(); 44 jQuery('.block-globalnav-menu--level-2').stop().animate({'left': '0'},200).css({'display':'none', 'height': ''}); 45 jQuery('.block-globalnav-menu--level-1 li a').removeClass('active'); 46 jQuery(this).next('.block-globalnav-menu--level-2').stop().animate({'left': '255px'},200).css("display","block"); 47 jQuery(this).addClass('active'); 48 jQuery(".block-globalnav-menu--level-2 li.block-globalnav-menu--nochild").tile(2); 49 var level1H = jQuery(this).parents('ul').innerHeight() + 2; 50 var level2H = jQuery(this).next('ul').innerHeight(); 51 if(level1H > level2H) { 52 jQuery(this).next('.block-globalnav-menu--level-2').css("height", level1H + "px"); 53 } else { 54 jQuery(this).next('.block-globalnav-menu--level-2').css("height", level2H + "px"); 55 } 56 } 57 } 58 59 }); 60 }); 61 }); 62 }); 63 64 //-- ååä¸è¦§ï¼çµè¾¼ã¿ãã¿ã³ãè¨ç½®======================================================================================== 65 if(jQuery('#block_of_filter').length){ 66 jQuery('.block-goods-list--sort-order-items').before('<div class="block-goods-list--filter-btn">æ¡ä»¶ã§çµãè¾¼ã</div>'); 67 } 68 //-- çµè¾¼ã¿ã¨ä¸¦ã¹æ¿ãã¨ãã¼ã¸ã£ã¼ãå²ãã======================================================================================== 69 if(jQuery('.block-goods-list--sort-order-items').length){ 70 jQuery('.block-goods-list--filter-btn, .block-goods-list--sort-order-items, .block-goods-list--pager-top').wrapAll('<div class="block-goods-list--item-top"></div>'); 71 } 72 //-- çµè¾¼ã¿ãã¢ã¼ãã«è¡¨ç¤º======================================================================================== 73 jQuery('.block-goods-list--filter-btn').on('click', function() { 74 jQuery('body').append('<div id="block_of_filter_bg"></div>'); 75 76 var scrollTop = jQuery(window).scrollTop(); 77 78 jQuery('#block_of_filter').css('display','block'); 79 jQuery('.pane-left-menu').css('display','block'); 80 jQuery('#block_of_filter').css('top',scrollTop + 100 + 'px'); 81 }); 82 jQuery('.block-filter--close-btn').on('click', function() { 83 jQuery('#block_of_filter').css('display','none'); 84 jQuery('.pane-left-menu').css('display','none'); 85 jQuery('#block_of_filter_bg').hide(); 86 jQuery('#block_of_filter_bg').remove(); 87 }); 88 jQuery(document).on('click', function(e) { 89 if (!jQuery(e.target).closest('#block_of_filter, .block-goods-list--filter-btn').length) { 90 jQuery('#block_of_filter').css('display','none'); 91 jQuery('.pane-left-menu').css('display','none'); 92 jQuery('#block_of_filter_bg').hide(); 93 jQuery('#block_of_filter_bg').remove(); 94 } 95 }); 96 //-- é¸ã³æ¹ã®ãã¤ã³ããã¢ã¼ãã«è¡¨ç¤º======================================================================================== 97 jQuery('.block-item-list--point-btn').on('click', function() { 98 jQuery('body').append('<div id="block_of_point_bg"></div>'); 99 100 var scrollTop = jQuery(window).scrollTop(); 101 102 jQuery('.block-item-list--point-inner').css('display','block'); 103 jQuery('.block-item-list--point-inner').css('top',scrollTop + 100 + 'px'); 104 }); 105 jQuery('.block-item-list--point-close-btn').on('click', function() { 106 jQuery('.block-item-list--point-inner').css('display','none'); 107 jQuery('#block_of_point_bg').hide(); 108 jQuery('#block_of_point_bg').remove(); 109 }); 110 jQuery(document).on('click', function(e) { 111 if (!jQuery(e.target).closest('.block-item-list--point-inner, .block-item-list--point-btn').length) { 112 jQuery('.block-item-list--point-inner').css('display','none'); 113 jQuery('#block_of_point_bg').hide(); 114 jQuery('#block_of_point_bg').remove(); 115 } 116 }); 117 //-- ã¢ã¤ã³ã³ã®è¦æ¹ãã¢ã¼ãã«è¡¨ç¤º======================================================================================== 118 jQuery('.block-item-list--icon-btn').on('click', function() { 119 jQuery('body').append('<div id="block_of_icon_bg"></div>'); 120 121 var scrollTop = jQuery(window).scrollTop(); 122 123 jQuery('.block-item-list--icon-inner').css('display','block'); 124 jQuery('.block-item-list--icon-inner').css('top',scrollTop + 100 + 'px'); 125 }); 126 jQuery('.block-item-list--icon-close-btn').on('click', function() { 127 jQuery('.block-item-list--icon-inner').css('display','none'); 128 jQuery('#block_of_icon_bg').hide(); 129 jQuery('#block_of_icon_bg').remove(); 130 }); 131 jQuery(document).on('click', function(e) { 132 if (!jQuery(e.target).closest('.block-item-list--icon-inner, .block-item-list--icon-btn').length) { 133 jQuery('.block-item-list--icon-inner').css('display','none'); 134 jQuery('#block_of_icon_bg').hide(); 135 jQuery('#block_of_icon_bg').remove(); 136 } 137 }); 138 //--ã¤ãã³ãã¹ã©ã¤ãã¼======================================================================================== 139 jQuery('.block-top-event--goods').each(function(r) { 140 jQuery(this).children('.block-ranking-r').attr('id', 'event_ranking' + (r + 1)); 141 var rankId = jQuery(this).children('.block-ranking-r').attr('id'); 142 143 var rankSize = jQuery('#' + rankId).find('.block-ranking-r--goods').length; 144 if(rankSize > 4){ 145 jQuery(this).find(".block-ranking-r li").slick({ 146 dots: false, 147 infinite: true, 148 slidesToShow: 4, 149 slidesToScroll: 1 150 }); 151 } 152 }); 153 //--é¢é£ååã¹ã©ã¤ãã¼======================================================================================== 154 if(jQuery('.block-accessory-list').length){ 155 jQuery('.block-goods-detail-j').each(function() { 156 var recSize = jQuery(this).find('.block-goods-detail-j--goods').length; 157 if(recSize > 4) { 158 jQuery(this).find("li").slick({ 159 dots: false, 160 infinite: true, 161 slidesToShow: 4, 162 slidesToScroll: 1 163 }); 164 } 165 }); 166 167 } 168 169 //--æè¿ãã§ãã¯ããååã¹ã©ã¤ãã¼======================================================================================== 170 if(jQuery('#itemHistory').length){ 171 jQuery('#itemHistoryDetail').each(function() { 172 var recSize = jQuery(this).find('.block-thumbnail-h li').length; 173 if(recSize > 1) { 174 jQuery(this).find(".block-thumbnail-h").slick({ 175 dots: false, 176 infinite: true, 177 slidesToShow: 6, 178 slidesToScroll: 1 179 }); 180 } 181 }); 182 183 } 184 185 186 //-- åååãéä¸ã§åã======================================================================================== 187 jQuery('.block-ranking-r--goods-name').each(function() { 188 jQuery(this).children('a').ry({ 189 size: 18 190 }); 191 });
192 jQuery('.block-thumbnail-h--goods-name').each(function() { 193 jQuery(this).children('a').ry({ 194 size: 16 195 }); 196 }); 197 jQuery('.block-goods-detail-j--goods-name').each(function() { 198 jQuery(this).children('a').ry({ 199 size: 20 200 }); 201 }); 202 //-- åå詳細ï¼è©³ç´°ç»å======================================================================================== 203 jQuery("div.block-goods-gallery ul").each(function() { 204 var thuSize = jQuery(this).children('li').length; 205 var thuSizeW = 120 * thuSize; 206 jQuery('div.block-goods-gallery').css('width', thuSizeW + 'px'); 207 }); 208 209 jQuery("div.block-src-l").each(function() { 210 jQuery("div.block-src-l").slick({ 211 autoplay: true, 212 dots: false, 213 arrows: true, 214 infinite: true, 215 speed: 500, 216 asNavFor: 'div.block-goods-gallery ul' 217 }); 218 jQuery("div.block-goods-gallery ul").slick({ 219 slidesToShow: "thuSize", 220 focusOnSelect: true, 221 asNavFor: 'div.block-src-l' 222 }); 223 }); 224 jQuery("li.slick-slide").on('click',function(){ 225 jQuery("div.block-src-l").slick('slickPause'); 226 }); 227 228 //-- å·¦ãããããå ´å======================================================================================== 229 if(jQuery('.pane-left-menu').length){ 230 jQuery('body').addClass('page-2column'); 231 } 232 //-- ã¸ã£ã³ã«ãååä¸è¦§èæ¯======================================================================================== 233 if(jQuery('.page-genre').length){ 234 jQuery('.block-goods-list--item-top, .block-pickup-list-p, .block-goods-list-d, .block-goods-list--pager-bottom').wrapAll('<div class="block-genre-list--goods"></div>'); 235 } 236 //-- 詳細æ¤ç´¢ãååä¸è¦§èæ¯======================================================================================== 237 if(jQuery('.page-search').length){ 238 jQuery('.block-goods-list--item-top, .block-pickup-list-p, .block-goods-list-d, .block-goods-list--pager-bottom').wrapAll('<div class="block-search-list--goods"></div>'); 239 } 240 //-- ããããã¼ã¸ã¸æ»ãåæå¤======================================================================================== 241 jQuery('#footer_pagetop').hide(); 242 243 //--- ã¹ã ã¼ã¹ã¹ã¯ãã¼ã«======================================================================================== 244 jQuery('a[href^="#"]:not(.js-animation-megamenu-hover a)').on('click', function() { 245 var header = jQuery('#header-wrap').innerHeight() + 30; 246 var speed = 500; 247 var href= jQuery(this).attr("href"); 248 var target = jQuery(href == "#" || href == "" ? 'html' : href); 249 var position = target.offset().top - header; 250 jQuery('body,html').animate({scrollTop:position}, speed, 'swing'); 251 return false; 252 }); 253 254 //--- ããããã¼ã¸ã®ã¤ãã³ãããã¼======================================================================================== 255 jQuery('.page-top .event-banner-wrap').wrapAll('<div class="block-top-banner"><ul>'); 256 jQuery('.block-event-page--accessory').wrapInner('<div class="block-event-page--accessory-inner"><div class="block-event-page--accessory-wrap">'); 257 //--- ãããããåãåãã======================================================================================== 258 jQuery('.popup_win_').on('click', function() { 259 window.open(this.href,"WindowName","width=800,height=600,resizable=yes,scrollbars=yes"); 260 return false; 261 }); 262 //--- ãªãªã¸ãã«ã¢ãã======================================================================================== 263 jQuery('.block-product-cart input').change(function() { 264 var checkSize = jQuery('.block-product-cart input:checked').length; 265 jQuery('.block-aroma--cart-qu').children('strong').text(checkSize); 266 jQuery(this).parent('label').toggleClass('active'); 267 }); 268 269 270 jQuery(window).on('load', function() { 271 jQuery('.block-product-cart input:checked').each(function() { 272 var checkSize = jQuery('.block-product-cart input:checked').length; 273 jQuery('.block-aroma--cart-qu').children('strong').text(checkSize); 274 jQuery(this).parent('label').addClass('active'); 275 }); 276 }); 277 278}); 279jQuery(window).on('scroll resize',function() { 280 var scrollHeight = jQuery(document).height(); 281 var scrollPosition = jQuery(window).height() + jQuery(window).scrollTop(); 282 var footHeight = jQuery('footer').height(); 283 284 if(jQuery(this).scrollTop() > 120) { 285 jQuery('#footer_pagetop').show(); 286 } else if(jQuery(this).scrollTop() < 80) { 287 jQuery('#footer_pagetop').hide(); 288 } 289 290// if(scrollHeight - scrollPosition <= footHeight ) { 291// jQuery('#footer_pagetop').css({'opacity':'0.2'}); 292// } else { 293// jQuery('#footer_pagetop').css({'opacity':'1'}); 294// } 295 296}); 297jQuery(window).on('load', function() { 298 //-- ãããå å·¥======================================================================================== 299 if(jQuery('.optimaized-h1').length){ 300 jQuery('.optimaized-h1').prependTo('.block-header-top .container'); 301 } 302 jQuery('#header').each(function() { 303 jQuery("#header, .pane-globalnav").wrapAll('<div id="header-wrap"></div>'); 304 var headerWrap = jQuery('#header-wrap').innerHeight(); 305 if(jQuery('.pane-topic-path').length){ 306 jQuery('.pane-topic-path').css('margin-top', headerWrap + 'px'); 307 } else { 308 jQuery('.pane-contents, .pane-order-contents').css('padding-top', headerWrap + 'px'); 309 310 } 311 });
312 //-- é«ã調æ´======================================================================================== 313 jQuery('div.block-pickup-list-p').each(function(a) { 314 jQuery(this).attr('id', 'goods_box' + (a + 1)); 315 idname = "#goods_box" + (a + 1) + " "; 316 317 /* --- é«ã調æ´ï¼ããã¯ã¢ãã */ 318 jQuery(idname).find(".block-icon2").tile(3); 319 jQuery(idname).find(".block-pickup-list-p--goods-name").tile(3); 320 jQuery(idname).find(".block-pickup-list-p--goods-comment").tile(3); 321 jQuery(idname).find(".block-pickup-list-p--price-items").tile(3); 322 jQuery(idname).find(".block-pickup-list-p--price-infos").tile(3); 323 }); 324 //-- ãµãã«ãé«ã調æ´======================================================================================== 325 jQuery('.block-category-style-g').each(function() { 326 jQuery('.block-category-style-g--subitem').find(".block-category-style-g--item-name").tile(4); 327 }); 328});
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.