-
Notifications
You must be signed in to change notification settings - Fork 0
/
ContactPage.html
88 lines (69 loc) · 2.8 KB
/
ContactPage.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="contact.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
* {box-sizing: border-box;}
</style>
<title>contactpage</title>
</head>
<body>
<link rel="stylesheet" href="style_homepage.css">
<div class="topnav">
<a href="HomePage.html" href="#home">Home</a>
<a href="PortfolioPage.html">Portfolio</a>
<a href="SkillPage.html" href="#skills">Skills</a>
<a class="active" href="ContactPage.html" href="#contact"calss="active">Contact</a>
</div>
<h3>Contact Eungyeol</h3>
<div class="container">
<label for="fname">First Name</label>
<input type="text" id="fname" name="firstname" placeholder="Your name..">
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lastname" placeholder="Your last name..">
<label for="purpose">Purpose</label>
<select id="purpose" name="purpose">
<option value="Hiring">Hiring</option>
<option value="Business">Business</option>
<option value="Interaction">Interaction</option>
<option value="Question">Question</option>
</select>
<!-- <label for="message">Leave message</label>
<textarea id="subject" name="subject" placeholder="Your message..." style="height:200px" ></textarea>
<input type="submit" value="Submit" style="color: rgb(99, 99, 99);">
<div id="result"></div>
<script>
// Function to handle form submission
document.getElementById("container").addEventListener("submit", function(event) {
event.preventDefault(); // Prevent the default form submission
// Get the input value
var inputValue = document.getElementById("submit").value;
// Display the input value below the button
document.getElementById("result").innerText = "You entered: " + inputValue;
});
</script> -->
<div class="container">
<form id="myForm">
<label for="message">Leave a message</label>
<br>
<textarea id="subject" name="subject" placeholder="Your message..." style="height:300px;"></textarea>
<br>
<input type="submit" value="Submit">
</form>
<div id="result"></div>
</div>
<script>
// Function to handle form submission
document.getElementById("myForm").addEventListener("submit", function(event) {
event.preventDefault(); // Prevent the default form submission
// Get the textarea value
var inputValue = document.getElementById("subject").value;
// Display the textarea value below the button
document.getElementById("result").innerText = "Sorry, the backend is under development." + inputValue;
});
</script>
</div>
</body>
</html>