fix: visibility

This commit is contained in:
franek 2024-03-07 14:39:56 +00:00
parent e15e6374fe
commit da610f3c81
2 changed files with 7 additions and 2 deletions

View File

@ -12,8 +12,8 @@ if (!startPage || !templatePage) {
const patches = DATA?.[input.value]; const patches = DATA?.[input.value];
if (!patches) return alert('Bad access code!'); if (!patches) return alert('Bad access code!');
await fadeBlock() applyPatches(patches);
applyPatches(patches) await fadeBlock();
} }
function applyPatches(patches) { function applyPatches(patches) {
@ -33,6 +33,7 @@ if (!startPage || !templatePage) {
await wait(0.2); await wait(0.2);
startPage.style.display = 'none'; startPage.style.display = 'none';
await wait(0.2); await wait(0.2);
templatePage.style.display = 'block';
templatePage.style.opacity = 1; templatePage.style.opacity = 1;
} }

View File

@ -23,6 +23,10 @@ body {
transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out;
} }
#internal__template {
display: none;
}
#internal__start-page { #internal__start-page {
width: 100%; width: 100%;
height: 100%; height: 100%;