diff --git a/script.js b/script.js index 3164bd4..e869d4e 100644 --- a/script.js +++ b/script.js @@ -12,8 +12,8 @@ if (!startPage || !templatePage) { const patches = DATA?.[input.value]; if (!patches) return alert('Bad access code!'); - await fadeBlock() - applyPatches(patches) + applyPatches(patches); + await fadeBlock(); } function applyPatches(patches) { @@ -33,6 +33,7 @@ if (!startPage || !templatePage) { await wait(0.2); startPage.style.display = 'none'; await wait(0.2); + templatePage.style.display = 'block'; templatePage.style.opacity = 1; } diff --git a/style.css b/style.css index 529f4b1..bb43c26 100644 --- a/style.css +++ b/style.css @@ -23,6 +23,10 @@ body { transition: opacity 0.2s ease-in-out; } +#internal__template { + display: none; +} + #internal__start-page { width: 100%; height: 100%;