Auto commit: 2026-02-15T16:21:25.467Z
This commit is contained in:
parent
64ff7a1fca
commit
35db921f6e
20
index.php
20
index.php
@ -501,7 +501,7 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
||||
<textarea id="user-message" placeholder="¿Qué quieres escuchar?"></textarea>
|
||||
|
||||
<button class="send-whatsapp-btn" onclick="sendToWhatsApp()">
|
||||
<i class="bi bi-whatsapp"></i> ENVIAR AL WHATSAPP
|
||||
<i class="bi bi-whatsapp"></i> WHATSAPP
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -652,23 +652,7 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
||||
}
|
||||
|
||||
function sendToWhatsApp() {
|
||||
const name = document.getElementById('user-name').value;
|
||||
const message = document.getElementById('user-message').value;
|
||||
const phoneNumber = '5359177041';
|
||||
|
||||
if (!message.trim()) {
|
||||
alert('Por favor, escribe un mensaje.');
|
||||
return;
|
||||
}
|
||||
|
||||
let finalMessage = `Hola Lili Records! `;
|
||||
if (name.trim()) {
|
||||
finalMessage += `Soy ${name}. `;
|
||||
}
|
||||
finalMessage += message;
|
||||
|
||||
const url = `https://wa.me/${phoneNumber}?text=${encodeURIComponent(finalMessage)}`;
|
||||
window.open(url, '_blank');
|
||||
window.open('<?= $whatsapp_link ?>', '_blank');
|
||||
}
|
||||
|
||||
// Fetch Now Playing Metadata from RadioKing
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user