Refactor birthday, olympia, space, and sports animations; enhance symbol management and visual effects

- Updated birthday.js to improve balloon visuals and confetti effects, including new color schemes and enhanced pop animations.
- Removed legacy fallback logic in olympia.js and improved image error handling.
- Enhanced space.js with configurable counts for planets, astronauts, satellites, ISS, and rockets; improved shooting star animations and added random image swapping.
- Simplified sports.js by removing legacy emoji fallback logic and optimizing ball creation based on selected categories.
- Adjusted CSS styles across birthday, olympia, space, and sports for better visual consistency and performance.
[skip ci]
This commit is contained in:
CodeDevMLH
2026-02-27 01:18:08 +01:00
parent bdc7d2e325
commit 8f322fd6cf
10 changed files with 471 additions and 342 deletions

View File

@@ -107,8 +107,7 @@ function createOlympia() {
}
img.src = `../Seasonals/Resources/olympic_assets/${imgName}`;
img.onerror = function() {
this.style.display = 'none';
this.parentElement.innerHTML = getOlympiaEmojiFallback(randomItem);
symbol.remove();
};
innerDiv.appendChild(img);
@@ -244,13 +243,6 @@ function createOlympia() {
}
}
function getOlympiaEmojiFallback(type) {
if (type === 'gold') return '🥇';
if (type === 'silver') return '🥈';
if (type === 'bronze') return '🥉';
return ''; // Rings will be handled by CSS or actual image
}
function initializeOlympia() {
if (!olympia) return;
createOlympia();