Advertisement
Guest User

fake login

a guest
Oct 22nd, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Login</title>
  7. <link rel="stylesheet" href="template.css"/>
  8. <style>
  9. body {
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. height: 100vh;
  14. }
  15. .login-container {
  16. padding: 20px;
  17. border-radius: 10px;
  18. box-shadow: 0 0 20px rgba(227, 11, 247, 0.733);
  19. border: 1px solid;
  20. width: 300px;
  21. text-align: center;
  22. }
  23. input {
  24. width: 100%;
  25. width: 90%;
  26. padding: 10px;
  27. margin: 10px 0;
  28. border-radius: 5px;
  29. border: 1px solid #ddd;
  30. }
  31. button {
  32. width: 50%;
  33. padding: 10px;
  34. background-color: #007bff;
  35. color: white;
  36. border: none;
  37. border-radius: 5px;
  38. cursor: pointer;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43.  
  44. <div class="login-container">
  45. <h2>Login</h2>
  46. <form id="loginForm">
  47. <input type="text" id="username" placeholder="Username" required><br>
  48. <input type="password" id="password" placeholder="Password" required><br>
  49. <button type="submit">Login</button>
  50. </form>
  51. <p id="error-message" style="color:red;"></p>
  52. </div>
  53.  
  54. <script>
  55. document.getElementById('loginForm').addEventListener('submit', function(event) {
  56. event.preventDefault(); // Prevent form from submitting
  57.  
  58. // Get values entered by the user
  59. const enteredUsername = document.getElementById('username').value;
  60. const enteredPassword = document.getElementById('password').value;
  61.  
  62. // Check if the entered username and password are correct
  63. if (enteredUsername === "HatsuneMiku" && enteredPassword === "IHaveAPipeBomb") {
  64. // Redirect to the target page
  65. window.location.href = "https://www.youtube.com/watch?v=28FVxYQuLOQ"; // Replace with your target page
  66. } if (enteredUsername === "Poopoo" && enteredPassword === "Dingus") {
  67. // Redirect to the target page
  68. window.location.href = "https://www.kym-kim.com"; // Replace with your target page
  69. } else {
  70. // Show an error message
  71. document.getElementById('error-message').textContent = "Invalid username or password!";
  72. }
  73. });
  74. </script>
  75.  
  76. </body>
  77. </html>
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement