1$(function() { 2 // ãå ¨é¸æã 3 $('.selectAll').click(function(e) { 4 $('.check').prop({'checked':'checked'}); 5 }); 6 // ãå ¨é¸æè§£é¤ã 7 $('.deselectAll').click(function(e) { 8 $('.check').prop({'checked':false}); 9 }); 10 11 var TIMEOUT = 3500; 12 13 // ååæ å ±ã®åé 14 var ids = []; 15 $('form[name="favoriteItemForm"]').each(function (index){if(ids.indexOf($(this).attr('data-prod')) == -1){ids.push($(this).attr('data-prod'))}}); 16 17 // ã¹ã³ã¢æ å ±ã®åå¾ 18 if (ids.length > 0) { 19 // ã¬ãã¥ã¼æ å ±ãåå¾ 20 reviewModule.appendReviewScore(ids, function (itemCode, aveDecimal, aveHalfStep, count) { 21 var $targetItem = $('.fav_result').find('form[data-prod=' + itemCode + ']'); 22 $targetItem.each(function (index) { 23 $(this).find('.dv_fav_review_img').html('<span class="parts-review-stars-rank' + aveHalfStep +'"></span><span>'+ aveDecimal +'</span>'); 24 $(this).find('.dv_fav_review_comment_num').html('(' + count + 'ä»¶)'); 25 // ãªã³ã¯ä»å 26 var link = $(this).find('a').attr('href'); 27 // åä¸ã¬ãã¥ãã¼ã¿ãè¤æ°è¿å´ãããè¤æ°åå¦çãéããã¨ããããããæ¢ã«ãªã³ã¯ãå¼µããã¦ããå ´åã¯ãªã³ã¯ãå¼µããªã 28 if (link && $(this).find('a').find('.dv_fav_review_img, .dv_fav_review_comment_num').length == 0) { 29 $(this).find('.dv_fav_review_img, .dv_fav_review_comment_num').wrapAll('<a href="' + link + '#item-review-list"/>'); 30 } 31 }); 32 }); 33 } 34 35 // è¡ãã¨ã«é«ããèª¿æ´ 36 var target = $('.m-fav_txt_detail'); 37 var maxHeight = 0; 38 var columns = 5; 39 var targetLen = $(target).length; 40 var heightArr = []; 41 var colHiArr = []; 42 var i; 43 44 //è¦ç´ ã®é«ããåå¾ 45 for (i = 0; i <= targetLen; i++) { 46 heightArr[i] = $(target).eq(i).height(); 47 if (colHiArr.length <= Math.floor(i / columns) || colHiArr[Math.floor(i / columns)] < heightArr[i]) { 48 colHiArr[Math.floor(i / columns)] = heightArr[i]; 49 } 50 } 51 52 //é«ãè¨å® 53 $(target).each(function(i){ 54 $(this).css('height', colHiArr[Math.floor(i / columns)] + 'px'); 55 }); 56 57}); 58 59$(window).load(function() { 60 if(typeof $.fn.tile !== "undefined"){ 61 $('.member__favorite--item__detail').tile(4); 62 } 63});
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.