-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupport.html
70 lines (64 loc) · 2.76 KB
/
support.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Support Form</title>
<link rel="stylesheet" href="./styles/main.css">
<link rel="stylesheet" href="./styles/support.css">
<script>
function submitForm(event) {
event.preventDefault(); // Prevent the default form submission
// Get the form values
const name = document.getElementById('name').value;
const issueType = document.getElementById('issue-type').value;
const description = document.getElementById('problem-description').value;
// Create a URL-encoded string with the data
const resultPage = `results.html?name=${encodeURIComponent(name)}&issueType=${encodeURIComponent(issueType)}&description=${encodeURIComponent(description)}`;
// Redirect to the results page with query parameters
window.location.href = resultPage;
}
</script>
</head>
<body>
<header>
<div class="logo-title">
<img src="./images/scotti-logo.png" alt="scotti logo image">
<h1>scotti</h1>
</div>
<div class="navigation-tab">
<nav>
<a href="./index.html">Home</a>
<a href="./templates/upload.html">Summarizer</a>
<a href="./support.html">Support</a>
</nav>
</div>
</header>
<main>
<form id="support-form" onsubmit="submitForm(event)">
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
<label for="issue-type">Issue Type:</label>
<select id="issue-type" name="issue-type" required>
<option value="bug">Bug</option>
<option value="complaint">Complaint</option>
<option value="suggestion">Suggestion</option>
<option value="other">Other</option>
</select>
<label for="problem-description">Describe the Problem:</label>
<textarea id="problem-description" name="problem-description" rows="5" placeholder="Describe the issue you're experiencing" required></textarea>
<button type="submit">Submit</button>
</form>
</main>
<footer>
<div>
<p>© scotti corporations - 2024</p>
</div>
<div class="socials">
<a href="#"><img src="./images/instagramlogo.png" alt="instagram link image"></a>
<a href="#"><img src="./images/twitterSlashXlogo.avif" alt="x link image"></a>
<a href="#"><img src="./images/facebookicon.png" alt="facebook link image"></a>
</div>
</footer>
</body>
</html>