File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments