idac: added TA eval ranks to the frontend
This commit is contained in:
@@ -1,6 +1,26 @@
|
||||
// Declare a global variable to store the JSON data
|
||||
var constData;
|
||||
|
||||
function evaluateRank(evalId) {
|
||||
if (evalId >= 1 && evalId <= 4) {
|
||||
return "Rookie";
|
||||
} else if (evalId >= 5 && evalId <= 8) {
|
||||
return "Regular";
|
||||
} else if (evalId >= 9 && evalId <= 12) {
|
||||
return "Specialist";
|
||||
} else if (evalId >= 13 && evalId <= 16) {
|
||||
return "Expert";
|
||||
} else if (evalId >= 17 && evalId <= 20) {
|
||||
return "Professional";
|
||||
} else if (evalId >= 21 && evalId <= 24) {
|
||||
return "Master";
|
||||
} else if (evalId == 25) {
|
||||
return "Master+";
|
||||
} else {
|
||||
return "Invalid";
|
||||
}
|
||||
}
|
||||
|
||||
function formatGoalTime(milliseconds) {
|
||||
// Convert the milliseconds to a time string
|
||||
var minutes = Math.floor(milliseconds / 60000);
|
||||
|
||||
Reference in New Issue
Block a user