// CHANGE YOUR PASSWORD HERE MONTHLY const VAULT_KEY = "DanzFitX2025"; (function() { // 1. Create the Lock Screen HTML dynamically const lockHTML = ` `; // 2. Function to check access window.unlockVault = function() { const input = document.getElementById('gate-pass').value; if (input === VAULT_KEY) { sessionStorage.setItem('vault_auth', 'true'); document.getElementById('lock-screen').remove(); } else { const err = document.getElementById('gate-error'); err.style.display = 'block'; setTimeout(() => { err.style.display = 'none'; }, 2000); } }; // 3. Execution: If not authenticated, show lock screen document.addEventListener("DOMContentLoaded", function() { if (sessionStorage.getItem('vault_auth') !== 'true') { document.body.insertAdjacentHTML('afterbegin', lockHTML); document.getElementById('unlock-btn').addEventListener('click', unlockVault); // Allow "Enter" key to work document.getElementById('gate-pass').addEventListener('keypress', (e) => { if (e.key === 'Enter') unlockVault(); }); } }); })();