File tree Expand file tree Collapse file tree 3 files changed +59
-1
lines changed Expand file tree Collapse file tree 3 files changed +59
-1
lines changed Original file line number Diff line number Diff line change 5
5
< meta charset ="UTF-8 " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< link rel ="stylesheet " href ="/niivue.css " />
8
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css " integrity ="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg== " crossorigin ="anonymous " referrerpolicy ="no-referrer " />
8
9
< title > AI powered brain segmentation</ title >
9
10
</ head >
10
11
68
69
<!-- important to use class footer here -->
69
70
< div class ="footer " id ="memstatus " style ="color: green "> Memory OK</ div >
70
71
</ th >
72
+ < th >
73
+ < div class ="github-star ">
74
+ < div class ="star-button ">
75
+ < a href ="https://github.com/neuroneural/brainchop " target ="_blank " style ="text-decoration:none ">
76
+ < i class ="fa-brands fa-github " style ="color: #000000; "> </ i >
77
+ < span > Star</ span >
78
+ </ a >
79
+ </ div >
80
+ < div id ="star-count "> 0</ div >
81
+ </ div >
82
+ </ th >
71
83
</ tr >
72
84
</ table >
73
85
</ div >
Original file line number Diff line number Diff line change @@ -303,4 +303,14 @@ async function main() {
303
303
}
304
304
}
305
305
306
+ async function updateStarCount ( ) {
307
+ try {
308
+ const response = await fetch ( `https://api.github.com/repos/neuroneural/brainchop` ) ;
309
+ const data = await response . json ( ) ;
310
+ document . getElementById ( 'star-count' ) . textContent = data . stargazers_count ;
311
+ } catch ( error ) {
312
+ console . error ( 'Error fetching star count:' , error ) ;
313
+ }
314
+ }
315
+ updateStarCount ( )
306
316
main ( )
Original file line number Diff line number Diff line change @@ -106,4 +106,40 @@ div {
106
106
}
107
107
108
108
div .footer { width : 100% ; display : block; background : # 303030 ;}
109
- table .footer { width : 100% ;height : 100% ; table-layout : fixed;}
109
+ table .footer { width : 100% ;height : 100% ; table-layout : fixed;}
110
+
111
+ .github-star {
112
+ display : inline-flex;
113
+ align-items : center;
114
+ background-color : # fff ;
115
+ border : 1px solid # d1d5da ;
116
+ border-radius : 6px ;
117
+ cursor : pointer;
118
+ font-size : 14px ;
119
+ font-weight : 600 ;
120
+ color : # 24292e ;
121
+ text-decoration : none;
122
+ }
123
+
124
+ .github-star .star-button {
125
+ display : flex;
126
+ align-items : center;
127
+ background-color : # ffffff ;
128
+ padding : 5px 12px ;
129
+ border-radius : 6px 0 0 6px ;
130
+ }
131
+
132
+ .github-star .star-button span {
133
+ color : # 24292e ;
134
+ padding-bottom : 8px
135
+ }
136
+
137
+ .github-star # star-count {
138
+ background-color : # eff3f6 ;
139
+ padding : 5px 12px ;
140
+ border-left : 1px solid # d1d5da ;
141
+ border-radius : 0 6px 6px 0 ;
142
+ font-size : 14px ;
143
+ font-weight : 600 ;
144
+ color : # 24292e ;
145
+ }
You can’t perform that action at this time.
0 commit comments