PageSourceSearch

https://www.dinesen.com/scripts/uCommerce.category.js

js dinesen.com collected 2026-09-24 11:20:47 UTC 1,969 bytes, 43 lines download raw bytes

1(function () {
2    var categoryId = $('#category-id').val();
3    var catalogId = $('#catalog-id').val();
4    var i = 0;
5    var prices = document.querySelectorAll('[data-productsku]');
6
7    for (i ; i < prices.length; i++) {
8        var currentPriceElement = prices[i];
9        var currentSku = currentPriceElement.dataset.productsku;
10        var currentJQelement = $(prices[i]);
11
12        currentJQelement.prepend('<img src="/img/loader.gif" class="product-spinner">');
13
14        $.uCommerce.getProductInformation({
15            CatalogId: parseInt(catalogId),
16            CategoryId: parseInt(categoryId),
17            Sku: currentSku
18        },
19            function (data) {
20                if (data.PriceCalculation.IsDiscounted) {
21                    document.querySelector("p[data-productsku='" + data.Sku + "']").innerHTML = data.PriceCalculation.ListPrice.Amount.DisplayValue;
22                    $('#' + data.Sku).find('.item-price').addClass('strike-through-price');
23                    $('<p class="item-discounted-price">' + data.PriceCalculation.YourPrice.Amount.DisplayValue + '</p>').insertAfter($('#' + data.Sku).find('.item-price'));
24                } else {
25                    document.querySelector("p[data-productsku='" + data.Sku + "']").innerHTML = data.PriceCalculation.YourPrice.Amount.DisplayValue;
26                }
27
28                var product = $('#' + data.Sku);
29
30                var productimage = product.find('.product-image');
31                var productName = product.find('.item-name').find('a');
32                var productButton = product.find('.view-details').find('a');
33
34                productimage.click(function () {
35                    window.location = data.NiceUrl;
36                });
37
38                productimage.css('cursor', 'pointer');
39                productName.attr('href', data.NiceUrl);
40                productButton.attr('href', data.NiceUrl);
41            });
42    }
43})()

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.