From b94eb5e58fc681ff823828a057aac29a8000d62e Mon Sep 17 00:00:00 2001 From: DeenuRSD <124046429+DeenuRSD@users.noreply.github.com> Date: Sat, 19 Oct 2024 03:23:38 +0530 Subject: [PATCH] Update index.html --- index.html | 451 ++++++++++++----------------------------------------- 1 file changed, 97 insertions(+), 354 deletions(-) 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) + } + }); +