-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
229 lines (174 loc) · 6.12 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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html lang="zh-Hant-TW">
<head>
<!--- basic page needs
================================================== -->
<meta charset="utf-8">
<title>Ttravel</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- mobile specific metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS
================================================== -->
<link rel="stylesheet" href="css/all.css">
<!-- script
================================================== -->
<script src="js/modernizr.js"></script>
<script src="js/pace.min.js"></script>
<!-- favicons
================================================== -->
<link rel="shortcut icon" href="images/logo.svg" type="image/x-icon">
<link rel="icon" href="images/logo.svg" type="image/x-icon">
</head>
<body id="top">
<!-- header
================================================== -->
<header>
<div class="header-logo">
<a href="index.html">Ttravel</a>
</div>
<a id="header-menu-trigger" href="#0">
<span class="header-menu-icon"></span>
</a>
<nav id="menu-nav-wrap">
<a href="#0" class="close-button" title="close"><span>Close</span></a>
<h3>Ttravel.</h3>
<ul class="nav-list">
<li class="current"><a href="index.html" title="">Home</a></li>
<li><a href="room.html" title="">Room</a></li>
<li><a href="contact.html" title="">Contact</a></li>
</ul>
<p class="sponsor-text" style="margin-top: 50vh;">
Ttravel with<br><span>HTML|CSS|SASS</span>
</p>
</nav> <!-- end #menu-nav-wrap -->
</header> <!-- end header -->
<!-- contact
================================================== -->
<section id="contact">
<div class="overlay"></div>
<div class="section-intro animate-this">
<h1>Contact.</h1>
</div> <!-- end section-intro -->
<div class="row contact-content">
<div class="col-seven tab-full animate-this">
<h5>Send Us Message</h5>
<!-- form -->
<iframe name="iframe_redirect" id="iframe_redirect" style="display:none;"
onload="if(typeof sent_redirect!='undefined'){window.location='https://www.google.com.tw/';}"></iframe>
<form name="contactForm" id="contactForm" method="post"
action="https://docs.google.com/forms/u/0/d/e/1FAIpQLScNasL8W-d835bfRFeHYlIwW-5wx65W7wOcPdxwGiUNdcDG0A/formResponse">
<div class="form-field">
<input name="contactName" type="text" id="contactName" placeholder="Name" value="" minlength="2"
required="">
</div>
<div class="row">
<div class="col-six tab-full">
<div class="form-field">
<input name="contactEmail" type="email" id="contactEmail" placeholder="Email" value=""
required="">
</div>
</div>
<div class="col-six tab-full">
<div class="form-field">
<input name="contactSubject" type="text" id="contactSubject" placeholder="Subject"
value="">
</div>
</div>
</div>
<div class="form-field">
<textarea name="contactMessage" id="contactMessage" placeholder="message" rows="10" cols="50"
required=""></textarea>
</div>
<div class="form-field">
<button class="submitform" type="button" id="submit">Submit</button>
</div>
</form> <!-- end form -->
<!-- contact-warning -->
<div id="message-warning"></div>
<!-- contact-success -->
<div id="message-success">
<i class="fa fa-check"></i>Your message was sent, thank you!<br>
</div>
</div> <!-- end col-seven -->
<div class="col-four tab-full contact-info end animate-this">
<div class="cinfo">
<h6><br><br>Where to Find Us</h6>
<p>
No. 2, <br>Chengcheng North Road, <br>Beitun District, <br>Taichung City 406
</p>
<iframe
src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14560.990343761196!2d120.6916801!3d24.1630483!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x346917e0551f061d%3A0x81bc37da5c49059c!2z6Ie65Lit5biC5YyX5bGv5Y2A5YyX5bGv5ZyL5rCR5bCP5a24!5e0!3m2!1szh-TW!2stw!4v1695460500793!5m2!1szh-TW!2stw"
width="75%" height="45%" style="border:0; background-color: black;" allowfullscreen=""
loading="lazy" referrerpolicy="no-referrer-when-downgrade" class="brightness"></iframe>
</div> <!-- end cinfo -->
<div class="cinfo">
<h6>Email Us At</h6>
<p>
someone@email.com<br>
ttravel@email.com
</p>
</div> <!-- end cinfo -->
<div class="cinfo">
<h6>Call Us At</h6>
<p>
Phone: (+886) 987 654 321<br>
Mobile: (+04) 987 6543
</p>
</div>
</div> <!-- end cinfo -->
</div> <!-- end row contact-content -->
</section> <!-- end contact -->
<!-- footer
================================================== -->
<div class="footer-bottom">
<div class="row">
<div class="col-twelve">
<div class="copyright">
<span>Design by <a href="#">Alicia</a> 2023.</span>
</div>
</div>
</div>
</div> <!-- end footer-bottom -->
<!-- Java Script
================================================== -->
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- 客製化 google form -->
<script>
$(function () {
$('#submit').on('click', function () {
// 姓名
var name = $('#contactName').val() || '未填寫';
// 信箱
var mail = $('#contactEmail').val() || '未填寫';
// 類別
var subject = $('#contactSubject').val() || '未填寫';
// 內容
var msg = $('#contactMessage').val() || '未填寫';
// post google的name值
var data = {
'entry.1416741093': name,
'entry.1759473509': mail,
'entry.1354588461': subject,
'entry.1151838793': msg
};
$.ajax({
type: 'POST',
url: 'https://docs.google.com/forms/u/0/d/e/1FAIpQLScNasL8W-d835bfRFeHYlIwW-5wx65W7wOcPdxwGiUNdcDG0A/formResponse',
data: data,
contentType: 'application/json',
dataType: 'jsonp',
complete: function () {
alert('資料已成功送出,謝謝您的來信!');
window.location.href = 'contact.html';
}
});
});
});
</script>
</body>
</html>