g
This commit is contained in:
1 parent
25dd6281ce
commit
7bf520096e
5 files changed
+1036
-124
No files matched your search
+4
-2
@@ -1,4 +1,4 @@
|
||||
const STORAGE_KEY = "levelup-typing-save-v1";
|
||||
const STORAGE_KEY = "speedcode-typing-save-v1";
|
||||
const q = (id) => document.getElementById(id);
|
||||
const set_text = (id, value) => {
|
||||
const el = q(id);
|
||||
@@ -28,8 +28,10 @@ function render_history(recent_rounds) {
|
||||
const date = new Date(round.stamp || Date.now());
|
||||
const when = `${date.toLocaleDateString()} ${date.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })}`;
|
||||
const best_combo = round.best_combo ?? round.bestCombo ?? 0;
|
||||
const track = String(round.difficulty || "full-stack").toLowerCase();
|
||||
const challenge = String(round.challenge || "standard").toLowerCase();
|
||||
item.className = "history-item";
|
||||
item.textContent = `${when} | ${round.wpm || 0} wpm / ${round.accuracy || 0}% acc / combo ${best_combo} / +${round.xp || 0} xp / ${(round.difficulty || "normal").toLowerCase()}`;
|
||||
item.textContent = `${when} | ${round.wpm || 0} wpm / ${round.accuracy || 0}% acc / combo ${best_combo} / +${round.xp || 0} xp / ${track} / ${challenge}`;
|
||||
list.appendChild(item);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user