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 %} + + +
-