PageSourceSearch

https://cesaroni.net/wp-content/plugins/cresta-core/assets/js/editor-script.js?ver=7.1.2

js cesaroni.net collected 2026-09-27 03:00:36 UTC 10,873 bytes, 328 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    function serviceActive($scope, $) {
5        const serviceswiper = new Swiper('.tg-service-active', {
6            speed: 1500,
7            loop: true,
8            slidesPerView: 4,
9            spaceBetween: 30,
10            autoplay: true,
11            breakpoints: {
12                '1200': {
13                    slidesPerView: 4,
14                },
15                '992': {
16                    slidesPerView: 4,
17                },
18                '768': {
19                    slidesPerView: 3,
20                },
21                '576': {
22                    slidesPerView: 2,
23                },
24                '0': {
25                    slidesPerView: 1,
26                },
27            },
28            // Navigation arrows
29            navigation: {
30                prevEl: '.service-next',
31                nextEl: '.service-prev',
32            },
33        });
34    }
35    function counterActive($scope, $) {
36        new PureCounter();
37        new PureCounter({
38            filesizing: true,
39            selector: ".filesizecount",
40            pulse: 2,
41        });
42    }
43    function revealActive($scope, $) {
44        const hoverItem = document.querySelectorAll(".tg-reveal-item");
45        function moveImage(e, hoverItem, index) {
46            const item = hoverItem.getBoundingClientRect();
47            const x = e.clientX - item.x;
48            const y = e.clientY - item.y;
49            if (hoverItem.children[index]) {
50                hoverItem.children[index].style.transform = `translate(${x}px, ${y}px)`;
51            }
52        }
53        hoverItem.forEach((item, i) => {
54            item.addEventListener("mousemove", (e) => {
55                setInterval(moveImage(e, item, 1), 50);
56            });
57        });
58    }
59    function testimonialActive($scope, $) {
60        const testimonial = new Swiper('.tg-testimonial-active', {
61            // Optional parameters
62            speed: 1500,
63            loop: true,
64            slidesPerView: 2,
65            spaceBetween: 30,
66            autoplay: true,
67            breakpoints: {
68                '1200': {
69                    slidesPerView: 2,
70                },
71                '992': {
72                    slidesPerView: 2,
73                },
74                '768': {
75                    slidesPerView: 2,
76                },
77                '576': {
78                    slidesPerView: 1,
79                },
80                '0': {
81                    slidesPerView: 1,
82                },
83            },
84            // Navigation arrows
85            navigation: {
86                prevEl: '.test-next',
87                nextEl: '.test-prev',
88            },
89        });
90    }
91    function brandActive($scope, $) {
92        const brand = new Swiper('.tg-brand-active', {
93            // Optional parameters
94            speed: 1500,
95            loop: true,
96            slidesPerView: 6,
97            autoplay: true,
98            breakpoints: {
99                '1200': {
100                    slidesPerView: 6,
101                },
102                '992': {
103                    slidesPerView: 5,
104                },
105                '768': {
106                    slidesPerView: 4,
107                },
108                '576': {
109                    slidesPerView: 3,
110                },
111                '0': {
112                    slidesPerView: 2,
113                },
114            },
115        });
116    }
117    function serviceActiveTwo($scope, $) {
118        const servic2swiper = new Swiper('.tg-service-2-active', {
119            // Optional parameters
120            speed: 1500,
121            loop: true,
122            slidesPerView: 3,
123            spaceBetween: 30,
124            autoplay: true,
125            breakpoints: {
126                '1200': {
127                    slidesPerView: 3,
128                },
129                '992': {
130                    slidesPerView: 2,
131                },
132                '768': {
133                    slidesPerView: 2,
134                },
135                '576': {
136                    slidesPerView: 1,
137                },
138                '0': {
139                    slidesPerView: 1,
140                },
141            },
142            // Navigation arrows
143            navigation: {
144                prevEl: '.service-next',
145                nextEl: '.service-prev',
146            },
147        });
148    }
149    function testimonialActiveTwo($scope, $) {
150        const testimonial3 = new Swiper('.tg-testimonial-2-active', {
151            // Optional parameters
152            speed: 1500,
153            loop: true,
154            slidesPerView: 1,
155            spaceBetween: 30,
156            autoplay: true,
157            breakpoints: {
158                '1200': {
159                    slidesPerView: 1,
160                },
161                '992': {
162                    slidesPerView: 1,
163                },
164                '768': {
165                    slidesPerView: 1,
166                },
167                '576': {
168                    slidesPerView: 1,
169                },
170                '0': {
171                    slidesPerView: 1,
172                },
173            },
174            pagination: {
175                el: ".test-slider-dots",
176                clickable:true,
177            },
178        });
179    }
180    function projectGalleryActive($scope, $) {
181        const gellaryswiper = new Swiper('.tg-gellary-active', {
182            // Optional parameters
183            speed: 1500,
184            loop: true,
185            slidesPerView: 4,
186            spaceBetween: 30,
187            autoplay: true,
188            breakpoints: {
189                '1200': {
190                    slidesPerView: 4,
191                },
192                '992': {
193                    slidesPerView: 4,
194                },
195                '768': {
196                    slidesPerView: 3,
197                },
198                '576': {
199                    slidesPerView: 2,
200                },
201                '0': {
202                    slidesPerView: 1,
203                },
204            },
205            // Navigation arrows
206            navigation: {
207                prevEl: '.gellary-next',
208                nextEl: '.gellary-prev',
209            },
210        });
211    }
212    function teamActive($scope, $) {
213        const teamswiper = new Swiper('.tg-team-2-active', {
214            // Optional parameters
215            speed: 1500,
216            loop: true,
217            slidesPerView: 3,
218            spaceBetween: 30,
219            autoplay: true,
220            breakpoints: {
221                '1200': {
222                    slidesPerView: 3,
223                },
224                '992': {
225                    slidesPerView: 3,
226                },
227                '768': {
228                    slidesPerView: 2,
229                },
230                '576': {
231                    slidesPerView: 1,
232                },
233                '0': {
234                    slidesPerView: 1,
235                },
236            },
237            // Navigation arrows
238            navigation: {
239                prevEl: '.team-2-next',
240                nextEl: '.team-2-prev',
241            },
242        });
243    }
244    function testimonialActiveThree($scope, $) {
245        const testimonialswiper = new Swiper('.tg-testimonial-3-active', {
246            // Optional parameters
247            speed: 1500,
248            loop: true,
249            slidesPerView: 1,
250            spaceBetween: 30,
251            autoplay: false,
252            breakpoints: {
253                '1200': {
254                    slidesPerView: 1,
255                },
256                '992': {
257                    slidesPerView: 1,
258                },
259                '768': {
260                    slidesPerView: 1,
261                },
262                '576': {
263                    slidesPerView: 1,
264                },
265                '0': {
266                    slidesPerView: 1,
267                },
268            },
269            pagination: {
270                el: ".test-2-slider-dots",
271                clickable:true,
272            },
273        });
274    }
275    function ProjectActiveEight($scope, $) {
276        const projectswiper = new Swiper('.tg-project-3-active', {
277            // Optional parameters
278            speed: 1500,
279            loop: true,
280            slidesPerView: 4,
281            spaceBetween: 30,
282            autoplay: false,
283            breakpoints: {
284                '1200': {
285                    slidesPerView: 4,
286                },
287                '992': {
288                    slidesPerView: 3,
289                },
290                '768': {
291                    slidesPerView: 3,
292                },
293                '576': {
294                    slidesPerView: 2,
295                },
296                '0': {
297                    slidesPerView: 1,
298                },
299            },
300            // Navigation arrows
301            navigation: {
302                prevEl: '.project-3-next',
303                nextEl: '.project-3-prev',
304            },
305        });
306    }
307
308    $(window).on('elementor/frontend/init', function () {
309        if (elementorFrontend.isEditMode()) {
310            elementorFrontend.hooks.addAction('frontend/element_ready/int-service.default', serviceActive)
311            elementorFrontend.hooks.addAction('frontend/element_ready/int-funfact.default', counterActive)
312            elementorFrontend.hooks.addAction('frontend/element_ready/int-project-v2.default', revealActive)
313            elementorFrontend.hooks.addAction('frontend/element_ready/int-testimonial.default', testimonialActive)
314            elementorFrontend.hooks.addAction('frontend/element_ready/int-brand.default', brandActive)
315            elementorFrontend.hooks.addAction('frontend/element_ready/int-service-v3.default', serviceActiveTwo)
316            elementorFrontend.hooks.addAction('frontend/element_ready/int-project-v4.default', revealActive)
317            elementorFrontend.hooks.addAction('frontend/element_ready/int-funfact-v2.default', counterActive)
318            elementorFrontend.hooks.addAction('frontend/element_ready/int-funfact-v3.default', counterActive)
319            elementorFrontend.hooks.addAction('frontend/element_ready/int-funfact-v4.default', counterActive)
320            elementorFrontend.hooks.addAction('frontend/element_ready/int-testimonial-v2.default', testimonialActiveTwo)
321            elementorFrontend.hooks.addAction('frontend/element_ready/int-testimonial-v3.default', testimonialActiveThree)
322            elementorFrontend.hooks.addAction('frontend/element_ready/int-project-v6.default', projectGalleryActive)
323            elementorFrontend.hooks.addAction('frontend/element_ready/int-team-v2.default', teamActive)
324            elementorFrontend.hooks.addAction('frontend/element_ready/int-project-v8.default', ProjectActiveEight)
325        }
326    });
327
328})(jQuery);

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.