adventskalender/shared/js/save-progress.js aktualisiert
This commit is contained in:
@@ -68,7 +68,25 @@
|
|||||||
localStorage.removeItem(STORAGE_KEY);
|
localStorage.removeItem(STORAGE_KEY);
|
||||||
location.reload();
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user