Closed Ishika-Gupta06 closed 3 weeks ago
Name | Link |
---|---|
Latest commit | d9eb3117c713a18dd19665d6f0b8a22a5d951ecc |
Latest deploy log | https://app.netlify.com/sites/taupe-cendol-f7e2bb/deploys/6716487290b2dc0008b10b99 |
Deploy Preview | https://deploy-preview-1557--taupe-cendol-f7e2bb.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
This pull request includes changes to the index.html
file to improve the user experience and validation for the subscription form. The most important changes include adding an error message for invalid email addresses, improving the email validation regex, and refactoring the JavaScript code for better readability and functionality.
index.html
index.htmlL1982-R1998)index.html
index.htmlL1982-R1998)@apu52 kindly review the PR
ππ Thank you for your contribution! Your PR #1557 has been merged! ππ
Title : valid Email while Subscribing
Issue No. : #1547
Code Stack : html, JavaScript
Close #1547
Description
improve the regex to ensure the domain part is properly validated (e.g., at least two characters after the dot). Added an email validation regex (email Pattern) to check the input format. If the email is valid, the success message is displayed. If the email is invalid, an error message is displayed for 4 seconds.
Video/Screenshots (mandatory)
https://github.com/user-attachments/assets/313757b3-5674-4068-b16a-e7f806f403f8
Type of PR
Checklist:
[X] I have performed a self-review of my code.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have gone through the
contributing.md
file before contributing[X] I have Starred the Repository.
[X] I am contributing under
GSSOC'24 Extended
[X] I am contributing under
Hacktoberfest'24