Fix redeclared const scene breaking entire script
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ad81c6fb69
commit
134d09c93f
1 changed files with 1 additions and 3 deletions
|
|
@ -945,8 +945,6 @@ for (let i = 0; i < SPEC_COUNT; i++) {
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
METEORS
|
METEORS
|
||||||
============================================================ */
|
============================================================ */
|
||||||
const scene = document.querySelector('.scene');
|
|
||||||
|
|
||||||
function spawnMeteor() {
|
function spawnMeteor() {
|
||||||
const el = document.createElement('div');
|
const el = document.createElement('div');
|
||||||
el.className = 'meteor';
|
el.className = 'meteor';
|
||||||
|
|
@ -964,7 +962,7 @@ function spawnMeteor() {
|
||||||
animation-name:meteorFall;
|
animation-name:meteorFall;
|
||||||
translate:0 ${(window.innerHeight + len) * 1.3}px;
|
translate:0 ${(window.innerHeight + len) * 1.3}px;
|
||||||
`;
|
`;
|
||||||
scene.appendChild(el);
|
document.querySelector('.scene').appendChild(el);
|
||||||
setTimeout(() => el.remove(), dur * 1000);
|
setTimeout(() => el.remove(), dur * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue