-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
160 lines (151 loc) · 5.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Sabrina Ferguson - Portfolio</title>
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link
href="http://fonts.googleapis.com/css?family=Lato:400,700|Bitter:400,700"
rel="stylesheet"
type="text/css"
/>
<link href="css/style.css" rel="stylesheet" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row header">
<div class="col-md-12">
<h1 class="name">Sabrina Ferguson</h1>
<h2 class="role">UI / UX Developer</h2>
</div>
</div>
<!-- header -->
<div class="row navigation">
<div class="col-md-4 col-xs-12">
<a href="index.html" class="serif">Resume</a>
</div>
<div class="col-md-4 col-xs-12">
<a href="portfolio.html" class="serif">Portfolio</a>
</div>
<div class="col-md-4 col-xs-12">
<a href="contact.html" class="serif">Contact</a>
</div>
</div>
<hr />
<div class="row body">
<div class="col-md-10 col-md-offset-1">
<p>
If you'd like to contact me about any freelance work or wish to
reach out for any reason, please feel free to contact me! You can
contact me by email in my resume and I'll get back with you shortly!
</p>
<p>
Check out my profile on LinkedIn:
<a
href="https://www.linkedin.com/in/sabrina-ferguson-09679017/"
target="_blank"
title="LinkedIn Profile"
>Sabrina Ferguson</a
>
</p>
</div>
</div>
<!-- body -->
<div class="row footer">
<div class="col-md-10 col-md-offset-1">
<blockquote>
<p>
Never underestimate your audience. It’s the most common mistake
made by presenters. It is not about you anymore. It’s about your
audience’s relationship with your content.
</p>
<footer>Edward Tufte</footer>
</blockquote>
</div>
</div>
<!-- footer -->
</div>
<script src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
$('#contact-form').submit(function (event) {
var contact_name = $('#name').val();
var email = $('#email').val();
var message = $('#message').val();
var form_message = $('.form-message');
if (contact_name === '' || email === '' || message === '') {
//missing fields, notify user
form_message
.removeClass('text-success')
.addClass('text-danger')
.text('Please fill out all fields of the form');
} else {
//proceed with submitting form
form_message
.removeClass('text-danger')
.addClass('text-success')
.text('Submitting form...');
var formData = $('#contact-form').serialize();
$.ajax({
type: 'POST',
url: $('#contact-form').attr('action'),
data: formData,
})
.done(function (response) {
form_message.text('Thanks! Your message has been sent!');
contact_name.val('');
email.val('');
message.val('');
})
.fail(function (data) {
// Set the message text.
if (data.responseText !== '') {
form_message
.removeClass('text-success')
.addClass('text-danger')
.text(data.responseText);
} else {
form_message
.removeClass('text-success')
.addClass('text-danger')
.text(
'Oops! An error occured and your message could not be sent.'
);
}
});
}
event.preventDefault();
});
</script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
(i[r] =
i[r] ||
function () {
(i[r].q = i[r].q || []).push(arguments);
}),
(i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(
window,
document,
'script',
'//www.google-analytics.com/analytics.js',
'ga'
);
ga('create', 'UA-56760491-1', 'auto');
ga('require', 'displayfeatures');
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
</script>
</body>
</html>