Smarthon 网上商店

  • 有任何问题?

    保持联络

    公司地址

    Unit 01-03 & 05-06, 25/F, CDW Building, 388 Castle Peak Road, Tsuen Wan, Hong Kong

    联络电邮

    info@smarthon.cc

    联络电话

    (+852) 3500-3963

    给我们留言

    (function(){ const target = new Date('2025-11-28T23:59:59'); const elDays = document.getElementById('bf-days'); const elHours = document.getElementById('bf-hours'); const elMins = document.getElementById('bf-mins'); const elSecs = document.getElementById('bf-secs'); const container = document.querySelector('.bf-countdown'); if (!container || !elDays || !elHours || !elMins || !elSecs) return; function pad(n){ return String(n).padStart(2,'0'); } function update(){ const now = new Date(); let diff = target - now; if (diff <= 0){ container.innerHTML = '🎉 黑色星期五活動已結束'; clearInterval(timer); return; } const days = Math.floor(diff / (1000*60*60*24)); diff -= days * (1000*60*60*24); const hours = Math.floor(diff / (1000*60*60)); diff -= hours * (1000*60*60); const mins = Math.floor(diff / (1000*60)); diff -= mins * (1000*60); const secs = Math.floor(diff / 1000); elDays.textContent = days; elHours.textContent = pad(hours); elMins.textContent = pad(mins); elSecs.textContent = pad(secs); } update(); const timer = setInterval(update, 1000); })();