        document.querySelector('form').addEventListener('submit', function() {
            document.getElementById('loading').style.display = 'flex';
            document.getElementById('root').style.display = 'none';
        });
        window.onbeforeunload = function() {
            document.getElementById('loading').style.display = 'flex';
            document.getElementById('root').style.display = 'none';
        };