diff --git a/index.html b/index.html index 7e30fad..3ac5a3d 100644 --- a/index.html +++ b/index.html @@ -171,9 +171,13 @@ input[type=file]{display:none}
+ -
+
@@ -378,6 +382,7 @@ function registerProfile() { age: document.getElementById('regAge').value, birth: document.getElementById('regBirth').value, club: document.getElementById('regClub').value.trim(), + country: document.getElementById('regCountry').value, city: document.getElementById('regCity').value.trim(), coach: document.getElementById('regCoach').value.trim(), rank: document.getElementById('regRank').value.trim(), @@ -390,7 +395,7 @@ function registerProfile() { profiles.push(profile); SS('profiles', profiles); // Clear form - ['regName','regSport','regAge','regBirth','regClub','regCity','regCoach','regRank','regGoal'].forEach(id => document.getElementById(id).value = ''); + ['regName','regSport','regAge','regBirth','regCountry','regClub','regCity','regCoach','regRank','regGoal'].forEach(id => document.getElementById(id).value = ''); document.getElementById('regPhotoPreview').style.display = 'none'; loginProfile(profile.id); } @@ -455,7 +460,7 @@ function renderProfileList() {
${p.photo ? `` : p.name.charAt(0).toUpperCase()}
${p.name}
-
${[p.sport, p.club, p.age ? p.age+' лет' : '', p.birth ? '🎂 '+p.birth : '', p.rank].filter(Boolean).join(' · ')}
+
${[p.sport, p.club, p.age ? p.age+' лет' : '', p.birth ? '🎂 '+p.birth : '', p.country ? '🌍 '+p.country+(p.city?'/'+p.city:'') : p.city, p.rank].filter(Boolean).join(' · ')}