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.