Red San Patricio

30% EXTRA EN
TU CARGA

¡R3TIROS SIN LIMITES!

¡ESCRIBINOS APRETANDO ACA ABAJO!

Chatear por WhatsApp

🎁YA MÁS DE 9.716 CLIENTES GANARON🎁

Perfil del ganador
// Script para la cuenta regresiva del "Tiempo agotado" y la barra de progreso const footerElement = document.querySelector('.footer'); const progressBarElement = document.getElementById('progressBar'); const clientesGanadoresElement = document.getElementById('clientesGanadores'); let totalTime = 9; // Almacena el tiempo total inicial para el temporizador descendente let timeLeft = totalTime; // Inicia en 9 segundos let initialClients = 9716; // Cantidad inicial de clientes let finalClients = 10077; // Cantidad final deseada de clientes let currentClients = initialClients; // El contador comienza en el valor inicial // Calculamos cuántos clientes deben aumentar por cada segundo const totalClientsToIncrease = finalClients - initialClients; const clientIncrementPerTick = Math.ceil(totalClientsToIncrease / totalTime); function updateTimer() { if (timeLeft >= 0) { if (timeLeft > 0) { footerElement.innerHTML = `⏳ Oferta activa por ${timeLeft} segundos`; } else { footerElement.innerHTML = `⏳ Tiempo agotado`; } const percentage = (timeLeft / totalTime) * 100; progressBarElement.style.width = `${percentage}%`; if (currentClients < finalClients) { currentClients = Math.min(finalClients, currentClients + clientIncrementPerTick); } clientesGanadoresElement.textContent = currentClients.toLocaleString( 'es-AR'); timeLeft--; } else { clearInterval(timerInterval); clientesGanadoresElement.textContent = finalClients.toLocaleString('es-AR'); } } updateTimer(); const timerInterval = setInterval(updateTimer, 1000); // --- Lógica para el cartel flotante de ganadores --- const winnerNotification = document.getElementById('winnerNotification'); const winnerNameElement = document.getElementById('winnerName'); const winnerPrizeElement = document.getElementById('winnerPrize'); const winnerLocationTimeElement = document.getElementById('winnerLocationTime'); const ganadoresData = [{ name: "Exe Bosch", prize: "Premio PAGADO$$", location: "Desde Jujuy", time: "hace 1 hora" }, { name: "Sofía Núñez", prize: "Premio PAGADO$$", location: "Desde Tucumán", time: "hace 10 minutos" }, { name: "Diego Castro", prize: "Premio PAGADO$$", location: "Desde Salta", time: "hace 5 minutos" }, { name: "Valeria Ríos", prize: "Premio PAGADO$$", location: "Desde Córdoba", time: "hace 1 hora" }, { name: "Martín López", prize: "Premio PAGADO$$", location: "Desde Mendoza", time: "hace 2 horas" }, { name: "Lucía Giménez", prize: "Premio PAGADO$$", location: "Desde Santa Fe", time: "hace 30 minutos" }, ]; let currentWinnerIndex = 0; const displayDuration = 3000; const hideDuration = 300; const intervalBetweenNotifications = 1000; function showWinnerNotification() { const winner = ganadoresData[currentWinnerIndex]; winnerNameElement.textContent = winner.name; winnerPrizeElement.textContent = winner.prize; winnerLocationTimeElement.textContent = `${winner.location} • ${winner.time}`; winnerNotification.classList.add('show'); setTimeout(() => { winnerNotification.classList.remove('show'); setTimeout(() => { currentWinnerIndex = (currentWinnerIndex + 1) % ganadoresData.length; showWinnerNotification(); }, intervalBetweenNotifications); }, displayDuration); } setTimeout(showWinnerNotification, 1000);