PageSourceSearch

https://www.zamnesia.com/themes/responsive/js/products-comparison.js?_=560f8f09da050aa5b6497d2740097f16

js zamnesia.com collected 2026-09-24 18:32:00 UTC 2,082 bytes, 71 lines download raw bytes

1$(document).ready(function(){
2
3	$('.product_list.listing .ajax_block_product .right_block .combinations-block .ipa_id').change();
4	$('.comparison_product_infos .combinations-block .ipa_id').change(function() {
5		var $oldPrice = $(this).closest('.comparison_product_infos').find('.product_prices .discount');
6		if ($(this).find('option:selected').data('original-price')) {
7			$oldPrice.text($(this).find('option:selected').data('original-price'));
8		}
9		if ($(this).find('option:selected').data('price')) {
10			$(this).closest('.comparison_product_infos').find('.product_prices .price').text($(this).find('option:selected').data('price'));
11		}
12		var priceWithoutReduc = $(this).find('option:selected').data('price-without-reduc');
13		var priceFinal = $(this).find('option:selected').data('price-final');
14		if (priceWithoutReduc) {
15			if (priceWithoutReduc - priceFinal > 0.01) {
16				$oldPrice.show();
17			} else {
18				$oldPrice.hide();
19			}
20		}
21	});
22
23	$('a.cmp_remove').click(function(){
24		var idProduct = $(this).data('id-product').replace('ajax_id_product_', '');
25		$.ajax({
26			url: baseDir + 'products-comparison.php?ajax=1&action=remove&id_product=' + idProduct,
27			async: false,
28			success: function(){
29				return true;
30			}
31		});
32	});
33
34	$(document).on('click', 'input:checkbox.comparator', function(){
35	
36		var idProduct = $(this).attr('value').replace('comparator_item_', '');
37		var checkbox = $(this);
38
39		if(checkbox.is(':checked'))
40		{
41			$.ajax({
42				url: baseDir + 'products-comparison.php?ajax=1&action=add&id_product=' + idProduct,
43				async: true,
44				success: function(data){
45					if (data == '0')
46					{
47						checkbox.attr('checked', false);
48						alert(max_item);
49					}
50				},
51				error: function(){
52					checkbox.attr('checked', false);
53				}
54			});	
55		}
56		else
57		{
58			$.ajax({
59				url: baseDir + 'products-comparison.php?ajax=1&action=remove&id_product=' + idProduct,
60				async: true,
61				success: function(data){
62					if (data == '0')
63						checkbox.attr('checked', true);
64				},
65				error: function(){
66					checkbox.attr('checked', true);
67				}
68			});
69		}
70	});
71});

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.