File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
119119 console . log ( "data for offending segment: " , cells [ 1 ] ) ;
120120
121121 }
122- // console.log("cells length:", cells.length);
123- // console.log("data",cells[1]);
122+ console . log ( "cells length:" , cells . length ) ;
123+ console . log ( "data" , cells [ 1 ] ) ;
124124 sortedData . push ( { score : parseInt ( cells [ 1 ] . trim ( ) ) , username : cells [ 0 ] } ) ;
125125 }
126126 sortedData = sortedData . sort ( ( a , b ) => {
@@ -135,7 +135,14 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
135135 }
136136 table += '<tr>' ;
137137 table += '<td>' + pos + '</td>' ;
138- table += '<td class=\'handle\'><a href=\'https://github.com/' + sortedData [ i ] . username + '\' target=\'_blank\'>' + sortedData [ i ] . username + '</a></td>' ; `<img style='width: 22px; border-radius: 100%;' src='https://avatars.githubusercontent.com/${ sortedData [ i ] . username } ' alt=${ sortedData [ i ] . username } /> ` ;
138+ table += (
139+ '<td class=\'handle\'><a href=\'https://github.com/'
140+ + sortedData [ i ] . username
141+ + '\' target=\'_blank\'>'
142+ + `<img style='width: 22px; border-radius: 100%;' src='https://avatars.githubusercontent.com/${ sortedData [ i ] . username } ' alt=${ sortedData [ i ] . username } /> `
143+ + sortedData [ i ] . username
144+ + '</a></td>'
145+ ) ;
139146 table += '<td>' + sortedData [ i ] . score + '</td>' ;
140147 table += '</tr>' ;
141148 }
You can’t perform that action at this time.
0 commit comments