diff --git a/index.php b/index.php index 5d62603..e6fb711 100644 --- a/index.php +++ b/index.php @@ -872,6 +872,9 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; BUSCAR LETRA + + COMPARTIR CANCIÓN + @@ -1689,6 +1692,13 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; lyricsLink.href = `https://www.google.com/search?q=${encodeURIComponent(fullDisplay + " letra lyrics")}`; lyricsLink.style.display = 'flex'; } + + const whatsappShareBtn = document.getElementById('whatsapp-share-track'); + if (whatsappShareBtn) { + const shareText = `¡Estoy escuchando "${title}" de ${artist} en Lili Records Radio! 🎶📻\n\nEscúchala aquí: ${window.location.href}`; + whatsappShareBtn.href = `https://wa.me/?text=${encodeURIComponent(shareText)}`; + whatsappShareBtn.style.display = 'flex'; + } trackTitle.style.opacity = '1'; if (trackArtist) trackArtist.style.opacity = '0.8';