PageSourceSearch

https://www.dadway-onlineshop.com/js/usr/recommend_cart.js

js dadway-onlineshop.com collected 2026-10-03 19:19:48 UTC 730 bytes, 16 lines download raw bytes

1jQuery(function() {
2	jQuery('.page-cart #Lightning_R').on('DOMSubtreeModified propertychange', function(){
3		// 価格
4		jQuery('.page-cart .block-cart-l_recommend .l_recommend-item .l_recommend-goods-price.onsale').each(function() {
5			if(jQuery(this).find('.sale-per-icon').length != 0) { return; }
6			var default_price = parseInt(jQuery(this).attr('data-price'));
7			var sales_price = parseInt(jQuery(this).attr('data-sale-price'));
8			if(default_price != 0 && sales_price != 0) {
9				var OffPercent = parseInt((100 - parseInt((sales_price / default_price) * 100)), 10);
10				if(OffPercent != 0) {
11					jQuery(this).append('<span class="sale-per-icon">' + OffPercent + '%OFF</span>');
12				}
13			}
14		});
15	});
16});

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.