diff --git a/index.html b/index.html index e5260dd..b8e38c3 100644 --- a/index.html +++ b/index.html @@ -226,7 +226,7 @@ input[type=file]{display:none} -
+

👤 Кто ты?

Выбери свою роль в спорте

@@ -266,7 +266,7 @@ input[type=file]{display:none}
-
+

🌍 Где ты?

Страна и город

@@ -278,7 +278,7 @@ input[type=file]{display:none}
-
+

🏫 Клуб и тренер

Где и с кем ты тренируешься

@@ -539,6 +539,7 @@ function nextStep(){ if(regStep===2){const l=document.getElementById('rLogin').value.trim();const p=document.getElementById('rPass').value;if(!l){toast('Придумай логин!');return}if(!p||p.length<3){toast('Пароль — минимум 3 символа!');return}const users=LS('users')||[];if(users.find(x=>x.login===l.toLowerCase())){toast('Такой логин уже занят!');return}} if(regStep===3&&!document.getElementById('rSport').value){toast('Выбери вид спорта!');return} if(regStep===4){if(!regRole){toast('Выбери свою роль!');return}if(regRole==='parent'&&!document.getElementById('rChildName').value.trim()){toast('Введи имя ребёнка!');return}} + if(regStep===8){const ph=document.getElementById('rPhone').value.trim();if(!ph){toast('Введи номер телефона!');return}if(!/^[+\d][\d\s\-()]{6,18}$/.test(ph)){toast('Неверный формат телефона! Пример: +77011234567');return}const em=document.getElementById('rEmail').value.trim();if(!em||!em.includes('@')){toast('Введи правильный email!');return}} if(regStep<8){buildStepDots();showRegStep(regStep+1)}else finishReg() } function prevStep(){if(regStep>1)showRegStep(regStep-1);buildStepDots()} @@ -660,7 +661,6 @@ function renderPage(){ } } - const c=document.getElementById('mainContent'); switch(currentPage){ case 'profile':c.innerHTML=renderProfile();break; @@ -954,7 +954,6 @@ function renderChatList(){ let h='
'; // Games button h+=''; - Show create group chat button h+=''; if(!other.length){h+='
💬
Нет других пользователей
';return h}