the great purge
This commit is contained in:
parent
dd0f3b6436
commit
74736d9b40
4 changed files with 1 additions and 110 deletions
|
@ -1,49 +0,0 @@
|
||||||
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0
|
|
||||||
|
|
||||||
/*
|
|
||||||
* interstellar_development website
|
|
||||||
* Copyright (C) 2024 interstellar_development
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// contact-form.js
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
const contactForm = document.getElementById('contactForm');
|
|
||||||
|
|
||||||
if (contactForm) {
|
|
||||||
contactForm.addEventListener('submit', function(event) {
|
|
||||||
event.preventDefault(); // Prevent the form from submitting the traditional way
|
|
||||||
|
|
||||||
// Generate a random ticket number
|
|
||||||
const ticketNumber = Math.floor(Math.random() * 1000000); // Generates a random number between 0 and 999999
|
|
||||||
|
|
||||||
// Retrieve form values
|
|
||||||
const name = encodeURIComponent(document.getElementById('name').value);
|
|
||||||
const email = encodeURIComponent(document.getElementById('email').value);
|
|
||||||
const message = encodeURIComponent(document.getElementById('message').value);
|
|
||||||
|
|
||||||
// Construct the mailto link
|
|
||||||
const subject = `Support Ticket #${ticketNumber}`;
|
|
||||||
const body = `Name: ${name}%0AEmail: ${email}%0AMessage:%0A${message}`;
|
|
||||||
const mailtoLink = `mailto:example@example.com?subject=${subject}&body=${body}`;
|
|
||||||
|
|
||||||
// Open the default mail client
|
|
||||||
window.location.href = mailtoLink;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// @license-end
|
|
59
contact.html
59
contact.html
|
@ -1,59 +0,0 @@
|
||||||
<!--
|
|
||||||
interstellar development website
|
|
||||||
Copyright (C) 2024 interstellar_development
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Affero General Public License as
|
|
||||||
published by the Free Software Foundation, either version 3 of the
|
|
||||||
License, or (at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Affero General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Affero General Public License
|
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Contact Us</title>
|
|
||||||
<script src="header.js" type="text/javascript" defer></script>
|
|
||||||
<script src="footer.js" type="text/javascript" defer></script>
|
|
||||||
<script src="contact-form.js" type="text/javascript" defer></script>
|
|
||||||
<!-- Added new script -->
|
|
||||||
<link rel="stylesheet" href="styles.css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header-component></header-component>
|
|
||||||
|
|
||||||
<!-- Main Content -->
|
|
||||||
<article>
|
|
||||||
<main>
|
|
||||||
<!-- Contact Form -->
|
|
||||||
<section id="contact">
|
|
||||||
<h2>Contact Us</h2>
|
|
||||||
<p>This contact form has an invalid mail until our mailserver is configured</p>
|
|
||||||
<form id="contactForm">
|
|
||||||
<label for="name">Name:</label>
|
|
||||||
<input type="text" id="name" name="name" required />
|
|
||||||
|
|
||||||
<label for="email">Email:</label>
|
|
||||||
<input type="email" id="email" name="email" required />
|
|
||||||
|
|
||||||
<label for="message">Message:</label>
|
|
||||||
<textarea id="message" name="message" rows="5" required></textarea>
|
|
||||||
|
|
||||||
<button type="submit">Send Message</button>
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<footer-component></footer-component>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@ class Footer extends HTMLElement {
|
||||||
<center>
|
<center>
|
||||||
<footer>
|
<footer>
|
||||||
<div class="footer-content">
|
<div class="footer-content">
|
||||||
<p>2024 Interstellar Development | Designed by Squadi the Viking</p>
|
<p>2024 Interstellar Development</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</center>
|
</center>
|
||||||
|
|
|
@ -32,7 +32,6 @@ class Header extends HTMLElement {
|
||||||
<li><a href="index.html#project">Our Projects</a></li>
|
<li><a href="index.html#project">Our Projects</a></li>
|
||||||
<li><a href="index.html#about">Our Team</a></li>
|
<li><a href="index.html#about">Our Team</a></li>
|
||||||
<li><a href="index.html#vision">Our Vision</a></li>
|
<li><a href="index.html#vision">Our Vision</a></li>
|
||||||
<li><a href="contact.html">Contact Us</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in a new issue