<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Загрузка файла по паролю</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f4f4f4;
        }
        .container {
            text-align: center;
            padding: 20px;
            border: 1px solid #ccc;
            background-color: #fff;
            border-radius: 5px;
        }
        input[type="password"] {
            padding: 10px;
            margin: 10px 0;
            width: 200px;
        }
        button {
            padding: 10px 20px;
            cursor: pointer;
        }
        .error {
            color: red;
        }
    </style>
    <script>
        function checkPassword() {
            const passwordInput = document.getElementById('password').value;
            const correctPassword = '123123'; // Замените на ваш пароль

            if (passwordInput === correctPassword) {
                // Если пароль правильный, создаем ссылку для загрузки файла
                const link = document.createElement('a');
                link.href = 'https://github.com/user123123333333/user123123333333.github.io/raw/refs/heads/main/sa.rar'; // Замените на путь к вашему файлу
                link.download = 'sunny gta.rar'; // Имя файла при загрузке
                document.body.appendChild(link);
                link.click();
                document.body.removeChild(link);
            } else {
                alert('Неверный пароль. Попробуйте еще раз.');
            }
        }
    </script>
</head>
<body>

    <div class="container">
        <h2>Введите пароль для доступа</h2>
        <input type="password" id="password" placeholder="Пароль" required>
        <button onclick="checkPassword()">Подтвердить</button>
        <p id="message" class="error"></p>
    </div>

</body>
</html>