AKY - Widget Red Social
?
[ CARGANDO RECUERDOS AKY... ]
[ Espacio disponible ]

Elige un color de fondo

`; htmlPost += `
`; htmlPost += `
${desc}
`; // Formatear fecha let fechaPublicacion = "Fecha no disponible"; if (data.timestamp) { const fecha = new Date(data.timestamp.seconds * 1000); fechaPublicacion = fecha.toLocaleDateString('es-ES', { day: 'numeric', month: 'long', year: 'numeric' }); } htmlPost += `
❤️ ${likeCount}
`; postElement.innerHTML = htmlPost; imageFeed.appendChild(postElement); } } catch (error) { console.error("Error cargando videos:", error); document.getElementById('loadingMessage').innerText = "[ ERROR: " + error.message + " ]"; } } // --- FUNCIONES DE COLOR --- window.openColorModal = function() { document.getElementById('colorModal').style.display = 'flex'; initializeSlider(); }; window.closeColorModal = function() { document.getElementById('colorModal').style.display = 'none'; }; function initializeSlider() { const slider = document.getElementById('rainbowSlider'); const preview = document.getElementById('colorPreview'); slider.addEventListener('input', function() { const hue = this.value; const color = hue <= 18 ? '#000000' : `hsl(${hue}, 100%, 50%)`; preview.style.backgroundColor = color; }); slider.addEventListener('change', function() { const hue = this.value; const color = hue <= 18 ? '#000000' : `hsl(${hue}, 100%, 50%)`; document.body.style.backgroundColor = color; }); } // --- FUNCIONES PARA TOGGLE DE COLUMNAS --- window.toggleColumn = function(side) { const columnId = side + 'Column'; const column = document.getElementById(columnId); column.classList.toggle('collapsed'); };