From 3378d9ca95080c04140e57d346ecfe3cbaf3177a Mon Sep 17 00:00:00 2001 From: tiger2005 <41613797+tiger2005@users.noreply.github.com> Date: Wed, 10 Nov 2021 16:59:44 +0800 Subject: [PATCH] Ranks Page Improve & Bug Fix --- js/multi.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/multi.js b/js/multi.js index 7d0b0c4..6b2714a 100644 --- a/js/multi.js +++ b/js/multi.js @@ -110,7 +110,7 @@ function getMultiHack(x, y){ return `-${y}`; if(y == 0) return `+${x}`; - return `+${x} : -${y}`; + return `+${x}:-${y}`; } function multiRenderList(data){ @@ -141,7 +141,7 @@ function multiRenderList(data){ $(".multiInfoTable").css("display", "table"); var hd = $(".multiInfoThead"); hd.html(""); - var p = `#${localize("multiUser")}`; + var p = `#${localize("multiUser")}`; if(data.contest.type == "IOI") p += `=`; else if(data.contest.type == "ICPC") @@ -157,12 +157,14 @@ function multiRenderList(data){ var user = data.rows[t]; var uList = ""; if(user.party.teamName != undefined) - uList = `${user.party.teamName}: `; + uList = `${user.party.teamName}`; var l = []; for(var i=0; i${user.party.participantType == "PRACTICE" ? "" : user.rank}${user.party.ghost ? "" : ""}${(user.party.participantType == "PRACTICE" || user.party.participantType == "OUT_OF_COMPETITION") ? "* " : ""}${uList}${user.party.participantType == "VIRTUAL" ? `${getVirtualTag(user.party.startTimeSeconds)}` : ""}`; + var q = `${user.party.participantType == "PRACTICE" ? "" : user.rank}${user.party.ghost ? " " : ""}${(user.party.participantType == "PRACTICE" || user.party.participantType == "OUT_OF_COMPETITION") ? "* " : ""}${uList}${user.party.participantType == "VIRTUAL" && !user.party.ghost ? `${getVirtualTag(user.party.startTimeSeconds)}` : ""}`; if(data.contest.type == "IOI") q += `${user.pointsInfo != undefined ? user.pointsInfo : user.points}`; else if(data.contest.type == "ICPC") @@ -175,7 +177,7 @@ function multiRenderList(data){ if(r.pointsInfo != undefined){ s = r.pointsInfo; if(r.bestSubmissionTimeSeconds != undefined) - s += `${getTimeLength(Number(r.bestSubmissionTimeSeconds))}`; + s += `${getTimeLength(Number(r.bestSubmissionTimeSeconds * 1000))}`; } else if(r.points == 0){ if(r.rejectedAttemptCount != 0)