From b363de7c9480d0669a50bbd46fc17fcadeb54071 Mon Sep 17 00:00:00 2001 From: ANKeshri Date: Sun, 21 Jul 2024 00:53:48 +0530 Subject: [PATCH] add popup for successful login and register --- login/login.css | 14 ++++++ login/script.js | 10 ---- newLogin.html | 130 ++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 134 insertions(+), 20 deletions(-) diff --git a/login/login.css b/login/login.css index 93f577a5..526acef9 100644 --- a/login/login.css +++ b/login/login.css @@ -22,6 +22,7 @@ h1 { font-weight: 700; letter-spacing: -1.5px; margin: 0; + display: contents; margin-bottom: 15px; } @@ -357,3 +358,16 @@ input { padding:2px; transition: 0.3s ease-in-out; } + + /* Add styles for the success banners */ + .success-banner { + display: none; + background-color: #4CAF50; + color: white; + padding: 15px; + text-align: center; + position: fixed; + top: 0; + width: 100%; + z-index: 10000; + } \ No newline at end of file diff --git a/login/script.js b/login/script.js index 7c918d38..00db0b3e 100644 --- a/login/script.js +++ b/login/script.js @@ -27,16 +27,6 @@ document.addEventListener("DOMContentLoaded", function() { }, 2000); }); - loginForm.addEventListener("submit", (event) => { - event.preventDefault(); - - - // login success - alert("Login successful!"); - setTimeout(() => { - window.location.href = "index.html"; - }, 1000); - }); }); function togglePasswordVisibility(buttonId, inputId, iconId) { diff --git a/newLogin.html b/newLogin.html index 045162af..957f84fe 100644 --- a/newLogin.html +++ b/newLogin.html @@ -11,21 +11,23 @@ +
Logged in successfully
+
Registered successfully
-
+

Tour Guide

- - -
+ + +
- +