PageSourceSearch

https://colectivo3.com/wp-content/themes/colectivo3/assets/js/custom.js

js colectivo3.com collected 2026-10-04 01:38:58 UTC 7,240 bytes, 185 lines download raw bytes

1$(document).ready(function(){
2
3    // Portfolio hover GIF
4    $(".work_portfolio_gallery .portfolio_content .div-portfolio").hover(function () {
5        $(this).find(".img-portfolio").css("display", "none");
6        $(this).find(".gif-portfolio").css("display", "block");
7    }, function () {
8        $(this).find(".img-portfolio").css("display", "block");
9        $(this).find(".gif-portfolio").css("display", "none");
10    });
11
12    // Comparador altura
13    function ajustarAltura() {
14
15        // Home
16        var aboutMeFront = $(".layer__dark .about_me");
17        var aboutMeBack = $(".layer__red .about_me");
18
19        var aboutIdoFront = $(".layer__dark .about_ido");
20        var aboutIdoBack = $(".layer__red .about_ido");
21
22        var experienceFront = $(".layer__dark .work_experience");
23        var experienceBack = $(".layer__red .work_experience");
24        
25        var testimonial1Front = $(".layer__dark .testimonial-1");
26        var testimonial1Back = $(".layer__red .testimonial-1");
27
28        var testimonial2Front = $(".layer__dark .testimonial-2");
29        var testimonial2Back = $(".layer__red .testimonial-2");
30
31        var testimonial3Front = $(".layer__dark .testimonial-3");
32        var testimonial3Back = $(".layer__red .testimonial-3");
33
34        var mottoFront = $(".layer__dark .motto_content");
35        var mottoBack = $(".layer__red .motto_content");
36
37        var logoDigitalizadoresFront = $(".layer__dark .contenedor-textos-legales");
38        var logoDigitalizadoresBack = $(".layer__red .contenedor-textos-legales");
39        
40        // Blog
41        var blogFront = $(".layer__dark .blog_content_desc");
42        var blogBack = $(".layer__red .blog_content_desc");
43        
44        var blogSimpleFront = $(".layer__dark .text-blog-simple");
45        var blogSimpleBack = $(".layer__red .text-blog-simple");
46
47        var imgsBlogFront = $(".layer__dark .blog_page_single .article-slider");
48        var imgsBlogBack = $(".layer__red .blog_page_single .article-slider");
49
50        var videoBlogFront = $(".layer__dark .blog_page_single .article-video");
51        var videoBlogBack = $(".layer__red .blog_page_single .article-video");
52
53        // Works
54        var workPortolioFront = $(".layer__dark .text-portfolio-div");
55        var workPortolioBack = $(".layer__red .text-portfolio-div");
56		
57		// Páginas de aterrizaje
58		var aterrizajeFront = $(".layer__dark .text-aterrizaje-div");
59        var aterrizajeBack = $(".layer__red .text-aterrizaje-div");
60
61
62        // Inicio
63        if (aboutMeFront.length && aboutMeBack.length) {
64            var maxHeight = Math.max(aboutMeFront.outerHeight(), aboutMeBack.outerHeight());
65            
66            aboutMeFront.css('height', maxHeight);
67            aboutMeBack.css('height', maxHeight);
68        }
69
70        if (aboutIdoFront.length && aboutIdoBack.length) {
71            var maxHeight = Math.max(aboutIdoFront.outerHeight(), aboutIdoBack.outerHeight());
72            
73            aboutIdoFront.css('height', maxHeight);
74            aboutIdoBack.css('height', maxHeight);
75        }
76        
77        if (experienceFront.length && experienceBack.length) {
78            var maxHeight = Math.max(experienceFront.outerHeight(), experienceBack.outerHeight());
79            
80            experienceFront.css('height', maxHeight);
81            experienceBack.css('height', maxHeight);
82        }
83
84        if (testimonial1Front.length && testimonial1Back.length) {
85            var maxHeight = Math.max(testimonial1Front.outerHeight(), testimonial1Back.outerHeight());
86            
87            testimonial1Front.css('height', maxHeight);
88            testimonial1Back.css('height', maxHeight);
89        }
90
91        if (testimonial2Front.length && testimonial2Back.length) {
92            var maxHeight = Math.max(testimonial2Front.outerHeight(), testimonial2Back.outerHeight());
93            
94            testimonial2Front.css('height', maxHeight);
95            testimonial2Back.css('height', maxHeight);
96        }
97
98        if (testimonial3Front.length && testimonial3Back.length) {
99            var maxHeight = Math.max(testimonial3Front.outerHeight(), testimonial3Back.outerHeight());
100            
101            testimonial3Front.css('height', maxHeight);
102            testimonial3Back.css('height', maxHeight);
103        }
104
105        if (mottoFront.length && mottoBack.length) {
106            var maxHeight = Math.max(mottoFront.outerHeight(), mottoBack.outerHeight());
107            
108            mottoFront.css('height', maxHeight);
109            mottoBack.css('height', maxHeight);
110        }
111
112        if (logoDigitalizadoresFront.length && logoDigitalizadoresBack.length) {
113            var maxHeight = Math.max(logoDigitalizadoresFront.outerHeight(), logoDigitalizadoresBack.outerHeight());
114            
115            logoDigitalizadoresFront.css('height', maxHeight);
116            logoDigitalizadoresBack.css('height', maxHeight);
117        }
118
119        // Blog
120        if (blogFront.length && blogBack.length) {
121            var maxHeight = Math.max(blogFront.outerHeight(), blogBack.outerHeight());
122            
123            blogFront.css('height', maxHeight);
124            blogBack.css('height', maxHeight);
125        }
126
127        if (blogSimpleFront.length && blogSimpleBack.length) {
128            var maxHeight = Math.max(blogSimpleFront.outerHeight(), blogSimpleBack.outerHeight());
129            
130            blogSimpleFront.css('height', maxHeight);
131            blogSimpleBack.css('height', maxHeight);
132        }
133
134        if (imgsBlogFront.length && imgsBlogBack.length) {
135            var maxHeight = Math.max(imgsBlogFront.outerHeight(), imgsBlogBack.outerHeight());
136            
137            imgsBlogFront.css('height', maxHeight);
138            imgsBlogBack.css('height', maxHeight);
139        }
140
141        if (videoBlogFront.length && videoBlogBack.length) {
142            var maxHeight = Math.max(videoBlogFront.outerHeight(), videoBlogBack.outerHeight());
143            
144            videoBlogFront.css('height', maxHeight);
145            videoBlogBack.css('height', maxHeight);
146        }
147
148        // Works
149        if (workPortolioFront.length && workPortolioBack.length) {
150            var maxHeight = Math.max(workPortolioFront.outerHeight(), workPortolioBack.outerHeight());
151            
152            workPortolioFront.css('height', maxHeight);
153            workPortolioBack.css('height', maxHeight);
154        }
155		
156		// Páginas de aterrizaje
157		if (aterrizajeFront.length && aterrizajeBack.length) {
158            var maxHeight = Math.max(aterrizajeFront.outerHeight(), aterrizajeBack.outerHeight());
159            
160            aterrizajeFront.css('height', maxHeight);
161            aterrizajeBack.css('height', maxHeight);
162        }
163		
164    }
165
166    ajustarAltura();
167    $(window).resize(ajustarAltura);
168
169});
170
171// Carrousel logos
172var swiper = new Swiper(".swiper-container", {
173    slidesPerView: "auto",
174    spaceBetween: 20,
175    loop: true,
176    speed: 5000, 
177    autoplay: {
178        delay: 0,
179        disableOnInteraction: false,
180    },
181    freeMode: true, 
182    allowTouchMove: true, 
183    grabCursor: true, 
184    pauseOnMouseEnter: true,
185});

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.