Auto commit: 2026-02-14T20:30:18.038Z
This commit is contained in:
parent
7060efbbb4
commit
b79dba006e
BIN
assets/pasted-20260214-202227-47d77ebf.png
Normal file
BIN
assets/pasted-20260214-202227-47d77ebf.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 459 KiB |
BIN
assets/pasted-20260214-202809-06aae656.png
Normal file
BIN
assets/pasted-20260214-202809-06aae656.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 388 KiB |
56
index.php
56
index.php
@ -8,8 +8,7 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Lili Records Radio - L
|
|||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? 'assets/images/featured.jpg';
|
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? 'assets/images/featured.jpg';
|
||||||
|
|
||||||
// WhatsApp info
|
// WhatsApp info
|
||||||
$whatsapp_number = '+5359177041';
|
$whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||||
$whatsapp_link = "https://wa.me/" . preg_replace('/[^0-9]/', '', $whatsapp_number);
|
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="es">
|
<html lang="es">
|
||||||
@ -295,31 +294,19 @@ $whatsapp_link = "https://wa.me/" . preg_replace('/[^0-9]/', '', $whatsapp_numbe
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-placeholder {
|
.qr-container {
|
||||||
width: 180px;
|
|
||||||
height: 180px;
|
|
||||||
margin: 1rem auto;
|
margin: 1rem auto;
|
||||||
background: rgba(255, 255, 255, 0.85);
|
|
||||||
border-radius: 12px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: #333;
|
|
||||||
padding: 10px;
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-placeholder i {
|
.qr-container img {
|
||||||
font-size: 3rem;
|
max-width: 200px;
|
||||||
margin-bottom: 10px;
|
transition: transform 0.3s;
|
||||||
color: #000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-placeholder span {
|
.qr-container img:hover {
|
||||||
font-size: 0.75rem;
|
transform: scale(1.1);
|
||||||
font-weight: 700;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Floating WhatsApp Button */
|
/* Floating WhatsApp Button */
|
||||||
@ -394,6 +381,10 @@ $whatsapp_link = "https://wa.me/" . preg_replace('/[^0-9]/', '', $whatsapp_numbe
|
|||||||
<div class="track-info">
|
<div class="track-info">
|
||||||
<div class="track-status">EN VIVO</div>
|
<div class="track-status">EN VIVO</div>
|
||||||
<div id="track-title" class="track-title">Cargando stream...</div>
|
<div id="track-title" class="track-title">Cargando stream...</div>
|
||||||
|
</div>
|
||||||
|
<a href="<?= $whatsapp_link ?>" target="_blank" title="WhatsApp directo" style="color: var(--accent-color); font-size: 1.8rem; margin-left: auto; display: flex; align-items: center;">
|
||||||
|
<i class="bi bi-whatsapp"></i>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
@ -415,6 +406,17 @@ $whatsapp_link = "https://wa.me/" . preg_replace('/[^0-9]/', '', $whatsapp_numbe
|
|||||||
<i class="bi bi-whatsapp"></i> ENVIAR AL WHATSAPP
|
<i class="bi bi-whatsapp"></i> ENVIAR AL WHATSAPP
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Transfermovil QR Section -->
|
||||||
|
<div class="payment-section">
|
||||||
|
<p style="font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; opacity: 0.9;">APOYA LA RADIO (TRANSFERMÓVIL)</p>
|
||||||
|
<div class="qr-container">
|
||||||
|
<div style="width: 180px; height: 180px; background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem;">
|
||||||
|
<i class="bi bi-qr-code" style="font-size: 3rem; opacity: 0.5;"></i>
|
||||||
|
<span style="font-size: 0.7rem; opacity: 0.5;">ESPACIO PARA QR</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -433,7 +435,7 @@ $whatsapp_link = "https://wa.me/" . preg_replace('/[^0-9]/', '', $whatsapp_numbe
|
|||||||
<!-- Right Section: Featured Image -->
|
<!-- Right Section: Featured Image -->
|
||||||
<section class="image-section">
|
<section class="image-section">
|
||||||
<div class="featured-img-container">
|
<div class="featured-img-container">
|
||||||
<img src="assets/images/featured.jpg" alt="Lili Records Featured">
|
<img src="assets/pasted-20260214-202809-06aae656.png" alt="Lili Records Featured">
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
@ -491,12 +493,16 @@ $whatsapp_link = "https://wa.me/" . preg_replace('/[^0-9]/', '', $whatsapp_numbe
|
|||||||
async function updateMetadata() {
|
async function updateMetadata() {
|
||||||
try {
|
try {
|
||||||
// RadioKing Public API for current track
|
// RadioKing Public API for current track
|
||||||
const response = await fetch('https://api.radioking.io/widget/radio/828046/track/current');
|
const response = await fetch('https://www.radioking.com/widgets/currenttrack.php?radio=828046&format=json');
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
if (data && data.title) {
|
if (data && data.title) {
|
||||||
const title = data.artist ? `${data.artist} - ${data.title}` : data.title;
|
let fullTitle = data.title;
|
||||||
trackTitle.textContent = title;
|
// If artist is present and not already at the start of the title, prepend it
|
||||||
document.title = `▶ ${title} | Lili Records Radio`;
|
if (data.artist && !fullTitle.toLowerCase().includes(data.artist.toLowerCase())) {
|
||||||
|
fullTitle = `${data.artist} - ${fullTitle}`;
|
||||||
|
}
|
||||||
|
trackTitle.textContent = fullTitle;
|
||||||
|
document.title = `▶ ${fullTitle} | Lili Records Radio`;
|
||||||
} else {
|
} else {
|
||||||
trackTitle.textContent = "Lili Records Radio - En Vivo";
|
trackTitle.textContent = "Lili Records Radio - En Vivo";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user