Skip to content

Commit 8003d2a

Browse files
committed
removed comments
Signed-off-by: Pankaj Kumar Bind <pankajbind30@gmail.com>
1 parent f796e54 commit 8003d2a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

layouts/partials/footer.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,19 @@ <h5 class="footer-h5"><a href="{{ .url }}">{{ .name }}</a></h5>
101101

102102
const email = emailInput.value.trim();
103103

104-
// Validate email is not empty
105104
if (!email) {
106105
showMessage('Please enter your email address', true);
107106
emailInput.focus();
108107
return false;
109108
}
110109

111-
// Validate email format
112110
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
113111
if (!emailRegex.test(email)) {
114112
showMessage('Please enter a valid email address', true);
115113
emailInput.focus();
116114
return false;
117115
}
118116

119-
// Here you can add your newsletter subscription logic
120-
// For now, just show a success message
121117
showMessage('Thank you for subscribing!', false);
122118
emailInput.value = '';
123119

0 commit comments

Comments
 (0)