12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Регистрация</title>
- <link rel="stylesheet" type="text/css" href="стили/авторизация.css">
- </head>
- <body>
- <header>
- <nav>
- <a href="лк.html">Личный кабинет</a>
- </nav>
- </header>
- <div class="container">
- <h2>Регистрация</h2>
- <form id="registrationForm">
- <input type="text" id="name" placeholder="ФИО" required>
- <input type="tel" id="phone" name="phone" placeholder="+7 (_) _-__" required
- oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\d{3})(\d{3})(\d{4})/, '+7 ($1) $2-$3')"
- onfocus="if (this.value === '+7 (_) _-__') this.value = '+7'">
- <input type="email" id="email" placeholder="Email" required>
- <div id="codeContainer">
- <button id="getCodeButton">Получить код</button><br><br>
- <input type="text" id="code" placeholder="Код из почты" required>
- </div>
- <input type="password" id="password" placeholder="Пароль" required>
- <div class="checkbox-container">
- <input type="checkbox" id="terms" required>
- <label for="terms" class="checkbox-text">
- Согласен с условиями конфиденциальности
- </label>
- </div>
- <button type="submit">Зарегистрироваться</button>
- </form>
- <div id="successPopup" class="popup">
- <span class="close-button" onclick="closePopup()">×</span>
- <h3 style="color: white;">Вы успешно зарегистрированы!</h3>
- </div>
- <div id="errorPopup" class="popup">
- <span class="close-button" onclick="closePopup()">×</span>
- <h3 id="errorMessage" style="color: white;"></h3>
- </div>
- </div>
- <a href="главная.html" class="footer-link">На главную</a>
- <script src="джава/регистрация.js"></script>
- <script src="джава/апи.js"></script>
- </body>
- </html>
|