Make iframe background transparent to fix FOUC and use vibrant cyan/magenta firecrackers

This commit is contained in:
2026-07-10 16:59:43 +05:30
parent ead4942b6d
commit f5049ef965
2 changed files with 16 additions and 16 deletions

View File

@@ -156,11 +156,11 @@
}
body, html {
background: #000000 !important;
background: transparent !important;
background-image: none !important;
}
body.sad {
background: #000000 !important;
background: transparent !important;
background-image: none !important;
}
body::after {
@@ -236,8 +236,8 @@
}
resize(); addEventListener('resize',resize);
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'];
const SPARK=window.isLightTheme?['#0891b2','#2563eb','#db2777','#ea580c','#7c3aed','#059669']:['#f6dd93','#e8c463','#d4af37','#fff4cf','#ffffff','#8fb4ff'];
const CONF=window.isLightTheme?['#0891b2','#2563eb','#db2777','#ea580c','#7c3aed','#059669','#d97706']:['#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){
@@ -419,8 +419,8 @@
window.isLightTheme = isLight;
if (isLight) {
document.body.style.setProperty('background', '#ffffff', 'important');
document.documentElement.style.setProperty('background', '#ffffff', 'important');
document.body.style.setProperty('background', 'transparent', 'important');
document.documentElement.style.setProperty('background', 'transparent', 'important');
const b = document.querySelector('.badge');
if (b) b.style.setProperty('background', "url('/PragatiVeer_Logo/SVG_Logos/Square_light_background.svg') center/cover no-repeat", 'important');
if (typeof fadeCol !== 'undefined') {
@@ -431,8 +431,8 @@
window.sadFaceEyes = 'rgba(40,60,90,0.95)';
window.sadFaceTears = 'rgba(30,144,255,0.92)';
} else {
document.body.style.setProperty('background', '#000000', 'important');
document.documentElement.style.setProperty('background', '#000000', 'important');
document.body.style.setProperty('background', 'transparent', 'important');
document.documentElement.style.setProperty('background', 'transparent', 'important');
const b = document.querySelector('.badge');
if (b) b.style.setProperty('background', "url('/PragatiVeer_Logo/SVG_Logos/Square_dark_background.svg') center/cover no-repeat", 'important');
if (typeof fadeCol !== 'undefined') {