@@ -174,7 +174,7 @@ <h3 style="color: #00eaff; margin-bottom: 15px; font-size: 24px;">Connect With U
174174 < input type ="text " name ="_honeypot " style ="display:none ">
175175
176176 <!-- Redirect after submit -->
177- < input type ="hidden " name ="_redirect " value ="https://exploitinject.com/thanks .html ">
177+ < input type ="hidden " name ="_redirect " value ="Thank-You .html ">
178178
179179 < button type ="submit " class ="btn " style ="width: 100%; "> Send Message</ button >
180180 < div style ="font-size: 12px; color: #8fa1b6; margin-top: 15px; text-align: center; ">
@@ -183,8 +183,7 @@ <h3 style="color: #00eaff; margin-bottom: 15px; font-size: 24px;">Connect With U
183183
184184 </ form >
185185
186- <!-- Status message -->
187- < div id ="status " style ="margin-top:14px; color: #dcdcdc; font-size:14px; display:none; text-align: center; "> </ div >
186+
188187 </ aside >
189188
190189 </ section >
@@ -237,39 +236,6 @@ <h4>Connect With Us</h4>
237236 if ( window . scrollY > 50 ) nav . classList . add ( "shrink" ) ;
238237 else nav . classList . remove ( "shrink" ) ;
239238 } ;
240-
241- // Form Handling Script
242- const form = document . getElementById ( 'contactForm' ) ;
243- const status = document . getElementById ( 'status' ) ;
244-
245- form . addEventListener ( 'submit' , async function ( e ) {
246- e . preventDefault ( ) ;
247- status . style . display = "block" ;
248- status . style . color = "#dcdcdc" ;
249- status . textContent = "Sending..." ;
250-
251- const formData = new FormData ( form ) ;
252-
253- try {
254- const response = await fetch ( "https://form.codewithtanim.works/f/b51e1869c52e814d" , {
255- method : "POST" ,
256- body : formData ,
257- headers : { "Accept" : "application/json" }
258- } ) ;
259-
260- if ( response . ok ) {
261- status . style . color = "#00eaff" ;
262- status . textContent = "Message sent successfully! We will contact you soon." ;
263- form . reset ( ) ;
264- } else {
265- status . style . color = "#ff4d6d" ;
266- status . textContent = "Oops! There was a problem submitting the form." ;
267- }
268- } catch ( err ) {
269- status . style . color = "#ff4d6d" ;
270- status . textContent = "Network error! Please try again." ;
271- }
272- } ) ;
273239 </ script >
274240</ body >
275241
0 commit comments