PageSourceSearch

https://www.buzzsneakers.sk/nb-public/themes/nbshop5_v5_8/blocks/a…/content/script.js?ver=1008_7.1

js buzzsneakers.sk collected 2026-10-06 20:00:48 UTC 3,295 bytes, 79 lines download raw bytes

1function loadArticleListsProducts(thisElement,int) {
2
3    thisElement.each(function(){
4
5        var listUname = thisElement.data('listid');
6        var idajaxListe = thisElement.attr('id');
7        var nuberProducts = thisElement.data('listproductnumber');
8        var template = thisElement.data('template');
9        if(nuberProducts === '' || nuberProducts < 1){
10            nuberProducts = 6;
11        }
12
13        $.ajax({
14            type: "POST",
15            async: true,
16            url: nb_active_page_url,
17            data: 'nbAjax=1&ajax=yes&task=load_article_lists_products&listUname='+listUname+'&template='+template,
18            contentType: "application/x-www-form-urlencoded;charset=UTF-8",
19            dataType: 'json',
20            success: function(ret) {
21                if(ret.flag){
22                    thisElement.html(ret.html);
23                    //slider se inicijalizuje u theme.script na event ispod
24                    nbshopJS.CustomEventTrigger('articlelistsproducts_load');
25                }
26                //nbshopJS.handleProductSizeSelector('.last-viewed-slider');
27                app.handleBuyProductOnListing(''+thisElement.selector+'');
28                app.handleFavoriteProduct($('#'+idajaxListe+' .favorite'));
29                if($('#'+idajaxListe).find('.product-item .showProductDetailsQuickViewOnModal').length > 0){
30                    new app.handleProductDetailsQuickViewOnModal($('#'+idajaxListe).find('.product-item .showProductDetailsQuickViewOnModal'));
31                }
32                let nuberitems = $('.product-slider-wrapper-ajax-'+listUname).data('itemsshow');
33                if(!nuberitems){
34                    nuberitems = 4;
35                }
36                let itemProductSliderElementId = $('#'+idajaxListe+' .slider-init');
37                let itemProductSliderOptions   = {slidesToShow: nuberitems,
38                    responsive: [
39                        {breakpoint: 1024, settings: { slidesToShow: 3}},
40                        {breakpoint: 768,  settings: { slidesToShow: 2.5}},
41                        {breakpoint: 480,  settings: { slidesToShow: 1.5}}
42                    ]};
43                    nbshopJS.initSlider(itemProductSliderElementId, itemProductSliderOptions);
44
45                    if(int){
46                        setTimeout(function(){
47                            nbshopJS.changeProductQuantity();
48                            nbshopJS.handleProductSizeSelector();
49                        },1000)
50                    }
51                if(false && $('.product-slider .product-item .showProductQueryViewOnModal').length > 0){
52                    new app.handleProductQueryViewOnModal($('.product-slider .product-item .showProductQueryViewOnModal'));
53                }
54
55            }
56        });
57    });
58}
59
60
61window.addEventListener("load", function(){
62    let listwrapper = $('.ajax-product-list-in-text');
63let test=true;
64    if(listwrapper.length > 0){
65        let listwrapperid;
66        let conter = 1;
67        let int = false;
68        listwrapper.each(function(){
69            if(conter == listwrapper.length){
70                int = true;
71            }
72            let listwrapperid = $(this).attr('id');
73            loadArticleListsProducts($('#'+listwrapperid),int);
74            conter++;
75        });
76
77
78    }
79});

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.