Fix modal border and improve light mode firecracker colors

This commit is contained in:
2026-07-10 16:51:25 +05:30
parent 6382924a62
commit 90700c0268
3 changed files with 18 additions and 41 deletions

View File

@@ -207,14 +207,8 @@
<script>
(function(){
let isLight = false;
try {
isLight = !window.parent.document.documentElement.classList.contains('dark');
} catch (e) {
const p = new URLSearchParams(window.location.search);
isLight = p.get('theme') === 'light';
}
window.isLightTheme = isLight;
const p = new URLSearchParams(window.location.search);
window.isLightTheme = p.get('theme') === 'light';
})();
const stage=document.getElementById('stage');
@@ -236,8 +230,8 @@
}
resize(); addEventListener('resize',resize);
const SPARK=window.isLightTheme?['#e28a22','#c2410c','#b45309','#78350f','#ea580c','#3b82f6']:['#f6dd93','#e8c463','#d4af37','#fff4cf','#ffffff','#8fb4ff'];
const CONF=window.isLightTheme?['#e28a22','#c2410c','#b45309','#ea580c','#ef4444','#3b82f6','#10b981']:['#f6dd93','#e8c463','#d4af37','#ffffff','#ffd34d'];
const SPARK=window.isLightTheme?['#b91c1c','#c2410c','#1d4ed8','#15803d','#7e22ce','#0f172a']:['#f6dd93','#e8c463','#d4af37','#fff4cf','#ffffff','#8fb4ff'];
const CONF=window.isLightTheme?['#b91c1c','#c2410c','#1d4ed8','#15803d','#7e22ce','#0f172a','#b45309']:['#f6dd93','#e8c463','#d4af37','#ffffff','#ffd34d'];
let parts=[], running=false, mode='fireworks', rafFW=null, fwTimers=[], fadeCol=(window.isLightTheme ? 'rgba(255,255,255,0.22)' : 'rgba(0,0,0,0.22)');
function burst(xr,yr,count){
@@ -409,15 +403,9 @@
<script>
(function(){
setInterval(() => {
let isLight = false;
try {
isLight = !window.parent.document.documentElement.classList.contains('dark');
} catch (e) {
const p = new URLSearchParams(window.location.search);
isLight = p.get('theme') === 'light';
}
window.isLightTheme = isLight;
const p = new URLSearchParams(window.location.search);
window.isLightTheme = p.get('theme') === 'light';
const isLight = window.isLightTheme;
if (isLight) {
document.body.style.setProperty('background', '#ffffff', 'important');