File tree Expand file tree Collapse file tree
30DaysOfJavaScript/assets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+
4+ < head >
5+ < meta charset ="UTF-8 ">
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7+ < meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
8+ < link rel ="shortcut icon " href ="../30DaysOfJavaScript\assets\48.png " type ="image/x-icon " />
9+ < script src ="https://kit.fontawesome.com/0f276ce15a.js " crossorigin ="anonymous "> </ script >
10+ < link rel ="stylesheet " href ="style.css ">
11+ < title > Check presence</ title >
12+ </ head >
13+
14+ < body >
15+ < h1 class ="mee "> Ndblaze..</ h1 >
16+ < div class ="wrapper ">
17+ < div >
18+ < h1 > Click the Presence icon to toggle Presence</ h1 >
19+ < table class ="content-table ">
20+ < thead >
21+ < tr >
22+ < th > #</ th >
23+ < th > Name</ th >
24+ < th > Point</ th >
25+ < th > Team</ th >
26+ < th > Presence</ th >
27+ </ tr >
28+ </ thead >
29+ < tbody >
30+ < tr >
31+ < td > 1</ td >
32+ < td > Dominic</ td >
33+ < td > 88, 110</ td >
34+ < td > dcode</ td >
35+ < td class ="check "> < i class ="fa-solid fa-check present " onclick ="toggle(this) "> </ i > </ td >
36+ </ tr >
37+ < tr >
38+ < td > 2</ td >
39+ < td > Moses</ td >
40+ < td > 75, 300</ td >
41+ < td > Student</ td >
42+ < td class ="check "> < i class ="fa-solid fa-xmark absent " onclick ="toggle(this) "> </ i > </ td >
43+ </ tr >
44+ < tr >
45+ < td > 3</ td >
46+ < td > Mike</ td >
47+ < td > 50, 500</ td >
48+ < td > Teacher</ td >
49+ < td class ="check "> < i class ="fa-solid fa-xmark absent " onclick ="toggle(this) "> </ i > </ td >
50+ </ tr >
51+ < tr >
52+ < td > 4</ td >
53+ < td > Nick</ td >
54+ < td > 90, 210</ td >
55+ < td > Chef</ td >
56+ < td class ="check "> < i class ="fa-solid fa-xmark absent " onclick ="toggle(this) "> </ i > </ td >
57+ </ tr >
58+ </ tbody >
59+ </ table >
60+ </ div >
61+ </ div >
62+ < footer >
63+ < p > < / > with ❤️ by
64+ < a href ="https://github.com/Ndblaze "> Ndubuisi Eze</ a >
65+ < br >
66+ < a href ="https://github.com/Ndblaze/30DaysOfJavaScript " target ="_blank "> #30DaysOfJavaScript
67+ </ a >
68+ </ p >
69+ </ footer >
70+ < script src ="script.js "> </ script >
71+ </ body >
72+ </ html >
Original file line number Diff line number Diff line change 1+
2+ function toggle ( e ) {
3+ console . log ( e . className ) ;
4+ if ( e . className == "fa-solid fa-xmark absent" ) {
5+ e . className = "fa-solid fa-check present" ;
6+ } else {
7+ e . className = "fa-solid fa-xmark absent" ;
8+ }
9+
10+ }
Original file line number Diff line number Diff line change 1+ * {
2+ padding : 0 ;
3+ box-sizing : border-box;
4+ font-family : "sans" ;
5+ }
6+
7+ @font-face {
8+ font-family : "sans" ;
9+ src : url (font/sans.ttf);
10+ }
11+
12+ body {
13+ overflow : hidden;
14+ min-height : 100vh ;
15+ }
16+
17+
18+ .mee {
19+ position : absolute;
20+ top : 20px ;
21+ }
22+
23+ .wrapper {
24+ display : flex;
25+ align-items : center;
26+ justify-content : center;
27+ height : 600px ;
28+ }
29+
30+ h1 {
31+ font-size : 20px ;
32+ }
33+
34+ .content-table {
35+ border-collapse : collapse;
36+ margin : 25px 0 ;
37+ font-size : 0.9em ;
38+ min-width : 400px ;
39+ border-radius : 5px 5px 0 0 ;
40+ overflow : hidden;
41+ box-shadow : 0 0 20px rgba (0 , 0 , 0 , 0.15 );
42+ }
43+
44+ .content-table thead tr {
45+ background-color : # 19172e ;
46+ color : # fff ;
47+ text-align : left;
48+ }
49+
50+ .content-table th ,
51+ .content-table td {
52+ padding : 12px 15px ;
53+ }
54+
55+ .content-table tbody tr {
56+ border-bottom : 1px solid # dddddd ;
57+ }
58+
59+ .content-table tbody tr : hover {
60+ background-color : # fff ;
61+ }
62+
63+ .content-table tbody tr : nth-of-type (even ) {
64+ background-color : # f3f3f3 ;
65+ }
66+
67+ .content-table tbody tr : nth-last-of-type {
68+ border-bottom : 2px solid # 19172e ;
69+ }
70+
71+ .check {
72+ font-size : 20px ;
73+ text-align : center;
74+ }
75+
76+ .check .present {
77+ color : green;
78+ cursor : pointer;
79+ }
80+
81+ .check .absent {
82+ color : red;
83+ cursor : pointer;
84+ }
85+
86+ footer ,
87+ a {
88+ color : # 19172e ;
89+ font-size : 20px ;
90+ }
91+
92+ footer {
93+ display : flex;
94+ align-items : center;
95+ justify-content : center;
96+ text-align : center;
97+ }
Original file line number Diff line number Diff line change @@ -386,8 +386,18 @@ <h4>Image Slider</h4>
386386 < h4 > Caesar Cipher</ h4 >
387387 </ a >
388388 </ div >
389-
389+
390+ < div class ="item ">
391+ < a target ="_blank " href ="48 - Attendance Table\index.html ">
392+ < img src ="30DaysOfJavaScript/assets/48.png " alt ="Attendance Table " />
393+ < h4 > Attendance Table</ h4 >
394+ </ a >
395+ </ div >
396+
390397 </ div >
398+
399+
400+ </ div >
391401<!-- Main Section End -->
392402
393403<!-- Footer Start -->
You can’t perform that action at this time.
0 commit comments