PageSourceSearch

https://www.nissen.co.jp/res/p/shared/member/favorite/favorite.js?202609221606

js nissen.co.jp collected 2026-10-01 12:10:17 UTC 2,236 bytes, 63 lines download raw bytes

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.