-
Notifications
You must be signed in to change notification settings - Fork 0
/
donate.html
341 lines (280 loc) · 13.5 KB
/
donate.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Night Market</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Facebook Opengraph integration: https://developers.facebook.com/docs/sharing/opengraph -->
<meta property="og:title" content="">
<meta property="og:image" content="">
<meta property="og:url" content="">
<meta property="og:site_name" content="">
<meta property="og:description" content="">
<!-- Twitter Cards integration: https://dev.twitter.com/cards/ -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="">
<!-- Favicons -->
<link href="assets/img/favicon.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&family=Pavanam&display=swap" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/animate.css/animate.min.css" rel="stylesheet">
<link href="assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/vendor/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="assets/vendor/venobox/venobox.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />
<!-- =======================================================
* Template Name: Imperial - v2.0.0
* Template URL: https://bootstrapmade.com/imperial-free-onepage-bootstrap-theme/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body>
<!-- ======= Header ======= -->
<header id="contact_header">
<div class="container">
<div id="logo" class="pull-left">
<!--<a href="index.html"><img src="assets/img/logo.png" alt=""></a>-->
<!-- Uncomment below if you prefer to use a text image -->
<h1><a href="index2.html">Night Market</a></h1>
</div>
<nav id="nav-menu-container">
<ul class="nav-menu">
<!--<li class="index2.html"><a href="index2.html">The Project</a>
<ul>
<li><a href="teaching.html">Faai Di Laa</a></li>
<li><a href="dtp.html">Seek</a></li>
<li><a href="shift.html">Common Grounds</a></li>
<li><a href="shift.html">Night Market</a></li>
</ul>
</li>-->
<li><a href="about.html">Artists</a></li>
<li><a href="support.html">Support</a></li>
<li><a href="contact.html">Connect</a></li>
</ul>
</nav>
<!-- #nav-menu-container -->
</div>
</header><!-- End Header -->
<main id="main">
<!-- ======= Contact Section ======= -->
<section id="contact">
<div class="container wow fadeInUp">
<div class="row">
<div class="col-md-12">
<h3 class="contact-section-title">Donate</h3>
<!-- <div class="section-description"><a href="kelseyang@me.com"><i class="fa fa-envelope"></i></a> <a href="kelseyang@me.com">kelseyang@me.com</a></div>
</div>
<div class="section-description"><a href="https://www.instagram.com/kelseyyangg/"><i class="fa fa-instagram"></i></a>
<a href="https://www.instagram.com/kelseyyangg/">@kelseyyangg</a></div>
</div> -->
<div class="section-title-divider"></div>
<div id="smart-button-container">
<div style="text-align: center"><label for="description">Name </label><input type="text" name="descriptionInput" id="description" maxlength="127" value=""></div>
<p id="descriptionError" style="visibility: hidden; color:red; text-align: center;">Please enter a description</p>
<div style="text-align: center"><label for="amount">Amount </label><input name="amountInput" type="number" id="amount" value="" ><span> USD</span></div>
<p id="priceLabelError" style="visibility: hidden; color:red; text-align: center;">Please enter a price</p>
<div id="invoiceidDiv" style="text-align: center; display: none;"><label for="invoiceid"> </label><input name="invoiceid" maxlength="127" type="text" id="invoiceid" value="" ></div>
<p id="invoiceidError" style="visibility: hidden; color:red; text-align: center;">Please enter an Invoice ID</p>
<div style="text-align: center; margin-top: 0.625rem;" id="paypal-button-container"></div>
</div>
<script src="https://www.paypal.com/sdk/js?client-id=sb¤cy=USD" data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
var description = document.querySelector('#smart-button-container #description');
var amount = document.querySelector('#smart-button-container #amount');
var descriptionError = document.querySelector('#smart-button-container #descriptionError');
var priceError = document.querySelector('#smart-button-container #priceLabelError');
var invoiceid = document.querySelector('#smart-button-container #invoiceid');
var invoiceidError = document.querySelector('#smart-button-container #invoiceidError');
var invoiceidDiv = document.querySelector('#smart-button-container #invoiceidDiv');
var elArr = [description, amount];
if (invoiceidDiv.firstChild.innerHTML.length > 1) {
invoiceidDiv.style.display = "block";
}
var purchase_units = [];
purchase_units[0] = {};
purchase_units[0].amount = {};
function validate(event) {
return event.value.length > 0;
}
paypal.Buttons({
style: {
color: 'gold',
shape: 'rect',
label: 'paypal',
layout: 'vertical',
},
onInit: function (data, actions) {
actions.disable();
if(invoiceidDiv.style.display === "block") {
elArr.push(invoiceid);
}
elArr.forEach(function (item) {
item.addEventListener('keyup', function (event) {
var result = elArr.every(validate);
if (result) {
actions.enable();
} else {
actions.disable();
}
});
});
},
onClick: function () {
if (description.value.length < 1) {
descriptionError.style.visibility = "visible";
} else {
descriptionError.style.visibility = "hidden";
}
if (amount.value.length < 1) {
priceError.style.visibility = "visible";
} else {
priceError.style.visibility = "hidden";
}
if (invoiceid.value.length < 1 && invoiceidDiv.style.display === "block") {
invoiceidError.style.visibility = "visible";
} else {
invoiceidError.style.visibility = "hidden";
}
purchase_units[0].description = description.value;
purchase_units[0].amount.value = amount.value;
if(invoiceid.value !== '') {
purchase_units[0].invoice_id = invoiceid.value;
}
},
createOrder: function (data, actions) {
return actions.order.create({
purchase_units: purchase_units,
});
},
onApprove: function (data, actions) {
return actions.order.capture().then(function (details) {
alert('Transaction completed by ' + details.payer.name.given_name + '!');
});
},
onError: function (err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();
</script>
</div>
<!-- <div class="row justify-content-right">
<div class="col-lg-6 about-img">
<!-- <h3 class="contact-section-title">Contact</h3>-->
<!-- <div class="info">
<div>
<a href="kelseyang@me.com"><i class="fa fa-envelope"></i></a> <a href="kelseyang@me.com">kelseyang@me.com</a>
</div>
<div>
<a href="https://www.instagram.com/kelseyyangg/"><i class="fa fa-instagram"></i></a>
<a href="https://www.instagram.com/kelseyyangg/">@kelseyyangg</a>
</div>
<img src="assets/img/contact.jpg" class="img-fluid" alt="">
</div>
<div class="col-md-6 about-content">
<div class="info">
<div>
<a href="kelseyang@me.com"><i class="fa fa-envelope"></i></a>
<p><a href="kelseyang@me.com">kelseyang@me.com</a></p>
</div>
<div>
<a href="https://www.instagram.com/kelseyyangg/"><i class="fa fa-instagram"></i></a>
<p><a href="https://www.instagram.com/kelseyyangg/">@kelseyyangg</a></p>
</div>
</div>
</div>
<!--<div class="form">
<form action="forms/contact.php" method="post" role="form" class="php-email-form">
<div class="form-group">
<input type="text" name="name" class="form-control" id="name" placeholder="Your Name" data-rule="minlen:4" data-msg="Please enter at least 4 chars" />
<div class="validate"></div>
</div>
<div class="form-group">
<input type="email" class="form-control" name="email" id="email" placeholder="Your Email" data-rule="email" data-msg="Please enter a valid email" />
<div class="validate"></div>
</div>
<div class="form-group">
<input type="text" class="form-control" name="subject" id="subject" placeholder="Subject" data-rule="minlen:4" data-msg="Please enter at least 8 chars of subject" />
<div class="validate"></div>
</div>
<div class="form-group">
<textarea class="form-control" name="message" rows="5" data-rule="required" data-msg="Please write something for us" placeholder="Message"></textarea>
<div class="validate"></div>
</div>
<div class="mb-3">
<div class="loading">Loading</div>
<div class="error-message"></div>
<div class="sent-message">Your message has been sent. Thank you!</div>
</div>
<div class="text-center"><button type="submit">Send Message</button></div>
</form>
</div>
</div>-->
</div>
</div>
</section><!-- End Contact Section -->
<!-- ======= Subscrbe Section ======= -->
<!--<section id="subscribe">
<div class="container wow fadeInUp">
<div class="row">
<div class="col-md-8">
<h3 class="subscribe-title">Subscribe For Updates</h3>
<p class="subscribe-text">Join our 1000+ subscribers and get access to the latest tools, freebies, product announcements and much more!</p>
</div>
<div class="col-md-4 subscribe-btn-container">
<a class="subscribe-btn" href="#">Subscribe Now</a>
</div>
</div>
</div>
</section><!-- End Subscrbe Section -->
</main><!-- End #main -->
<div id="preloader"></div>
<a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/jquery.easing/jquery.easing.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/wow/wow.min.js"></script>
<script src="assets/vendor/jquery-sticky/jquery.sticky.js"></script>
<script src="assets/vendor/superfish/superfish.min.js"></script>
<script src="assets/vendor/hoverIntent/hoverIntent.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/owl.carousel/owl.carousel.min.js"></script>
<script src="assets/vendor/venobox/venobox.min.js"></script>
<script src="assets/vendor/morphext/morphext.min.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
</body>
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="social-links mt-3">
<div class="section-title">
<a href="https://www.instagram.com/kelseyyangg/"><i class="fa fa-instagram"></i></a>
<a href="kelseyang@me.com"><i class="fa fa-envelope"></i></a>
</div>
</div>
<div class="copyright">
© Copyright 2021. All Rights Reserved
</div>
</div>
</div>
</div>
</footer><!-- End Footer -->
</html>