-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
605 lines (590 loc) · 32.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<title>Terry Chitter</title>
<meta name="description" content="Web | App Developer. Enthusiastic software engineering grad committed to dreaming up inventive
solutions and stretching the limits of technology with a sprinkle of creativity.">
<meta name="author" content="Terry Chitter">
<!-- Addtional meta tags -->
<meta name="language" content="en">
<meta name="robots" content="index, follow">
<meta property="og:title" content="Terry Chitter – Personal Website">
<meta property="og:description" content="Web | App Developer. Enthusiastic software engineering grad committed to dreaming up inventive
solutions and stretching the limits of technology with a sprinkle of creativity.">
<meta property="og:image" content="https://i.ibb.co/SN0JVxZ/website-banner.png">
<meta property="og:url" content="https://terrychitter.netlify.app">
<!-- Twitter meta tags -->
<meta name="twitter:title" content="Terry Chitter – Personal Website">
<meta name="twitter:description" content="Web | App Developer. Enthusiastic software engineering grad committed to dreaming up inventive
solutions and stretching the limits of technology with a sprinkle of creativity.">
<meta name="twitter:image" content="https://i.ibb.co/SN0JVxZ/website-banner.png">
<!-- styling -->
<link rel="stylesheet" href="/scss/main.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="scss/scrollbar.css">
<link rel="stylesheet" href="scss/navbar.css">
<link rel="stylesheet" href="scss/grid_background.css">
<link rel="stylesheet" href="scss/animated_circles.css">
<!-- Bootstrap icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<!-- Boxicons -->
<script src="https://unpkg.com/boxicons@2.1.4/dist/boxicons.js" defer async></script>
</head>
<body>
<button type="button" id="scroll-down-button" class="btn btn-primary"><i class="bi bi-arrow-down"></i></button>
<header class="section pt-3" id="navigation-section">
<!-- Navigation -->
<!-- SOURCE: https://github.com/abdulhaseeb456 -->
<div class="logo"></div>
<input type="checkbox" id="nav_check" hidden>
<nav>
<ul>
<li>
<a href="#hero-section" class="active">Home</a>
</li>
<li>
<a href="#about-section">About</a>
</li>
<li>
<a href="#portfolio-section">Portfolio</a>
</li>
<li>
<a href="#resume-section">Resume</a>
</li>
<li>
<a href="#contact-section">Contact</a>
</li>
</ul>
</nav>
<label for="nav_check" class="hamburger">
<div></div>
<div></div>
<div></div>
</label>
</header>
<main>
<!-- Hero Section -->
<section id="hero-section">
<img src="https://i.ibb.co/dm2jDbT/cartoon.png" alt="cartoon" id="cartoon" loading="lazy">
<div id="hero-content-wrapper" class="pt-5">
<div id="hero-content" class="ps-5 pt-5">
<h1 class="display-1">Hello, I'm<br><span class="text-secondary">Terry Chitter</span></h1>
<h2 class="h2">Web | App Developer</h2>
<p class="pt-3 fs-5">Enthusiastic software engineering grad committed to dreaming up inventive
solutions and stretching the limits of technology with a sprinkle of creativity.</p>
<ul class="d-flex fs-1 ps-0" style="gap: 1.3rem;">
<li>
<a href="https://www.linkedin.com/in/terry-chitter-91a950201/" target=”_blank”><i
class="bi bi-linkedin social-media-link"></i></a>
</li>
<li>
<a href="https://github.com/terrychitter" target=”_blank”><i
class="bi bi-github social-media-link"></i></a>
</li>
</ul>
</div>
</div>
</section>
<!-- About Me Section -->
<section class="section" id="about-section">
<ul class="bgAnimation" id="about-bg-animation">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div class="content container py-3">
<h2 class="h2 fs-1 text-center pb-4">About Me</h2>
<p align="justify" style="font-size: 0.9rem" class="px-3">Dedicated IT
professional with a
Bachelor of Science in Information
Technology, specializing in web and app development while actively pursuing knowledge in machine
learning and AI. Strong advocate for collaboration, demonstrated by winning third place in the
Eduvos 2022 HackJam Hackathon.
<br><br>
Committed to delivering excellence in all projects, thriving on
challenges, and showcasing resilience and adaptability. Aspires to further expertise in machine
learning and AI, contributing to industry advancements and seeking opportunities aligned with a
passion for quality work and collaborative success.
</p>
<h3 class="h3 py-3 text-center">Skills and Tools</h3>
<div id="languages-container" class="rounded p-4">
<div class="row row-cols-auto">
<div class="col">
<a href="https://angular.io" target="_blank"><box-icon name="angular" type="logo"
color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://getbootstrap.com" target="_blank"><box-icon name="bootstrap" type="logo"
color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://www.w3schools.com/css/" target="_blank"><box-icon name="css3" type="logo"
color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://www.figma.com" target="_blank"><box-icon name="figma" type="logo"
color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://firebase.google.com" target="_blank"><box-icon name="firebase" type="logo"
color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://git-scm.com" target="_blank"><box-icon name="git" type="logo" color="black"
size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://www.w3schools.com/html/" target="_blank"><box-icon name="html5" type="logo"
color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://www.w3schools.com/js/" target="_blank"><box-icon name="javascript"
type="logo" color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://www.mysql.com" target="_blank"><img
src="https://i.ibb.co/zh9SX1s/image.png" class="mt-2" alt="image" width="60px"></a>
</div>
<div class="col">
<a href="https://nodejs.org" target="_blank"><box-icon name="nodejs" type="logo"
color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://www.php.net" target="_blank"><box-icon name="php" type="logo" color="black"
size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://www.python.org" target="_blank"><box-icon name="python" type="logo"
color="black" size="lg"></box-icon></a>
</div>
<div class="col">
<a href="https://www.typescriptlang.org" target="_blank"><box-icon name="typescript"
type="logo" color="black" size="lg"></box-icon></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Portfolio Section -->
<section class="section" id="portfolio-section">
<ul class="bgAnimation">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div class="content container py-3">
<h2 class="h2 fs-1 text-center pb-4">Portfolio</h2>
<div class="portfolio-item">
<div class="portfolio-item-content">
<div class="row">
<div
class="col-12 col-lg-4 portfolio-item-img-container text-center align-items-center mb-4">
<img src="https://i.ibb.co/c1TXH3j/customer-management-system-logo-monochromatic.png">
</div>
<div class="col-12 col-lg portfolio-item-details-container">
<div class="col-12 portfolio-title text-start">
<h3>Customer Management System (CMS)</h3>
</div>
<div class="col-12 portfolio-description mb-4">
<p>A CRM program for a fictional business specializing in bin sanitation. The
program is responsible for managing customers, recording payments, and
generating invoices.</p>
</div>
<div class="col-12 portfolio-actions text-end">
<a href="https://github.com/terrychitter/customer-management-system" target="_blank"
class="d-flex float-right"><button
class="btn btn-primary d-flex align-items-center py-0">
<div class="div">See More</div>
<i class="bi bi-arrow-right-short fs-3 mt-1"></i>
</button></a>
</div>
</div>
</div>
</div>
</div>
<div class="portfolio-item">
<div class="portfolio-item-content">
<div class="row">
<div
class="col-12 col-lg-4 portfolio-item-img-container text-center align-items-center mb-4">
<img src="https://i.ibb.co/db8MLxR/the-3d-toybox-logo-monochromatic.png">
</div>
<div class="col-12 col-lg portfolio-item-details-container">
<div class="col-12 portfolio-title text-start">
<h3>The 3DToyBox E-commerce Store</h3>
</div>
<div class="col-12 portfolio-description mb-4">
<p>A fictional e-commerce store specialized in 3D-printed toys, decorations and
other collectibles. Featured functionality includes a wishlist, cart as well as
creating accounts, signing into accounts and access to admin panel where
products may be added or removed. Adttional features include welcome emails and
account verifcation using via email.</p>
</div>
<div class="col-12 portfolio-actions text-end">
<a href="https://github.com/terrychitter/the3dtoybox-ecommerce-store"
target="_blank" class="d-flex float-right"><button
class="btn btn-primary d-flex align-items-center py-0">
<div class="div">See More</div>
<i class="bi bi-arrow-right-short fs-3 mt-1"></i>
</button></a>
</div>
</div>
</div>
</div>
</div>
<div class="portfolio-item">
<div class="portfolio-item-content">
<div class="row">
<div
class="col-12 col-lg-4 portfolio-item-img-container text-center align-items-center mb-4">
<img src="https://i.ibb.co/LzFLk9W/scholarspace-logo-monochromatic.png">
</div>
<div class="col-12 col-lg portfolio-item-details-container">
<div class="col-12 portfolio-title text-start">
<h3>ScholarSpace</h3>
</div>
<div class="col-12 portfolio-description mb-4">
<p>ScholarSpace is a dynamic platform connecting students with internship,
part-time, and vacation work opportunities relevant to their field of study,
while offering recruiters a simplified process for finding talented
individuals. Students can create multiple profiles tailored to specific job
types, apply for positions with personalized cover letters, access CV and
interview tips, search and save jobs, earn badges by completing upskilling
courses, and even chat directly with recruiters. Recruiters can post and manage
job listings, shortlist applicants, engage in direct communication with
potential hires, and leave reviews for employed students. This app
also participated in the Eduvos HackJam 2022 and came in 3rd place, showcasing
its commitment to innovation and
excellence in the realm of student employment solutions</p>
</div>
<div class="col-12 portfolio-actions text-end">
<a href="https://github.com/terrychitter/scholarspace" target="_blank"
class="d-flex float-right"><button
class="btn btn-primary d-flex align-items-center py-0">
<div class="div">See More</div>
<i class="bi bi-arrow-right-short fs-3 mt-1"></i>
</button></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Resume Section -->
<section class="section" id="resume-section">
<ul id="resume-bg-animation" class="bgAnimation">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div class="content container d-flex justify-content-center position-relative py-3">
<h2 class="h2 fs-1 text-center pb-4">Resume</h2>
<button download="assets/CV.pdf"
class="btn btn-primary btn-lg fs-4 fw-bold d-flex justify-content-center align-items-center"
id="download-button" style="gap: 1rem">
<i class="bi bi-cloud-arrow-down-fill fs-1"></i>
<span>Download</span>
</button>
</div>
</section>
<!-- Contact Section -->
<section class="section" id="contact-section">
<ul class="bgAnimation" id="contact-bg-animation">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div class="content container pt-3 px-4 px-md-5" style="padding-bottom: 5rem;">
<h2 class="h2 fs-1 text-center pb-4">Contact</h2>
<div class="col">
<form id="contact-form" name="contact-form" target="hidden_iframe" onsubmit="submitted=true;"
action="https://docs.google.com/forms/d/e/1FAIpQLSf8URrTCfgmRL-RsM-UQdkqdftWA21Voi2LFm-HZyFwAekHzA/formResponse?"
method="POST" class="border rounded px-3 px-md-5 py-4 needs-validation" novalidate>
<p class="fs-3">Let's Get in Touch!</p>
<div class="row">
<div class="col-12 col-md-6">
<label for="entry.348148907" class="form-label">Name</label>
<input type="text" name="entry.348148907" id="entry.348148907" class="form-control"
required>
<div class="invalid-feedback">Please provide a name</div>
</div>
<div class="col-12 col-md">
<label for="entry.1144865429" class="form-label">Surname</label>
<input type="text" name="entry.1144865429" id="entry.1144865429"
class="form-control mb-4" required>
<div class="invalid-feedback">Please provide a surname</div>
</div>
</div>
<div class="col">
<label for="entry.191724505" class="form-label">Email Address</label>
<input type="email" name="entry.191724505" id="entry.191724505" class="form-control"
required>
<div class="invalid-feedback">Please provide a email</div>
</div>
<div class="col">
<label for="entry.647549426" class="form-label">Subject</label>
<input type="text" name="entry.647549426" id="entry.647549426" class="form-control"
required>
<div class="invalid-feedback">Please provide a subject</div>
</div>
<div class="col">
<label for="entry.1756694074" class="form-label">Message</label>
<textarea class="form-control" name="entry.1756694074" id="entry.1756694074"
required></textarea>
<div class="invalid-feedback">Please provide a message</div>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary" style="width: 40%">Contact</button>
</div>
</form>
<iframe name="hidden_iframe" id="hidden_iframe" style="display: none;"
onload="if(submitted){}"></iframe>
</div>
<div class="col">
<p class="fs-4 m-0 pt-3">Details</p>
<p class="m-0" style="font-size: 0.8rem">Alternatively you may contact me using the details
below.</p>
<div class="row">
<div class="col-12 col-md mt-2 d-flex" style="gap: 1rem;">
<i class="bi bi-phone-fill fs-3 text-secondary"></i>
<a href="tel:+27763220935" class="mt-2" style="font-size: 1.15rem"> +27 76 322 0935</a>
</div>
<div class="col-12 col-md mt-2 d-flex" style="gap: 1rem;">
<i class="bi bi-envelope-at-fill fs-3 text-secondary"></i>
<a href="mailto:t.sikenaris@gmail.com" class="fs-5"
style="margin-top: 0.3rem;">t.sikenaris@gmail.com</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer Section -->
<footer class="section" id="footer-section">
<div class="content container pt-5 pb-3 px-4 px-md-5">
<div class="row" style="margin-bottom: 5rem;">
<!-- Social Media Links -->
<div class="col-12 col-md">
<span class="h3">Connect</span>
<ul class="d-flex pt-2" style="gap: 1.3rem;">
<li>
<a href="https://www.linkedin.com/in/terry-chitter-91a950201/"><i
class="bi bi-linkedin social-media-link" target=”_blank”></i></a>
</li>
<li>
<a href="https://github.com/terrychitter"><i class="bi bi-github social-media-link"
target=”_blank”></i></a>
</li>
</ul>
</div>
<!-- Navigation Links -->
<div class="col-12 col-md pt-3 pt-md-0">
<span class="h3 pb-3">Navigate</span>
<ul class="pt-2">
<a href="#hero-section">
<li class="footer-nav-link">Home</li>
</a>
<a href="#about-section">
<li class="footer-nav-link">About</li>
</a>
<a href="#portfolio-section">
<li class="footer-nav-link">Portfolio</li>
</a>
<a href="#resume-section">
<li class="footer-nav-link">Resume</li>
</a>
<a href="#contact-section">
<li class="footer-nav-link">Contact</li>
</a>
</ul>
</div>
</div>
<div class="footer-bottom-items position-relative justify-content-center">
<div class="row text-center" style="font-size: 0.8rem;">
<div class="d-flex justify-content-center align-items-center">
<div>
Images by <a href="https://midjourney.com"><img
src="https://i.ibb.co/njrb0Dk/midjourney-logo.png" alt="midjourney-logo"></a>
</div>
<div class="mx-3">|</div>
<div>
Icons by<a href="https://icons.getbootstrap.com" class="ms-2"><i
class="bi bi-bootstrap-fill"></i></a>
</div>
</div>
</div>
<div id="hr" class="border my-2"></div>
<div class="text-center" style="font-size: 0.8rem;">©2024 Terry Chitter | All Rights Reserved</div>
</div>
</div>
</div>
</footer>
<!-- Modal -->
<div class="modal fade" id="email-sent-modal" tabindex="-1" role="dialog"
aria-labelledby="email-sent-modal-label" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="modal-body">
Thank you for reaching out! Your message has been successfully submitted. I will get back to
you as soon as possible.
<div id="submission-heart" class="bi bi-heart-fill text-danger text-center"></div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</main>
<!-- Index.js -->
<script type="module" src="index.js"></script>
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<!-- PopperJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<!-- BootstrapJS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<!-- Scroll button JS -->
<script>
// Function to debounce scroll events
function debounce(func, delay) {
let timeoutId;
return function () {
const context = this;
const args = arguments;
clearTimeout(timeoutId);
timeoutId = setTimeout(function () {
func.apply(context, args);
}, delay);
};
}
// Scroll event handler with debouncing
window.addEventListener('scroll', debounce(function () {
var button = document.getElementById('scroll-down-button');
var scrollY = window.scrollY || window.pageYOffset;
var rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
var bottomRem = 2 - scrollY / rem;
button.style.bottom = bottomRem + 'rem';
button.style.right = '2rem';
}, 50));
document.getElementById('scroll-down-button').addEventListener('click', function () {
// Check if the button is currently at the contact section
if (this.classList.contains('at-contact-section')) {
// Scroll back to the top of the page
window.scrollTo({
top: 0,
behavior: 'smooth' // Optional: Smooth scrolling animation
});
// Restore the original button design and function
this.classList.remove('at-contact-section');
this.style.backgroundColor = ''; // Restore original background color
this.style.borderColor = ''; // Restore original background color
this.innerHTML = '<i class="bi bi-arrow-down"></i>'; // Restore original inner text
} else {
// Find the next snap object
var snapObjects = document.querySelectorAll('section');
var currentScrollY = window.scrollY || window.pageYOffset;
var nextSnapObject;
var contactSectionReached = false;
for (var i = 0; i < snapObjects.length; i++) {
var snapObject = snapObjects[i];
var snapObjectTop = snapObject.offsetTop;
// Check if the snap object is below the current scroll position
if (snapObjectTop > currentScrollY) {
nextSnapObject = snapObject;
// Check if the next snap object is the contact section
if (snapObject.id === 'contact-section') {
contactSectionReached = true;
}
break;
}
}
// Scroll to the next snap object
if (nextSnapObject) {
var scrollToY = nextSnapObject.offsetTop;
window.scrollTo({
top: scrollToY,
behavior: 'smooth' // Optional: Smooth scrolling animation
});
// Check if the contact section is reached
if (contactSectionReached) {
// Change button background color to #149F8A
this.style.backgroundColor = '#149F8A';
this.style.borderColor = '#149F8A';
// Change button inner text to arrow-up icon
this.innerHTML = '<i class="bi bi-arrow-up"></i>';
// Update button state to indicate at contact section
this.classList.add('at-contact-section');
}
}
}
});
// Download CV
document.getElementById("download-button").addEventListener("click", function () {
var downloadLink = document.createElement("a");
downloadLink.href = "assets/CV.pdf";
downloadLink.download = "CV – Terry Chitter.pdf";
document.body.appendChild(downloadLink);
downloadLink.click();
document.body.removeChild(downloadLink);
});
// Boostrap form validation. SOURCE: https://getbootstrap.com/docs/4.0/components/forms/
(function () {
'use strict';
window.addEventListener('load', function () {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function (form) {
form.addEventListener('submit', function (event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
// Show success submission for contact form
document.getElementById('contact-form').addEventListener('submit', () => {
$('#email-sent-modal').modal('show');
$('#email-sent-modal').on('hidden.bs.modal', function () {
location.reload();
});
})
</script>
</body>
</html>