PageSourceSearch

https://www.rossignol-outlet.pl/skins/user/rwd_primary_19/js/gc__footer__sliders.js

js rossignol-outlet.pl collected 2026-09-30 15:30:07 UTC 19,715 bytes, 482 lines download raw bytes

1$('document').ready(() => {
2    function initColumnSliders() {
3        // Funkcja inicjalizująca slider
4        function initSlider($slider, options) {
5            if ($slider.length && !$slider.hasClass('owl-loaded')) {
6                $slider.owlCarousel(options);
7    
8                // Dodajemy niestandardową nawigację
9                var $container = $slider.closest('.box');
10                $container.find('.slider-nav-left').off('click').on('click', function() {
11                    $slider.trigger('prev.owl.carousel');
12                });
13                $container.find('.slider-nav-right').off('click').on('click', function() {
14                    $slider.trigger('next.owl.carousel');
15                });
16    
17                console.log('Slider zainicjalizowany:', $slider);
18            }
19        }
20    
21        // Ustawienia dla szerokiej kolumny (s-grid-9)
22        var $wideSlider = $('.s-grid-9 .box.gc__carousel .innerbox.owl-carousel.gc__product__carousel');
23        initSlider($wideSlider, {
24            loop: true,
25            autoplay: true,
26            autoplayHoverPause: true,
27            nav: true,
28            dots: false,
29            responsive: {
30                0: { items: 1 },
31                480: { items: 2 },
32                768: { items: 3 },
33                992: { items: 4 }
34            },
35            onInitialized: function(event) {
36                $(event.target).closest('.box').find('.slider-nav-left, .slider-nav-right').show();
37            }
38        });
39    
40        // Ustawienia dla pełnej szerokości (s-grid-12)
41        var $fullWidthSlider = $('.s-grid-12 .box.gc__carousel .innerbox.owl-carousel.gc__product__carousel');
42        initSlider($fullWidthSlider, {
43            loop: true,
44            autoplay: true,
45            autoplayHoverPause: true,
46            nav: true,
47            dots: false,
48            responsive: {
49                0: { items: 1 },
50                480: { items: 2 },
51                768: { items: 3 },
52                992: { items: 4 },
53                1200: { items: 5 }
54            },
55            onInitialized: function(event) {
56                $(event.target).closest('.box').find('.slider-nav-left, .slider-nav-right').show();
57            }
58        });
59
60        // Ustawienia dla wąskiej kolumny (s-grid-3)
61        var $narrowSlider = $('.gc__narrow__slider');
62        initSlider($narrowSlider, {
63            items: 1,
64            loop: true,
65            autoplay: true,
66            autoplayHoverPause: true,
67            nav: true,
68            dots: false,
69            onInitialized: function(event) {
70                $(event.target).closest('.box').find('.slider-nav-left, .slider-nav-right').show();
71            }
72        });
73    }
74    
75    // Czekamy chwilę przed inicjalizacją
76    setTimeout(function() {
77        initColumnSliders();
78    }, 600); // Opóźnienie 1 sekundy, możesz dostosować tę wartość
79
80    setTimeout(function () {
81        // Zmieniamy selektor, aby wykluczyć narrowSlider
82        $('.owl-carousel.gc__product__carousel:not(.gc__narrow__slider)').each(function GC__Run__Slider() {
83            var $thisSlider = $(this);
84            var gc__automove = false;
85
86            if ($thisSlider.hasClass('slider_automove')) {
87                gc__automove = true;
88            }
89
90            var gc__smaller = $thisSlider.closest('.f-grid-9').length ? 4 : 5;
91            var gc__smaller2 = $thisSlider.closest('.f-grid-9').length ? 3 : 4;
92
93            var gc__loop = $thisSlider.find('.owl-item').length > 5;
94
95            $thisSlider.owlCarousel({
96                lazyLoad: false,
97                loop: gc__loop,
98                margin: 10,
99                autoHeight: true,
100                responsiveClass: true,
101                responsive: {
102                    0: {
103                        items: 1,
104                        nav: true
105                    },
106                    380: {
107                        items: 2,
108                        nav: true
109                    },
110                    800: {
111                        items: gc__smaller2,
112                        nav: true
113                    },
114                    1200: {
115                        items: gc__smaller,
116                        nav: true,
117                    }
118                },
119                autoplay: gc__automove,
120            });
121        });
122
123
124
125        $('.owl-carousel.gc__main__slider.gc__1').each(function () {
126            if ($(this).hasClass('gc__auto__move')) {
127                var gc__auto__move = true;
128            }
129            let gc__nav = false;
130            if ($(this).hasClass('gc__new__nav')) {
131                gc__nav == true;
132            }
133            var owl = $(this).owlCarousel({
134                items: 1,
135                lazyLoad: false,
136                loop: true,
137                margin: 10,
138                autoHeight: false,
139                autoplay: gc__auto__move,
140                nav: gc__nav,
141            });
142
143            if (gc__auto__move == true) {
144                const firstNav = owl.find('.owl-dots button.active');
145                firstNav.removeClass('active');
146                setTimeout(function () {
147                    firstNav.addClass('active');
148                }, 0)
149            }
150        });
151
152        $('.owl-carousel.gc__main__slider.gc__0:not(.numbers):not
152(.none)').each(function () {
153            if ($(this).hasClass('gc__auto__move')) {
154                var gc__auto__move = true;
155            }
156            $(this).owlCarousel({
157                dots: false,
158                touchDrag: true,
159                mouseDrag: true,
160                autoHeight: false,
161                navText: [],
162                autoWidth: false,
163                autoHeight: false,
164                margin: 20,
165                responsive: {
166                    0: {
167                        items: 2,
168                        margin: 20,
169                        loop: false,
170                        nav: true,
171                        stagePadding: 0
172                    },
173                    450: {
174                        items: 3,
175                        loop: false,
176                        nav: false,
177                        stagePadding: 40
178                    },
179                    600: {
180                        items: 4,
181                        loop: false,
182                        nav: false,
183                        stagePadding: 40
184                    },
185                    768: {
186                        items: 5,
187                        loop: false,
188                        nav: false,
189                    },
190                    900: {
191                        items: 5,
192                        loop: false,
193                        nav: true
194                    },
195                    1200: {
196                        items: 6,
197                        loop: false,
198                        nav: true
199                    }
200                },
201                autoplay: gc__auto__move,
202                autoplayHoverPause: true
203            })
204        });
205
206
207        $('.owl-carousel.gc__main__slider.gc__0.none').each(function () {
208            if ($(this).hasClass('gc__auto__move')) {
209                var gc__auto__move = true;
210            }
211            $(this).owlCarousel({
212                dots: false,
213                touchDrag: true,
214                mouseDrag: true,
215                autoHeight: false,
216                navText: [],
217                autoWidth: false,
218                autoHeight: false,
219                margin: 20,
220                responsive: {
221                    0: {
222                        items: 2,
223                        margin: 20,
224                        loop: false,
225                        nav: true,
226                        stagePadding: 0
227                    },
228                    450: {
229                        items: 2,
230                        loop: false,
231                        nav: false,
232                        stagePadding: 40
233                    },
234                    600: {
235                        items: 2,
236                        loop: false,
237                        nav: false,
238                        stagePadding: 40
239                    },
240                    768: {
241                        items: 2,
242                        loop: false,
243                        nav: false,
244                    },
245                    900: {
246                        items: 3,
247                        loop: false,
248                        nav: true
249                    },
250                    1200: {
251                        items: 4,
252                        loop: false,
253                        nav: true
254                    }
255                },
256                autoplay: gc__auto__move,
257                autoplayHoverPause: true
258            })
259        });
260
261        $('.owl-carousel.gc__main__slider.gc__2').each(function () {
262            if ($(this).hasClass('gc__auto__move')) {
263                var gc__auto__move = true;
264            }
265            $(this).owlCarousel({
266                dots: false,
267                touchDrag: true,
268                mouseDrag: true,
269                autoHeight: false,
270                navText: [],
271                autoWidth: false,
272                autoHeight: false,
273                margin: 20,
274                loop: true,
275                responsive: {
276                    0: {
277                        items: 3,
278                        margin: 20,
279                        nav: false,
280                        stagePadding: 0
281                    },
282                    450: {
283                        items: 4,
284                        nav: false,
285                        stagePadding: 40
286                    },
287                    600: {
288                        items: 5,
289                        nav: false,
290                        stagePadding: 40
291                    },
292                    768: {
293                        items: 6,
294                        nav: false,
295                    },
296                    900: {
297                        items: 6,
298                        nav: false
299                    },
300                    1200: {
301                        items: 8,
302                        nav: false
303                    }
304                },
305                autoplay: gc__auto__move,
306                autoplayHoverPause: true
307            })
308        });
309
310        $('#gc__info_box').owlCarousel({
311            autoplay: true,
312            dots: false,
313            lazyLoad: false,
314            touchDrag: true,
315            mouseDrag: true,
316            autoHeight: true,
317            navText: [],
318            autoWidth: false,
319            autoHeight: false,
320            slideBy: 1,
321            loop: true,
322            items: 1,
323            margin: 0,
324            nav: false,
325            autoplayHoverPause:true
326        });
327        if (gc__blog__slider == 1) {
328        $('body.shop_index #box_articlelist .innerbox').addClass('owl-carousel').owlCarousel({
329            loop: true,
330            margin: 20,
331            nav: true,
332            dots: true,
333            responsiveClass: true,
334            responsive: {
335                0: {
336                    items: 1,
337                    nav: true
338                },
339                600: {
340                    items: 2,
341                    nav: true
342                },
343                1000: {
344                    items: 3,
345                    nav: true,
346                    loop: false
347                }
348            }
349        });
350    }
351
352        $("button[class*='owl']").attr('title', 'Dalej').attr('type', 'button');
353        $('img.search__loader').attr('alt', 'Loader');
354    }, 0);
355
356});
357
358let gc__shoper_template = { // Tłumaczenia dla "Szablon Shoper Modern 3.0™"
359    en: 'Shoper Modern 3.0™ Template',
360    en_US: 'Shoper Modern 3.0™ Template',
361    pl_PL: 'Szablon Shoper Modern 3.0™',
362    de_DE: 'Shoper Modern 3.0™ Vorlage',
363    cs_CZ: 'Shoper Modern 3.0™ Šablona'
364},
365    gc__from_growcommerce = { // Tłumaczenia dla "od GrowCommerce"
366        en: 'from GrowCommerce',
367        en_US: 'from GrowCommerce',
368        pl_PL: 'od GrowCommerce',
369        de_DE: 'von GrowCommerce',
370        cs_CZ: 'od GrowCommerce'
371    },
372    gc__shoper_templates = { // Tłumaczenia dla "Szablony Shoper | Autoryzowany Reseller Shoper GrowCommerce.pl | Dodatki na Shopera"
373        en: 'Shoper Templates | Authorized Reseller Shoper GrowCommerce.pl | Add-ons for Shoper',
374        en_US: 'Shoper Templates | Authorized Reseller Shoper GrowCommerce.pl | Add-ons for Shoper',
375        pl_PL: 'Szablony Shoper | Autoryzowany Reseller Shoper GrowCommerce.pl | Dodatki na Shopera',
376        de_DE: 'Shoper Vorlagen | Autorisierter Wiederverkäufer Shoper GrowCommerce.pl | Add-Ons für Shoper',
377        cs_CZ: 'Šablony Shoper | Autorizovaný prodejce Shoper GrowCommerce.pl | Doplňky pro Shoper'
378    };
379$(document).ready(function () {
380    setTimeout(function () {
381        if ($('div#shoper-foot').length > 0) {
382            if ($('span.growcommerce a[href="https://sklep.growcommerce.pl/"]').length > 0) {
383                $("span.growcommerce").appendTo("div#shoper-foot");
384            } else {
385                $('<span class="growcommerce"><a rel="dofollow" href="https://sklep.growcommerce.pl/" target="_blank" title="' + gc__shoper_template[Shop.lang.name] + '" class="popup" style="margin-left:15px">' + gc__shoper_template[Shop.lang.name] + '</a><a rel="dofollow" href="https://growcommerce.pl/" target="_blank" title="' + gc__shoper_templates[Shop.lang.name] + '" alt="' + gc__shoper_templates[Shop.lang.name] + '" class="popup">' + gc__from_growcommerce[Shop.lang.name] + '</a></span>').appendTo("div#shoper-foot");
386            }
387        }
388    }, 300);
389});
390
391
392
393/*! lozad.js - v1.16.0 - 2020-09-06
394* https://github.com/ApoorvSaxena/lozad.js
395* Copyright (c) 2020 Apoorv Saxena; Licensed MIT */
396!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.lozad = e() }(this, function () {
397    "use strict";
398/**
399   * Detect IE browser
400   * @const {boolean}
401   * @private
402   */var g = "undefined" != typeof document && document.documentMode, f = {
403        rootMargin: "0px", threshold: 0, load: function (t) {
404            if ("picture" === t.nodeName.toLowerCase()) { var e = t.querySelector("img"), r = !1; null === e && (e = document.createElement("img"), r = !0), g && t.getAttribute("data-iesrc") && (e.src = t.getAttribute("data-iesrc")), t.getAttribute("data-alt") && (e.alt = t.getAttribute("data-alt")), r && t.append(e) } if ("video" === t.nodeName.toLowerCase() && !t.getAttribute("data-src") && t.children) { for (var a = t.children, o = void 0, i = 0; i <= a.length - 1; i++)(o = a[i].getAttribute("data-src")) && (a[i].src = o); t.load() } t.getAttribute("data-poster") && (t.poster = t.getAttribute("data-poster")), t.getAttribute("data-src") && (t.src = t.getAttribute("data-src")), t.getAttribute("data-srcset") && t.setAttribute("srcset", t.getAttribute("data-srcset")); var n = ","; if (t.getAttribute("data-background-delimiter") && (n = t.getAttribute("data-background-delimiter")), t.getAttribute("data-background-image")) t.style.backgroundImage = "url('" + t.getAttribute("data-background-image").split(n).join("'),url('") + "')"; else if (t.getAttribute("data-background-image-set")) {
405                var d = t.getAttribute("data-background-image-set").split(n), u = d[0].substr(0, d[0].indexOf(" ")) || d[0];// Substring before ... 1x
406                u = -1 === u.indexOf("url(") ? "url(" + u + ")" : u, 1 === d.length ? t.style.backgroundImage = u : t.setAttribute("style", (t.getAttribute("style") || "") + "background-image: " + u + "; background-image: -webkit-image-set(" + d + "); background-image: image-set(" + d + ")")
407            } t.getAttribute("data-toggle-class") && t.classList.toggle(t.getAttribute("data-toggle-class"))
408        }, loaded: function () { }
409    }; function A(t) { t.setAttribute("data-loaded", !0) } var m = function (t) { return "true" === t.getAttribute("data-loaded") }, v = function (t) { var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : document; return t instanceof Element ? [t] : t instanceof NodeList ? t : e.querySelectorAll(t) }; return function () { var r, a, o = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : ".lozad", t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, e = Object.assign({}, f, t), i = e.root, n = e.rootMargin, d = e.threshold, u = e.load, g = e.loaded, s = void 0; "undefined" != typeof window && window.IntersectionObserver && (s = new IntersectionObserver((r = u, a = g, function (t, e) { t.forEach(function (t) { (0 < t.intersectionRatio || t.isIntersecting) && (e.unobserve(t.target), m(t.target) || (r(t.target), A(t.target), a(t.target))) }) }), { root: i, rootMargin: n, threshold: d })); for (var c, l = v(o, i), b = 0; b < l.length; b++)(c = l[b]).getAttribute("data-placeholder-background") && (c.style.background = c.getAttribute("data-placeholder-background")); return { observe: function () { for (var t = v(o, i), e = 0; e < t.length; e++)m(t[e]) || (s ? s.observe(t[e]) : (u(t[e]), A(t[e]), g(t[e]))) }, triggerLoad: function (t) { m(t) || (u(t), A(t), g(t)) }, observer: s } }
410});
411
412$(document).on("ready", function () {
413    if (!('IntersectionObserver' in window) ||
414        !('IntersectionObserverEntry' in window) ||
415        !('intersectionRatio' in window.IntersectionObserverEntry.prototype)) {
416        $("img.lozad").each(function () {
417            $(this).attr("src", $(this).attr("data-src"));
418        });
419    } else {
420        var observer = lozad('.lozad', {
421            threshold: 0.1 // ratio of element convergence
422        });
423        observer.observe();
424    }
425});
426
427$(window).on("pageshow", function (event) {
428    if (event.originalEvent.persisted) {
429        console.log('page loaded from cache');
430    }
431
432    function handleImages() {
433        var imgs = $(document).find('img.clicked');
434        if (imgs.length) {
435            $(document).find('img.clicked').each(function () {
436                $(this).removeClass('fadeOut').attr('data-hovered', 'false').attr('src', $(this).attr('data-src'))
437            });
438        }
439    }
440
441    $('.replace-img-list img').on('click', function () {
442        $(this).addClass('clicked');
443    });
444    $(window).on("beforeunload pagehide", function () {
445        setTimeout(function () {
446            handleImages();
447        }, 2000);
448    });
449    $(window).on("pageshow popstate", function (event) {
450        if (event.originalEvent.persisted) {
451            setTimeout(function () {
452                handleImages();
453            }, 1);
454        }
455    });
456
457});
458
459if(navigator.userAgent.indexOf('Speed Insights') === -1) {
460let gc__black__background = [
461    "font-size: 16px",
462    "font-weight:600",
463    "padding:8px 12px",
464    "background-color: black",
465    "color: white",
466].join(" ;");
467
468let gc__white__background = [
469    "font-size: 16px",
470    "background-color: white",
471    "color: black",
472    "padding:8px 12px",
473].join(" ;");
474
475console.log(
476    "%cOglądasz sklep oparty o Modern 3.0 od GrowCommerce. %cCoś kodujesz? Skontaktuj się z nami i zapytaj o program resellerski. Zacznij sprzedawać nasz szablon! %[email protected]",
477    gc__black__background,
478    gc__white__background,
479    gc__white__background,
480);
481}
482

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.