-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact.html
351 lines (317 loc) · 13.9 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!Doctype html>
<html lang='en-us'>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
<meta name="description" content="Welcome to the Official IEEE Student Branch BIT Mesra Website. IEEE Student Branch BIT Mesra is a registered student branch under IEEE Region 10 Kolkata Region.">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="keywords" content="footer, address, phone, icons" />
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#00629B">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#00629B">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#00629B">
<title>IEEE | BIT Mesra</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Poppins:300,400,500,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700|Open+Sans:400,300,700,800" rel="stylesheet" media="screen">
<link rel="icon" href="img/ieee-icon.ico">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/style.css" rel="stylesheet" media="screen">
<link href="color/default.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#name_error_msg').hide();
$('#email_error_msg').hide();
$('#phone_error_msg').hide();
$('#message_error_msg').hide();
$('.result').hide();
var name_error =false;
var email_error =false;
var phone_error =false;
var message_error =false;
$('#name').focusout(function(){
check_name();
});
$('#email').focusout(function(){
check_email();
});
$('#phone').focusout(function(){
check_phone();
});
$('#message').focusout(function(){
check_message();
});
function check_name() {
var name = $('#name').val();
if(name!='' && name.trim()!='') {
$('#name_error_msg').hide();
}
else {
$('#name_error_msg').html("Name field cannot be empty.");
$('#name_error_msg').show();
name_error=true;
}
}
function check_email() {
var pattern = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
var email = $('#email').val();
if(pattern.test(email)&&email!='') {
$('#email_error_msg').hide();
}
else {
// console.log("eoig");
$('#email_error_msg').html("Invalid email.");
$('#email_error_msg').show();
email_error=true;
}
}
function check_phone() {
var pattern = /^((\+[1-9]{1,4}[ \-]*)|(\([0-9]{2,3}\)[ \-]*)|([0-9]{2,4})[ \-]*)*?[0-9]{3,4}?[ \-]*[0-9]{3,4}?$/;
var phone = $('#phone').val();
if(pattern.test(phone)&&phone!='') {
$('#phone_error_msg').hide();
}
else {
$('#phone_error_msg').html("Invalid phone number.");
$('#phone_error_msg').show();
phone_error=true;
}
}
function check_message() {
message = $('#message').val();
if(message!=''&& message.trim()!='') {
$('#message_error_msg').hide();
}
else {
$('#message_error_msg').html("Message field cannot be empty.");
$('#message_error_msg').show();
message_error=true;
}
}
$('.mailbtn').click(function() {
name_error=false;
email_error=false;
phone_error=false;
message_error=false;
check_name();
check_email();
check_phone();
check_message();
if(name_error==false && email_error==false && phone_error==false && message_error==false) {
var name = $('#name').val();
var email = $('#email').val();
var phone = $('#phone').val();
var message = $('#message').val();
$('.result').css("display","block");
$.ajax({
type: "POST",
url:'form_action.php',
data: {name : name, email : email, phone : phone, message : message},
success: function() {
alert("Message Sent!");
}
});
}
else {
alert("Please fill the form correctly.");
}
});
});
</script>
</head>
<body style="overflow-x: hidden;">
<nav class="navbar navbar-default fixed-to-top" role="navigation" style="display:block">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle nav</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Logo text or image -->
<a class="navbar-brand" href="index.html"><img style="margin: -5px 0;" src="img/ieee-logo-nav.png" alt=""></a>
</div>
<div class="navigation collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="workshop.html">Workshops</a></li>
<li><a href="megaproject.html">Mega Project</a></li>
<li><a href="hackabit.html">Hackabit</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
</div>
</nav>
<section id="contact-form" class="home-section bg-white">
<div class="row">
<div class="col-md-offset-2 col-md-8">
<div class="section-heading">
<h2>Contact</h2>
<div class="heading-line"></div>
</div>
</div>
</div>
<div class="container wow fadeInUp mt-5" style="visibility: visible; animation-name: fadeInUp;">
<div class="row justify-content-center">
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="form">
<div class="result" >Your message has been sent. Thank you!</div>
<div>
<div class="form-group">
<input type="text" name="name" class="form-control" id="name" placeholder="Your Name" data-rule="minlen:4">
<div id="name_error_msg" class="validation"></div>
</div>
<div class="form-group">
<input type="email" class="form-control" name="email" id="email" placeholder="Your Email" data-rule="email">
<div id="email_error_msg" class="validation"></div>
</div>
<div class="form-group">
<input type="text" class="form-control" name="phone" id="phone" placeholder="Phone" data-rule="minlen:4">
<div id="phone_error_msg" class="validation"></div>
</div>
<div class="form-group">
<textarea class="form-control" id="message" name="message" rows="5" data-rule="required" placeholder="Message"></textarea>
<div id="message_error_msg" class="validation"></div>
</div>
<div class="text-center"><button class="mailbtn btn btn-primary" >Send Message</button></div>
</div>
</div>
</div>
<div class="col-md-2"></div>
</div>
</div>
</section>
<section id="faq">
<div class="section-header">
<div class="section-heading">
<h2 style="font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif">FaQ</h2>
<div class="heading-line"></div>
</div>
</div>
<button class="accordion">How to Join IEEE?</button>
<div class="panel">
<p>Follow <a href="https://www.ieee.org/membership/join/index.html">this</a> link to Join IEEE as a student member.</p>
</div>
<button class="accordion">What are the benefits of becoming an IEEE member?</button>
<div class="panel">
<p>You will get a platform to share your thoughts and develop technologies with talented people from around the globe and hence to link with people to share and gain knowledge. You will get access to many research papers published by IEEE. Follow <a href="https://www.ieee.org/membership/join/index.html#benefits">this</a> link to know more.
</p>
</div>
<button class="accordion">How can I contribute to IEEE as a member?</button>
<div class="panel">
<p>You can contribute by continuously striving for knowledge and then by sharing it selflessly to the world.</p>
</div>
</section>
<!-- Bottom widget -->
<section id="bottom-widget" class="home-section bg-white">
<div class="container">
<div class="row">
<h2>IEEE | BIT Mesra</h2>
<h5>Student Branch Code: STB32081</h5>
</div>
<br>
<div class="row">
<div class="col-md-4">
<div class="contact-widget wow bounceInLeft">
<i class="fa fa-map-marker fa-4x"></i>
<h5>Address</h5>
<p>
Birla Institute of Technology, Mesra<br/>Ranchi, Jharkhand 835215
</p>
</div>
</div>
<div class="col-md-4">
<div class="contact-widget wow bounceInUp">
<i class="fa fa-phone fa-4x"></i>
<h5>Call</h5>
<p>
+91 800 283 3738
</p>
</div>
</div>
<div class="col-md-4">
<div class="contact-widget wow bounceInRight">
<i class="fa fa-envelope fa-4x"></i>
<h5>Email us</h5>
<p>
<a href="mailto:[email protected]">[email protected]</a>
</p>
</div>
</div>
</div>
<div class="row mar-top30">
<div class="col-md-12">
<h5>We're on social networks</h5>
<ul class="social-network">
<li><a href="https://www.facebook.com/ieeebitmesra/">
<span class="fa-stack fa-2x">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
</span></a>
</li>
<li><a href="https://in.linkedin.com/company/ieee-student-branch-bit-mesra">
<span class="fa-stack fa-2x">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-linkedin fa-stack-1x fa-inverse"></i>
</span></a>
</li>
<li><a href="mailto:[email protected]" target="_blank" >
<span class="fa-stack fa-2x">
<i class="fa fa-circle fa-envelope fa-2x"></i>
<i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
</span></a>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-12">
<p>Copyright © 2019</p>
<div class="credits">
</div>
</div>
</div>
</div>
</footer>
<a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
<!-- js -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/jquery.scrollTo.min.js"></script>
<script src="js/jquery.nav.js"></script>
<script src="js/modernizr.custom.js"></script>
<script src="js/grid.js"></script>
<script src="js/stellar.js"></script>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
/* Toggle between adding and removing the "active" class,
to highlight the button that controls the panel */
this.classList.toggle("active");
/* Toggle between hiding and showing the active panel */
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}
</script>
</body>
</html>