Skip to content

dkpw[pewwe' #228

@yusif5252

Description

@yusif5252
<title>Квест: введи пароль</title> <style> body { font-family: Arial, sans-serif; max-width: 400px; margin: 50px auto; text-align: center; } input { font-size: 1.2em; padding: 8px; width: 80%; } button { font-size: 1.1em; padding: 10px 20px; margin-top: 10px; } #audio { margin-top: 20px; } </style>

Введите пароль:


Проверить

Правильно! Слушайте сообщение:

Ваш браузер не поддерживает аудио.
<script> function checkPassword() { const input = document.getElementById("password").value; if (input === "6145") { document.getElementById("audio").style.display = "block"; } else { alert("Неверный пароль!"); } } document.getElementById("password") .addEventListener("keydown", e => { if (e.key === "Enter") checkPassword(); }); </script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions