-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
152 lines (132 loc) · 5.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width,initial-scale=1" name="viewport">
<meta content="description" name="description">
<meta name="google" content="notranslate" />
<meta content="robot boi" name="author">
<!-- Disable tap highlight on IE -->
<meta name="msapplication-tap-highlight" content="no">
<link rel="apple-touch-icon" sizes="180x180" href="apple-icon-180x180.png">
<link href="favicon.ico" rel="icon">
<title>@contact</title>
<link href="main.css" rel="stylesheet"></head>
<body class="">
<div id="site-border-left"></div>
<div id="site-border-right"></div>
<div id="site-border-top"></div>
<div id="site-border-bottom"></div>
<!-- Add your content of header -->
<header>
<nav class="navbar navbar-fixed-top navbar-default">
<div class="container">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav ">
<li><a href="index.html" title="">@ Home</a></li>
<li><a href="about.html" title="">@ About</a></li>
<li><a href="contact.html" title="">@ Contact</a></li>
</ul>
</div>
</div>
</nav>
</header>
<div class="section-container">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="section-container-spacer text-center">
<h1 class="h2">@ Contact</h1>
</div>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<form action="" class="reveal-content" onsubmit="sendEmail(); reset(); return false;">
<div class="row">
<div class="col-md-7">
<div class="form-group">
<input type="text" class="form-control" id="name" placeholder="Name" required>
</div>
<div class="form-group">
<input type="email" class="form-control" id="email" placeholder="Email" required>
</div>
<div class="form-group">
<input type="text" class="form-control" id="phone" placeholder="Phone number" required>
</div>
<div class="form-group">
<input type="text" class="form-control" id="subject" placeholder="Subject" required>
</div>
<div class="form-group">
<textarea class="form-control" rows="5" id="message" placeholder="Enter your message" required></textarea>
</div>
<button type="submit" class="btn btn-default btn-lg" id="btn">Send</button>
</div>
<div class="col-md-5 address-container">
<ul class="list-unstyled">
<li>
<span class="fa-icon">
<i class="fa fa fa-map-marker" aria-hidden="true"></i>
</span>
Dar es Salaam, Tanzania
</li>
</ul>
<h3>Socials:</h3>
<a href="https://www.github.com/elvisernest" title="" class="fa-icon">
<i class="fa fa-github"></i>
</a>
<a href="https://www.instagram.com/mr.redteam/" title="" class="fa-icon">
<i class="fa fa-instagram"></i>
</a>
<a href="https://wa.me/255746635019" title="" class="fa-icon">
<i class="fa fa-whatsapp"></i>
</a>
<!--
<a href="https://www.linkedin.com" title="" class="fa-icon">
<i class="fa fa-linkedin"></i>
</a>
-->
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
navActivePage();
});
</script>
<script type="text/javascript" src="main.js"></script>
</body>
<script src="https://smtpjs.com/v3/smtp.js"></script>
<script>
function sendEmail(){
var email = document.getElementById('email').value;
var name = document.getElementById('name').value;
var phone = document.getElementById('phone').value;
var subject = document.getElementById('subject').value;
var message = document.getElementById('message').value;
var body = "Name: " + name + "<br/> Email: " + email + "<br/> Phone Number: " + phone + "<br/> Subject: " + subject + "<br/> Message: " + message;
Email.send({
Host : "smtp.gmail.com",
Username : "elviskusiluka@gmail.com",
Password : "mthueevtozogyvcw",
To : 'elviskusiluka@gmail.com',
From : email,
Subject : subject,
Body : body
}).then(
message => alert(message)
);
}
</script>
</html>