Enable debug temporarily for diagnosis

This commit is contained in:
Richard Zink committed 2026-10-07 16:56:50 +02:00
1 parent d8e619e0c3
commit e8df75eebc
4 files changed
+101 -69

No files matched your search

+18 -6
View File
@@ -322,7 +322,7 @@
</style>
</head>
<body>
<div id="vanta"></div>
<div id="vanta" style="background: #1c1b1f;"></div>
<div id="debug-panel">
<div class="debug-title expanded" onclick="toggleDebugPanel()"><span>DEBUG - Palette: <span id="dbg-palette-name">Ash</span></span><span class="debug-title-toggle" id="debug-toggle-icon">▼</span></div>
<div id="debug-content" class="debug-content">
@@ -476,6 +476,8 @@
<script src="vendor/vanta.clouds2.min.js"></script>
<script src="vendor/clouds2d.js"></script>
<script>
window.__clouds2dStarted = true;
try {
var noiseDataUri = 'data:image/png;base64,PLACEHOLDER';
var useVanta = !(window.CONFIG && window.CONFIG.renderer === 'clouds2d');
var effect;
@@ -498,18 +500,24 @@ if (useVanta && typeof VANTA !== 'undefined') {
texturePath: noiseDataUri
}) || { setOptions: function() {} };
} else {
var c2dCanvas = document.getElementById('vanta');
var c2dRender = function() {
effect = { setOptions: function() {} };
function c2dRender() {
var c2dCanvas = document.getElementById('vanta');
if (!c2dCanvas) return;
c2dCanvas.width = window.innerWidth;
c2dCanvas.height = window.innerHeight;
if (typeof window.clouds2dRender === 'function') {
window.clouds2dRender(c2dCanvas);
}
};
effect = { setOptions: function() {} };
}
c2dRender();
window.addEventListener('resize', c2dRender);
// Continuously update animation via rAF
function c2dLoop() {
c2dRender();
window._clouds2dRaf = requestAnimationFrame(c2dLoop);
}
window._clouds2dRaf = requestAnimationFrame(c2dLoop);
}
function hexToRgb(h) {
@@ -1922,6 +1930,10 @@ window.weatherThemes = {
fetchWeather();
setInterval(fetchWeather, 15 * 60 * 1000);
tick();
</script>
} catch (e) {
window.__clouds2dError = e.message || String(e);
console.error('Background init error:', e);
}
</script>
</body>
</html>