-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
158 lines (131 loc) · 5.14 KB
/
contact.html
File metadata and controls
158 lines (131 loc) · 5.14 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<!-- Site icons -->
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<!-- Metadata -->
<meta charset="utf-8">
<meta name="keywords" content="software, developer, engineer, java, backend, back-end, Australian, aussie">
<meta name="author" content="Nathan Snow, AussieDev81">
<meta name="description" content="Software Engineer">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://aussiedev81.com">
<meta property="og:type" content="website">
<meta property="og:title" content="AussieDev81">
<meta property="og:description" content="Software Engineer">
<meta property="og:image" content="/images/developer.jpg">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="aussiedev81.com">
<meta property="twitter:url" content="https://aussiedev81.com">
<meta name="twitter:title" content="AussieDev81">
<meta name="twitter:description" content="Software Engineer">
<meta name="twitter:image" content="/images/developer.jpg">
<!-- Styling -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href='http://fonts.googleapis.com/css?family=Montserrat:400,700' type='text/css'>
<!-- JavaScript dependencies -->
<script rel="preconnect" src="https://kit.fontawesome.com/068920eb91.js" crossorigin="anonymous"></script>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
</head>
<body>
<!-- navigation -->
<div class="container" id="navigation"></div>
<!-- contact header section -->
<div id="contact-header">
<div class="container">
<div class="row">
</div>
</div>
</div>
<!-- contact section -->
<div id="contact">
<div class="container">
<div class="row">
<div class="col-md-offset-2 col-md-8 col-sm-12 text-center">
<h2>Get in touch</h2>
<p>Do you need a custom software solution? Help on your next big project?</p>
<p>Reach out!</p>
</div>
<div class=" col-md-12 mt30">
<form id="form">
<div class="row">
<div class="col-md-6 col-sm-6">
<label for="name">NAME</label>
<input name="name" type="text" class="form-control" id="name" required>
<label for="email">EMAIL</label>
<input name="email" type="email" class="form-control" id="email" required>
</div>
<div class="col-md-6 col-sm-6">
<label for="message">MESSAGE</label>
<textarea name="message" rows="7" class="form-control" id="message" required></textarea>
</div>
</div>
<div class="row col-12 submit-box">
<div class="g-recaptcha" data-sitekey="6LfjW2sjAAAAAEgc1ty7DDg52mUQ7Qz36gdRgNrX" data-theme="dark"></div>
<input type="submit" id="send-btn" class="btn btn-default" value="Send Email"></input>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- footer section -->
<footer id="footer"></footer>
<!-- copyright section -->
<div class="copyright" id="copyright"></div>
<!-- scroll to top button -->
<button class="scroll-up-btn" id="scroll-btn" type="button" onclick="scrollUp()">
<i class="fa-solid fa-jet-fighter-up fa-2xl"></i>Top
</button>
<!-- javascript js -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js"></script>
<script type="text/javascript">emailjs.init('oKjtk3d35PlskoYhd')</script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/components.js"></script>
<script type="text/javascript">
document.getElementById("navigation").innerHTML = navContent();
document.getElementById("footer").innerHTML = footerContent();
document.getElementById("copyright").innerHTML = copyrightContent();
navToggle();
</script>
<script>
const btn = document.getElementById('send-btn');
document.getElementById('form')
.addEventListener('submit', function (event) {
event.preventDefault();
//Get reCaptcha response
let response = grecaptcha.getResponse();
if (response.length == 0) {
//User not validated
alert("Please verify that are not a robot")
}
else {
//User validated
const serviceID = 'default_service';
const templateID = 'template_cnr84vj';
btn.value = 'Sending...';
const successMessage = `Thanks ${this.name.value}, we have received your email and will get back to you at ${this.email.value}`;
emailjs.sendForm(serviceID, templateID, this)
.then(() => {
btn.value = 'Send Email';
alert(successMessage);
window.location.reload();
window.scrollTo(0, 0);
}, (err) => {
btn.value = 'Send Email';
alert(JSON.stringify(err));
});
}
});
</script>
</body>
</html>