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>
|
<textarea id="user-message" placeholder="¿Qué quieres escuchar?"></textarea>
|
||||||
|
|
||||||
<button class="send-whatsapp-btn" onclick="sendToWhatsApp()">
|
<button class="send-whatsapp-btn" onclick="sendToWhatsApp()">
|
||||||
<i class="bi bi-whatsapp"></i> ENVIAR AL WHATSAPP
|
<i class="bi bi-whatsapp"></i> WHATSAPP
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -652,23 +652,7 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sendToWhatsApp() {
|
function sendToWhatsApp() {
|
||||||
const name = document.getElementById('user-name').value;
|
window.open('<?= $whatsapp_link ?>', '_blank');
|
||||||
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');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch Now Playing Metadata from RadioKing
|
// Fetch Now Playing Metadata from RadioKing
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user