-
Notifications
You must be signed in to change notification settings - Fork 0
/
faculty_of_science.html
910 lines (845 loc) · 31.1 KB
/
faculty_of_science.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
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Faculty of Science and Engineering | University of Sam</title>
<link rel="icon" type="image/x-icon" href="./assets/img/uos-icon.png" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css"
integrity="sha256-46qynGAkLSFpVbEBog43gvNhfrOj+BmwXdxFgVK/Kvc="
crossorigin="anonymous"
/>
<!--BOOTSTRAP-->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!--AOS-->
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<!-- Fonts -->
<link
href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,900|Source+Sans+Pro:300,900&display=swap"
rel="stylesheet"
/>
<!-- Icons-->
<link
href="https://unpkg.com/[email protected]/css/boxicons.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="./assets/css/style.css" />
</head>
<body>
<!-- Header -->
<header>
<nav class="nav_header" id="nav_head">
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
<a href="./php/staff.php" class="nav__hlink">Staff</a>
<a href="international.html" class="nav__hlink">International</a>
<a href="alumni.html#alumni-welcome" class="nav__hlink">Alumni</a>
<a href="news.html#news" class="nav__hlink">News</a>
<a href="admission.html" class="nav__hlink">Admission</a>
<a href="contact.html" class="nav__hlink">Contact Us</a>
</nav>
</header>
<!-- Logo Section -->
<div class="Logo__Sector">
<div class="Logo__img">
<a href="home.html">
<img src="./assets/img/Logo.png" alt="" />
</a>
</div>
<button class="openBtn" onclick="openSearch()">
<i class="fas fa-search fa-2x" style="color: #000000"></i>
</button>
</div>
<div id="Searchbox" class="Searchbox">
<span class="closebtn" onclick="closeSearch()" title="Close Overlay"
>x</span
>
<div class="Searchbox-content">
<h2 class="mb-3 p-3 text-light">Search Everything Here</h2>
<form id="sub">
<input
type="text"
placeholder="Search.."
name="search"
id="searchInput"
/>
<div id="searchList"></div>
</form>
</div>
</div>
<!-- Navigation Bars -->
<nav class="nav">
<ul class="nav__list">
<li class="nav__dropdownitem">
<a href="study.html#intro" class="nav__link">Study</a>
<table class="dropdown__content">
<tr class="blank">
<td rowspan="8"></td>
</tr>
<tr class="overview">
<td colspan="2">
<a href="study.html#intro" class="nav__ddlink">Overview</a>
</td>
</tr>
<tr class="table_header">
<td>
<a href="find_course.html#intro" class="header__link"
>FIND A COURSE</a
>
</td>
<td>
<a href="study.html#info" class="header__link"
>INFORMATION FOR</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="business.html#courses" class="nav__ddlink">Business</a>
</td>
<td>
<a href="undergraduate.html#intro" class="nav__ddlink"
>Undergraduate Students</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="engineering.html#courses" class="nav__ddlink"
>Engineering</a
>
</td>
<td>
<a href="postgraduate.html#intro" class="nav__ddlink"
>Postgraduate Students</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="health.html#courses" class="nav__ddlink">Health</a>
</td>
<td>
<a href="international.html" class="nav__ddlink"
>International Students</a
>
</td>
</tr>
<tr class="contents">
<td>
<a
href="information_technology.html#courses"
class="nav__ddlink"
>Information Technology</a
>
</td>
<td>
<a href="entry_requirement.html" class="nav__ddlink"
>Entry Requirements</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="security.html#courses" class="nav__ddlink"
>Security, intelligence and criminology</a
>
</td>
<td>
<a href="fees.html#intro" class="nav__ddlink">Fees and costs</a>
</td>
</tr>
</table>
</li>
<li class="nav__dropdownitem">
<a href="curstudent.html#intro" class="nav__link">Current Students</a>
<table class="dropdown__content">
<tr class="blank">
<td rowspan="7"></td>
</tr>
<tr class="overview">
<td colspan="3">
<a href="curstudent.html#intro" class="nav__ddlink">Overview</a>
</td>
</tr>
<tr class="table_header">
<td>
<a href="curstudent.html#oppo" class="header__link"
>OPPORTUNITIES</a
>
</td>
<td>
<a href="curstudent.html#support" class="header__link"
>SUPPORT</a
>
</td>
<td>
<a href="curstudent.html#life" class="header__link"
>Life at UOS</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="scholarship.html#intro" class="nav__ddlink"
>Scholarships</a
>
</td>
<td>
<a href="curstudent.html#access" class="nav__ddlink"
>Accessibility service</a
>
</td>
<td>
<a href="./php/student.php" class="nav__ddlink"
>Student Portal</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="curstudent.html#global" class="nav__ddlink"
>Global opportunities</a
>
</td>
<td>
<a href="curstudent.html#academic" class="nav__ddlink"
>Academic support</a
>
</td>
<td>
<a href="gallery.html#events" class="nav__ddlink">Events</a>
</td>
</tr>
<tr class="contents">
<td>
<a href="curstudent.html#career" class="nav__ddlink"
>Career development</a
>
</td>
<td>
<a href="curstudent.html#health" class="nav__ddlink"
>Health and wellbeing</a
>
</td>
</tr>
</table>
</li>
<li class="nav__dropdownitem">
<a href="gallery.html#Exhibition" class="nav__link">Gallery</a>
<table class="dropdown__content">
<tr class="blank">
<td rowspan="6"></td>
</tr>
<tr class="overview">
<td colspan="2">
<a href="gallery.html#Exhibition" class="nav__ddlink"
>Overview</a
>
</td>
</tr>
<tr class="table_header">
<td>
<a href="gallery.html#Exhibition" class="header__link"
>Exhibitions</a
>
</td>
<td>
<a href="gallery.html#events" class="header__link">Events</a>
</td>
</tr>
<tr class="contents">
<td>
<a href="gallery.html#current" class="nav__ddlink"
>Current Exhibitions</a
>
</td>
<td>
<a href="gallery.html#sports" class="nav__ddlink">Sports</a>
</td>
</tr>
<tr class="contents">
<td>
<a href="gallery.html#future" class="nav__ddlink"
>Upcoming Exhibitions</a
>
</td>
<td>
<a href="gallery.html#activities" class="nav__ddlink"
>Activities</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="gallery.html#past" class="nav__ddlink"
>Past Exhibitions</a
>
</td>
</tr>
</table>
</li>
<li class="nav__dropdownitem">
<a href="about.html#intro" class="nav__link">About Us</a>
<table class="dropdown__content">
<tr class="blank">
<td rowspan="7"></td>
</tr>
<tr class="overview">
<td colspan="3">
<a href="about.html#intro" class="nav__ddlink">Overview</a>
</td>
</tr>
<tr class="table_header">
<td>
<a href="university.html#facilities__about" class="header__link"
>About UOS</a
>
</td>
<td>
<a href="campus.html#service" class="header__link"
>Campus Services</a
>
</td>
<td>
<a href="facilities.html#intro" class="header__link"
>Facilities</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="university.html#vision" class="nav__ddlink"
>Vision and strategy</a
>
</td>
<td>
<a href="campus.html#student" class="nav__ddlink"
>Students life and support</a
>
</td>
<td>
<a href="facilities.html#library" class="nav__ddlink"
>Library</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="campus.html#intro" class="nav__ddlink">Our campus</a>
</td>
<td>
<a href="campus.html#security" class="nav__ddlink"
>Campus security</a
>
</td>
<td>
<a href="facilities.html#cafe" class="nav__ddlink"
>Café, bar and restaurant</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="faculties.html#intro" class="nav__ddlink"
>Our faculties</a
>
</td>
<td>
<a href="campus.html#security" class="nav__ddlink"
>Children and youth</a
>
</td>
</tr>
<tr class="contents">
<td>
<a href="contact.html" class="nav__ddlink"
>Location and contacts</a
>
</td>
</tr>
</table>
</li>
</ul>
</nav>
<!---------- Faculty of Science Starts --------->
<div class="faculty_of_science">
<div class="card" id="banner">
<img
class="card-img-top"
src="./assets/img/faculty_of_science_banner.png"
alt=""
/>
<div class="card-img-overlay">
<h2>Faculty of Science and Engineering</h2>
</div>
</div>
<div class="container">
<nav
style="--bs-breadcrumb-divider: '>'; font-weight: 500"
aria-label="breadcrumb"
>
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="home.html">University of Sam</a>
</li>
<li class="breadcrumb-item"><a href="about.html">About</a></li>
<li class="breadcrumb-item">
<a href="faculties.html">Faculties</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
Faculty of Science and Engineering
</li>
</ol>
</nav>
</div>
<div class="wahaha" id="wahaha">
<div class="sp-container">
<div class="sp-content">
<div class="sp-globe"></div>
<h2 class="frame-1">Welcome to</h2>
<h2 class="frame-2">University of Sam's</h2>
<h2 class="frame-3">Faculty of Science and Engineering</h2>
<h2 class="frame-4">Study with us!</h2>
<h2 class="frame-5">
<span>ACHIEVEMENTS,</span>
<span>FOCUS,</span>
<span>ENQUIRES.</span>
</h2>
<a class="sp-circle-link" href="#blha">Explore</a>
</div>
</div>
</div>
<div class="container" id="blha">
<h2 class="text-center text-primary p-3 m-3">Study with us</h2>
<div class="wrapper">
<div class="thing">
<input type="radio" name="slide" id="c1" checked />
<label for="c1" class="item">
<div class="row">
<div class="icon">1</div>
<div class="description">
<h4>Engineering</h4>
<a href="engineering.html#courses"
><button class="btn btn-md" id="buttonblah">
Explore More
</button></a
>
</div>
</div>
</label>
<input type="radio" name="slide" id="c2" />
<label for="c2" class="item">
<div class="row">
<div class="icon">2</div>
<div class="description">
<h4>Information Technology</h4>
<a href="information_technology.html#courses"
><button class="btn btn-md" id="buttonblah">
Explore More
</button></a
>
</div>
</div>
</label>
<input type="radio" name="slide" id="c3" />
<label for="c3" class="item">
<div class="row">
<div class="icon">3</div>
<div class="description">
<h4>Security and criminology</h4>
<a href="security.html#courses"
><button class="btn btn-md" id="buttonblah">
Explore More
</button></a
>
</div>
</div>
</label>
</div>
</div>
</div>
<div class="container-fluid" id="Enquire">
<div class="container">
<div class="row">
<div class="col-md-10">
<h4 class="mt-3 p-3">
We can help you select the course that best matches your career
goals
</h4>
<br />
</div>
<div class="col-md-2 text-center">
<a
href="admission.html"
type="button"
class="btn btn-lg btn-danger mt-3 p-3"
>Enquire now</a
>
</div>
</div>
</div>
</div>
<div class="container">
<div class="col-md-8 m-3 p-3">
<h3>Driven by the spirit of innovation</h3>
<br />
<p>
The <strong>Faculty of Science and Engineering</strong> is a young
and dynamic faculty driven by the spirit of discovery. Here we
nurture the next generation of science and technology innovators.
</p>
<p>
From a handful of students on the University’s first day, the
Faculty now serves 6000 students across all our programs.
</p>
<p>
Our research and teaching addresses the big issues faced by society
in Myanmar and globally – the changing environment, future materials
and fuels, biotechnology, cyber security, to name a few.
</p>
<p>
The pairing of engineering and science in a single faculty means
many of our research discoveries in science see direct technological
applications in engineering.
</p>
</div>
<hr />
</div>
<div class="container mt-3" id="focus">
<div class="col-md-8 m-3 p-3">
<h3>Our learning focus</h3>
<br />
<p>
Our goal is to produce impact-driven, user-centred research outcomes
and to incorporate this into our students’ learning. We have a
strong focus on collaborative research with the aim of improving
individual lives and society as a whole, not just in Australia but
around the globe.
</p>
<p>
Our industry internship programs give students real experience to
match the needs of employers, and this is reflected in our high
graduate employment rate. Our teaching and learning is centred on
our unique UTS Model of Learning framework, which encourages a
collaborative and globally relevant learning approach and graduate
attributes.
</p>
</div>
<hr />
</div>
<div class="container mt-3">
<div class="m-3 p-3">
<h3>Recent achievements</h3>
<br />
<p>UOS Science and Engineering's recent achievements include:</p>
<button class="accordion">Training and Learning</button>
<div class="panel">
<br />
<p>
Engineering and Science Professionals are among the top trusted
professions in Myanmar, and for good reason – they make ideas come
to life and help shape the future.
</p>
<p>
UOS is about transformative learning experiences. The Faculty of
Engineering and IT is recognised for practice-based education, and
we are proud to play a leading role in supporting the future STEM
workforce. A key focus of our degrees is enabling students to gain
real-world experience during their studies. We are committed to
developing strong industry partnerships in support of our models
of learning, which include internship and scholarship programs.
</p>
<p>
We offer over 8,000 students access to rigorous internships and
work experience programs. Over 1,000 Engineering and Science
students undertook a placement annually.
</p>
<p>
UOS's fundamental commitment to Social Justice, equity and respect
for diversity ties closely with the proud tradition of helping all
students, no matter what their background is, to reach their full
potential. The faculty also awards over 90 scholarships annually
supported by more than 60 partners ranging from organisations to
Foundations to Family Trusts and bequests. These scholarships not
only provide financial support, but many also offer industry
experience, mentoring, leadership and professional development
opportunities, and support for women in STEM, students from
under-represented groups or those experiencing educational
barriers, and high achieving students.
</p>
<br />
</div>
<button class="accordion">Outreach and community</button>
<div class="panel">
<br />
<ul>
<li>
Over the past three years, Galuwa Experience has attracted 84
high school students from years 9 to 12. The program to date has
raised $403,000 in sponsorship to help expand the program.
Current sponsors include Aurecon, ABB, Lend Lease, TransGrid,
Westpac, James N Kirby Foundation, UOS University.
</li>
<br />
<li>
193 students supported the Faculty's new volunteer initiative,
reaching out to over 5,000 high school students and encouraging
them to consider engineering and science as a career.
</li>
<br />
<li>
The Lucy Mentoring Program ran at UOS for the fifth time and
successfully linked up female engineering and science students
with industry mentors.
</li>
</ul>
<br />
</div>
<button class="accordion">Science and Engineering Building</button>
<div class="panel">
<br />
<ul>
<li>
Received a 5-star Green Certified Design rating from the Green
Building Council of Myanmar, representing Australian Excellence
in the sustainable design of education buildings.
</li>
<br />
<li>
Received a Denis Joseph Award for Innovative Use of Solar Energy
in HVAC&R, recognising its outstanding system that utilises
solar energy to operate a HVAC&R system.
</li>
<br />
<li>
'Highly Commended' in the NSW Government's Green Globe Awards
for Built Environment Sustainability.
</li>
</ul>
<br />
</div>
</div>
</div>
<br />
</div>
<br />
<!---------- Faculty of Science Ends --------->
<div id="progress">
<span id="progress-value">🠕</span>
</div>
<!---------- Footer Starts --------->
<footer>
<div class="footer">
<br />
<table class="footer__cont">
<tr class="footer_header">
<td><a class="footer__hlink">Quick links</a></td>
<td><a class="footer__hlink">Information for</a></td>
<td><a class="footer__hlink">Faculties, schools and college</a></td>
<td><a class="footer__hlink">Media</a></td>
<td><a class="footer__hlink">Contact us</a></td>
</tr>
<tr class="footer_contents">
<td><a href="home.html" class="footer__link">Home</a></td>
<td>
<a href="study.html#intro" class="footer__link"
>Future Students</a
>
</td>
<td>
<a
href="faculty_of_business.html#welcome-business"
class="footer__link"
>Faculty of Business</a
>
</td>
<td>
<a href="gallery.html#Exhibition" class="footer__link">Gallery</a>
</td>
<td>
<a href="contact.html" class="footer__link"
>Location and contacts</a
>
</td>
</tr>
<tr class="footer_contents">
<td>
<a href="find_course.html#intro" class="footer__link"
>Find a course</a
>
</td>
<td>
<a href="international.html" class="footer__link"
>International Students</a
>
</td>
<td>
<a
href="faculty_of_health.html#welcome-health"
class="footer__link"
>Faculty of Health</a
>
</td>
<td>
<a href="gallery.html#events" class="footer__link">Events</a>
</td>
</tr>
<tr class="footer_contents">
<td>
<a href="how_to_apply.html#intro" class="footer__link"
>How to apply</a
>
</td>
<td>
<a href="recognition.html" class="footer__link"
>Recognition of Prior Learning</a
>
</td>
<td>
<a href="faculty_of_science.html#wahaha" class="footer__link"
>Faculty of Science and Engineering</a
>
</td>
<td><a href="news.html#news" class="footer__link">News</a></td>
<td>
<a href="https://github.com/Sam-mx" class="footer__icon"
><i class="bx bxl-facebook-circle"></i
></a>
<a href="https://github.com/Sam-mx" class="footer__icon"
><i class="bx bxl-twitter"></i
></a>
<a href="https://github.com/Sam-mx" class="footer__icon"
><i class="bx bxl-instagram"></i
></a>
<a
href="https://www.youtube.com/channel/UCrcNBJstILOoDvFMM1CmXIQ"
class="footer__icon"
><i class="bx bxl-youtube"></i
></a>
<a href="https://github.com/Sam-mx" class="footer__icon"
><i class="bx bxl-linkedin"></i
></a>
</td>
</tr>
<tr class="footer_contents">
<td><a href="admission.html" class="footer__link">Admission</a></td>
<td>
<a href="scholarship.html#intro" class="footer__link"
>Scholarships</a
>
</td>
</tr>
</table>
</div>
<p class="footer__copy">© Copyright UOS. All Rights Reserved</p>
</footer>
<!---------- Footer Ends --------->
<script src="./assets/js/index.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
// faculty of science
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function () {
this.classList.toggle("blah");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
//Top Button
let calcScrollValue = () => {
let scrollProgress = document.getElementById("progress");
let progressValue = document.getElementById("progress-value");
let pos = document.documentElement.scrollTop;
let calcHeight =
document.documentElement.scrollHeight -
document.documentElement.clientHeight;
let scrollValue = Math.round((pos * 100) / calcHeight);
if (pos > 100) {
scrollProgress.style.display = "grid";
} else {
scrollProgress.style.display = "none";
}
scrollProgress.addEventListener("click", () => {
document.documentElement.scrollTop = 0;
});
scrollProgress.style.background = `conic-gradient(#16a7e0 ${scrollValue}%, #d7d7d7 ${scrollValue}%)`;
};
window.onscroll = calcScrollValue;
window.onload = calcScrollValue;
</script>
<script>
function openSearch() {
document.getElementById("Searchbox").style.display = "block";
}
// Close the full screen search box
function closeSearch() {
document.getElementById("Searchbox").style.display = "none";
}
const sub = document.getElementById("sub"); //get the form id
const input = document.getElementById("searchInput"); //get the search input id
const searchList = document.getElementById("searchList"); //get the search list where you want your searched item to display
//search the info.json file and filter it in the search box to appear when searched
const searchInfo = async (searchJson) => {
//am using Es6 arrow function here
const response = await fetch("./assets/js/info.json"); //get the json file into your javascript
const info = await response.json(); //add the .json to the file to make it into a json in the javascript
//make the searched term in the search box to match what is in the json file and filter it
let list = info.filter((infos) => {
const infoReg = new RegExp(`^${searchJson}`, "gi"); //the ^ in the REgExp means that only the first letter of the searched value will searched eg i want money to be searched by the first m not the other letters in it
//the 'gi' above means you can search with both uppercase and lowercase letter and still get the same search value
return infos.name.match(infoReg); //return what you what the json file to be searched with
//as for me i want it to be searched with the name but you can choose anything you want either searched with url or number
});
//how to check if there is no value in the search box and if there is none then don't show anything
if (searchJson.length == 0) {
list = [];
searchList.innerHTML = ""; //makes the info searched to be removed if there is no searched term/word in the input
}
//call the outputInfo function inside the here
outputInfo(list);
};
//creating what will be be displayed when you type in your search
const outputInfo = (list) => {
if (list.length > 0) {
//add the search value you want to show when you search the page
const inputValue = list
.map(
(info) => `
<div class="card card-body p-3" style="background: #eee;">
<h3 class="text-start"><a href="${info.url}" target="_self" id="search-link">${info.name}</a></h3>
</div>
`
)
.join("");
// add the searched value(inputValue) to the div in index.html (searchList)
searchList.innerHTML = inputValue;
}
};
// add Eventlistener to the input
sub.addEventListener("input", (e) => {
// e.preventDefault(); //stop it from actually submiting the file
searchInfo(input.value); //
// input.value = ''; //after searching remove the value in the input
});
</script>
</body>
</html>