// ... existing code ... // 生成星空 function createStars() { const starrySky = document.getElementById('starrySky'); const starCount = 50; // 修改星星数量为 50 for (let i = 0; i < starCount; i++) { const star = document.createElement('div'); star.classList.add('star'); const size = Math.random() * 2; star.style.width = `${size}px`; star.style.height = `${size}px`; star.style.top = `${Math.random() * 100}vh`; star.style.left = `${Math.random() * 100}vw`; star.style.animationDuration = `${Math.random() * 5 + 3}s`; starrySky.appendChild(star); } } // 页面加载时生成星空 window.addEventListener('load', () => { // ... existing code ... createStars(); }); // ... existing code ...
// ... existing code ... // 生成星空 function createStars() { const starrySky = document.getElementById('starrySky'); const starCount = 50; // 修改星星数量为 50 for (let i = 0; i < starCount; i++) { const star = document.createElement('div'); star.classList.add('star'); const size = Math.random() * 2; star.style.width = `${size}px`; star.style.height = `${size}px`; star.style.top = `${Math.random() * 100}vh`; star.style.left = `${Math.random() * 100}vw`; star.style.animationDuration = `${Math.random() * 5 + 3}s`; starrySky.appendChild(star); } } // 页面加载时生成星空 window.addEventListener('load', () => { // ... existing code ... createStars(); }); // ... existing code ...
// ... existing code ... // 生成星空 function createStars() { const starrySky = document.getElementById('starrySky'); const starCount = 50; // 修改星星数量为 50 for (let i = 0; i < starCount; i++) { const star = document.createElement('div'); star.classList.add('star'); const size = Math.random() * 2; star.style.width = `${size}px`; star.style.height = `${size}px`; star.style.top = `${Math.random() * 100}vh`; star.style.left = `${Math.random() * 100}vw`; star.style.animationDuration = `${Math.random() * 5 + 3}s`; starrySky.appendChild(star); } } // 页面加载时生成星空 window.addEventListener('load', () => { // ... existing code ... createStars(); }); // ... existing code ...
// ... existing code ... // 生成星空 function createStars() { const starrySky = document.getElementById('starrySky'); const starCount = 50; // 修改星星数量为 50 for (let i = 0; i < starCount; i++) { const star = document.createElement('div'); star.classList.add('star'); const size = Math.random() * 2; star.style.width = `${size}px`; star.style.height = `${size}px`; star.style.top = `${Math.random() * 100}vh`; star.style.left = `${Math.random() * 100}vw`; star.style.animationDuration = `${Math.random() * 5 + 3}s`; starrySky.appendChild(star); } } // 页面加载时生成星空 window.addEventListener('load', () => { // ... existing code ... createStars(); }); // ... existing code ...

奖项管理

抽奖记录 ▼