-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
109 lines (97 loc) · 3.86 KB
/
contact.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prof. Richard J. Goldstein</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="header1">
<h3 class="logo"><a href="index.html" style="text-decoration: none; color: black">Academic Lineage of Richard J. Goldstein</a></h3>
<div class="hamburger-menu" onclick="toggleNavbar()">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<nav class="navbar">
<a href="reference.html">References</a>
<a href="contact.html">Contact Us</a>
<a href="team.html">Team</a>
</nav>
</header>
<div class="huh">H</div>
<div class="form">
<form action="action_page.php">
<label for="fname">First Name</label>
<input type="text" id="fname" name="firstname" placeholder="First name">
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lastname" placeholder="Last name">
<label for="email">Email</label>
<input type="text" id="email" name="email" placeholder="Email address">
<label for="Message">Message</label>
<textarea id="Message" name="Message" placeholder="Write something.." style="height:200px"></textarea>
<p>Suggestions and feedback are always welcome. We will do our best to implement these suggestions.</p>
<button type="button" onclick="sendEmail()">Submit</button>
</form>
</div>
<br><br><br><br><br>
<footer style="width: 100%;font-size: 0.8em; padding: 12px; position: fixed;bottom: 0;left: 50%;transform: translateX(-50%);"><center>Concept by Dr. John N. Shadid (Sandia National Labs) and Dr. Umesh Madanan (IIT Kanpur)<br>Developed by Naman Kumar Jaiswal and Sameer Yadav (IIT Kanpur)</center></footer>
<style>
body{
overflow-x: hidden;
overflow-y: scroll;
}
/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
width: 100%; /* Full width */
padding: 12px; /* Some padding */
border: 1px solid #ccc; /* Gray border */
border-radius: 4px; /* Rounded borders */
box-sizing: border-box; /* Make sure that padding and width stays in place */
margin-top: 6px; /* Add a top margin */
margin-bottom: 16px; /* Bottom margin */
resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}
/* Style the submit button with a specific background color etc */
button {
background-color: maroon;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
/* Add a background color and some padding around the form */
.form {
background-color: #cccccc62;
padding: 20px;
}
</style>
<script>
function sendEmail() {
var emailAddress = '[email protected]';
var emailAddress1 = '[email protected]';
var subject = "Regarding Genealogy Website of Prof Richard J. Goldstein";
var body = `
First Name: ${document.querySelector("#fname").value}
Last Name: ${document.querySelector("#lname").value}
Email: ${document.querySelector("#email").value}
Message: ${document.querySelector("#Message").value}
`;
// Create the mailto link
var mailtoLink = 'mailto:' + encodeURIComponent(emailAddress) +
'?subject=' + encodeURIComponent(subject) +
'&body=' + encodeURIComponent(body) +
'&to=' + encodeURIComponent(emailAddress1);
// Open the default mail application
window.location.href = mailtoLink;
}
</script>
<script>
function toggleNavbar() {
document.querySelector('.navbar').classList.toggle('show-menu');
}
</script>
</body>
</html>