HEADER v3, primary аккаунты и подтверждения

This commit is contained in:
AidarKC
2026-11-27 12:29:24 +03:00
parent f9e7c4ef94
commit ae430e84c7
89 changed files with 1201 additions and 1596 deletions
@@ -1,13 +1,13 @@
import { t } from '../i18n/index.js';
/** В выборе тарифа счётчик не показываем: он начинается с логина. */
export function createRegistrationStepper(step) {
const current = Math.max(1, Math.min(3, Number(step) || 1));
const current = Math.max(1, Math.min(4, Number(step) || 1));
const wrapper = document.createElement('div');
wrapper.className = 'signup-stepper';
wrapper.setAttribute('aria-label', t('screens.registration_stepper.text_001', { value1: current }));
const dots = document.createElement('div');
dots.className = 'signup-stepper__dots';
for (let i = 1; i <= 3; i += 1) {
for (let i = 1; i <= 4; i += 1) {
const dot = document.createElement('span');
dot.className = `signup-stepper__dot${i === current ? ' is-active' : ''}${i < current ? ' is-complete' : ''}`;
dots.append(dot);