<!DOCTYPE html>
<html>
<head>
    <title>Authentication Required</title>
</head>
<body>
    <h2>Authentication Required</h2>
    <form id="authForm">
        <input type="password" id="secret" placeholder="Enter secret" autofocus required>
        <button type="submit">Access Presentation</button>
    </form>
    <script>
        document.getElementById("authForm").addEventListener("submit", function(e) {
            e.preventDefault();
            const secret = document.getElementById("secret").value;
            document.cookie = "presentation_auth=" + secret + "; path=/; max-age=604800";
            window.location.reload();
        });
    </script>
</body>
</html>