From f81549af79c4e838090794c5ef3c502fae5fa563 Mon Sep 17 00:00:00 2001 From: bitscuit Date: Sun, 4 Apr 2021 09:51:58 +0200 Subject: [PATCH] Switched WRITE and PICK columns on leaderboard to make it easier to see who wrote what, fixes #1 --- html/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/index.html b/html/index.html index 7d8e235..dd1a3d0 100644 --- a/html/index.html +++ b/html/index.html @@ -261,8 +261,8 @@ socket.on("ANSWER", function(data){ page += ""; page += ""; page += ""; - page += "Picked"; page += "Wrote"; + page += "Picked"; page += "Change"; page += "Points"; page += ""; @@ -272,8 +272,8 @@ socket.on("ANSWER", function(data){ page += ""; page += ""+data.usernames[i]+""; page += ""+(data.userWrite[i] == data.submissions[data.bestLine] ? "" : "")+""; - page += ""+data.submissions[data.userPick[i]]+""; page += ""+data.userWrite[i]+""; + page += ""+data.submissions[data.userPick[i]]+""; page += "+"+data.pointsDiff[i]+""; page += ""+data.userPoints[i]+""; page += "";