This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
forked from RuletRulit/kekw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
630 lines (531 loc) · 28.2 KB
/
index.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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Enjoy your life</title>
<meta name="description" content="Free Bootstrap 4 Theme by ProBootstrap.com">
<meta name="keywords" content="">
<!-- fonst -->
<link href="https://fonts.googleapis.com/css?family=Work+Sans:300,400,700" rel="stylesheet">
<script src="https://kit.fontawesome.com/3e35240ab6.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="assets/css/bootstrap/bootstrap.css">
<link rel="stylesheet" href="assets/css/animate.css">
<link rel="stylesheet" href="assets/fonts/ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="assets/fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" href="assets/fonts/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/bootstrap-datepicker.css">
<link rel="stylesheet" href="assets/css/select2.css">
<link rel="stylesheet" href="assets/css/helpers.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark probootstrap_navbar" id="probootstrap-navbar">
<div class="container">
<a class="navbar-brand" href="/" id="1">Travel</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#probootstrap-menu" aria-controls="probootstrap-menu" aria-expanded="false" aria-label="Toggle navigation">
<span><i class="ion-navicon"></i></span>
</button>
<div class="collapse navbar-collapse" id="probootstrap-menu">
<ul class="navbar-nav ml-auto">
<li class="nav-item active"><a class="nav-link" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link" href="city-guides.html">Extreme Guides</a></li>
<li class="nav-item"><a class="nav-link" href="services.html">Services</a></li>
<li class="nav-item"><a class="nav-link" href="travel.html">Enjoy With Us</a></li>
<li class="nav-item"><a class="nav-link" href="contact.html">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- END nav -->
<a id="button"></a>
<section class="probootstrap-cover overflow-hidden relative" style="background-image: url('assets/slides/slider1.jpg');" data-stellar-background-ratio="0.5" id="section-home">
<div class="overlay"></div>
<div class="container">
<div class="row align-items-center">
<div class="col-md">
<h2 class="heading mb-2 display-4 font-light probootstrap-animate">Explore The World With Schwein</h2>
</p>
<a href="contact.html" target="_blank" role="button" class="btn btn-primary p-3 mr-3 pl-5 pr-5 text-uppercase d-lg-inline d-md-inline d-sm-block d-block mb-3">Contact Us</a>
</p>
</div>
<div class="col-md probootstrap-animate">
<form action="https://formspree.io/xdolrvje" method="POST" id="my-form" class="probootstrap-form probootstrap-form-box mb60">
<div class="form-group">
<div class="row mb-3">
<div class="col-md">
<div class="form-group">
<label for="id_label_single">List of extreme sports</label>
<label for="id_label_single" style="width: 100%;">
<select class="js-example-basic-single js-states form-control" id="id_label_single" style="width: 100%;" name="message">
<option value="BASE Jumping">BASE Jumping</option>
<option value="Bodyboarding">Bodyboarding</option>
<option value="Bungee Jumping">Bungee Jumping</option>
<option value="Canyoning">Canyoning</option>
<option value="Cave Diving">Cave Diving</option>
<option value="Freeflying">Freeflying</option>
</select>
</label>
</div>
</div>
<div class="col-md">
<div class="form-group">
<label for="id_label_single2">On</label>
<div class="probootstrap_select-wrap">
<label for="id_label_single2" style="width: 100%;">
<select class="js-example-basic-single js-states form-control" id="id_label_single2" style="width: 100%;" name="message">
<option value="Australia">Australia</option>
<option value="Japan">Japan</option>
<option value="United States">United States</option>
<option value="Brazil">Brazil</option>
<option value="China">China</option>
<option value="Israel">Israel</option>
<option value="Philippines">Philippines</option>
<option value="Malaysia">Malaysia</option>
<option value="Canada">Canada</option>
<option value="Chile">Chile</option>
<option value="Chile">Zimbabwe</option>
</select>
</label>
</div>
</div>
</div>
</div>
<!-- END row -->
<div class="row mb-5">
<div class="col-md">
<div class="form-group">
<label for="probootstrap-date-departure">Departure</label>
<div class="probootstrap-date-wrap">
<span class="icon ion-calendar"></span>
<input type="text" id="probootstrap-date-departure" class="form-control" placeholder="" name="message">
</div>
</div>
</div>
<div class="col-md">
<div class="form-group">
<label for="probootstrap-date-arrival">Arrival</label>
<div class="probootstrap-date-wrap">
<span class="icon ion-calendar"></span>
<input type="text" id="probootstrap-date-arrival" class="form-control" placeholder="" name="message">
</div>
</div>
</div>
</div>
<div class="row mb-5">
<div class="col-md">
<div class="form-group">
<label for="email">Email</label>
<div class="probootstrap-wrap">
<input type="email" class="form-control" id="email" name="email" placeholder="Email">
</div>
</div>
</div>
</div>
<!-- END row -->
<div class="row">
<div class="col-md">
<label for="round" class="mr-5"><input type="radio" id="round"name="message" value="round"> Round</label>
<label for="oneway"><input type="radio" id="oneway" name="message" value="Oneway"> Oneway</label>
</div>
<div class="col-md">
<button type="submit" value="Submit" class="btn btn-primary btn-block" id="my-form-button">Submit</button>
<p id="my-form-status"></p>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- END section -->
<section class="probootstrap_section" id="section-feature-testimonial">
<div class="container">
<div class="row justify-content-center mb-5">
<div class="col-md-12 text-center mb-5 probootstrap-animate">
<h2 class="display-4 border-bottom probootstrap-section-heading">Have a nice journey</h2>
<blockquote class="">
<p class="lead mb-4"><em>We guarantee you 100% enjoyment from your travel if you are using our services. So why are you still here? Go get some amazing experience from your travel trip.</em></p>
<p class="probootstrap-author">
<img src="assets/images/person_2.jpg" alt="" class="rounded-circle">
<span class="probootstrap-name"> Vadim Ponurovskyi</span>
</p>
</blockquote>
</div>
</div>
</div>
</section>
<!-- END section -->
<section class="probootstrap_section" id="section-city-guides">
<div class="container">
<div class="row text-center mb-5 probootstrap-animate">
<div class="col-md-12">
<h2 class="display-4 border-bottom probootstrap-section-heading">Choose wisely</h2>
</div>
</div>
<div class="row">
<div class="col-lg-3 col-md-6 probootstrap-animate mb-3">
<a href="#" class="probootstrap-thumbnail">
<img src="assets/images/img_1.jpg" alt="" class="img-fluid">
<div class="probootstrap-text">
<h3>BASE jumping</h3>
</div>
</a>
</div>
<div class="col-lg-3 col-md-6 probootstrap-animate mb-3">
<a href="#" class="probootstrap-thumbnail">
<img src="assets/images/img_2.jpg" alt="" class="img-fluid">
<h3>Bodyboarding</h3>
</a>
</div>
<div class="col-lg-3 col-md-6 probootstrap-animate mb-3">
<a href="#" class="probootstrap-thumbnail">
<img src="assets/images/img_3.jpg" alt="" class="img-fluid">
<h3>Bungee jumping</h3>
</a>
</div>
<div class="col-lg-3 col-md-6 probootstrap-animate mb-3">
<a href="#" class="probootstrap-thumbnail">
<img src="assets/images/img_4.jpg" alt="" class="img-fluid">
<h3>Canyoning</h3>
</a>
</div>
</div>
</div>
</section>
<section class="probootstrap_section">
<div class="container">
<div class="row text-center mb-5 probootstrap-animate">
<div class="col-md-12">
<h2 class="display-4 border-bottom probootstrap-section-heading">Our Services</h2>
</div>
</div>
</div>
</section>
<section class="probootstrap-section-half d-md-flex" id="section-about">
<div class="probootstrap-image probootstrap-animate" data-animate-effect="fadeIn" style="background-image: url(assets/images/img_2.jpg)"></div>
<div class="probootstrap-text">
<div class="probootstrap-inner probootstrap-animate" data-animate-effect="fadeInRight">
<h2 class="heading mb-4">Customer Service</h2>
<p style="font-size: 20px;">We are a young company that provides you with a big variety of extreme tourism services as diving, jumping with a parachute, mountain climbing and lot more. To get to know more press the button below </p>
<p><a href="services.html" class="btn btn-primary">Read More</a></p>
</div>
</div>
</section>
<section class="probootstrap-section-half d-md-flex">
<div class="probootstrap-image order-2 probootstrap-animate" data-animate-effect="fadeIn" style="background-image: url(assets/images/img_1.jpg)"></div>
<div class="probootstrap-text order-1">
<div class="probootstrap-inner probootstrap-animate" data-animate-effect="fadeInLeft">
<h2 class="heading mb-4">Payment Options</h2>
<p style="font-size: 20px;margin: 10%;">Using our services provides you with wide range of payment options. You can use PayPal, Debit and Credit cards, Privat24 and etc.</p>
<p></p>
</div>
</div>
</section>
<!-- END section -->
<section class="probootstrap_section">
<div class="container">
<div class="row text-center mb-5 probootstrap-animate">
<div class="col-md-12">
<h2 class="display-4 border-bottom probootstrap-section-heading">Travel With Us</h2>
</div>
</div>
<div class="row probootstrap-animate">
<div class="col-md-12">
<div class="owl-carousel js-owl-carousel">
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/diver.png" alt="" style="width: 30%; height: 30%; margin: auto;">
</a>
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/bungee-jumping.png" alt="" style="width: 30%; height: 30%; margin: auto;">
</a>
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/surfing.png" alt="" style="width: 30%; height: 30%; margin: auto;">
<em></em>
</a>
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/diver_2.png" alt="" style="width: 30%; height: 30%; margin: auto;">
</a>
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/falling.png" alt="" style="width: 30%; height: 30%; margin: auto;">
</a>
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/risk.png" alt="" style="width: 30%; height: 30%; margin: auto;">
</a>
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/skydiving_1.png" alt="" style="width: 30%; height: 30%; margin: auto;">
</a>
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/base.png" alt="" style="width: 30%; height: 30%; margin: auto;">
</a>
<a class="probootstrap-slide" href="#">
<img src="assets/section1-icons/snowboard.png" alt="" style="width: 30%; height: 30%; margin: auto;">
</a>
</div>
</div>
</div>
</div>
</section>
<!-- END section -->
<section class="probootstrap_section bg-light">
<div class="container">
<div class="row text-center mb-5 probootstrap-animate">
<div class="col-md-12">
<h2 class="display-4 border-bottom probootstrap-section-heading">More Services</h2>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="media probootstrap-media d-flex align-items-stretch mb-4 probootstrap-animate">
<div class="probootstrap-media-image" style="background-image: url(assets/images/img_1.jpg)">
</div>
<div class="media-body">
<h5 class="mb-3">BASE jumping</h5>
<p>Part skydiving and part cliff jumping, BASE jumping is one of the most extreme thrills you can pursue,
largely because the relatively low-altitude launch points mean less time to deploy your parachute. Perched nearly
500 feet above is known worldwide for the adrenaline-charged activity and, unlike many other destinations for the sport, doesn’t require a permit. </p>
</div>
</div>
<div class="media probootstrap-media d-flex align-items-stretch mb-4 probootstrap-animate">
<div class="probootstrap-media-image" style="background-image: url(assets/images/img_2.jpg)">
</div>
<div class="media-body">
<h5 class="mb-3">Surfing</h5>
<p>As cliché as it sounds, it is truly an incomparable feeling when you are completely in sync with a force as powerful as the ocean, no matter how brief the moment.</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="media probootstrap-media d-flex align-items-stretch mb-4 probootstrap-animate">
<div class="probootstrap-media-image" style="background-image: url(assets/images/img_4.jpg)">
</div>
<div class="media-body">
<h5 class="mb-3">Mountain climbing</h5>
<p>Climbing mountains is an experience that is hard to put into words. You are in a beautiful environment and,
when you reach the top, you feel incredible. But also you have to climb down, which is when most accidents happen
– people are tired, it gets dark, it's harder. </p>
</div>
</div>
<div class="media probootstrap-media d-flex align-items-stretch mb-4 probootstrap-animate">
<div class="probootstrap-media-image" style="background-image: url(assets/images/img_5.jpg)">
</div>
<div class="media-body">
<h5 class="mb-3">Diving</h5>
<p>Learning to dive is an incredible experience, and most divers never forget it. Not only is it both challenging and rewarding at the same time, it can also leave you completely breathless.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- END section -->
<section class="probootstrap_section" id="section-feature-testimonial">
<div class="container">
<div class="row justify-content-center mb-5">
<div class="col-md-12 text-center mb-5 probootstrap-animate">
<h2 class="display-4 border-bottom probootstrap-section-heading">Why we Love travel</h2>
<blockquote class="">
<p class="lead mb-4"><em>Bored with ordinary offerings from the same travelling agencies to spend your weekend? Fear not! I'm here to provide you with the best options to spend your free time! Choose from lots of different offerings and become our lifetime partner to get some free trips!</em></p>
<p class="probootstrap-author">
<a href="#" target="_blank">
<img src="assets/images/person_1.jpg" alt="" class="rounded-circle">
<span class="probootstrap-name">Vadim Ponurovskyi</span>
<span class="probootstrap-title">Company's main Director</span>
</a>
</p>
</blockquote>
</div>
</div>
</div>
</section>
<!-- END section -->
<section class="probootstrap_section">
<div class="container">
<div class="row text-center mb-5 probootstrap-animate">
<div class="col-md-12">
<h2 class="display-4 border-bottom probootstrap-section-heading">Travel With Us</h2>
</div>
</div>
<div class="row probootstrap-animate">
<div class="col-md-12">
<div class="owl-carousel js-owl-carousel-2">
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_2.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>As cliché as it sounds, it is truly an incomparable feeling when you are completely in sync with a force as powerful as the ocean, no matter how brief the moment. </p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_1.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>BASE jumping is one of the most extreme thrills you can pursue, largely because the relatively low-altitude launch points mean less time to deploy your parachute. </p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_3.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>Bungee jumping is one of the most extreme sports ever invented, <br> an adrenaline rush like no other. It is a magical experience which gives you memories of life. </p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_4.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>Climbing mountains is an experience that is hard to put into words.You are in a beautiful environment and, <br> when you reach the top, you feel incredible. </p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_5.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>Learning to dive is an incredible experience, and most divers never forget it. Not only is it both challenging and rewarding at the same time, it can also leave you completely breathless.</p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_2.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>As cliché as it sounds, it is truly an incomparable feeling when you are completely in sync with a force as powerful as the ocean, no matter how brief the moment. </p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_1.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsume</h5>
<p>BASE jumping is one of the most extreme thrills you can pursue, largely because the relatively low-altitude launch points mean less time to deploy your parachute. </p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_3.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>Bungee jumping is one of the most extreme sports ever invented, <br> an adrenaline rush like no other. It is a magical experience which gives you memories of life. </p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_4.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>Climbing mountains is an experience that is hard to put into words.You are in a beautiful environment and, <br> when you reach the top, you feel incredible. </p>
</div>
</div>
</div>
<!-- END slide item -->
<div>
<div class="media probootstrap-media d-block align-items-stretch mb-4 probootstrap-animate">
<img src="assets/images/img_5.jpg" alt="Free Template by ProBootstrap" class="img-fluid">
<div class="media-body">
<h5 class="mb-3">lorem ipsum</h5>
<p>Learning to dive is an incredible experience, and most divers never forget it. Not only is it both challenging and rewarding at the same time, it can also leave you completely breathless. </p>
</div>
</div>
</div>
<!-- END slide item -->
</div>
</div>
</div>
</div>
</section>
<!-- END section -->
<footer id="footer" >
<i class="fab fa-twitter footer-icon"></i>
<i class="fab fa-facebook-square footer-icon"></i>
<i class="fab fa-instagram footer-icon"></i>
<i class="far fa-envelope footer-icon"></i>
<p class="copyRight text-muted">© Copyright 2020</p>
</footer>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/bootstrap-datepicker.js"></script>
<script src="assets/js/jquery.waypoints.min.js"></script>
<script src="assets/js/jquery.easing.1.3.js"></script>
<script src="assets/js/select2.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
var btn = $('#button');
$(window).scroll(function() {
if ($(window).scrollTop() > 300) {
btn.addClass('show');
} else {
btn.removeClass('show');
}
});
btn.on('click', function(e) {
e.preventDefault();
$('html, body').animate({scrollTop:0}, '300');
});
</script>
<script>
window.addEventListener("DOMContentLoaded", function() {
// get the form elements defined in your form HTML above
var form = document.getElementById("my-form");
var button = document.getElementById("my-form-button");
var status = document.getElementById("my-form-status");
// Success and Error functions for after the form is submitted
function success() {
form.reset();
button.style = "display: none ";
status.innerHTML = "Thanks!";
}
function error() {
status.innerHTML = "Oops! There was a problem.";
}
// handle the form submission event
form.addEventListener("submit", function(ev) {
ev.preventDefault();
var data = new FormData(form);
ajax(form.method, form.action, data, success, error);
});
});
// helper function for sending an AJAX request
function ajax(method, url, data, success, error) {
var xhr = new XMLHttpRequest();
xhr.open(method, url);
xhr.setRequestHeader("Accept", "application/json");
xhr.onreadystatechange = function() {
if (xhr.readyState !== XMLHttpRequest.DONE) return;
if (xhr.status === 200) {
success(xhr.response, xhr.responseType);
} else {
error(xhr.status, xhr.response, xhr.responseType);
}
};
xhr.send(data);
}
</script>
<script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js”></script>
</body>
</html>