Dartline Coaches is now Dartline – same friendly team, now proudly part of the Go-Ahead Group

SANTA'S COMING IN...

Loading...
.card { width: 100%; height: 200px; background-color: #E21518; border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; margin: 20px auto; /* Centers the widget nicely on your page */ font-family: 'Roboto', sans-serif; } .card h2 { margin: 0 0 10px 0; color: #ffffff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; z-index: 10; } .card #timer { font-size: 1.8rem; color: #ffffff; font-weight: bold; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); z-index: 10; } .card .snowflake { position: absolute; top: -10px; background: #FFFFFF; border-radius: 50%; opacity: 0.8; pointer-events: none; animation: fall linear infinite; } @keyframes fall { 0% { transform: translateY(0) translateX(0); } 100% { transform: translateY(190px) translateX(10px); } } (function() { const card = document.getElementById('snowCard'); function createSnowflake() { const snowflake = document.createElement('div'); snowflake.classList.add('snowflake'); const size = Math.random() * 4 + 2 + 'px'; snowflake.style.width = size; snowflake.style.height = size; snowflake.style.left = Math.random() * card.offsetWidth + 'px'; const duration = Math.random() * 2 + 2; snowflake.style.animationDuration = duration + 's'; card.appendChild(snowflake); setTimeout(() => { snowflake.remove(); }, duration * 1000); } // Generate snowflakes inside the widget box setInterval(createSnowflake, 20); // Countdown Timer Logic const targetDate = new Date("November 30, 2026 17:45:00").getTime(); const countdownInterval = setInterval(function() { const now = new Date().getTime(); const distance = targetDate - now; const days = Math.floor(distance / (1000 * 60 * 60 * 24)); const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); const seconds = Math.floor((distance % (1000 * 60)) / 1000); const timerEl = card.querySelector('#timer'); if (distance < 0) { clearInterval(countdownInterval); timerEl.innerHTML = "EXPIRED"; } else { timerEl.innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s "; } }, 1000); })();