Auto commit: 2026-02-15T02:23:23.759Z
This commit is contained in:
parent
83db5d3050
commit
50d8a6ed14
23
api/pexels.php
Normal file
23
api/pexels.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
header("Content-Type: application/json");
|
||||||
|
require_once __DIR__ . "/../includes/pexels.php";
|
||||||
|
|
||||||
|
$query = isset($_GET["query"]) ? $_GET["query"] : "abstract music background";
|
||||||
|
// We want a nice, large background image
|
||||||
|
$url = "https://api.pexels.com/v1/search?query=" . urlencode($query) . "&orientation=landscape&per_page=1&page=" . rand(1, 20);
|
||||||
|
$data = pexels_get($url);
|
||||||
|
|
||||||
|
if ($data && !empty($data["photos"])) {
|
||||||
|
$photo = $data["photos"][0];
|
||||||
|
echo json_encode([
|
||||||
|
"success" => true,
|
||||||
|
"url" => $photo["src"]["large2x"] ?? $photo["src"]["large"],
|
||||||
|
"photographer" => $photo["photographer"]
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
// Fallback if search fails
|
||||||
|
echo json_encode([
|
||||||
|
"success" => false,
|
||||||
|
"error" => "No images found"
|
||||||
|
]);
|
||||||
|
}
|
||||||
598
index.php
598
index.php
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
require_once __DIR__ . '/includes/tracker.php';
|
require_once __DIR__ . "/includes/tracker.php";
|
||||||
track_visitor();
|
track_visitor();
|
||||||
|
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Lili Records Radio - La mejor música en vivo.';
|
$projectDescription = $_SERVER["PROJECT_DESCRIPTION"] ?? "Lili Records Radio - La mejor música en vivo.";
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? 'assets/images/featured.jpg';
|
$projectImageUrl = $_SERVER["PROJECT_IMAGE_URL"] ?? "assets/images/featured.jpg";
|
||||||
|
|
||||||
// WhatsApp info
|
// WhatsApp info
|
||||||
$whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
$whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||||
@ -13,43 +13,43 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
|||||||
// Program Schedule
|
// Program Schedule
|
||||||
$schedule = [
|
$schedule = [
|
||||||
[
|
[
|
||||||
'time' => '14:00',
|
"time" => "14:00",
|
||||||
'name' => 'Amanecer Techno',
|
"name" => "Amanecer Techno",
|
||||||
'desc' => 'Comienza el día con los ritmos más puros y energéticos del techno underground.',
|
"desc" => "Comienza el día con los ritmos más puros y energéticos del techno underground.",
|
||||||
'image' => 'assets/images/programs/techno_sunrise.jpg'
|
"image" => "assets/images/programs/techno_sunrise.jpg"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'time' => '16:30',
|
"time" => "16:30",
|
||||||
'name' => 'Sesiones de House Vocal',
|
"name" => "Sesiones de House Vocal",
|
||||||
'desc' => 'Una selección exquisita de house melódico con las voces más cautivadoras.',
|
"desc" => "Una selección exquisita de house melódico con las voces más cautivadoras.",
|
||||||
'image' => 'assets/images/programs/vocal_house.jpg'
|
"image" => "assets/images/programs/vocal_house.jpg"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'time' => '19:00',
|
"time" => "19:00",
|
||||||
'name' => 'Invitado Especial Lili',
|
"name" => "Invitado Especial Lili",
|
||||||
'desc' => 'Cada semana, un invitado especial nos trae su visión única de la pista de baile.',
|
"desc" => "Cada semana, un invitado especial nos trae su visión única de la pista de baile.",
|
||||||
'image' => 'assets/images/programs/lili_guest.jpg'
|
"image" => "assets/images/programs/lili_guest.jpg"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'time' => '21:00',
|
"time" => "21:00",
|
||||||
'name' => 'Vibras de la Noche',
|
"name" => "Vibras de la Noche",
|
||||||
'desc' => 'Sonidos profundos y envolventes para acompañar la calma de la noche.',
|
"desc" => "Sonidos profundos y envolventes para acompañar la calma de la noche.",
|
||||||
'image' => 'assets/images/programs/deep_night.jpg'
|
"image" => "assets/images/programs/deep_night.jpg"
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$defaultStudioImage = 'assets/pasted-20260215-020116-2dc16355.jpg';
|
$defaultStudioImage = "assets/pasted-20260215-020116-2dc16355.jpg";
|
||||||
|
|
||||||
function get_live_index($schedule) {
|
function get_live_index($schedule) {
|
||||||
$current = date('H:i');
|
$current = date("H:i");
|
||||||
$count = count($schedule);
|
$count = count($schedule);
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i = 0; $i < $count; $i++) {
|
||||||
$start = $schedule[$i]['time'];
|
$start = $schedule[$i]["time"];
|
||||||
$next = ($i < $count - 1) ? $schedule[$i+1]['time'] : '23:59';
|
$next = ($i < $count - 1) ? $schedule[$i+1]["time"] : "23:59";
|
||||||
if ($current >= $start && $current < $next) return $i;
|
if ($current >= $start && $current < $next) return $i;
|
||||||
}
|
}
|
||||||
// Handling night transition
|
// Handling night transition
|
||||||
if ($current >= $schedule[$count-1]['time'] || $current < $schedule[0]['time']) return $count - 1;
|
if ($current >= $schedule[$count-1]["time"] || $current < $schedule[0]["time"]) return $count - 1;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ $liveIndex = get_live_index($schedule);
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-family: 'Inter', sans-serif;
|
font-family: "Inter", sans-serif;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background-color: #0f172a;
|
background-color: #0f172a;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -105,11 +105,12 @@ $liveIndex = get_live_index($schedule);
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: -2;
|
z-index: -2;
|
||||||
background-image: url('assets/pasted-20260215-011439-25779668.jpg?v=<?php echo time(); ?>');
|
background-image: url("assets/pasted-20260215-011439-25779668.jpg?v=<?php echo time(); ?>");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
animation: ken-burns 60s ease-in-out infinite alternate;
|
animation: ken-burns 60s ease-in-out infinite alternate;
|
||||||
|
transition: background-image 2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes ken-burns {
|
@keyframes ken-burns {
|
||||||
@ -153,7 +154,7 @@ $liveIndex = get_live_index($schedule);
|
|||||||
.app-container {
|
.app-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 1400px; /* Aumentado para acomodar la foto del estudio */
|
max-width: 1400px;
|
||||||
height: auto;
|
height: auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -165,7 +166,7 @@ $liveIndex = get_live_index($schedule);
|
|||||||
|
|
||||||
.app-content {
|
.app-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 3rem; /* Aumentado un poco el espacio */
|
gap: 3rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -228,10 +229,6 @@ $liveIndex = get_live_index($schedule);
|
|||||||
border-color: var(--primary-color);
|
border-color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.studio-card:hover .studio-photo {
|
|
||||||
filter: saturate(1.2) brightness(1.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.studio-photo {
|
.studio-photo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
@ -242,7 +239,7 @@ $liveIndex = get_live_index($schedule);
|
|||||||
|
|
||||||
.player-section {
|
.player-section {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 420px; /* Ajustado ligeramente */
|
max-width: 420px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -269,12 +266,6 @@ $liveIndex = get_live_index($schedule);
|
|||||||
transition: all 0.5s ease;
|
transition: all 0.5s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-glass:hover {
|
|
||||||
background: rgba(255, 255, 255, 0.04);
|
|
||||||
border-color: rgba(255, 255, 255, 0.1);
|
|
||||||
transform: translateY(-3px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.upcoming-section h2 {
|
.upcoming-section h2 {
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@ -287,14 +278,6 @@ $liveIndex = get_live_index($schedule);
|
|||||||
gap: 0.8rem;
|
gap: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upcoming-section h2::before {
|
|
||||||
content: '';
|
|
||||||
width: 4px;
|
|
||||||
height: 4px;
|
|
||||||
background: var(--primary-color);
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.program-list {
|
.program-list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -329,7 +312,7 @@ $liveIndex = get_live_index($schedule);
|
|||||||
color: rgba(255, 255, 255, 0.45);
|
color: rgba(255, 255, 255, 0.45);
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
padding-left: 4.1rem; /* Alineado con el nombre */
|
padding-left: 4.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.program-item.is-expanded .program-description {
|
.program-item.is-expanded .program-description {
|
||||||
@ -339,15 +322,6 @@ $liveIndex = get_live_index($schedule);
|
|||||||
padding-bottom: 0.5rem;
|
padding-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.program-item:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.program-item:hover {
|
|
||||||
transform: translateX(5px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.program-item.is-live {
|
.program-item.is-live {
|
||||||
background: rgba(0, 230, 118, 0.08);
|
background: rgba(0, 230, 118, 0.08);
|
||||||
border-bottom: 1px solid rgba(0, 230, 118, 0.2);
|
border-bottom: 1px solid rgba(0, 230, 118, 0.2);
|
||||||
@ -357,19 +331,11 @@ $liveIndex = get_live_index($schedule);
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.program-item.is-live .program-time {
|
|
||||||
color: var(--accent-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.program-item.is-live .program-name {
|
|
||||||
color: #fff;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.program-item.is-live::after {
|
.program-item.is-live::after {
|
||||||
content: 'VIVO';
|
content: "VIVO";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 1rem;
|
right: 1rem;
|
||||||
|
top: 1.2rem;
|
||||||
font-size: 0.5rem;
|
font-size: 0.5rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: var(--accent-color);
|
color: var(--accent-color);
|
||||||
@ -401,24 +367,16 @@ $liveIndex = get_live_index($schedule);
|
|||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
border-radius: 48px;
|
border-radius: 48px;
|
||||||
padding: 3.5rem 3rem;
|
padding: 3.5rem 3rem;
|
||||||
box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
|
box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
|
||||||
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.glass-card:hover {
|
|
||||||
transform: translateY(-5px);
|
|
||||||
border-color: rgba(255, 255, 255, 0.15);
|
|
||||||
background: rgba(255, 255, 255, 0.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand h1 {
|
.brand h1 {
|
||||||
font-size: 2.8rem;
|
font-size: 2.8rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
margin: 0 0 0.5rem;
|
margin: 0 0 0.5rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
letter-spacing: -0.04em;
|
letter-spacing: -0.04em;
|
||||||
line-height: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-logo {
|
.brand-logo {
|
||||||
@ -426,12 +384,6 @@ $liveIndex = get_live_index($schedule);
|
|||||||
height: auto;
|
height: auto;
|
||||||
margin: 0 auto 2rem;
|
margin: 0 auto 2rem;
|
||||||
display: block;
|
display: block;
|
||||||
filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)) brightness(1.2);
|
|
||||||
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand-logo:hover {
|
|
||||||
transform: rotate(-5deg) scale(1.1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand p {
|
.brand p {
|
||||||
@ -439,8 +391,6 @@ $liveIndex = get_live_index($schedule);
|
|||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
color: #fff;
|
|
||||||
letter-spacing: 0.02em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.now-playing-container {
|
.now-playing-container {
|
||||||
@ -449,14 +399,6 @@ $liveIndex = get_live_index($schedule);
|
|||||||
padding: 1.8rem;
|
padding: 1.8rem;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
margin-bottom: 2.5rem;
|
margin-bottom: 2.5rem;
|
||||||
transition: all 0.4s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.track-info {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.8rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.track-status {
|
.track-status {
|
||||||
@ -467,10 +409,13 @@ $liveIndex = get_live_index($schedule);
|
|||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
gap: 0.6rem;
|
gap: 0.6rem;
|
||||||
background: rgba(56, 189, 248, 0.1);
|
background: rgba(56, 189, 248, 0.1);
|
||||||
padding: 0.4rem 1rem;
|
padding: 0.4rem 1rem;
|
||||||
border-radius: 100px;
|
border-radius: 100px;
|
||||||
|
width: fit-content;
|
||||||
|
margin: 0 auto 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.live-dot {
|
.live-dot {
|
||||||
@ -483,34 +428,25 @@ $liveIndex = get_live_index($schedule);
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulse-glow {
|
@keyframes pulse-glow {
|
||||||
0% { transform: scale(1); box-shadow: 0 0 5px var(--primary-color); }
|
0% { transform: scale(1); opacity: 1; }
|
||||||
50% { transform: scale(1.4); box-shadow: 0 0 15px var(--primary-color); opacity: 0.8; }
|
50% { transform: scale(1.4); opacity: 0.8; }
|
||||||
100% { transform: scale(1); box-shadow: 0 0 5px var(--primary-color); }
|
100% { transform: scale(1); opacity: 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.track-title {
|
.track-title {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
color: #f1f5f9;
|
color: #f1f5f9;
|
||||||
max-width: 100%;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.controls {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
gap: 2.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.play-btn {
|
.play-btn {
|
||||||
width: 84px;
|
width: 84px;
|
||||||
height: 84px;
|
height: 84px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: linear-gradient(145deg, #ffffff, #f1f5f9);
|
background: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
color: var(--bg-dark);
|
color: var(--bg-dark);
|
||||||
font-size: 2.8rem;
|
font-size: 2.8rem;
|
||||||
@ -518,35 +454,7 @@ $liveIndex = get_live_index($schedule);
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
|
|
||||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.play-btn::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
|
|
||||||
transform: translateX(-100%);
|
|
||||||
transition: transform 0.6s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.play-btn:hover {
|
|
||||||
transform: scale(1.08) translateY(-3px);
|
|
||||||
box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
.play-btn:hover::after {
|
|
||||||
transform: translateX(100%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.play-btn:active {
|
|
||||||
transform: scale(0.95);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.volume-container {
|
.volume-container {
|
||||||
@ -555,159 +463,53 @@ $liveIndex = get_live_index($schedule);
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1.2rem;
|
gap: 1.2rem;
|
||||||
opacity: 0.4;
|
margin: 2rem auto;
|
||||||
transition: all 0.4s ease;
|
opacity: 0.6;
|
||||||
}
|
|
||||||
|
|
||||||
.volume-container:hover {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.volume-slider {
|
.volume-slider {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 3px;
|
height: 3px;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
background: rgba(255, 255, 255, 0.15);
|
background: rgba(255, 255, 255, 0.2);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.volume-slider::-webkit-slider-thumb {
|
|
||||||
-webkit-appearance: none;
|
|
||||||
width: 14px;
|
|
||||||
height: 14px;
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
cursor: pointer;
|
|
||||||
box-shadow: 0 0 10px rgba(0,0,0,0.3);
|
|
||||||
transition: transform 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.volume-slider::-webkit-slider-thumb:hover {
|
|
||||||
transform: scale(1.2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.payment-section {
|
.payment-section {
|
||||||
margin-top: 3.5rem;
|
margin-top: 2rem;
|
||||||
opacity: 0.35;
|
opacity: 0.5;
|
||||||
transition: all 0.5s ease;
|
|
||||||
background: rgba(255, 255, 255, 0.02);
|
|
||||||
padding: 1.5rem;
|
|
||||||
border-radius: 32px;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.03);
|
|
||||||
}
|
|
||||||
|
|
||||||
.payment-section:hover {
|
|
||||||
opacity: 0.9;
|
|
||||||
background: rgba(255, 255, 255, 0.04);
|
|
||||||
border-color: rgba(255, 255, 255, 0.08);
|
|
||||||
}
|
|
||||||
|
|
||||||
.payment-section p {
|
|
||||||
font-size: 0.6rem;
|
|
||||||
font-weight: 700;
|
|
||||||
letter-spacing: 0.3em;
|
|
||||||
margin-bottom: 1.2rem;
|
|
||||||
color: rgba(255, 255, 255, 0.5);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-container img {
|
.qr-container img {
|
||||||
width: 90px;
|
width: 90px;
|
||||||
height: 90px;
|
border-radius: 12px;
|
||||||
border-radius: 16px;
|
|
||||||
filter: grayscale(1) opacity(0.7);
|
|
||||||
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.payment-section:hover .qr-container img {
|
|
||||||
filter: grayscale(0) opacity(1);
|
|
||||||
transform: scale(1.05);
|
|
||||||
border-color: rgba(255, 255, 255, 0.2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.whatsapp-float {
|
.whatsapp-float {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 2.5rem;
|
bottom: 2rem;
|
||||||
right: 2.5rem;
|
right: 2rem;
|
||||||
width: 64px;
|
width: 60px;
|
||||||
height: 64px;
|
height: 60px;
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: var(--accent-color);
|
||||||
backdrop-filter: blur(10px);
|
|
||||||
-webkit-backdrop-filter: blur(10px);
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: var(--accent-color);
|
color: #fff;
|
||||||
font-size: 1.8rem;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
font-size: 2rem;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.whatsapp-float:hover {
|
|
||||||
transform: scale(1.1) rotate(15deg);
|
|
||||||
background: rgba(255, 255, 255, 0.1);
|
|
||||||
color: #fff;
|
|
||||||
background-color: var(--accent-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1200px) {
|
|
||||||
.app-container {
|
|
||||||
max-width: 1000px;
|
|
||||||
}
|
|
||||||
.studio-section {
|
|
||||||
max-width: 400px;
|
|
||||||
}
|
|
||||||
.player-section {
|
|
||||||
max-width: 380px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 992px) {
|
@media (max-width: 992px) {
|
||||||
.app-content {
|
body, html { overflow-y: auto; height: auto; }
|
||||||
gap: 2rem;
|
.app-container { padding: 1rem; }
|
||||||
}
|
|
||||||
.studio-section, .player-section, .upcoming-section {
|
|
||||||
max-width: 500px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
|
||||||
body, html {
|
|
||||||
overflow-y: auto;
|
|
||||||
height: auto;
|
|
||||||
min-height: 100%;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.app-container {
|
|
||||||
padding: 1.5rem;
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
.studio-card {
|
|
||||||
border-radius: 28px;
|
|
||||||
padding: 0.6rem;
|
|
||||||
}
|
|
||||||
.studio-photo {
|
|
||||||
border-radius: 22px;
|
|
||||||
}
|
|
||||||
.glass-card {
|
|
||||||
padding: 3rem 2rem;
|
|
||||||
border-radius: 36px;
|
|
||||||
}
|
|
||||||
.brand h1 {
|
|
||||||
font-size: 2.2rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="background-container"></div>
|
<div class="background-container"></div>
|
||||||
<div class="background-overlay"></div>
|
<div class="background-overlay"></div>
|
||||||
|
|
||||||
<!-- Floating Microphones Background -->
|
|
||||||
<div id="mics-background"></div>
|
<div id="mics-background"></div>
|
||||||
|
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
@ -715,47 +517,32 @@ $liveIndex = get_live_index($schedule);
|
|||||||
<section class="studio-section">
|
<section class="studio-section">
|
||||||
<div class="studio-card">
|
<div class="studio-card">
|
||||||
<div class="studio-tag">
|
<div class="studio-tag">
|
||||||
<span class="live-dot"></span> <span id="studio-program-name"><?= ($liveIndex !== -1) ? htmlspecialchars($schedule[$liveIndex]['name']) : 'Directo desde el estudio' ?></span>
|
<span class="live-dot"></span> <span id="studio-program-name"><?= ($liveIndex !== -1) ? htmlspecialchars($schedule[$liveIndex]["name"]) : "Directo desde el estudio" ?></span>
|
||||||
</div>
|
</div>
|
||||||
<img id="studio-photo" src="<?= ($liveIndex !== -1 && !empty($schedule[$liveIndex]['image'])) ? $schedule[$liveIndex]['image'] : $defaultStudioImage ?>?v=<?php echo time(); ?>" alt="Studio Live" class="studio-photo">
|
<img id="studio-photo" src="<?= ($liveIndex !== -1 && !empty($schedule[$liveIndex]["image"])) ? $schedule[$liveIndex]["image"] : $defaultStudioImage ?>?v=<?php echo time(); ?>" alt="Studio Live" class="studio-photo">
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="player-section">
|
<section class="player-section">
|
||||||
<div class="glass-card">
|
<div class="glass-card">
|
||||||
<header class="brand">
|
<header class="brand">
|
||||||
<img src="assets/pasted-20260214-203540-699a2e6a.png?v=<?php echo time(); ?>" alt="Lili Records Logo" class="brand-logo">
|
<img src="assets/pasted-20260214-203540-699a2e6a.png" alt="Logo" class="brand-logo">
|
||||||
<h1>Lili Records</h1>
|
<h1>Lili Records</h1>
|
||||||
<p>La sintonía que eleva tus sentidos.</p>
|
<p>La sintonía que eleva tus sentidos.</p>
|
||||||
</header>
|
</header>
|
||||||
|
<div class="now-playing-container">
|
||||||
<div class="radio-player">
|
<div class="track-status"><span class="live-dot"></span> AL AIRE</div>
|
||||||
<div class="now-playing-container">
|
<div id="track-title" class="track-title">Conectando...</div>
|
||||||
<div class="track-info">
|
</div>
|
||||||
<div class="track-status">
|
<button class="play-btn" onclick="togglePlay()"><i id="play-icon" class="bi bi-play-fill"></i></button>
|
||||||
<span class="live-dot"></span> AIR ON
|
<div class="volume-container">
|
||||||
</div>
|
<i class="bi bi-volume-down"></i>
|
||||||
<div id="track-title" class="track-title">Conectando...</div>
|
<input type="range" class="volume-slider" min="0" max="1" step="0.01" value="1" oninput="changeVolume(this.value)">
|
||||||
</div>
|
<i class="bi bi-volume-up"></i>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="payment-section">
|
||||||
<div class="controls">
|
<p style="font-size:0.7rem; margin-bottom:1rem;">APOYA NUESTRA VIBRA</p>
|
||||||
<button id="play-pause" class="play-btn" onclick="togglePlay()">
|
<div class="qr-container"><img src="assets/pasted-20260214-203505-f7d808c3.jpg" alt="QR"></div>
|
||||||
<i id="play-icon" class="bi bi-play-fill" style="margin-left: 5px;"></i>
|
|
||||||
</button>
|
|
||||||
<div class="volume-container">
|
|
||||||
<i class="bi bi-volume-down"></i>
|
|
||||||
<input type="range" class="volume-slider" min="0" max="1" step="0.01" value="1" oninput="changeVolume(this.value)">
|
|
||||||
<i class="bi bi-volume-up"></i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="payment-section">
|
|
||||||
<p>SUPPORT OUR VIBE</p>
|
|
||||||
<div class="qr-container">
|
|
||||||
<img src="assets/pasted-20260214-203505-f7d808c3.jpg?v=<?php echo time(); ?>" alt="Support QR">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -765,218 +552,111 @@ $liveIndex = get_live_index($schedule);
|
|||||||
<h2>Próximos Programas</h2>
|
<h2>Próximos Programas</h2>
|
||||||
<ul class="program-list">
|
<ul class="program-list">
|
||||||
<?php foreach ($schedule as $index => $item): ?>
|
<?php foreach ($schedule as $index => $item): ?>
|
||||||
<li class="program-item <?= ($index === $liveIndex) ? 'is-live' : '' ?>" onclick="toggleDescription(this)">
|
<li class="program-item <?= ($index === $liveIndex) ? "is-live" : "" ?>" onclick="toggleDescription(this)">
|
||||||
<div class="program-header">
|
<div class="program-header">
|
||||||
<span class="program-time"><?= $item['time'] ?></span>
|
<span class="program-time"><?= $item["time"] ?></span>
|
||||||
<span class="program-name"><?= $item['name'] ?></span>
|
<span class="program-name"><?= $item["name"] ?></span>
|
||||||
</div>
|
|
||||||
<div class="program-description">
|
|
||||||
<?= htmlspecialchars($item['desc']) ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="program-description"><?= htmlspecialchars($item["desc"]) ?></div>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Opcional: Pequeño widget de clima o info adicional -->
|
|
||||||
<div class="small-glass" style="padding: 1.5rem; text-align: center;">
|
|
||||||
<p style="font-size: 0.7rem; opacity: 0.5; margin: 0; letter-spacing: 0.1em; text-transform: uppercase;">
|
|
||||||
Streaming 24/7 desde el corazón del beat
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="<?= $whatsapp_link ?>" target="_blank" class="whatsapp-float">
|
<a href="<?= $whatsapp_link ?>" target="_blank" class="whatsapp-float"><i class="bi bi-whatsapp"></i></a>
|
||||||
<i class="bi bi-whatsapp"></i>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<audio id="radio-audio" src="https://listen.radioking.com/radio/828046/stream/897251" preload="none"></audio>
|
<audio id="radio-audio" src="https://listen.radioking.com/radio/828046/stream/897251" preload="none"></audio>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Create floating mics
|
// Mics background
|
||||||
const micBg = document.getElementById('mics-background');
|
const micBg = document.getElementById("mics-background");
|
||||||
const micCount = 18;
|
for (let i = 0; i < 15; i++) {
|
||||||
|
const mic = document.createElement("i");
|
||||||
for (let i = 0; i < micCount; i++) {
|
mic.className = "bi bi-mic-fill floating-mic";
|
||||||
const mic = document.createElement('i');
|
mic.style.left = Math.random() * 100 + "vw";
|
||||||
mic.className = 'bi bi-mic-fill floating-mic';
|
mic.style.top = Math.random() * 100 + "vh";
|
||||||
|
mic.style.setProperty("--move-x", (Math.random() - 0.5) * 400 + "px");
|
||||||
const size = 0.8 + Math.random() * 10; // Variación de tamaño entre 0.8rem y 10.8rem
|
mic.style.setProperty("--move-y", (Math.random() - 0.5) * 400 + "px");
|
||||||
const startX = Math.random() * window.innerWidth;
|
mic.style.animationDelay = Math.random() * -20 + "s";
|
||||||
const startY = Math.random() * window.innerHeight;
|
|
||||||
const moveX = (Math.random() - 0.5) * 800;
|
|
||||||
const moveY = (Math.random() - 0.5) * 800;
|
|
||||||
const delay = Math.random() * -60;
|
|
||||||
|
|
||||||
// Lógica de profundidad basada en el tamaño
|
|
||||||
let blur, opacity, duration;
|
|
||||||
|
|
||||||
if (size < 3) { // Lejos (Fondo)
|
|
||||||
blur = 3 + Math.random() * 3;
|
|
||||||
opacity = 0.02 + Math.random() * 0.03;
|
|
||||||
duration = 80 + Math.random() * 40;
|
|
||||||
} else if (size < 7) { // Medio plano
|
|
||||||
blur = Math.random() * 1;
|
|
||||||
opacity = 0.05 + Math.random() * 0.07;
|
|
||||||
duration = 50 + Math.random() * 30;
|
|
||||||
} else { // Primer plano (Bokeh)
|
|
||||||
blur = 2 + Math.random() * 4;
|
|
||||||
opacity = 0.03 + Math.random() * 0.05;
|
|
||||||
duration = 35 + Math.random() * 20;
|
|
||||||
}
|
|
||||||
|
|
||||||
mic.style.left = `${startX}px`;
|
|
||||||
mic.style.top = `${startY}px`;
|
|
||||||
mic.style.setProperty('--move-x', `${moveX}px`);
|
|
||||||
mic.style.setProperty('--move-y', `${moveY}px`);
|
|
||||||
mic.style.animationDelay = `${delay}s`;
|
|
||||||
mic.style.animationDuration = `${duration}s`;
|
|
||||||
mic.style.fontSize = `${size}rem`;
|
|
||||||
mic.style.filter = `blur(${blur}px)`;
|
|
||||||
mic.style.color = `rgba(255, 255, 255, ${opacity})`;
|
|
||||||
|
|
||||||
micBg.appendChild(mic);
|
micBg.appendChild(mic);
|
||||||
}
|
}
|
||||||
|
|
||||||
const audio = document.getElementById('radio-audio');
|
const audio = document.getElementById("radio-audio");
|
||||||
const playBtn = document.getElementById('play-pause');
|
const playIcon = document.getElementById("play-icon");
|
||||||
const playIcon = document.getElementById('play-icon');
|
const trackTitle = document.getElementById("track-title");
|
||||||
const trackTitle = document.getElementById('track-title');
|
const bgContainer = document.querySelector(".background-container");
|
||||||
const nowPlaying = document.querySelector('.now-playing-container');
|
let currentTrackTitle = "";
|
||||||
|
|
||||||
function togglePlay() {
|
function togglePlay() {
|
||||||
if (audio.paused) {
|
if (audio.paused) { audio.play(); playIcon.className = "bi bi-pause-fill"; }
|
||||||
audio.play();
|
else { audio.pause(); playIcon.className = "bi bi-play-fill"; }
|
||||||
playIcon.classList.remove('bi-play-fill');
|
|
||||||
playIcon.classList.add('bi-pause-fill');
|
|
||||||
nowPlaying.classList.add('is-playing');
|
|
||||||
} else {
|
|
||||||
audio.pause();
|
|
||||||
playIcon.classList.remove('bi-pause-fill');
|
|
||||||
playIcon.classList.add('bi-play-fill');
|
|
||||||
nowPlaying.classList.remove('is-playing');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeVolume(val) {
|
function changeVolume(val) { audio.volume = val; }
|
||||||
audio.volume = val;
|
|
||||||
|
async function updateBackgroundImage(query = "abstract music") {
|
||||||
|
try {
|
||||||
|
const res = await fetch(`api/pexels.php?query=${encodeURIComponent(query)}`);
|
||||||
|
const data = await res.json();
|
||||||
|
if (data.success && data.url) {
|
||||||
|
const img = new Image();
|
||||||
|
img.src = data.url;
|
||||||
|
img.onload = () => { bgContainer.style.backgroundImage = `url("${data.url}")`; };
|
||||||
|
}
|
||||||
|
} catch (e) { console.error(e); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch Now Playing Metadata from RadioKing
|
|
||||||
async function updateMetadata() {
|
async function updateMetadata() {
|
||||||
try {
|
try {
|
||||||
// RadioKing Public API for current track
|
const res = await fetch("https://www.radioking.com/widgets/currenttrack.php?radio=828046&format=json");
|
||||||
const response = await fetch('https://www.radioking.com/widgets/currenttrack.php?radio=828046&format=json');
|
const data = await res.json();
|
||||||
const data = await response.json();
|
|
||||||
if (data && data.title) {
|
if (data && data.title) {
|
||||||
let fullTitle = data.title;
|
let full = data.artist ? `${data.artist} - ${data.title}` : data.title;
|
||||||
// If artist is present and not already at the start of the title, prepend it
|
if (currentTrackTitle !== full) {
|
||||||
if (data.artist && !fullTitle.toLowerCase().includes(data.artist.toLowerCase())) {
|
currentTrackTitle = full;
|
||||||
fullTitle = `${data.artist} - ${fullTitle}`;
|
trackTitle.textContent = full;
|
||||||
|
document.title = `▶ ${full} | Lili Records Radio`;
|
||||||
|
updateBackgroundImage(data.artist ? `${data.artist} music` : "abstract music background");
|
||||||
}
|
}
|
||||||
trackTitle.textContent = fullTitle;
|
|
||||||
document.title = `▶ ${fullTitle} | Lili Records Radio`;
|
|
||||||
} else {
|
|
||||||
trackTitle.textContent = "Lili Records Radio - En Vivo";
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (e) { console.error(e); }
|
||||||
console.error('Error fetching metadata:', error);
|
}
|
||||||
trackTitle.textContent = "Lili Records Radio - En Vivo";
|
|
||||||
}
|
function toggleDescription(el) {
|
||||||
|
const was = el.classList.contains("is-expanded");
|
||||||
|
document.querySelectorAll(".program-item").forEach(i => i.classList.remove("is-expanded"));
|
||||||
|
if (!was) el.classList.add("is-expanded");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update every 30 seconds
|
|
||||||
updateMetadata();
|
|
||||||
setInterval(updateMetadata, 30000);
|
setInterval(updateMetadata, 30000);
|
||||||
|
updateMetadata();
|
||||||
|
|
||||||
// Program Highlighter Logic
|
function updateHighlight() {
|
||||||
const schedule = <?= json_encode($schedule) ?>;
|
|
||||||
|
|
||||||
function toggleDescription(element) {
|
|
||||||
const isExpanded = element.classList.contains('is-expanded');
|
|
||||||
|
|
||||||
// Cerrar todos los demás
|
|
||||||
document.querySelectorAll('.program-item').forEach(item => {
|
|
||||||
item.classList.remove('is-expanded');
|
|
||||||
});
|
|
||||||
|
|
||||||
// Si no estaba expandido, abrirlo
|
|
||||||
if (!isExpanded) {
|
|
||||||
element.classList.add('is-expanded');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateProgramHighlight() {
|
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const currentTime = now.getHours().toString().padStart(2, '0') + ':' + now.getMinutes().toString().padStart(2, '0');
|
const cur = now.getHours().toString().padStart(2, "0") + ":" + now.getMinutes().toString().padStart(2, "0");
|
||||||
|
const schedule = <?= json_encode($schedule) ?>;
|
||||||
let liveIndex = -1;
|
let idx = -1;
|
||||||
const count = schedule.length;
|
for (let i = 0; i < schedule.length; i++) {
|
||||||
|
|
||||||
for (let i = 0; i < count; i++) {
|
|
||||||
const start = schedule[i].time;
|
const start = schedule[i].time;
|
||||||
const next = (i < count - 1) ? schedule[i+1].time : '23:59';
|
const next = schedule[i+1] ? schedule[i+1].time : "23:59";
|
||||||
|
if (cur >= start && cur < next) { idx = i; break; }
|
||||||
if (currentTime >= start && currentTime < next) {
|
|
||||||
liveIndex = i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
if (idx === -1) idx = schedule.length - 1;
|
||||||
|
|
||||||
// Handle night transition (last program or before first)
|
document.querySelectorAll(".program-item").forEach((item, i) => {
|
||||||
if (liveIndex === -1 && (currentTime >= schedule[count-1].time || currentTime < schedule[0].time)) {
|
item.classList.toggle("is-live", i === idx);
|
||||||
liveIndex = count - 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
const items = document.querySelectorAll('.program-item');
|
|
||||||
const studioProgramName = document.getElementById('studio-program-name');
|
|
||||||
const studioPhoto = document.getElementById('studio-photo');
|
|
||||||
const defaultStudioImage = 'assets/pasted-20260215-020116-2dc16355.jpg';
|
|
||||||
|
|
||||||
items.forEach((item, index) => {
|
|
||||||
if (index === liveIndex) {
|
|
||||||
item.classList.add('is-live');
|
|
||||||
} else {
|
|
||||||
item.classList.remove('is-live');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
const stName = document.getElementById("studio-program-name");
|
||||||
if (studioProgramName && liveIndex !== -1) {
|
const stPhoto = document.getElementById("studio-photo");
|
||||||
studioProgramName.textContent = schedule[liveIndex].name;
|
if (stName && idx !== -1) {
|
||||||
if (studioPhoto && schedule[liveIndex].image) {
|
stName.textContent = schedule[idx].name;
|
||||||
// Update image if it's different to avoid flickering
|
if (stPhoto && !stPhoto.src.includes(schedule[idx].image)) stPhoto.src = schedule[idx].image;
|
||||||
const newSrc = schedule[liveIndex].image + '?v=' + new Date().getTime();
|
|
||||||
if (!studioPhoto.src.includes(schedule[liveIndex].image)) {
|
|
||||||
studioPhoto.src = newSrc;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (studioProgramName) {
|
|
||||||
studioProgramName.textContent = 'Directo desde el estudio';
|
|
||||||
if (studioPhoto) {
|
|
||||||
studioPhoto.src = defaultStudioImage + '?v=' + new Date().getTime();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
setInterval(updateHighlight, 60000);
|
||||||
// Run every minute
|
updateHighlight();
|
||||||
updateProgramHighlight();
|
|
||||||
setInterval(updateProgramHighlight, 60000);
|
|
||||||
|
|
||||||
// Handle possible audio interruptions
|
|
||||||
audio.addEventListener('error', function(e) {
|
|
||||||
console.error('Audio error:', e);
|
|
||||||
trackTitle.textContent = "Error de conexión. Reintentando...";
|
|
||||||
nowPlaying.classList.remove('is-playing');
|
|
||||||
setTimeout(() => {
|
|
||||||
audio.load();
|
|
||||||
if (!audio.paused) {
|
|
||||||
audio.play();
|
|
||||||
nowPlaying.classList.add('is-playing');
|
|
||||||
}
|
|
||||||
}, 5000);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user