PageSourceSearch

https://www.postphilately.lu/Content/js/listing-products.js

js postphilately.lu collected 2026-10-02 04:23:23 UTC 5,239 bytes, 183 lines download raw bytes

1function slickTimbres() {
2    var itemActive=$(".listTimbres").find(".item.active").index()  
3    var nbItem = $('.listTimbres .item').length
4    if(nbItem<10){
5        setTimeout(function(){
6            $(".listTimbres").length && $(".listTimbres").slick({
7                slidesToShow: nbItem, 
8                arrows: true,  
9                responsive: [ {
10                    breakpoint: 1500,
11                    settings: {
12                        slidesToShow: 7,
13                        slidesToScroll: 1,
14                        draggable: true,
15                        dots: false
16                    }
17                }, {
18                    breakpoint: 1200,
19                    settings: {
20                        slidesToShow: 5,
21                        slidesToScroll: 1,
22                        draggable: true,
23                        dots: false
24                    }
25                }, {
26                    breakpoint: 900,
27                    settings: {
28                        slidesToShow: 4,
29                        slidesToScroll: 1,
30                        draggable: true,
31                        dots: false
32                    }
33                }, {
34                    breakpoint: 767,
35                    settings: {
36                        slidesToShow: 3,
37                        slidesToScroll: 1,
38                        draggable: true,
39                        dots: false
40                    }
41                }]
42            })    
43        },100)
44    }else{
45        setTimeout(function(){
46            $(".listTimbres").length && $(".listTimbres").slick({
47                slidesToShow: 9, 
48                arrows: true,  
49                initialSlide : itemActive,
50                centerMode:true,
51                infinite:true,
52                responsive: [ {
53                    breakpoint: 1500,
54                    settings: {
55                        slidesToShow: 7,
56                        slidesToScroll: 1,
57                        draggable: true,
58                        dots: false
59                    }
60                }, {
61                    breakpoint: 1200,
62                    settings: {
63                        slidesToShow: 5,
64                        slidesToScroll: 1,
65                        draggable: true,
66                        dots: false
67                    }
68                }, {
69                    breakpoint: 900,
70                    settings: {
71                        slidesToShow: 4,
72                        slidesToScroll: 1,
73                        draggable: true,
74                        dots: false
75                    }
76                }, {
77                    breakpoint: 767,
78                    settings: {
79                        slidesToShow: 3,
80                        slidesToScroll: 1,
81                        draggable: true,
82                        dots: false
83                    }
84                }]
85            })    
86        },100)
87    }
88    //listProductFilterShowMore();
89}
90
91function listProductFilterShowMore() {
92    $('.show-more').click(function () {
93        $(this).parent().find('.listItems').toggleClass('show');
94        if ($(this).text() == $("#showMoreFilterText").val()) {
95            $(this).text($("#reduceFilterText").val());
96        } else {
97            $(this).text($("#showMoreFilterText").val());
98        }
99    });
100}
101
102function triProduct() {
103    $('.btn-filtre-md .trier a').click(function () {
104        $('.trier-mobil').addClass('active');
105
106    });
107    $('.pops .close').click(function () {
108        $('.trier-mobil').removeClass('active');
109        $("#isMobile").val("1");
110        productTypeObj.loadPageMobile(true);
111    });
112}
113function filtreProduct() {
114    $('.btn-filtre-md .filtrer a').click(function () {
115		$('.filter-mobil').addClass('active');
116		//if (productTypeObj.countFilterMobile() > 0) {
117		FilterDynamic();
118		//}
119    });
120    $('.pops .close').click(function () {
121        $('.filter-mobil').removeClass('active');
122        if (productTypeObj.countFilterMobile() > 0) {
123            $("#isMobile").val("1");
124            $("#querySearch").val($("#querySearchMobile").val());
125            productTypeObj.loadPageMobile(true);
126        }
127	});
128
129	
130
131}
132function margBottomFilter() {
133    if ($('ul').hasClass('btn-filtre-md')) {
134        var e = $('.btn-filtre-md').height();
135        $("body").css({
136            paddingBottom: e + "px"
137        }
138        )
139    };
140}
141
142$(document).ready(function () {
143    slickTimbres();
144    $(".select").fSelect({
145        searchText: $("#searchSelectLabel").val(),
146        noResultsText: $("#searchEmptyText").val(),
147        showSearch: false,
148        optionFormatter: true
149	})
150
151
152    //triProduct();
153
154	//filtreProduct();
155
156	
157
158    var w = $(window).width()
159    if (w < 768) {
160        margBottomFilter()
161    }
162    else {
163        $("body").css({
164                paddingBottom: 0
165            }
166        )
167	}
168
169});
170
171
172$(window).resize(function () {
173    var w = $(window).width()
174    if (w < 768) {
175        margBottomFilter()
176    }
177    else {
178        $("body").css({
179            paddingBottom: 0
180        }
181        )
182    }
183});

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.