[Evento] Florianópolis – 135
';
}
});
this.container.innerHTML = html;
}
update() {
const now = Date.now();
const distanceToStart = this.targetDate.getTime() - now;
const distanceToEnd = this.endDate.getTime() - now;
if (distanceToEnd {
const el = this.container.querySelector(`[data-unit="${unit}"]`);
if (el) el.textContent = String(value).padStart(2, '0');
});
}
showMessage(text) {
clearInterval(this.intervalId);
if (this.title) this.title.style.display = 'none';
this.container.innerHTML = `
${text}
`;
}
}
(function () {
const init = () => new AvelCountdown(COUNTDOWN_CONFIG);
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
init();
}
})();