Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Login</title>
- <link rel="stylesheet" href="template.css"/>
- <style>
- body {
- display: flex;
- justify-content: center;
- align-items: center;
- height: 100vh;
- }
- .login-container {
- padding: 20px;
- border-radius: 10px;
- box-shadow: 0 0 20px rgba(227, 11, 247, 0.733);
- border: 1px solid;
- width: 300px;
- text-align: center;
- }
- input {
- width: 100%;
- width: 90%;
- padding: 10px;
- margin: 10px 0;
- border-radius: 5px;
- border: 1px solid #ddd;
- }
- button {
- width: 50%;
- padding: 10px;
- background-color: #007bff;
- color: white;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- }
- </style>
- </head>
- <body>
- <div class="login-container">
- <h2>Login</h2>
- <form id="loginForm">
- <input type="text" id="username" placeholder="Username" required><br>
- <input type="password" id="password" placeholder="Password" required><br>
- <button type="submit">Login</button>
- </form>
- <p id="error-message" style="color:red;"></p>
- </div>
- <script>
- document.getElementById('loginForm').addEventListener('submit', function(event) {
- event.preventDefault(); // Prevent form from submitting
- // Get values entered by the user
- const enteredUsername = document.getElementById('username').value;
- const enteredPassword = document.getElementById('password').value;
- // Check if the entered username and password are correct
- if (enteredUsername === "HatsuneMiku" && enteredPassword === "IHaveAPipeBomb") {
- // Redirect to the target page
- window.location.href = "https://www.youtube.com/watch?v=28FVxYQuLOQ"; // Replace with your target page
- } if (enteredUsername === "Poopoo" && enteredPassword === "Dingus") {
- // Redirect to the target page
- window.location.href = "https://www.kym-kim.com"; // Replace with your target page
- } else {
- // Show an error message
- document.getElementById('error-message').textContent = "Invalid username or password!";
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement