diff --git a/index.html b/index.html index fc49ab1..0227d0a 100644 --- a/index.html +++ b/index.html @@ -3,367 +3,110 @@ - Badge Website + User Input Form + - -
-
- - -
-
- -
-
-
- Badge Image -
-

Season of AI | Beginner AI Learner

-

Awarded to: hello.rajat.rajput@gmail.com

-

- Issued on: Jul 28, 2024 at - 1:11 AM -

-
- - -
+
+

Enter Your Details

+
+
+ +
- -
-
- Badge Image -
-

Season of AI | Intermediate AI Learner

-

Awarded to: example.user@example.com

-

- Issued on: Sep 17, 2024 at - 3:55 PM -

-
- - -
+
+ +
-
-
- Badge Image -
-

Season of AI | Intermediate AI Learner

-

Awarded to: example.user@example.com

-

- Issued on: Sep 17, 2024 at - 3:55 PM -

-
- - -
-
-
-
- Badge Image -
-

Season of AI | Intermediate AI Learner

-

Awarded to: example.user@example.com

-

- Issued on: Sep 17, 2024 at - 3:55 PM -

-
- - -
-
-
-
- Badge Image -
-

Season of AI | Intermediate AI Learner

-

Awarded to: example.user@example.com

-

- Issued on: Sep 17, 2024 at - 3:55 PM -

-
- - -
-
- -
-
- Badge Image -
-

Season of AI | Advance AI Learner

-

Awarded to: example.user@example.com

-

- Issued on: Dec 17, 2024 at - 8:55 PM -

-
- - -
-
-
- - +
Please fill in both fields.
+ +
+
-
- -
+ - - + const name = document.getElementById('name').value.trim(); + const email = document.getElementById('email').value.trim(); + const errorMessage = document.getElementById('error-message'); - - + if (!name || !email) { + errorMessage.style.display = 'block'; + } else { + errorMessage.style.display = 'none'; + alert(`Name: ${name}, Email: ${email}`); + // Process the form data as needed (e.g., send to backend or display) + } + }); +