Stats
PP
0
Accuracy
0.0%
Ranked Score
0
Total Score
0
Play Count
0
Playtime
0:00:00
Total Hits
0
Max Combo
0
Replay Views
0
${
Math.round(el.pp * 100) / 100
}pp
Acc ${
Math.round(el.acc * 100) / 100
}%
${grade_normal(el.grade)}
`;
}
});
cur_best = cur_best + 5;
}
function get_recent(n) {
axios
.get(
'https://api.seventwentyseven.xyz/v1/get_player_scores?scope=recent&id=4813&mode=0&limit=' +
Number(cur_recent + 1)
)
.then((r) => {
//why
resp = r.data.scores.splice(cur_recent - 9, cur_recent - 4);
for (el of resp) {
console.log(el);
let timeagovar = new Date(el.play_time).getTime();
pauseel = ``;
if (el.pauses > 0) {
pauseel = `PAUSES: ${el.pauses}`;
}
recent.innerHTML += `
${
Math.round(el.pp * 100) / 100
}pp
Acc ${
Math.round(el.acc * 100) / 100
}%
${grade_normal(el.grade)}
`;
}
});
cur_recent = cur_recent + 5;
}
function get_most_played(n) {
axios
.get(
'https://api.seventwentyseven.xyz/v1/get_player_most_played?id=4813&mode=0&limit=' +
Number(cur_best + 1)
)
.then((r) => {
console.log(r);
//why
resp = r.data.maps.splice(cur_most_played - 10, cur_most_played - 5);
for (el of resp) {
most_played.innerHTML += `
${el.artist} - ${el.title}
${el.version}
`;
}
});
cur_most_played = cur_most_played + 6;
}
// Execute on load to get first 5 scores
get_best(cur_best);
get_recent(cur_recent);
get_most_played(cur_most_played);
-->