PageSourceSearch

https://www.matelpro.com/themes/matelpro/js/modules/kiwikwishlist/views/js/front/init_wishlist_count.js

js matelpro.com collected 2026-10-06 21:50:44 UTC 771 bytes, 19 lines download raw bytes

1$(document).ready(function () {
2
3    if(wishlist_link_ajax != undefined){
4        var url = wishlist_link_ajax;
5    }else {
6        var url = 'https://www.matelpro.com/module/kiwikwishlist/ajax';
7    }
8
9    ajax('load-informations', {url: url}, 'GET', function (response) {
10        $.each(response.parameters.products, function (index, product) {
11            var $button = $(document).find('.add-to-wishlist[data-product="' + product.id_product + '"][data-product-attribute="' + product.id_product_attribute + '"]');
12            console.log($button, product.id_product, product.id_product_attribute);
13            if ($button.length) {
14                $button.find('span').removeClass('not-added').addClass('added');
15            }
16        });
17    })
18
19});

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.