adventskalender/shared/js/save-progress.js aktualisiert

This commit is contained in:
2025-11-05 20:38:34 +00:00
parent a0a3d87fd8
commit d6458a6e49

View File

@@ -68,7 +68,25 @@
localStorage.removeItem(STORAGE_KEY);
location.reload();
});
document.body.appendChild(btn);
const devPanel = document.getElementById("dev-panel");
if (devPanel) {
devPanel.appendChild(btn);
} else {
const panel = document.createElement("div");
panel.id = "dev-panel";
panel.style.cssText = `
position: fixed;
bottom: 10px;
right: 10px;
display: flex;
flex-direction: column;
gap: 10px;
align-items: flex-end;
z-index: 9999;
`;
document.body.appendChild(panel);
panel.appendChild(btn);
}
}
});