diff --git a/week-11/index.html b/week-11/index.html new file mode 100644 index 0000000..4123cba --- /dev/null +++ b/week-11/index.html @@ -0,0 +1,43 @@ + + + + Email Form + + +

Email Form

+
+ +

+ + +

+ +
+

+ + +
+ + + + diff --git a/week-11/sketch.js b/week-11/sketch.js new file mode 100644 index 0000000..4caf0e4 --- /dev/null +++ b/week-11/sketch.js @@ -0,0 +1,17 @@ +// You're going to build a web form that utilizes an API endpoint to "send" an email message. +// The endpoint doesn't actually send a message, but it mimics how an actual email API might work. +// (If you're interested in sending emails from a form on your website, check out a service like FormSpree.) + +// Build a web form (in HTML) that collects a "to:" email address, subject, and message. + +// Use an event listener to intercept the "submit" event of the form. I.e., Your page must not reload or redirect upon pressing the submit button or the return/enter key. + +// All form fields are required and the email address must be valid. You may utilize the browser's built-in client-side form validation or manually validate the fields using JavaScript. + +// Finally, use a fetch() request to send the form data to the Fake Mailer API and show the response message to the user. (Do not use console.log()!) + +// Test your form with fake or incomplete data. Be sure it works as expected! + +// Submit the functioning URL to HuskyCT. + +// Pr \ No newline at end of file