PageSourceSearch

https://www.goldwin.co.jp/adss/js/adss/promotion.js?1.1

js goldwin.co.jp collected 2026-09-24 08:31:19 UTC 898 bytes, 33 lines download raw bytes

1var ADSS = ADSS || {};
2ADSS.Promotion = ADSS.Promotion || {};
3(function() {
4	ADSS.Promotion.cookieAttributeName = {
5		recentlyViewedItems: 'ADSSPROMORVI'
6	};
7	ADSS.Promotion.getRecentlyViewedItems = function() {
8		var vals = ADSS.Util.getAppCookie(ADSS.Promotion.cookieAttributeName.recentlyViewedItems);
9		if (vals) {
10			vals = vals.split('|');
11		}
12		if (!vals) {
13			vals = [];
14		}
15		return vals;
16	}
17	ADSS.Promotion.setRecentlyViewedItem = function(solrId, limit) {
18		limit = limit || 10;
19		var vals = ADSS.Promotion.getRecentlyViewedItems();
20		vals.unshift(solrId);
21		var loopCount = vals.length;
22		if (loopCount > limit) {
23			loopCount = limit;
24		}
25		var newVals = [];
26		for (var i = 0; i < loopCount; i++) {
27			if (i === 0 || solrId !== vals[i]) {
28				newVals.push(vals[i]);
29			}
30		}
31		ADSS.Util.setAppCookie(ADSS.Promotion.cookieAttributeName.recentlyViewedItems, newVals.join('|'));
32	}
33})();

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.