forked from ccommuneidee/ccommuneidee.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
85 lines (74 loc) · 3.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
---
title: Contact
heading: Comment pouvons nous vous aider ?
subtitle: We'd love to help your business.
map:
latitude: -45.8787605
longitude: 170.5027976
address: '1 George Street, Dunedin, New Zealand'
zoom: 13
---
<section class="diagonal">
<div class="container">
<form action="{{ site.baseurl }}/contact-success/" method="post" class="contact-form">
<input type="hidden" name="_to" value="[email protected]" />
<input type="text" name="_gotcha" style="display: none;" />
<div class="halves">
<div>
<label for="name">First Name</label>
<input type="text" name="first-name" id="first-name" placeholder="John" />
</div>
<div>
<label for="name">Last Name</label>
<input type="text" name="last-name" id="last-name" placeholder="Doe" />
</div>
</div>
<label for="email">Email Address</label>
<input type="email" name="email" id="email" placeholder="[email protected]" required />
<label for="message">Message</label>
<textarea name="message" id="message" placeholder="Hi There..."></textarea>
<input type="submit" value="Send Message" />
</form>
</div>
</section>
<section class="diagonal map">
<div id="gmap_canvas"></div>
</section>
<section class="diagonal">
<div class="container halves aligned-top">
<div>
<h3>Address</h3>
<address><a target="_blank" href="https://www.google.com/maps/place/{{ page.map.address | url_encode }}">{{ page.map.address | replace: ", ", ", <br>" }}</a></address>
</div>
<div>
<h3>Email</h3>
<p><a href="mailto:{{ site.data.company.contact_email_address }}">{{ site.data.company.contact_email_address }}</a></p>
</div>
</div>
</section>
<script type="text/javascript">
window.mapData = {{ page.map | jsonify }};
function initMap() {
var myOptions = {
scrollwheel: false,
draggable: false,
panControl: false,
disableDefaultUI: true,
styles: [{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"color":"#f7f1df"}]},{"featureType":"landscape.natural","elementType":"geometry","stylers":[{"color":"#d0e3b4"}]},{"featureType":"landscape.natural.terrain","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"color":"#fbd3da"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#bde6ab"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffe15f"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#efd151"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"color":"black"}]},{"featureType":"transit.station.airport","elementType":"geometry.fill","stylers":[{"color":"#cfb2db"}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#a2daf2"}]}],
zoom: window.mapData.zoom,
maxZoom: window.mapData.zoom,
minZoom: window.mapData.zoom,
center: new google.maps.LatLng(window.mapData.latitude, window.mapData.longitude),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("gmap_canvas"), myOptions);
marker = new google.maps.Marker({
map: map,
position: new google.maps.LatLng(window.mapData.latitude, window.mapData.longitude)
});
google.maps.event.addDomListener(window, "resize", function () {
map.setCenter(myOptions.center);
});
}
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key={{ site.google_maps_javascript_api_key }}&callback=initMap"></script>