From 012ec0214560185fbb376b7fff3d4514f029f47a Mon Sep 17 00:00:00 2001 From: "Andrey K. Choi" Date: Tue, 25 Nov 2025 12:39:50 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20FIX:=20Loading=20screen=20=D0=B1?= =?UTF-8?q?=D0=BB=D0=BE=D0=BA=D0=B8=D1=80=D1=83=D0=B5=D1=82=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B8=D0=BA=D0=B8=20-=20=D0=BF=D1=80=D0=B8=D0=BD=D1=83=D0=B4?= =?UTF-8?q?=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=D0=B5=20=D1=83=D0=B4?= =?UTF-8?q?=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B8=D0=B7=20DOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/assets/js/modern-scripts.js | 10 +++++---- .../web/templates/web/base_modern.html | 21 ++++++++++++++++++- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/smartsoltech/static/assets/js/modern-scripts.js b/smartsoltech/static/assets/js/modern-scripts.js index 3ca2c98..4b299cf 100644 --- a/smartsoltech/static/assets/js/modern-scripts.js +++ b/smartsoltech/static/assets/js/modern-scripts.js @@ -10,11 +10,13 @@ document.addEventListener('DOMContentLoaded', function() { loadingScreen.style.opacity = '0'; loadingScreen.style.pointerEvents = 'none'; setTimeout(() => { - loadingScreen.style.display = 'none'; - loadingScreen.remove(); // Полностью удаляем элемент - console.log('SmartSolTech: Loading screen removed'); + // Полностью удаляем элемент из DOM + if (loadingScreen.parentNode) { + loadingScreen.parentNode.removeChild(loadingScreen); + console.log('SmartSolTech: Loading screen completely removed from DOM'); + } }, 300); - }, 500); // Уменьшили время ожидания + }, 200); // Уменьшили время ожидания до 200ms } else { console.log('SmartSolTech: Loading screen not found'); } diff --git a/smartsoltech/web/templates/web/base_modern.html b/smartsoltech/web/templates/web/base_modern.html index 80ef760..c1b2806 100644 --- a/smartsoltech/web/templates/web/base_modern.html +++ b/smartsoltech/web/templates/web/base_modern.html @@ -35,10 +35,29 @@ {% block extra_styles %}{% endblock %} {% block extra_head %}{% endblock %} + + + -
+