-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
100 lines (92 loc) · 4.76 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
---
layout: page
title: Contact
permalink: /contact/
---
<div id="colorlib-contact">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1 animate-box">
<h2>Contact Information</h2>
<div class="row">
<div class="col-md-12">
<ul class="list-unstyled">
<li><span><i class="icon-location-2"></i></span> {{ site.street1 }}, {{ site.city }}, {{
site.state }} {{ site.zipcode }}</li>
<li><span><i class="icon-phone3"></i></span> <a href="tel://{{ site.phone}}">+ {{
site.phone }}</a></li>
<li><span><i class="icon-paperplane"></i></span> <a href="mailto:{{ site.email }}">{{
site.email }}</a></li>
<li><span><i class="icon-globe"></i></span> <a href="{{ site.url }}">{{ site.url }}</a></li>
<li><span><i class="icon-facebook2"></i></span> <a
href="https://facebook.com/{{ site.facebook }}/">{{ site.facebook }}</a></li>
</ul>
</div>
</div>
</div>
<div class="col-md-10 col-md-offset-1 animate-box">
<h2>Get In Touch</h2>
<form id="{{ site.ifttt.contact_event }}">
<div class="row form-group">
<div class="col-md-12">
<label class="sr-only" for="value1">Name</label>
<input type="text" name="value1" class="form-control" placeholder="Your name">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<label class="sr-only" for="value2">Email</label>
<input type="text" name="value2" class="form-control" placeholder="Your email address">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<label class="sr-only" for="value3">Message</label>
<textarea name="value3" cols="30" rows="10" class="form-control"
placeholder="Say something about us"></textarea>
</div>
</div>
<div class="form-group">
<input type="submit" value="Send Message" class="btn btn-primary">
</div>
<div id="messages" class="alert alert-success hide" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
aria-hidden="true">×</span></button>
<span id="result">Message sent!</span>
</div>
</form>
<script>
window.addEventListener("load", function () {
function sendData() {
var XHR = new XMLHttpRequest();
var FD = new FormData(form);
XHR.addEventListener("loadend", function (event) {
$('#messages').addClass('show');
});
XHR.open("POST",
"https://maker.ifttt.com/trigger/{{ site.ifttt.contact_event }}/with/key/{{ site.ifttt.key }}"
);
XHR.send(FD);
}
var form = document.getElementById("{{ site.ifttt.contact_event }}");
form.addEventListener("submit", function (event) {
event.preventDefault();
sendData();
});
});
</script>
</div>
</div>
</div>
</div>
<div id="map" class="colorlib-map">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1 animate-box">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3102.165317739187!2d-84.6737198846476!3d38.96589297956009!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x6b7a83dab8c9b9ea!2sResults%20Now%20Personal%20Training%20And%20Group%20Fitness!5e0!3m2!1sen!2sus!4v1569552451332!5m2!1sen!2sus"
width="750" height="563" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>