Auto commit: 2026-02-23T19:47:27.162Z
This commit is contained in:
parent
1a39025ffb
commit
47cd9b186b
34
index.php
34
index.php
@ -1982,6 +1982,9 @@ $twitter_link = "https://twitter.com/";
|
|||||||
</div>
|
</div>
|
||||||
<div id="dj-host-container" style="display: flex; align-items: center; gap: 8px;">
|
<div id="dj-host-container" style="display: flex; align-items: center; gap: 8px;">
|
||||||
<div class="dj-badge" onclick="adminOpenShoutout()" style="cursor: pointer;" title="DJ Panel (Admin)"><i class="bi bi-mic-fill"></i> <span id="current-dj-name">LILI</span></div>
|
<div class="dj-badge" onclick="adminOpenShoutout()" style="cursor: pointer;" title="DJ Panel (Admin)"><i class="bi bi-mic-fill"></i> <span id="current-dj-name">LILI</span></div>
|
||||||
|
<button id="test-tictac-btn" onclick="testTicTac()" style="display: none; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; font-size: 0.6rem; padding: 2px 8px; border-radius: 10px; font-weight: 800; cursor: pointer; transition: all 0.3s;" title="Probar sonido Tic-Tac">
|
||||||
|
<i class="bi bi-clock"></i> TEST TIC-TAC
|
||||||
|
</button>
|
||||||
<div id="dj-flash-poll-control" style="display: none; margin-bottom: 8px;">
|
<div id="dj-flash-poll-control" style="display: none; margin-bottom: 8px;">
|
||||||
<button onclick="promptFlashPoll()" style="background: rgba(250, 204, 21, 0.2); border: 1px solid #facc15; color: #facc15; font-size: 0.6rem; padding: 2px 8px; border-radius: 10px; font-weight: 800; cursor: pointer; transition: all 0.3s;" title="Lanzar Encuesta Flash">
|
<button onclick="promptFlashPoll()" style="background: rgba(250, 204, 21, 0.2); border: 1px solid #facc15; color: #facc15; font-size: 0.6rem; padding: 2px 8px; border-radius: 10px; font-weight: 800; cursor: pointer; transition: all 0.3s;" title="Lanzar Encuesta Flash">
|
||||||
<i class="bi bi-lightning-fill"></i> PREGUNTA FLASH
|
<i class="bi bi-lightning-fill"></i> PREGUNTA FLASH
|
||||||
@ -3689,22 +3692,26 @@ $twitter_link = "https://twitter.com/";
|
|||||||
|
|
||||||
// Show/hide Skip button
|
// Show/hide Skip button
|
||||||
const skipBtn = document.getElementById('dj-skip-btn');
|
const skipBtn = document.getElementById('dj-skip-btn');
|
||||||
if (skipBtn) skipBtn.style.display = isGuestDj ? 'flex' : 'none';
|
if (skipBtn) skipBtn.style.display = (isGuestDj || isAdmin) ? 'flex' : 'none';
|
||||||
|
|
||||||
// Show/hide Energy Thermometer
|
// Show/hide Energy Thermometer
|
||||||
const thermometer = document.getElementById('dj-energy-thermometer');
|
const thermometer = document.getElementById('dj-energy-thermometer');
|
||||||
if (thermometer) thermometer.style.display = isGuestDj ? 'flex' : 'none';
|
if (thermometer) thermometer.style.display = (isGuestDj || isAdmin) ? 'flex' : 'none';
|
||||||
|
|
||||||
// Show/hide Flash Poll control
|
// Show/hide Flash Poll control
|
||||||
const pollControl = document.getElementById('dj-flash-poll-control');
|
const pollControl = document.getElementById('dj-flash-poll-control');
|
||||||
if (pollControl) pollControl.style.display = isGuestDj ? 'block' : 'none';
|
if (pollControl) pollControl.style.display = (isGuestDj || isAdmin) ? 'block' : 'none';
|
||||||
|
|
||||||
// Show/hide VIP Alert
|
// Show/hide VIP Alert
|
||||||
const vipAlert = document.getElementById('dj-vip-alert');
|
const vipAlert = document.getElementById('dj-vip-alert');
|
||||||
if (vipAlert) {
|
if (vipAlert) {
|
||||||
vipAlert.style.display = (isGuestDj && hasPriority) ? 'block' : 'none';
|
vipAlert.style.display = ((isGuestDj || isAdmin) && hasPriority) ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Show/hide Test Tic-Tac button
|
||||||
|
const tictacBtn = document.getElementById('test-tictac-btn');
|
||||||
|
if (tictacBtn) tictacBtn.style.display = (isGuestDj || isAdmin) ? 'block' : 'none';
|
||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
const list = document.getElementById('song-requests-list');
|
const list = document.getElementById('song-requests-list');
|
||||||
if (result.requests.length === 0) {
|
if (result.requests.length === 0) {
|
||||||
@ -4635,9 +4642,26 @@ $twitter_link = "https://twitter.com/";
|
|||||||
setInterval(fetchActivePerks, 30000);
|
setInterval(fetchActivePerks, 30000);
|
||||||
setInterval(updateVipTimers, 1000);
|
setInterval(updateVipTimers, 1000);
|
||||||
|
|
||||||
const ticTacAudio = new Audio('https://www.soundjay.com/clock/sounds/clock-ticking-2.mp3');
|
const ticTacAudio = new Audio('https://assets.mixkit.co/active_storage/sfx/560/560-preview.mp3');
|
||||||
ticTacAudio.volume = 0.3;
|
ticTacAudio.volume = 0.3;
|
||||||
|
|
||||||
|
function testTicTac() {
|
||||||
|
ticTacAudio.currentTime = 0;
|
||||||
|
ticTacAudio.play().then(() => {
|
||||||
|
const btn = document.getElementById('test-tictac-btn');
|
||||||
|
const original = btn.innerHTML;
|
||||||
|
btn.innerHTML = '<i class="bi bi-volume-up-fill"></i> SONANDO...';
|
||||||
|
btn.style.color = '#facc15';
|
||||||
|
setTimeout(() => {
|
||||||
|
btn.innerHTML = original;
|
||||||
|
btn.style.color = '';
|
||||||
|
}, 2000);
|
||||||
|
}).catch(e => {
|
||||||
|
console.error("Error al reproducir el tic-tac:", e);
|
||||||
|
alert("No se pudo reproducir el sonido. Asegúrate de haber interactuado con la página primero.");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function updateVipTimers() {
|
function updateVipTimers() {
|
||||||
let shouldPlayTicTac = false;
|
let shouldPlayTicTac = false;
|
||||||
document.querySelectorAll('.vip-timer').forEach(timer => {
|
document.querySelectorAll('.vip-timer').forEach(timer => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user