Acesso Restrito

Senha incorreta. Tente novamente.

NIPA Engenharia NIPA
  • Voltar

Espaço Utilizado

0 GB / 10 GB
  • Meus Arquivos
  • Recentes
  • Lixeira
// Password protection const passwordModal = document.getElementById('passwordModal'); const passwordInput = document.getElementById('passwordInput'); const passwordSubmit = document.getElementById('passwordSubmit'); const passwordError = document.getElementById('passwordError'); const correctPassword = 'NipaEnge2025@#'; // Check if already authenticated const isAuthenticated = sessionStorage.getItem('cloudAuthenticated'); if (isAuthenticated) { passwordModal.classList.remove('active'); } passwordSubmit.addEventListener('click', () => { if (passwordInput.value === correctPassword) { passwordModal.classList.remove('active'); sessionStorage.setItem('cloudAuthenticated', 'true'); passwordError.style.display = 'none'; } else { passwordError.style.display = 'block'; passwordInput.value = ''; } }); passwordInput.addEventListener('keypress', (e) => { if (e.key === 'Enter') { passwordSubmit.click(); } }); // Prevent access to cloud features before authentication function checkAuthentication() { if (!sessionStorage.getItem('cloudAuthenticated')) { passwordModal.classList.add('active'); return false; } return true; } // Add authentication check to existing event listeners uploadButton.addEventListener('click', (e) => { if (checkAuthentication()) { fileInput.click(); } });