личныйкабинет.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Личный кабинет</title>
  7. <link rel="stylesheet" type="text/css" href="стили/main.css">
  8. <link rel="stylesheet" type="text/css" href="стили/личныйкабинет.css">
  9. </head>
  10. <body>
  11. <div class="container">
  12. <h2>Личный кабинет</h2>
  13. <div id="user-info">
  14. <p><strong>Имя:</strong> <span id="name"> Анастасия </span></p>
  15. <p><strong>Фамилия:</strong> <span id="surname"> Любивая</span></p>
  16. <p><strong>Отчество:</strong> <span id="patronymic"> Александровна </span></p>
  17. <p><strong>Почта:</strong> <span id="email"></span> nastyshalubivaya@mail.ru </p>
  18. <p><strong>Телефон:</strong> <span id="phone">+7 (929) 039-0339</span></p>
  19. <button type="button" id="editButton">Редактировать</button>
  20. </div>
  21. <div id="editProfileForm" style="display: none;">
  22. <input type="text" id="editName" placeholder="Имя" required>
  23. <input type="text" id="editSurname" placeholder="Фамилия" required>
  24. <input type="text" id="editPatronymic" placeholder="Отчество" required>
  25. <input type="email" id="editEmail" placeholder="Email" required>
  26. <input type="password" id="password" placeholder="Пароль" required>
  27. <input type="tel" id="editPhone" 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'">
  28. <button type="button" id="saveChangesButton">Записать</button><br><br><br><br>
  29. </div>
  30. <div id="successPopup" class="popup">
  31. <span class="close-button" onclick="closePopup()">×</span>
  32. <h3 style="color: white;">Профиль успешно изменен!</h3>
  33. </div>
  34. <div id="errorPopup" class="popup">
  35. <span class="close-button" onclick="closePopup()">×</span>
  36. <h3 id="errorMessage"></h3>
  37. </div>
  38. </div>
  39. <a href="главная.html" class="footer-link">На главную</a>
  40. <script src="скрипты_js/личныйкабинет.js"></script>
  41. </body>
  42. </html>