🚨 FIX: Loading screen блокирует клики - принудительное удаление из DOM
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-25 12:39:50 +09:00
parent c91df27dfa
commit 012ec02145
2 changed files with 26 additions and 5 deletions

View File

@@ -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');
}