Skip to content
Snippets Groups Projects
Commit 69c46fd9 authored by Felix Chadwick-Smith's avatar Felix Chadwick-Smith
Browse files

tided it up

parent 09445d2d
No related branches found
No related tags found
1 merge request!30Master
...@@ -112,14 +112,12 @@ ...@@ -112,14 +112,12 @@
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
console.log('Success:', data); console.log('Success:', data);
// Optionally, you can add code to show a success message to the user
// Reset the form // Reset the form
document.getElementById('contactForm').reset(); document.getElementById('contactForm').reset();
}) })
.catch((error) => { .catch((error) => {
console.error('Error:', error); console.error('Error:', error);
// Optionally, you can add code to show an error message to the user
}); });
}); });
</script> </script>
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
</html>`); </html>`);
// Add style.css content // Add style.css content
zip.file('style.css', `/* Your CSS styles go here */`); zip.file('style.css', `/* CSS styles go here */`);
// Generate and initiate download // Generate and initiate download
zip.generateAsync({ type: "blob" }) zip.generateAsync({ type: "blob" })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment