This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
189 lines (160 loc) · 5.3 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
<!DOCTYPE HTML>
<!--
Spectral by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<link rel="shortcut icon" type="image/png" href="images/favicon1.png">
<title>TJ UAV</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="assets/css/main.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
<style>
#contact-image {
background-image: url("./images/6-7\ Pictures/1.jpg");
}
#thank {
position: fixed;
display: none;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #2e3842;
padding: 1em 2em;
z-index: 99;
}
#thank.enabled {
display: flex;
}
#thank header {
display: flex;
flex-direction: column;
}
#thank-cover {
display: none;
position: fixed;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 5;
}
#thank-cover.enabled {
display: unset;
}
</style>
</head>
<body>
<!-- Page Wrapper -->
<div id="page-wrapper">
<!-- Header -->
<header id="header">
<h1><a href="index.html">TJ UAV</a></h1>
<nav id="nav">
<ul>
<li class="special">
<a href="#menu" class="menuToggle"><span>Menu</span></a>
<div id="menu">
<ul>
<li><a href="./index.html">Home</a></li>
<li><a href="./squad.html">Meet the Squad</a></li>
<li><a href="./competition.html">AUVSI SUAS</a></li>
<li><a href="./gallery.html">Video and Photo Gallery</a></li>
<li><a href="./planedownloads.html">Downloads</a></li>
<li><a href="./sponsorship.html">Sponsors</a></li>
<li><a class="disabled-link" href="./contact.html">Contact Us</a></li>
</ul>
</div>
</li>
</ul>
</nav>
</header>
<!-- Main -->
<div id="thank-cover"></div>
<article id="thank" class="row style2">
<header class="12u$">
<h2>Thank you for contacting us!</h2>
<button class="special" onclick="(function() {
document.querySelector('#thank-cover').classList.remove('enabled')
document.querySelector('#thank').classList.remove('enabled')
})()">Ok</button>
</header>
</article>
<article id="main" class="row">
<header id="contact-image" class="12u$">
<h2>Contact Us</h2>
<p>Feel free to reach out to TJ UAV!</p>
</header>
</article>
<div class="10u -1u">
<form name="letters" id="letters">
<div class="row uniform">
<div class="6u 12u$(xsmall) name">
<input type="text" name="name" value="" placeholder="Name">
</div>
<div class="6u$ 12u$(xsmall) email">
<input type="email" name="email" value="" placeholder="Email">
</div>
<div class="12u$ 12u$(xsmall) subject">
<input type="text" name="subject" value="" placeholder="Subject">
</div>
<div class="12u$ message">
<textarea name="message" cols="40" rows="5" placeholder="Enter your Message" style="max-width: 100%;"></textarea>
</div>
<div class="12u$">
<ul class="actions">
<li><input type="submit" name="submit" value="Submit" class="special"></li>
<li><input type="reset" value="Reset"></li>
</ul>
</div>
</div>
</form>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbzhUIL3OmitTfOS7MaNOfMQDKbqJqFdXC7Z7qIfpFmKImBuzwQr/exec'
const form = document.forms['letters']
form.addEventListener('submit', (e) => {
e.preventDefault()
fetch(scriptURL, {
method: 'POST',
body: new FormData(form)
})
.then(response => console.log('Success!', response))
.catch(error => console.error('Error!', error.message))
document.querySelector('#thank-cover').classList.add('enabled')
document.querySelector('#thank').classList.add('enabled')
let formForClearing = document.querySelectorAll('form#letters input[name]:not(input[name="submit"]), form#letters textarea')
formForClearing.forEach(element => {
element.value = "";
})
})
</script>
</div>
<!-- Footer -->
<footer id="footer">
<ul class="icons">
<li><a href="https://www.facebook.com/groups/595833823874037/?ref=share" class="icon fa-facebook-square" target="_blank"><span class="label">Facebook</span></a></li>
<li><a href="https://www.youtube.com/channel/UCWeTbq3R5KvQ6iQTiG0LLFg/featured" class="icon fa-youtube-square" target="_blank"></a></li>
<li><a href="mailto:[email protected]" class="icon fa-envelope"><span class="label">Email</span></a></li>
</ul>
<ul class="copyright">
<li>© TJUAV 2019. All rights reserved.</li>
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
</body>
</html>