Longcell®
PIONEERING LYOCELL FILAMENTS
Milano Fashion Show
September 22, 2026
something big and green is coming!
the waves of nature woven in luxury
The countdown begins, Stay Tuned!
document.addEventListener('click', function() {
audio.play();
}, { once: true });
// Imposta la data target: 28 settembre 2026
const targetDate = new Date(2026, 8, 28); // Nota: i mesi in JavaScript vanno da 0 (gennaio) a 11 (dicembre)
function updateCountdown() {
const now = new Date();
const difference = targetDate - now;
if (difference <= 0) {
// Countdown terminato
document.getElementById('days').textContent = '0';
document.getElementById('hours').textContent = '0';
document.getElementById('minutes').textContent = '0';
document.getElementById('seconds').textContent = '00';
clearInterval(countdownInterval);
return;
}
// Calcola giorni, ore, minuti e secondi
const days = Math.floor(difference / (1000 * 60 * 60 * 24));
const hours = Math.floor((difference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((difference % (1000 * 60)) / 1000);
// Aggiorna il DOM con formattazione a due cifre
document.getElementById('days').textContent = String(days).padStart(2, '0');
document.getElementById('hours').textContent = String(hours).padStart(2, '0');
document.getElementById('minutes').textContent = String(minutes).padStart(2, '0');
document.getElementById('seconds').textContent = String(seconds).padStart(2, '0');
}
// Aggiorna immediatamente e poi ogni secondo
updateCountdown();
const countdownInterval = setInterval(updateCountdown, 1000);