forked from fayausa/faya-80-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
167 lines (156 loc) · 8.07 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
<!doctype html>
<html ⚡ lang="en">
<head>
<title>Faya:80</title>
<meta charset="utf-8" />
<meta name="theme-color" content="#87c042"/>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<meta name="Description" content="FAYA:80 is a monthly technology hangout for technology enthusiasts by technology enthusiasts to break the ice, analyse and evaluate emerging trends in technology. Held on the first Wednesday of the month at the Floor of Madness (FAYA, Technopark, Thiruvananthapuram), the series stands for Free Knowledge Sharing and aims to provide an open platform for entrepreneurs, developers and technology professionals to keep at par with the latest tools and technologies">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link rel="canonical" href="/index.html">
<link rel="shortcut icon" href="../amp_favicon.ico">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="styles/common.css">
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.0/jquery.matchHeight-min.js?ver=1.0.0'></script>
<script type="text/javascript" src="js/list.js"> </script>
</head>
<body>
<header>
<a href="/index.html">
<img src="logo.png" class="logo" width="200" height="46"></img>
</a>
<ul class="main-nav">
<li>
<a href="dk17.html">Disrupt Kerala</a>
</li>
<li>
<a href="speakers.html">Speakers</a>
</li>
<li>
<a href="gallery.html">Gallery</a>
</li>
<li>
<a href="contact.html">Contact</a>
</li>
</ul>
</header>
<div class="wrapper">
<article>
<div class="banner">
<div class="banner-overlay"></div>
<div class="banner-content">
<h1>Knowledge Shared is <span>Power Multiplied</span></h1>
<p>Breaking Echo Chambers through Free Knowledge Sharing</p>
</div>
</div>
</article>
</div>
<div class="wrapper contact">
<div class="container">
<div class="content">
<div class="contact-title">
<h2> Contact US</h2>
</div>
<div class="contact-left">
<div class="form-area" id="contact_form">
<div id="contact_results"></div>
<div id="contact_body">
<div class="form-group">
<input type="text" name="name" id="name" placeholder="Full Name" required="true" class="form-control"/>
</div>
<div class="form-group">
<input type="email" name="email" required="true" placeholder="Email" class="form-control"/>
</div>
<div class="form-group">
<input type="text" name="subject" placeholder="Subject" required="true" class="form-control"/>
</div>
<div class="form-group">
<textarea name="message" id="message" class="form-control textarea" required="true" placeholder="Message" maxlength="100" rows="5"></textarea>
</div>
<input type="submit" id="submit_btn" value="Submit" class="btn btn-primary form-btn" />
</div>
</div>
</div>
<div class="contact-right">
<div class="map-wrap">
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d246.59238046957148!2d76.86082376890995!3d8.549940298273354!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xeeff56fc193aef81!2sFAYA+INNOVATIONS+PRIVATE+LIMITED!5e0!3m2!1sen!2sin!4v1528802385861" width="100%" height="375" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="container">
<div class="footer-widget" id="contactus">
<h5>Contact Us </h5>
<span>FAYA Corporation</span><br>
<span>Email on <a href="mailto:[email protected]">[email protected]</a></span><br>
<span>call - 866-686-5988</span>
</div>
<p class="copy-right-footer">Copyright ©
<a href="http://fayausa.com">FAYA Corporation</a> 2018.<br> Thejaswini, Technopark Campus, Thiruvananthapuram, Kerala, India
</p>
<ul class="social_icon">
<li><a href="https://www.facebook.com/fayausa" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li><a href="https://plus.google.com/+Fayausa" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
<li><a href="https://twitter.com/@fayausa" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="https://www.youtube.com/fayausa" target="_blank"><i class="fa fa-youtube-play" aria-hidden="true"></i></a></li>
</ul>
</div>
</footer>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#submit_btn").click(function() {
var proceed = true;
//simple validation at client's end
//loop through each field and we simply change border color to red for invalid fields
$("#contact_form input[required=true], #contact_form textarea[required=true]").each(function(){
$(this).css('border-color','');
if(!$.trim($(this).val())){ //if this field is empty
$(this).css('border','1px solid red',); //change border color to red
proceed = false; //set do not proceed flag
}
//check invalid email
var email_reg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
if($(this).attr("type")=="email" && !email_reg.test($.trim($(this).val()))){
$(this).css('border-color','red'); //change border color to red
proceed = false; //set do not proceed flag
}
});
if(proceed) //everything looks good! proceed...
{
//get input field values data to be sent to server
post_data = {
'user_name' : $('input[name=name]').val(),
'user_email' : $('input[name=email]').val(),
'msg' : $('textarea[name=message]').val(),
'subject' : $('input[name=subject]').val()
};
//Ajax post data to server
$.post('contact_me.php', post_data, function(response){
if(response.type == 'error'){ //load json data from server and output message
output = '<div class="error">'+response.text+'</div>';
}else{
output = '<div class="success">'+response.text+'</div>';
//reset values in all input fields
$("#contact_form input[required=true], #contact_form textarea[required=true]").val('');
//$("#contact_form #contact_body").slideUp(); //hide form after success
}
$("#contact_form #contact_results").hide().html(output).slideDown();
}, 'json');
}
});
//reset previously set border colors and hide all message on .keyup()
$("#contact_form input[required=true], #contact_form textarea[required=true]").keyup(function() {
$(this).css('border-color','');
$("#result").slideUp();
});
});
(jQuery);
</script>
</body>
</html>