繁體中文
简体中文
English
HKD
USD
SGD
HKD
0.00
0
購物籃
Products search
首頁
智慧城市套裝
智能家居套裝
智慧植物套裝
資源庫
教學資源
Smart City 教學資源
Smart Home 教學資源
Smart Plant 教學資源
線上資源
社群
消息
經銷商
支援
常見問題
保修和退貨
聯絡我們
首頁
智慧城市套裝
智能家居套裝
智慧植物套裝
資源庫
教學資源
Smart City 教學資源
Smart Home 教學資源
Smart Plant 教學資源
線上資源
社群
消息
經銷商
支援
常見問題
保修和退貨
聯絡我們
商品
繁體中文
简体中文
English
HKD
0.00
0
購物籃
Products search
首頁
智慧城市套裝
智能家居套裝
智慧植物套裝
資源庫
教學資源
Smart City 教學資源
Smart Home 教學資源
Smart Plant 教學資源
線上資源
社群
消息
經銷商
支援
常見問題
保修和退貨
聯絡我們
首頁
智慧城市套裝
智能家居套裝
智慧植物套裝
資源庫
教學資源
Smart City 教學資源
Smart Home 教學資源
Smart Plant 教學資源
線上資源
社群
消息
經銷商
支援
常見問題
保修和退貨
聯絡我們
商品
TC Smart City Teaching Resources
29 12 月, 2021
(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); })();