Skip to content
View Don-No7's full-sized avatar
  • THE FAMOUS ELECTRIC
  • Bangladesh

Block or report Don-No7

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Don-No7/README.md
<title>Login</title> <script defer src="login-page.js"></script>

Login

<div id="login-error-msg-holder">
  <p id="login-error-msg">Invalid username <span id="error-msg-second-line">and/or password</span></p>
</div>

<form id="login-form">
  <input type="text" name="username" id="username-field" class="login-form-field" placeholder="Username">
  <input type="password" name="password" id="password-field" class="login-form-field" placeholder="Password">
  <input type="submit" value="Login" id="login-form-submit">
</form>
html { height: 100%; }

body { height: 100%; margin: 0; font-family: Arial, Helvetica, sans-serif; display: grid; justify-items: center; align-items: center; background-color: #3a3a3a; }

#main-holder { width: 50%; height: 70%; display: grid; justify-items: center; align-items: center; background-color: white; border-radius: 7px; box-shadow: 0px 0px 5px 2px black; }

#login-error-msg-holder { width: 100%; height: 100%; display: grid; justify-items: center; align-items: center; }

#login-error-msg { width: 23%; text-align: center; margin: 0; padding: 5px; font-size: 12px; font-weight: bold; color: #8a0000; border: 1px solid #8a0000; background-color: #e58f8f; opacity: 0; }

#error-msg-second-line { display: block; }

#login-form { align-self: flex-start; display: grid; justify-items: center; align-items: center; }

.login-form-field::placeholder { color: #3a3a3a; }

.login-form-field { border: none; border-bottom: 1px solid #3a3a3a; margin-bottom: 10px; border-radius: 3px; outline: none; padding: 0px 0px 5px 5px; }

#login-form-submit { width: 100%; padding: 7px; border: none; border-radius: 5px; color: white; font-weight: bold; background-color: #3a3a3a; cursor: pointer; outline: none; } const loginForm = document.getElementById("login-form"); const loginButton = document.getElementById("login-form-submit"); const loginErrorMsg = document.getElementById("login-error-msg");

loginButton.addEventListener("click", (e) => { e.preventDefault(); const username = loginForm.username.value; const password = loginForm.password.value;

if (username === "user" && password === "web_dev") {
    alert("You have successfully logged in.");
    location.reload();
} else {
    loginErrorMsg.style.opacity = 1;
}

})

Popular repositories Loading

  1. Hack-SQL Hack-SQL Public

    -- -- File generated with SQLiteStudio v3.2.1 on Sun Feb 7 14:58:28 2021 -- -- Text encoding used: System -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- Table: Commands CREATE TABLE Commands (…

    121 20

  2. Zip-Password-Crack Zip-Password-Crack Public

    import zipfile ,itertools ,os ,time def main(): all_char = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_@.' num = '1234567890' alph = 'abcdefghijklmnopqrstuvwxyz' cap_alph = 'AB…

    4 1

  3. PHP-LOGIN-BYPASS- PHP-LOGIN-BYPASS- Public

    EXE CODE

    2

  4. Password-Shower Password-Shower Public

    { "name": "hideshowpassword", "version": "2.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { "align-text": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/align-text/-…

    2

  5. Don-No7 Don-No7 Public

    Config files for my GitHub profile.

    1

  6. hideShowPassword hideShowPassword Public

    Forked from cloudfour/hideShowPassword

    Because life's too short to waste time re-typing passwords.

    JavaScript 1