mirror of
https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git
synced 2025-06-14 16:19:59 +00:00
commit
ea97f49ead
BIN
static/FHIRFLARE.png.old
Normal file
BIN
static/FHIRFLARE.png.old
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
@ -380,8 +380,7 @@ body {
|
||||
.smoke .s-8 { animation: smokeLeft 7s 5.6s infinite; }
|
||||
.smoke .s-9 { animation: smokeRight 7s 6.3s infinite; }
|
||||
|
||||
/* Dark Theme (fire-off) */
|
||||
html[data-theme="dark"] .fire-on { opacity: 0; }
|
||||
html[data-theme="dark"] .section-center { box-shadow: 0 0 50px 5px rgba(200,200,200,.2); }
|
||||
html[data-theme="dark"] .smoke { opacity: 1; transition-delay: 0.8s; }
|
||||
html[data-theme="dark"] .fire span { bottom: -26px; transform: scale(0.15, 0.15) rotate(45deg); }
|
||||
/* Fire-off state (light theme) */
|
||||
body:not(.fire-on) .section-center { box-shadow: 0 0 50px 5px rgba(200,200,200,.2); }
|
||||
body:not(.fire-on) .smoke { opacity: 1; transition-delay: 0.8s; }
|
||||
body:not(.fire-on) .fire span { bottom: -26px; transform: scale(0.15, 0.15) rotate(45deg); }
|
BIN
static/favicon.ico.old
Normal file
BIN
static/favicon.ico.old
Normal file
Binary file not shown.
After Width: | Height: | Size: 281 KiB |
@ -128,10 +128,11 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
animationContainer.style.opacity = '1';
|
||||
}, 30000);
|
||||
|
||||
// Sync animation with theme (inverted: light = fire-off, dark = fire-on)
|
||||
// Sync animation with theme (reversed: dark = fire-on, light = fire-off)
|
||||
const updateAnimationState = () => {
|
||||
const isDark = htmlElement.getAttribute('data-theme') === 'dark';
|
||||
document.body.classList.toggle('fire-off', !isDark); // Light theme: fire-off, Dark theme: fire-on
|
||||
const savedTheme = localStorage.getItem('theme') || (document.cookie.includes('theme=dark') ? 'dark' : 'light');
|
||||
const isDark = savedTheme === 'dark';
|
||||
document.body.classList.toggle('fire-on', isDark); // Dark theme: fire-on, Light theme: fire-off
|
||||
};
|
||||
|
||||
// Initial state
|
||||
|
Loading…
x
Reference in New Issue
Block a user