-
Notifications
You must be signed in to change notification settings - Fork 2
/
contact.html
205 lines (202 loc) · 10.6 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<title> Harikesh </title>
<link rel="icon" href="images/icon.png">
<meta name="description" content="freelancer web developer and web designer my web development skills: HTMl5 - CSS3 - bootstrap4 -javaScript - jQuery - Ajax - PHP (MVC) - wordpress -Mysql ;; I look forward to working with you soon, and I will be in time">
<meta name="keywords" content="HTML,CSS,jquery,JavaScript">
<meta name="author" content="Harikesh">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,600,700,900" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<!--[if lt IE 9]>
<script src="jhttps://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target=".navbar-scrolled" data-offset="0" class="scrollspy-example">
<aside class="hari-aside">
<!-- control bar -->
<div class="control-bar">
<div class="text-center">
<span class="menu-toggle">
<i class="chart"></i>
<i class="chart"></i>
<i class="chart"></i>
</span>
</div>
<p class="copyright">
© - Made by <a href="#">Harikesh</a>
</p>
</div>
<!-- SlideMenu -->
<div class="slide-menu-container">
<div class="slide-menu menu-opend navbar-scrolled menu-style">
<div class="hari-user-info">
<!-- Social media -->
<ul class="social-media list-unstyled text-center">
<li><a href="https://www.facebook.com/P.Harikesh" class="facebook" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
<li><a href="https://twitter.com/harikesh409" class="twitter" target="_blank"><i class="fab fa-twitter"></i></a></li>
<li><a href="https://plus.google.com/+Harikesh" class="google-plus" target="_blank"><i class="fab fa-google-plus-g"></i></a></li>
<li><a href="https://www.linkedin.com/in/harikesh409/" class="linkedin" target="_blank"><i class="fab fa-linkedin-in"></i></a></li>
<li><a href="https://www.github.com/harikesh409" class="github" target="_blank"><i class="fab fa-github"></i></a></li>
</ul>
<div class="hari-img-box">
<div class="hari-img">
<img src="images/harikesh.jpg" alt="Harikesh"/>
</div>
</div>
</div>
<div class="nav">
<!-- Menu Links -->
<ul class="list-unstyled links">
<li>
<a href="index.html"><i class="fa fa-home"></i>Home</a>
</li>
<li>
<a href="about-me.html"><i class="fas fa-user"></i>About Me</a>
</li>
<li>
<a href="portfolio.html"><i class="fa fa-laptop"></i>Portfolio</a>
</li>
<li>
<a href="resume.html"><i class="fas fa-file-alt"></i>Resume</a>
</li>
<li class="active">
<a href="contact.html"><i class="far fa-envelope"></i>Contact Me</a>
</li>
</ul>
</div>
</div>
</div>
</aside>
<main class="main-page-content">
<section class="full-page" id="contact">
<div class="contact overlay-container">
<div class="hari-intro-section">
<div class="overlay" style="background: none;">
<div class="section-intro">
<div class="text-center hari-icon-box-container">
<div class="hari-icon-box">
<span class="far fa-envelope hari-icon"></span>
</div>
</div>
<h1 class="text-center">
CONTACT ME
</h1>
</div>
</div>
</div>
<div class="contact-ways">
<div class="hari-container">
<div class="mrhari-main-title">
<h2>
Get In Touch
<span class="hari-line"></span>
</h2>
</div>
<div class="row">
<div class="col">
<div class="hari-icon-list-box">
<div class="hari-icon-box-container">
<div class="hari-icon-box">
<span class="fa fas fa-at hari-icon"></span>
</div>
</div>
<div class="hari-list-info">
<h4>Email</h4>
<p>
<a href="mailto:p.harikesh409@gmail.com" class="text-white">p.harikesh409@gmail.com</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="contact-form">
<div class="overlay" style="background:none;">
<div class="hari-container">
<div class="mrhari-main-title">
<h2>
Send Message
<span class="hari-line"></span>
</h2>
<h3 class="text-success" id="form-success" style="display: none;">Thanks for contacting</h3>
<h3 class="text-danger" id="form-error" style="display: none;">Sorry some trouble sending the data please send an email.</h3>
</div>
<div class="row">
<div class="col-sm-10 offset-sm-1 col-md-12 offset-md-0 col-lg-8 offset-lg-2">
<form class="form" action="#" method="post" id="contact_form">
<div class="input-row">
<div class="form-group">
<input class="form-control" type="text" placeholder="Message About ..." name="messageAbout" required>
</div>
<div class="form-group">
<input class="form-control" type="text" placeholder="Your Full Name" name="fullName" required>
</div>
</div>
<div class="input-row">
<div class="form-group">
<input class="form-control" type="email" placeholder="Email" name="email" required>
</div>
<div class="form-group">
<input class="form-control" type="number" placeholder="Phone" name="phone">
</div>
</div>
<div class="form-group">
<textarea class="form-control" placeholder="Your Message ..." name="message" required></textarea>
</div>
<div>
<button class="btn btn-1 btn-block btn-rgba" type="submit" name="submit_contact_form">
<i class="fas fa-paper-plane"></i> Send Your Message
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.4.2/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.7.6/jquery.nicescroll.min.js"></script>
<script src="js/script.js"></script>
<script>
function getFormData($form){
const unindexed_array = $form.serializeArray();
const indexed_array = {};
$.map(unindexed_array, function(n, i){
indexed_array[n['name']] = n['value'];
});
return indexed_array;
}
$("#contact_form").on("submit",function(e) {
e.preventDefault();
const body = getFormData($("#contact_form"));
$.post(
"https://submit-form.com/mO3nI7Bjn",
body,
null,
"json"
).then(function (response) {
$("#form-success").show();
$("#contact_form")[0].reset();
})
.catch(function (response) {
$("#form-error").show();
console.error(response);
});
});
</script>
</body>
</html>