guanghulab/cost-control/cost-control.js
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

32 lines
979 B
JavaScript

document.addEventListener('DOMContentLoaded', function() {
// 标签切换功能
const tabs = document.querySelectorAll('.tab');
tabs.forEach(tab => {
tab.addEventListener('click', function() {
tabs.forEach(t => t.classList.remove('active'));
this.classList.add('active');
});
});
// 柱状图入场动画
const bars = document.querySelectorAll('.bar');
bars.forEach((bar, index) => {
const height = bar.style.height;
bar.style.height = '0';
setTimeout(() => {
bar.style.height = height;
}, 200 + index * 100);
});
// 进度条动画
const progressBars = document.querySelectorAll('.progress-bar');
progressBars.forEach(bar => {
const width = bar.style.width;
bar.style.width = '0';
setTimeout(() => {
bar.style.width = width;
}, 500);
});
console.log('HoloLake 成本控制系统已加载');
});