Switched WRITE and PICK columns on leaderboard to make it easier to see who wrote what, fixes #1

This commit is contained in:
bitscuit 2021-04-04 09:51:58 +02:00
parent f0e9da04f3
commit f81549af79
1 changed files with 2 additions and 2 deletions

View File

@ -261,8 +261,8 @@ socket.on("ANSWER", function(data){
page += "<thead>";
page += "<th></th>";
page += "<th></th>";
page += "<th>Picked</th>";
page += "<th>Wrote</th>";
page += "<th>Picked</th>";
page += "<th>Change</th>";
page += "<th>Points</th>";
page += "</thead>";
@ -272,8 +272,8 @@ socket.on("ANSWER", function(data){
page += "<tr>";
page += "<td>"+data.usernames[i]+"</td>";
page += "<td>"+(data.userWrite[i] == data.submissions[data.bestLine] ? "<i class='fas fa-trophy' style='color: #FFD700;'></i>" : "")+"</td>";
page += "<td>"+data.submissions[data.userPick[i]]+"</td>";
page += "<td>"+data.userWrite[i]+"</td>";
page += "<td>"+data.submissions[data.userPick[i]]+"</td>";
page += "<td>+"+data.pointsDiff[i]+"</td>";
page += "<td>"+data.userPoints[i]+"</td>";
page += "</tr>";