PageSourceSearch

https://jmc.tn/wp-content/themes/solala/framework-customizations/e…/autoload/static/js/teams.js?ver=1.0.0

js jmc.tn collected 2026-10-02 22:53:10 UTC 11,931 bytes, 307 lines download raw bytes

1jQuery(function($) {
2    "use strict";
3
4    $.slz_team_carousel_sc = function() {
5        $('.sc_team_carousel .slz-carousel').each(function() {
6            var carousel_item = parseInt($(this).attr('data-slidestoshow')),
7                dots = $(this).attr('data-dotshow'),
8                arrow = $(this).attr('data-arrowshow'),
9                speed = $(this).attr('data-speed'),
10                autoplay = $(this).attr('data-autoplay'),
11                infinite = $(this).attr('data-infinite'),
12                animation = $(this).attr('data-animation');
13
14            if( speed == 0 || speed == '' || speed == undefined){
15                speed = 600;
16            }
17            if( autoplay == '1' ){
18                autoplay = true;
19            } else {
20                autoplay = false;
21            }
22            if( infinite == '1' ){
23                infinite = true;
24            } else {
25                infinite = false;
26            }
27            if ( dots == '1' ) {
28                dots = true;
29            }else{
30                dots = false;
31            }
32            if ( arrow == '1' ) {
33                arrow = true;
34            }else{
35                arrow = false;
36            }
37            if ( animation == '1' ) {
38                animation = true;
39            }else{
40                animation = false;
41            }
42
43            if (carousel_item == 1) {
44                $(this).slick({
45                    infinite: infinite,
46                    slidesToShow: 1,
47                    slidesToScroll: 1,
48                    speed: speed,
49                    dots: dots,
50                    arrows: arrow,
51                    autoplay: autoplay,
52                    fade: animation,
53                    useCSS:true,
54                    adaptiveHeight: true,
55                    centerMode:true,
56                    centerPadding:'0px',
57                    useTransform:true,
58                    appendArrows: $(this).parents('.slz-carousel-wrapper'),
59                    prevArrow: '<button class="btn btn-prev"><i class="icons fa"></i><span class="text">Previous</span></button>',
60                    nextArrow: '<button class="btn btn-next"><span class="text">Next</span> <i class="icons fa"></i></button>',
61                    responsive: [
62                        {
63                            breakpoint: 769,
64                            settings: {
65                                arrows: false,
66                                dots: true
67                            }
68                        }
69                    ]
70                });
71            }
72            else if (carousel_item == 2) {
73                $(this).slick({
74                    infinite: infinite,
75                    slidesToShow: 2,
76                    slidesToScroll: 1,
77                    speed: speed,
78                    dots: dots,
79                    arrows: arrow,
80                    autoplay: autoplay,
81                    fade: animation,
82                    useCSS:true,
83                    centerMode:true,
84                    centerPadding:'0px',
85                    useTransform:true,
86                    adaptiveHeight: true,
87                    appendArrows: $(this).parents('.slz-carousel-wrapper'),
88                    prevArrow: '<button class="btn btn-prev"><i class="icons fa"></i><span class="text">Previous</span></button>',
89                    nextArrow: '<button class="btn btn-next"><span class="text">Next</span> <i class="icons fa"></i></button>',
90                    responsive: [
91                        {
92                            breakpoint: 769,
93                            settings: {
94                                arrows: false,
95                                dots: true,
96                                slidesToShow: 1,
97                                slidesToScroll: 1,
98                            }
99                        }, {
100                            breakpoint: 415,
101                            settings: {
102                                slidesToShow: 1,
103                                slidesToScroll: 1,
104                                arrows: false,
105                                dots: true
106                            }
107                        }
108                    ]
109                });
110            }
111            else if (carousel_item == 3) {
112                $(this).slick({
113                    infinite: infinite,
114                    slidesToShow: 3,
115                    slidesToScroll: 1,
116                    speed: speed,
117                    dots: dots,
118                    arrows: arrow,
119                    autoplay: autoplay,
120                    fade: animation,
121                    centerMode:true,
122                    centerPadding:'0px',
123                    useCSS:true,
124                    useTransform:true,
125                    adaptiveHeight: true,
126                    appendArrows: $(this).parents('.slz-carousel-wrapper'),
127                    prevArrow: '<button class="btn btn-prev"><i class="icons fa"></i><span class="text">Previous</span></button>',
128                    nextArrow: '<button class="btn btn-next"><span class="text">Next</span> <i class="icons fa"></i></button>',
129                    responsive: [
130                        {
131                            breakpoint: 769,
132                            settings: {
133                                slidesToShow: 1,
134                                slidesToScroll: 1,
135                                arrows: false,
136                                dots: true
137                            }
138                        }, {
139                            breakpoint: 415,
140                            settings: {
141                                slidesToShow: 1,
142                                slidesToScroll: 1,
143                                arrows: false,
144                                dots: true
145                            }
146                        }
147                    ]
148                });
149            }
150            else if (carousel_item >= 4) {
151                $(this).slick({
152                    infinite: infinite,
153                    slidesToShow: carousel_item,
154                    slidesToScroll: 1,
155                    speed: speed,
156                    dots: dots,
157                    arrows: arrow,
158                    autoplay: autoplay,
159                    fade: animation,
160                    centerMode:true,
161                    centerPadding:'0px',
162                    useCSS:true,
163                    useTransform:true,
164                    adaptiveHeight: true,
165                    appendArrows: $(this).parents('.slz-carousel-wrapper'),
166                    prevArrow: '<button class="btn btn-prev"><i class="icons fa"></i><span class="text">Previous</span></button>',
167                    nextArrow: '<button class="btn btn-next"><span class="text">Next</span> <i class="icons fa"></i></button>',
168                    responsive: [
169                        {
170                            breakpoint: 1025,
171                            settings: {
172                                slidesToShow: 3,
173                                slidesToScroll: 1,
174                            }
175                        }, {
176                            breakpoint: 769,
177                            settings: {
178                                slidesToShow: 1,
179                                slidesToScroll: 1,
180                                arrows: false,
181                                dots: true
182                            }
183                        }, {
184                            breakpoint: 415,
185                            settings: {
186                                slidesToShow: 1,
187                                slidesToScroll: 1,
188                                arrows: false,
189                                dots: true
190                            }
191                        }
192                    ]
193                });
194            }
195        });
196    };
197
198    $.slz_team_carousel_sc_layout3 = function(){
199        if ( $('.sc_team_carousel .slz-team-wrapper-03').length ) {
200            $('.sc_team_carousel.layout-3').each(function() {
201                var item = $(this).attr('data-item');
202                var block = '.' + item + ' ';
203                $(block + ".slz-team-slider-03").slick({
204                    infinite: true,
205                    slidesToShow: 1,
206                    slidesToScroll: 1,
207                    speed: 600,
208                    dots: false,
209                    arrows: false,
210                    adaptiveHeight:true,
211                    asNavFor: block + '.slz-team-nav-03',
212                    fade:true,
213                    responsive: [
214                    {
215                        breakpoint: 1028,
216                        settings: {
217                            slidesToShow: 1,
218                            slidesToScroll: 1,
219                        }
220                    },
221                    {
222                        breakpoint: 800,
223                        settings: {
224                            slidesToShow: 1,
225                            slidesToScroll: 1,
226                             dots: true,
227                        }
228                    }]
229                });
230                $(block + ".slz-team-nav-03").slick({
231                    infinite: true,
232                    slidesToShow: 5,
233                    slidesToScroll: 1,
234                    speed: 600,
235                    dots: false,
236                    arrows:true,
237                    focusOnSelect:true,
238                    centerPadding: '0px',
239                    asNavFor: block + '.slz-team-slider-03',
240                    prevArrow: '<span class="btn btn-prev"><i class="fa fa-angle-left"></i></span>',
241                    nextArrow: '<span class="btn btn-next"><i class="fa fa-angle-right"></i></span>',
242                    responsive: [
243                    {
244                        breakpoint: 1025,
245                        settings: {
246                            slidesToShow: 4,
247                        }
248                    },
249                    {
250                        breakpoint: 768,
251                        settings: {
252                            slidesToShow: 3,
253                             arrows:false
254                        }
255                    },
256                    {
257                        breakpoint: 760,
258                        settings: {
259                            slidesToShow: 1,
260                            arrows:false
261                        }
262                    }]
263                });
264
265            });
266        }
267    };
268    
269    $.slz_team_carousel_sc_layout6 = function () {
270    	if( $('.sc_team_carousel.layout-6 .slz-carousel-img').length ) {
271    		$('.sc_team_carousel.layout-6').each(function() {
272                var item = $(this).attr('data-item');
273                var block = '.' + item + ' ';
274
275                $( block + " .slz-carousel-wrapper-02 .slz-carousel-info").slick({
276                    infinite: true,
277                    slidesToShow: 1,
278                    slidesToScroll: 1,
279                    autoplay: true,
280                    autoplaySpeed: 2000,
281                    speed: 600, 
282                    dots: true,
283                    arrows: false,
284                    fade: true,
285                    asNavFor: block + " .slz-carousel-wrapper-02 .slz-carousel-img"
286                });
287                $( block + " .slz-carousel-wrapper-02 .slz-carousel-img").slick({
288                    infinite: true,
289                    slidesToShow: 1,
290                    slidesToScroll: 1,
291                    speed: 600, 
292                    dots: false,
293                    arrows: false,
294                    fade: true,
295                    asNavFor: block + " .slz-carousel-wrapper-02 .slz-carousel-info"
296                });
297    		});
298    	}
299    }
300
301    $(document).ready(function() {
302        jQuery.slz_team_carousel_sc();
303        jQuery.slz_team_carousel_sc_layout3();
304        jQuery.slz_team_carousel_sc_layout6();
305    });
306    
307});

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.