This commit is contained in:
Leo
2024-01-21 02:33:00 +08:00
parent 90f4f39795
commit c2651785df
11 changed files with 166 additions and 11 deletions

View File

@ -251,4 +251,4 @@ form
.top-nav .navbar-toggler:hover{
color: #4eae3a;
border-color: #4eae3a;
}
}

View File

@ -23,17 +23,15 @@ document.addEventListener('DOMContentLoaded', () => {
const result = await response.json();
// Handle the API response
//console.log(result);
console.log(result);
if (result.success) {
// Form submitted successfully, display notification
alert('Form submitted successfully!');
location.reload()
// You can replace the alert with your custom notification logic
} else {
// Form submission failed, display error notification
alert('Form submission failed. Please try again.');
// You can replace the alert with your custom error notification logic
}
} catch (error) {