diff --git a/miniapp/assets/app.js b/miniapp/assets/app.js index 962619b..31f0c6a 100644 --- a/miniapp/assets/app.js +++ b/miniapp/assets/app.js @@ -354,14 +354,18 @@ function renderError() { } /* ----------------- Init ----------------- */ +// Засекаем когда стартовали — чтобы splash висел минимум ~700мс +const _splashStart = Date.now(); function hideSplash() { const splash = document.getElementById("splash"); if (!splash) return; - // Минимум 350мс показа, чтобы не было «вспышки» + const elapsed = Date.now() - _splashStart; + const minShow = 700; // минимум показа, мс + const wait = Math.max(0, minShow - elapsed); setTimeout(() => { splash.classList.add("hide"); setTimeout(() => splash.remove(), 450); - }, 200); + }, wait); } async function init() { diff --git a/miniapp/index.html b/miniapp/index.html index b0d6a8b..2a41e6e 100644 --- a/miniapp/index.html +++ b/miniapp/index.html @@ -12,34 +12,34 @@ - - + + -
-
- -
-
-
Открываем кабинет
-
ZOV · кухня и техника
-
+ +
+ +
+
+
Открываем кабинет
+
ZOV · кухня и техника
-
- - - - - - - + +
+ + + + + + +