-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
64 lines (59 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Portfolio | Contact Me</title>
<link rel="icon" href="img/logo.jpg">
<link rel="stylesheet" href="css/contact.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<div class="formBox">
<h2>Contact Me</h2>
<form name="feedback" id="feedback">
<div class="inputBox">
<input type="text" name="Name" required>
<label>Name</label>
</div>
<div class="inputBox">
<input type="email" name="email" required>
<label type="email">Email</label>
</div>
<div class="inputBox">
<textarea name="message" id="" cols="30" rows="10"></textarea>
</div>
<input id="submit-form" type="submit" value="Submit" name="submit">
</form>
</div>
<div class="contactDetails">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3437.175134961477!2d76.65758911499866!3d30.516086481713128!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390fc32344a6e2d7%3A0x81b346dee91799ca!2sChitkara+University!5e0!3m2!1sen!2sin!4v1550759325214" width="100%" height="50%" frameborder="0" style="border:0" allowfullscreen></iframe>
<section>
<ul>
<li><i class="fa fa-phone"></i> <span>7877900005</span></li>
<li><i class="fa fa-envelope"></i><span>[email protected]</span></li>
<li><i class="fa fa-map-marker"></i><span>Rajpura, Chandigarh</span></li>
</ul>
</section>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-serialize-object/2.5.0/jquery.serialize-object.min.js"></script>
<script>
var $form = $('form#feedback'),
url = 'https://script.google.com/macros/s/AKfycby2bPYC-xDlUD0icFd_bZHQ8ch7a5ehkEvYYFB8e0Znb_dGNnEj/exec'
$('#submit-form').on('click', function(e) {
e.preventDefault();
var jqxhr = $.ajax({
url: url,
method: "GET",
dataType: "json",
data: $form.serializeObject(),
success: function(response) {
alert("Thanks for the Feedback");
}
});
})
</script>
</body>
</html>