Rotador Kiosko Urretxindorra
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Rotador Kiosko Urretxindorra</title>
<style>
body, html { margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden; background-color: #000; }
iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: none; }
.active { display: block; }
</style>
</head>
<body>
<iframe id="frame1" class="active" src="https://docs.google.com/spreadsheets/d/1OHAcRqFfXTm5jEOdhRfA56H9ra5-pTeK7XAbaHz8x3w/edit?rm=minimal&gid=1983649317"></iframe>
<iframe id="frame2" src="https://calendar.google.com/calendar/embed?src=urretxindorra.net_mm71i13dqf0fr68a059f4qm6qo%40group.calendar.google.com&ctz=Europe%2FMadrid"></iframe>
<script>
// CONFIGURACIÓN: Tiempo de rotación (30000 = 30 segundos)
const TIEMPO = 30000;
const f1 = document.getElementById('frame1');
const f2 = document.getElementById('frame2');
let pantalla1Visible = true;
setInterval(() => {
if (pantalla1Visible) {
f1.style.display = 'none';
f2.style.display = 'block';
// Recarga el Sheets en segundo plano para asegurar tiempo real
f1.src = "https://docs.google.com/spreadsheets/d/1OHAcRqFfXTm5jEOdhRfA56H9ra5-pTeK7XAbaHz8x3w/edit?rm=minimal&gid=1983649317";
} else {
f2.style.display = 'none';
f1.style.display = 'block';
// Recarga el Calendario
f2.src = "https://calendar.google.com/calendar/embed?src=urretxindorra.net_mm71i13dqf0fr68a059f4qm6qo%40group.calendar.google.com&ctz=Europe%2FMadrid";
}
pantalla1Visible = !pantalla1Visible;
}, TIEMPO);
</script>
</body>
</html>