-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontact.html
213 lines (190 loc) · 9.43 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bengaluru Veeraru</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="assets/images/favicon.png" type="image/png">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/manual.css">
<link rel="stylesheet" type="text/css" href="assets/css/animate.css">
<link rel="stylesheet" href="assets/css/owlcarousel/owl.carousel.min.css">
<link rel="stylesheet" href="assets/css/owlcarousel/owl.theme.default.min.css">
<link rel="stylesheet" href="assets/css/bootstrap-responsive.min.css">
<!-- Google fonts Poppins -->
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- Fontello -->
<link rel="stylesheet" href="assets/css/css-fontello/animation.css" type="text/css"/>
<link rel="stylesheet" href="assets/css/css-fontello/fontello.css" type="text/css"/>
<link rel="stylesheet" href="assets/css/css-fontello/fontello-codes.css" type="text/css"/>
<link rel="stylesheet" href="assets/css/css-fontello/fontello-embedded.css" type="text/css"/>
<link rel="stylesheet" href="assets/css/css-fontello/fontello-ie7.css" type="text/css"/>
<link rel="stylesheet" href="assets/css/css-fontello/fontello-ie7-codes.css" type="text/css"/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-167579043-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-167579043-1');
</script>
<script src="https://www.gstatic.com/firebasejs/7.24.0/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.24.0/firebase-analytics.js"></script>
<script defer src="https://www.gstatic.com/firebasejs/7.24.0/firebase-firestore.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="assets/js/firebase.js"></script>
</head>
<body>
<div class="page">
<!--=============================== Header ===========================-->
<div id="header"></div>
<!--=============================== Menu-Bar ========================-->
<div id="menuBar-charity"></div>
<!--=============================== Banner ==========================-->
<div class="banner">
<div class="shadow-main">
<h1> Contact Us </h1>
<ul class="breadcrumb breadcrumb-news">
<li><a href="index.html">HOME</a></li>
<li><a href="contact.html">CONTACT</a></li>
</ul>
</div>
</div>
<!--=============================== Contact ================================-->
<div class="main-contact">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12 mb-contact">
<ul class="contact">
<li>
<strong>Location</strong>
<span>Bengaluru, Karnataka, India</span>
</li>
<li>
<strong>Work Hours</strong>
<span>Mon - Sat 10.00 - 18.00</span>
</li>
<li>
<strong>Phone</strong>
<span><a href="tel:+919353218818" style='color: black'>+91-9353218818</a></span>
</li>
<li>
<strong>Email</strong>
</li>
</ul>
<div class="contact-social-link">
<ul>
<li><a href="https://twitter.com/blr_veeraru" target="_blank" class="circle c-1"><i
class="fa fa-twitter"></i></a></li>
<li><a href="https://www.facebook.com/bengaluruveeraru/" target="_blank" class="circle c-2"><i
class="fa fa-facebook"></i></a></li>
<li><a href="https://www.instagram.com/bengaluru_veeraru" target="_blank" class="circle c-3"><i
class="fa fa-instagram"></i></a></li>
<li><a href="https://www.youtube.com/bengaluruveeraru/" target="_blank" class="circle c-4"><i class="fa fa-youtube"></i></a></li>
</ul>
</div>
</div>
<div class="col-md-8 col-sm-6 col-xs-12">
<div class="leave-reply">
<form id="formInput" v-on:submit.prevent="submitData">
<div class="form-group">
<input id="first_name" name="first_name" type="text" placeholder="Name"
class="form-control" required="">
</div>
<div class="form-group">
<input id="email" name="email" type="email" placeholder="E-mail"
class="form-control">
</div>
<div class="form-group">
<input id="subject" name="text" type="text" placeholder="Subject"
class="form-control">
</div>
<div class="form-group">
<textarea id="message" class="form-control" rows="6" placeholder="Message..."></textarea>
</div>
<button title="Submit" class="red-btn red-btn-form" value="Send Message" type="submit">Submit</button>
</form>
</div>
</div>
</div>
</div> <!-- /.container -->
</div> <!-- /.main-contact -->
<div class="overlay" onClick="style.pointerEvents='none'"></div>
<div id="map"></div>
<!--=============================== Footer ===========================-->
<div id="footer"></div>
</div> <!-- /.page -->
<!-- JS code -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="assets/js/jquery.spincrement.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script>
"use strict";
var marker;
function initMap() {
var myLatlng = {lat: 12.9283111, lng: 77.5632108};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 15,
center: myLatlng
});
var iconBase = 'assets/images/logo-Copy.png';
marker = new google.maps.Marker({
map: map,
draggable: true,
animation: google.maps.Animation.DROP,
position: myLatlng,
icon: iconBase
});
marker.addListener('click', toggleBounce);
map.addListener('center_changed', function () {
window.setTimeout(function () {
map.panTo(marker.getPosition());
}, 3000);
});
marker.addListener('click', function () {
map.setCenter(marker.getPosition());
});
}
function toggleBounce() {
if (marker.getAnimation() !== null) {
marker.setAnimation(null);
} else {
marker.setAnimation(google.maps.Animation.BOUNCE);
}
}
var formInput = new Vue({
el: "#formInput",
methods: {
submitData: async function (event){
var first_name = document.getElementById("first_name").value;
var email = document.getElementById("email").value;
var subject = document.getElementById("subject").value;
var message = document.getElementById("message").value;
await firebase.firestore().collection("BV-ContactUs").add({
firstName: first_name,
email: email,
subject: subject,
message: message
}).then(function(){
document.getElementById("first_name").value = "";
document.getElementById("email").value = "";
document.getElementById("subject").value = "";
document.getElementById("message").value = "";
});
}
}
});
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD4ppPTHXCpBSoOkLESSfwMlD1zojoMxBc&callback=initMap">
</script>
<script src="assets/js/myScript.js"></script>
</body>
</html>