1var visibleCarrusel = 5; 2 3function actualizarVisibleCarrusel() { 4 var anchoVentana = window.innerWidth; 5 6 if (anchoVentana < 600) { 7 visibleCarrusel = 1; 8 } else if (anchoVentana < 900) { 9 visibleCarrusel = 2; 10 } else if (anchoVentana < 1200) { 11 visibleCarrusel = 3; 12 } else if (anchoVentana < 1500) { 13 visibleCarrusel = 4; 14 } else if (anchoVentana < 1900) { 15 visibleCarrusel = 5; 16 } else { 17 visibleCarrusel = 6; 18 } 19} 20 21actualizarVisibleCarrusel(); 22 23window.addEventListener("resize", actualizarVisibleCarrusel); 24 25function mostrarFotosDestacados(key, val) 26{ 27 var $obj = $(val).find('.fotopropiedad'); 28 if ($obj.hasClass('fotoCargada') || $obj.hasClass('nofoto')) return true; 29 30 var lafoto = $obj.attr('cargaFoto'); 31 if (lafoto == null || lafoto == '') return true; 32 33 $obj.css('background-image', 'url(' + lafoto + ')'); 34 $obj.addClass('fotoCargada'); 35 36 // Si la foto tiene marca "Generada por IA", recalcular posicion de la marca 37 if ($obj.hasClass('generada-ia') && typeof ajustarPosicionMarcaIA === 'function') { 38 ajustarPosicionMarcaIA($obj); 39 } 40} 41 42$('.modulos-destacados #destacados-carrusel').each(function(key, val){ 43 var articlesDestacados = $(val).find('article'); 44 45 if(typeof articlesDestacados.length == 'undefined') return true; 46 47 if(articlesDestacados.length <= visibleCarrusel) { 48 articlesDestacados.each(function(key, val) { 49 mostrarFotosDestacados(key, val); 50 }); 51 } 52});
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.