// ── PASSWORD ── var PW_HASH = '7f4c2d8e9b1a6f3c5d2e8b4a7f1c9d3e'; // hash placeholder function checkPassword() { var input = document.getElementById('passwordInput').value; // Simple check - password is stored obfuscated var correct = atob('WGs5I21QMiR2TDduUXc0IQ=='); if (input === correct) { document.getElementById('loginScreen').style.display = 'none'; sessionStorage.setItem('qm_auth','1'); loadFromCloud(); } else { document.getElementById('loginError').style.display = 'block'; document.getElementById('passwordInput').value = ''; document.getElementById('passwordInput').focus(); } } // Check if already authenticated this session if (sessionStorage.getItem('qm_auth') === '1') { document.getElementById('loginScreen').style.display = 'none'; loadFromCloud(); }