-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
96 lines (90 loc) Β· 2.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Contact Us</title>
<link rel="stylesheet" type="text/css" href="css17/custom.css?v=1.1">
<link rel="stylesheet" type="text/css" href="css17/navbar.css">
<!--loads the header and fotter-->
<script src="js17/jquery.min.js"></script>
<script>
$(function(){
$("#navbar").load("navbar.html");
$("#footer").load("footer.html");
});
</script>
</head>
<body>
<nav>
<ul class="navbar">
<li style="float:left;vertical-align:middle;"><a href="index.html"><img src="img/logo.png" alt="logo" style="height:100px;width:auto;"></a></li>
<li><a href="contact.html?v=1.1">Contact Us</a></li>
<li><a href="index.html?v=1.1">What We Do</a></li>
<li><a href="recruitments.html?v=1.1">Recruitment</a></li>
</ul>
</nav>
<!--todo: change custom.js to make the emails just links-->
<div class="contact-container">
<h1 class="contact-header">Contact Us</h1>
<hr>
<div class="contact-content">
<p>
</p>
<p>
</p>
<form action="email_form.php" method="post" id="email_form">
<table class="contact_form_table">
<tr>
<td><label for="sender">Your name:*</label></td>
<td><input type="text" name="sender"></td>
</tr>
<tr>
<td><label for="from">Your email:*</label></td>
<td><input type="email" name="from"></td>
</tr>
<tr>
<td colspan="2"><textarea autocomplete="off" name="message" rows="10" cols="50" placeholder="What would you like to tell us?"></textarea><br></td>
</tr>
</table>
<table class="submit-container">
<tr>
<td><input type="submit" name="send" value="send"></td>
</tr>
</table>
</form>
<br>
</div>
</div>
<script type="text/javascript" src="js17/custom.js"></script>
<script type="text/javascript" src="js17/jquery.validate.min.js"></script>
<script>
//$.getJSON(filename, showContactDetails);
$(document).ready(function() {
$("#email_form").validate({
errorClass: "invalid",
rules: {
from: {
required: true,
email: true
},
sender: {
required: true,
minlength: 2
},
message: {
required: true,
minlength: 10
}
},
messages: {
sender: {
minlength: "Please enter a valid name"
},
message: {
minlength: "Your message is too short and could be marked as spam"
}
}
});
});
</script>
</body>
</html>