Compare commits

...

3 commits

Author SHA1 Message Date
d34dda976a Merge pull request 'Changed the contact form' (#4) from sageTheDm/pages:main into main
Reviewed-on: https://interstellardevelopment.org/code/code/interstellar_development/pages/pulls/4
Reviewed-by: Patrick <patrick_pluto@noreply.localhost>
2024-08-30 10:10:03 +02:00
5863201451 Merge branch 'main' into main 2024-08-30 10:09:07 +02:00
Sage The DM
a91feb494f Changed the contact form 2024-08-30 09:59:14 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -38,7 +38,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Construct the mailto link // Construct the mailto link
const subject = `Support Ticket #${ticketNumber}`; const subject = `Support Ticket #${ticketNumber}`;
const body = `Name: ${name}%0AEmail: ${email}%0AMessage:%0A${message}`; const body = `Name: ${name}%0AEmail: ${email}%0AMessage:%0A${message}`;
const mailtoLink = `mailto:info@photofuel.tech?subject=${subject}&body=${body}`; const mailtoLink = `mailto:example@example.com?subject=${subject}&body=${body}`;
// Open the default mail client // Open the default mail client
window.location.href = mailtoLink; window.location.href = mailtoLink;

View file

@ -36,6 +36,7 @@
<!-- Contact Form --> <!-- Contact Form -->
<section id="contact"> <section id="contact">
<h2>Contact Us</h2> <h2>Contact Us</h2>
<p>This contact form has an invalid mail until our mailserver is configured</p>
<form id="contactForm"> <form id="contactForm">
<label for="name">Name:</label> <label for="name">Name:</label>
<input type="text" id="name" name="name" required /> <input type="text" id="name" name="name" required />