step 9.1: done

This commit is contained in:
bepis
2026-10-21 09:51:00 +11:00
parent 11f7829946
commit aeea0b9aaf
5 changed files with 107 additions and 46 deletions
+11 -4
View File
@@ -40,10 +40,17 @@ function renderProfile(data) {
for (const stat of ['str', 'agi', 'int', 'vit']) {
const row = document.createElement('div');
row.className = 'profile-stat-row';
row.innerHTML = `
<span class="profile-stat-label">${stat}</span>
<span class="profile-stat-value">${data[stat]}</span>
`;
const label = document.createElement('span');
label.className = 'profile-stat-label';
label.textContent = stat;
const value = document.createElement('span');
value.className = 'profile-stat-value';
value.textContent = data[stat];
row.appendChild(label);
row.appendChild(value);
statsList.appendChild(row);
}