PageSourceSearch

https://desdelacatrera.ar/wp-content/themes/starter-gazette/js/script.js?ver=7.1.3

js desdelacatrera.ar collected 2026-10-08 12:12:00 UTC 10,642 bytes, 307 lines download raw bytes

1window.addEventListener("load", function () {
2    jQuery(document).ready(function ($) {
3        "use strict";
4        $("body").addClass("preloader-disabled");
5        var myCursor = $('.theme-custom-cursor');
6        if (myCursor.length) {
7            if ($('body')) {
8                const e = document.querySelector('.theme-cursor-secondary'),
9                    t = document.querySelector('.theme-cursor-primary');
10                let n, i = 0,
11                    o = !1;
12                $(window).on("mousemove", function (s) {
13                    o || (t.style.transform = "translate(" + s.clientX + "px, " + s.clientY + "px)"),
14                        e.style.transform = "translate(" + s.clientX + "px, " + s.clientY + "px)",
15                        n = s.clientY, i = s.clientX;
16                });
17                $('body').on("mouseenter", "a, button, input[type=\"submit\"], .slick-arrow, .cursor-pointer", function () {
18                    e.classList.add('cursor-hover');
19                    t.classList.add('cursor-hover');
20                });
21                $('body').on("mouseleave", "a, button, input[type=\"submit\"], .slick-arrow, .cursor-pointer", function () {
22                    if (!$(this).is("a") || !$(this).closest(".cursor-pointer").length) {
23                        e.classList.remove('cursor-hover');
24                        t.classList.remove('cursor-hover');
25                    }
26                });
27                $('body').on("mouseenter", "img", function () {
28                    if ($(this).closest("a").length) {
29                        $(e).find("path").css("fill", "#fff");
30                    }
31                });
32                $('body').on("mouseleave", "img", function () {
33                    if ($(this).closest("a").length) {
34                        $(e).find("path").css("fill", "");
35                    }
36                });
37                e.style.visibility = "visible";
38                t.style.visibility = "visible";
39            }
40        }
41    });
42});
43
44
45jQuery(document).ready(function ($) {
46    "use strict";
47
48    var rtled = false;
49    if ($('body').hasClass('rtl')) {
50        rtled = true;
51    }
52
53    $(function () {
54        $('#mainslider').each(function () {
55            $(this).slick({
56                slidesToShow: 4,
57                slidesToScroll: 1,
58                autoplay: true,
59                autoplaySpeed: 12000,
60                infinite: true,
61                nextArrow: '<i class="slick-nav-arrow slick-slide-next arrow_carrot-right"></i>',
62                prevArrow: '<i class="slick-nav-arrow slick-slide-prev arrow_carrot-left"></i>',
63                responsive: [
64                    {
65                        breakpoint: 1600,
66                        settings: {
67                            slidesToShow: 4
68                        }
69                    },
70                    {
71                        breakpoint: 1400,
72                        settings: {
73                            slidesToShow: 3
74                        }
75                    },
76                    {
77                        breakpoint: 1199,
78                        settings: {
79                            slidesToShow: 2
80                        }
81                    },
82                    {
83                        breakpoint: 480,
84                        settings: {
85                            slidesToShow: 1
86                        }
87                    }
88                ]
89            })
90                .on('setPosition', function (event, slick) {
91                    slick.$slides.css('height', slick.$slideTrack.height() + 'px');
92                });
93        });
94
95        $('.carousel-slider').each(function () {
96            $(this).slick({
97                slidesToShow: 4,
98                slidesToScroll: 1,
99                autoplay: true,
100                autoplaySpeed: 12000,
101                infinite: true,
102                nextArrow: '<i class="slick-nav-arrow slick-slide-next arrow_carrot-right"></i>',
103                prevArrow: '<i class="slick-nav-arrow slick-slide-prev arrow_carrot-left"></i>',
104                responsive: [
105                    {
106                        breakpoint: 1600,
107                        settings: {
108                            slidesToShow: 4
109                        }
110                    },
111                    {
112                        breakpoint: 1400,
113                        settings: {
114                            slidesToShow: 3
115                        }
116                    },
117                    {
118                        breakpoint: 1199,
119                        settings: {
120                            slidesToShow: 2
121                        }
122                    },
123                    {
124                        breakpoint: 480,
125                        settings: {
126                            slidesToShow: 1
127                        }
128                    }
129                ]
130            })
131                .on('setPosition', function (event, slick) {
132                    slick.$slides.css('height', slick.$slideTrack.height() + 'px');
133                });
134        });
135
136        $('.popular-slider').each(function () {
137            $(this).slick({
138                slidesToShow: 4,
139                slidesToScroll: 1,
140                autoplay: true,
141                autoplaySpeed: 12000,
142                infinite: true,
143                nextArrow: '<i class="slick-nav-arrow slick-slide-next arrow_carrot-right"></i>',
144                prevArrow: '<i class="slick-nav-arrow slick-slide-prev arrow_carrot-left"></i>',
145                responsive: [
146                    {
147                        breakpoint: 1600,
148                        settings: {
149                            slidesToShow: 4
150                        }
151                    },
152                    {
153                        breakpoint: 1400,
154                        settings: {
155                            slidesToShow: 3
156                        }
157                    },
158                    {
159                        breakpoint: 1199,
160                        settings: {
161                            slidesToShow: 2
162                        }
163                    },
164                    {
165                        breakpoint: 480,
166                        settings: {
167                            slidesToShow: 1
168                        }
169                    }
170                ]
171            });
172        });
173
174        $("figure.wp-block-gallery.has-nested-images.columns-1, .wp-block-gallery.columns-1 ul.blocks-gallery-grid, .gallery-columns-1").each(function () {
175            $(this).slick({
176                slidesToShow: 1,
177                slidesToScroll: 1,
178                fade: true,
179                autoplay: true,
180                autoplaySpeed: 8000,
181                infinite: true,
182                dots: true,
183                nextArrow: '<i class="slick-nav-arrow slick-slide-next arrow_carrot-right"></i>',
184                prevArrow: '<i class="slick-nav-arrow slick-slide-prev arrow_carrot-left"></i>',
185                rtl: rtled
186            });
187        });
188    });
189
190    $(function () {
191        $('.icon-search').on('click', function (event) {
192            $('body').toggleClass('united-model');
193            $('body').addClass('window-scroll-locked');
194            setTimeout(function () { 
195                $('.model-search-wrapper .search-field').focus();
196            }, 300);
197            
198        });
199        $('.cross-exit').on('click', function (event) {
200            $('body').removeClass('united-model');
201            $('body').removeClass('window-scroll-locked');
202            $('.icon-search').focus();
203        });
204
205        $(document).keyup(function(j) {
206            if (j.key === "Escape") {
207                $('body').removeClass('united-model');
208                $('body').removeClass('window-scroll-locked');
209                $('.icon-search').focus();
210            }
211        });
212
213        $('.searchbar-skip-link').focus(function(){
214            $('.model-search .search-submit').focus();
215        });
216
217        $('.searchbar-skip-link-end').focus(function(){
218            $('.cross-exit').focus();
219        });
220
221    });
222
223    $(function () {
224        $('.widget-area').theiaStickySidebar({
225            additionalMarginTop: 30
226        });
227    });
228
229    $(function () {
230        const side = $("body").hasClass("rtl") ? 'right' : 'left';
231        $('#responsive-menu-button').sidr({
232            name: 'sidr-main',
233            side: side,
234            source: '#theme-top-navigation'
235        });
236    });
237
238    $(function () {
239        var direction = $('body').hasClass('rtl') ? 'rtl' : 'ltr';
240
241        $('#js-news').ticker({
242            speed: 0.20,
243            controls: true,
244            titleText: '',
245            displayType: 'reveal',
246            direction: direction,
247            pauseOnItems: 2000,
248            fadeInSpeed: 600,
249            fadeOutSpeed: 300
250        });
251    });
252
253    $(".zoom-gallery").each(function () {
254        $(this).magnificPopup({
255            delegate: 'button',
256            type: 'image',
257            closeOnContentClick: false,
258            closeBtnInside: false,
259            mainClass: 'mfp-with-zoom mfp-img-mobile',
260            image: {
261                verticalFit: true,
262                titleSrc: function (item) {
263                    return item.el.attr('title');
264                }
265            }
266        });
267    });
268
269    $(".site .gallery, .wp-block-gallery").each(function () {
270        $(this).magnificPopup({
271            delegate: 'a',
272            type: 'image',
273            closeOnContentClick: false,
274            closeBtnInside: false,
275            mainClass: 'mfp-with-zoom mfp-img-mobile',
276            image: {
277                verticalFit: true,
278                titleSrc: function (item) {
279                    return item.el.attr('title');
280                }
281            },
282            gallery:{
283                enabled:true
284            }
285        });
286    });
287
288    $(function(){
289        $(window).scroll(function(){
290            if ($(window).scrollTop() > $(window).height() / 2) {
291                $("#scroll-up").fadeIn(300);
292            } else {
293                $("#scroll-up").fadeOut(300);
294            }
295        });
296    });
297
298    $(function(){
299        $("#scroll-up").on("click", function () {
300            $("html, body").animate({
301                scrollTop: 0
302            }, 800);
303            return false;
304        });
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.