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
|
<!DOCTYPE html> <html lang="en-HK" prefix="og: http://ogp.me/ns#">
<head> <title>聯絡我們 - 慧妍雅集, WAI YIN ASSOCIATION</title>
<!-- css --> <?php include 'inc/headlinks.php'; ?> <!-- js --> <?php include 'inc/link-js.php'; ?> </head>
<body> <!-- header --> <?php include 'inc/navbar.php'; ?> <!-- end of header-->
<!-- breadcrumb --> <div class="breadcrumb" style="background-image:url(../../assets/images/breadcrumbbg.jpg);">
<div class="breadcrumbWrapper text-center">
<p class="breadcrumbTitle mb-2 pt-4 h3 text-uppercase whiteFont">聯絡我們 </p>
<div class="breadcrumbLink whiteFont">
<a href="index.php" class="whiteFont"> 首頁</a> / <span class="whiteFont">聯絡我們 </span>
</div>
</div>
</div>
<section class="mainWrap">
<div class="container">
<div class="row align-items-center align-items-stretch">
<div class="col-lg-6"> <p class="h1 mb-4">慧妍雅集</p> <!-- <h4></h4> --> <div class="row"> <div class="col-md-12 mb-4"> <ul class="iconList mb-4"> <li> <i class="fas fa-map-marker-alt"></i> <span class="contactAddress"></span> </li> <li><i class="fas fa-phone"></i> <span class="contactTel"></span></li> <li> <i class="fas fa-fax"></i> <span class="contactFax"></span></li> <li> <a href="#" class="link contactEmailLink"><i class="fas fa-envelope"></i> <span class="contactEmail"></span></a></li> </ul> <!-- <form id="contact-form" method="post" action="contact_controler" role="form" novalidate="novalidate">
<div class="messages"></div> <div class="row mb-4"> <div class="col-md-12"> <p class="h4">聯絡我們</p> </div> <div class="col-md-6"> <div class="form-group"> <label for="contactName">姓名</label> <input type="text" class="form-control" id="contactName" name="name" required="required" data-error="Name is required." aria-describedby="contactName" placeholder="" required>
<div class="help-block with-errors"></div> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="contactEmail">電郵</label> <input type="email" class="form-control" id="contactEmail" name="email" required="required" data-error="Valid email is required." aria-describedby="contactEmail" placeholder="" required> <div class="help-block with-errors"></div> </div> </div> <div class="col-md-12"> <div class="form-group"> <label for="contactTitle">主題</label> <input type="text" class="form-control" id="contactTitle" name="title" required="required" data-error="Please enter your Title" aria-describedby="contactTitle" placeholder="" required> <div class="help-block with-errors"></div> </div> </div> <div class="col-md-12">
<div class="form-group"> <label for="contactMessage">信息</label> <textarea class="form-control" id="contactMessage" name="message" rows="3" required="required" data-error="Please, leave us a message."></textarea> <div class="help-block with-errors"></div> </div> <fieldset class="mt-4 mb-4"> <div class="captchInput">
<div class="g-recaptcha" id="recaptcha" data-callback="verifyRecaptchaCallback" data-expired-callback="expiredRecaptchaCallback" data-sitekey="6Le6bSoaAAAAALY3n80rcaHnC_TQ0KFjTzbwp53w"></div> <input class="form-control d-none" data-recaptcha="true" required data-error="Please complete the Captcha"> <div class="help-block with-errors"></div>
</div>
</fieldset> <input type="button" onClick="onSubmit()" class="btn btn-primary" value="提交"></input> </div> </div> </form> --> </div>
</div>
</div>
<div class="col-lg-6"> <div class="map"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3691.9337341310925!2d114.1780208156314!3d22.28049988533391!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x340400575b8fdb41%3A0xd77b8442c8110686!2z54Gj5LuU5ZGK5aOr5omT6YGTMjI3LTIyOOiZn-eUn-WSjOWkp-W7iA!5e0!3m2!1szh-TW!2shk!4v1635483509214!5m2!1szh-TW!2shk" width="100%" height="100%" style="border:0;" allowfullscreen="" loading="lazy"></iframe> </div> </div>
</div> <hr class="mt-4 mb-4" />
</div> </section> <!-- end #section -->
<!-- footer --> <?php include 'inc/footer.php'; ?> <script> $(function() { $.ajax({ url: "../../assets/json/contact.json", type: "get",
data: {}, contentType: "application/json; charset=utf-8", dataType: "json", cache: false,
success: function(result) { let data = result.tc;
$('.contactAddress').append(data[0].address); $('.contactTel').append(data[0].tel) ; $('.contactFax').append(data[0].fax) ; $('.contactEmail').append(data[0].email) ; $('.contactEmailLink').attr('href', 'mailTo:'+data[0].email); }, error: function(xhr, status, errorThrown) { console.log(errorThrown + "\n" + status + "\n" + xhr.statusTex); }, }); }); </script>
<!-- <script type="text/javascript" src='https://www.google.com/recaptcha/api.js?hl=tc'></script> <script> function onSubmit() { var valid = false;
if (document.getElementById("contactName").value == '') { alert("Please enter your Name"); } else if (document.getElementById("contactEmail").value == '') { alert("Please enter your email"); } else if (document.getElementById("contactTitle").value == '') { alert("Please enter your title"); } else if (document.getElementById("contactMessage").value == '') { alert("Please, leave us a message."); } else { valid = true; //alert("valid"); }
if (valid) { document.getElementById("contact-form").submit(); } } </script> --> </body>
</html>
|