From da610f3c819b91385e2dcb85ab5a0d18c8340c47 Mon Sep 17 00:00:00 2001 From: franek <97941280+sadorowo@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:39:56 +0000 Subject: [PATCH] fix: visibility --- script.js | 5 +++-- style.css | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) 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%;